/* ============================================================
   K Gallery — Shop / Artworks Page Styles
   File: shop.css
   ============================================================ */

:root {
    --tq: #0097A7;
    --tq-dark: #006064;
    --tq-mid: #00BCD4;
}

.kgshop-page { background: #fafaf8; }

/* ── Page header ─────────────────────────────────────────── */
.kgshop-header {
    padding: 48px 56px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.kgshop-tag { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tq); margin-bottom: 10px; }
.kgshop-title { font-size: 32px; font-weight: 400; color: #111; }
.kgshop-header-right { display: flex; align-items: center; gap: 20px; padding-bottom: 4px; }
.kgshop-results-label { font-size: 12px; color: #aaa; }
.kgshop-rule { height: 0.5px; background: #e8e4de; margin: 28px 56px 0; }

/* ── Section eyebrow ─────────────────────────────────────── */
.kgshop-eyebrow {
    font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
    color: #bbb; margin-bottom: 24px;
    display: flex; align-items: center; gap: 14px;
}
.kgshop-eyebrow::after { content: ''; flex: 1; height: 0.5px; background: #e8e4de; }

/* ── Featured section ────────────────────────────────────── */
.kgshop-featured { padding: 48px 56px 0; }
.kgshop-feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kgshop-feat-col {}

/* Featured panel */
.kgshop-feat-panel {
    position: relative;
    display: block;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    background: #1a1a1a;
}
.kgshop-feat-panel:hover .kgshop-feat-img { transform: scale(1.04); }
.kgshop-feat-panel:hover .kgshop-feat-overlay { opacity: 1; }
.kgshop-feat-panel:hover .kgshop-feat-cta { color: #80DEEA; border-color: rgba(128,222,234,0.5); }

.kgshop-feat-img {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    transition: transform 0.6s ease;
}
/* Darken the image so text is legible */
.kgshop-feat-img::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.35);
}

.kgshop-feat-overlay {
    position: absolute; inset: 0;
    background: rgba(0,150,167,0.1);
    opacity: 0; transition: opacity 0.3s;
    z-index: 1;
}

.kgshop-feat-count {
    position: absolute; top: 22px; right: 22px;
    z-index: 2; text-align: right;
}
.kgshop-feat-count-num { font-size: 32px; font-weight: 200; color: rgba(255,255,255,0.2); line-height: 1; display: block; }
.kgshop-feat-count-lbl { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.18); }

.kgshop-feat-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 28px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
}
.kgshop-feat-badge {
    display: inline-block;
    font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #80DEEA; border: 0.5px solid rgba(128,222,234,0.35);
    padding: 3px 10px; margin-bottom: 10px;
}
.kgshop-feat-name { font-size: 26px; font-weight: 300; color: #fff; letter-spacing: -0.01em; margin-bottom: 4px; }
.kgshop-feat-origin { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; margin-bottom: 12px; }
.kgshop-feat-cta {
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    display: inline-flex; align-items: center; gap: 6px;
    border-bottom: 0.5px solid rgba(255,255,255,0.2); padding-bottom: 2px;
    transition: all 0.2s;
}

/* Artwork strip under panel */
.kgshop-feat-strip {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 12px 0 0;
}
.kgshop-feat-thumb {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 1 / 1; background: #ece9e3;
    cursor: pointer; position: relative; overflow: hidden;
    text-decoration: none;
}
.kgshop-feat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kgshop-feat-thumb i { font-size: 22px; color: #c8c2b8; }
.kgshop-feat-thumb:hover .kgshop-thumb-overlay { opacity: 1; }
.kgshop-thumb-overlay {
    position: absolute; inset: 0;
    background: rgba(0,150,167,0.75);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.kgshop-thumb-overlay span { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; }

.kgshop-feat-work-info { padding: 8px 0 0; }
.kgshop-feat-work-title { font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kgshop-feat-work-price { font-size: 11px; color: #aaa; margin-top: 2px; }

.kgshop-view-all {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--tq); text-decoration: none; margin-top: 14px;
}
.kgshop-view-all:hover { text-decoration: underline; }

/* ── Collection section ──────────────────────────────────── */
.kgshop-collection-rule { height: 0.5px; background: #e8e4de; margin: 48px 56px 0; }
.kgshop-collection { padding: 0 56px 80px; }
.kgshop-body { display: grid; grid-template-columns: 200px 1fr; margin-top: 36px; gap: 0; }

/* ── Sidebar ─────────────────────────────────────────────── */
.kgshop-sidebar {
    padding-right: 28px;
    border-right: 0.5px solid #e8e4de;
    padding-bottom: 60px;
}
.kgshop-filter-group { margin-bottom: 28px; }
.kgshop-filter-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: #bbb; margin-bottom: 12px; display: block; }
.kgshop-filter-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.kgshop-filter-name { font-size: 12px; color: #777; text-decoration: none; transition: color 0.15s; }
.kgshop-filter-name:hover,
.kgshop-filter-name.sel { color: #111; }
.kgshop-filter-name.sel { font-weight: 500; }
.kgshop-filter-ct { font-size: 11px; color: #ccc; }

/* Available toggle */
.kgshop-toggle-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0; border-top: 0.5px solid #e8e4de; margin-top: 4px;
}
.kgshop-toggle-label { font-size: 12px; color: #777; }
.kgshop-pill-toggle {
    width: 34px; height: 18px;
    background: #ddd; border-radius: 9px;
    position: relative; cursor: pointer; flex-shrink: 0;
    transition: background 0.2s;
}
.kgshop-pill-toggle::after {
    content: ''; position: absolute;
    top: 2px; left: 2px;
    width: 14px; height: 14px;
    background: #fff; border-radius: 50%;
    transition: left 0.2s;
}
.kgshop-pill-toggle.on { background: var(--tq); }
.kgshop-pill-toggle.on::after { left: 18px; }

/* ── Artwork grid ────────────────────────────────────────── */
.kgshop-main { padding-left: 40px; }
.kgshop-results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.kgshop-results-count { font-size: 12px; color: #aaa; }
.kgshop-results-count span { color: #111; font-weight: 500; }

.kgshop-art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 28px;
    row-gap: 44px;
}

.kgshop-art-card { cursor: pointer; }
.kgshop-art-card:hover .kgshop-art-img-inner { transform: scale(1.02); }
.kgshop-art-card:hover .kgshop-quick-actions { opacity: 1; }
.kgshop-art-card:hover .kgshop-art-title { color: var(--tq); }

.kgshop-art-img-wrap {
    position: relative; aspect-ratio: 1 / 1;
    background: #ece9e3; overflow: hidden; margin-bottom: 14px;
}
.kgshop-art-img-inner {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.5s ease; overflow: hidden; text-decoration: none;
}
.kgshop-art-img-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kgshop-art-img-inner i { font-size: 40px; color: #c8c2b8; }

.kgshop-quick-actions {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 10px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
    display: flex; justify-content: flex-end; gap: 6px;
    opacity: 0; transition: opacity 0.22s;
}
.kgshop-qa-btn {
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 5px 12px; cursor: pointer; border: none;
    text-decoration: none; display: inline-block;
}
.kgshop-qa-white { background: #fff; color: #111; }
.kgshop-qa-ghost { background: transparent; color: #fff; border: 0.5px solid rgba(255,255,255,0.5) !important; }

.kgshop-sold-stamp {
    position: absolute; top: 10px; left: 10px;
    font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255,255,255,0.85); background: rgba(0,0,0,0.5);
    padding: 2px 8px;
}

.kgshop-art-medium { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: #bbb; margin-bottom: 4px; }
.kgshop-art-title { font-size: 14px; font-weight: 400; color: #111; margin-bottom: 3px; transition: color 0.15s; }
.kgshop-art-artist { font-size: 12px; color: #aaa; font-style: italic; }

.kgshop-art-price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.kgshop-art-price { font-size: 13px; color: #333; }
.kgshop-art-price.sold { color: #bbb; text-decoration: line-through; font-size: 11px; }
.kgshop-cta-link {
    font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--tq); text-decoration: none;
}
.kgshop-cta-link:hover { text-decoration: underline; }

/* ── Pagination ──────────────────────────────────────────── */
.kgshop-pagination {
    display: flex; align-items: center; gap: 6px;
    margin-top: 48px; justify-content: center;
}
.kgshop-pg {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #888; text-decoration: none;
    border: 0.5px solid transparent; border-radius: 2px;
    transition: all 0.15s;
}
.kgshop-pg:hover { border-color: #ddd; color: #111; }
.kgshop-pg.active { background: #111; color: #fff; border-color: #111; }
.kgshop-pg-arrow { display: flex; align-items: center; justify-content: center; color: #aaa; text-decoration: none; padding: 6px; }
.kgshop-pg-arrow:hover { color: var(--tq); }

/* ── WooCommerce overrides on shop page ──────────────────── */
.kgshop-page .woocommerce-breadcrumb,
.kgshop-page .woocommerce-result-count,
.kgshop-page .woocommerce-ordering,
.kgshop-page ul.products { display: none !important; }

/* Logo fix on shop page */
.kgshop-page nav img.kgnav-logo-img,
.woocommerce .kgnav img.kgnav-logo-img,
.woocommerce-page .kgnav img.kgnav-logo-img {
    height: 36px !important;
    width: auto !important;
    max-height: 36px !important;
    display: block !important;
    object-fit: contain !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .kgshop-art-grid { grid-template-columns: repeat(2, 1fr); }
    .kgshop-body { grid-template-columns: 1fr; }
    .kgshop-sidebar { border-right: none; border-bottom: 0.5px solid #e8e4de; padding-right: 0; padding-bottom: 24px; margin-bottom: 24px; }
    .kgshop-main { padding-left: 0; }
}
@media (max-width: 768px) {
    .kgshop-header, .kgshop-featured, .kgshop-collection { padding-left: 20px; padding-right: 20px; }
    .kgshop-rule, .kgshop-collection-rule { margin-left: 0; margin-right: 0; }
    .kgshop-feat-grid { grid-template-columns: 1fr; }
    .kgshop-feat-panel { height: 280px; }
    .kgshop-art-grid { grid-template-columns: repeat(2, 1fr); column-gap: 14px; }
}
/* ── Exhibition mode header ──────────────────────────────── */
.kgshop-ex-header {
    padding: 36px 56px 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 0.5px solid #e8e4de;
    background: #fafaf8;
}
.kgshop-ex-label {
    font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
    color: #0097A7; margin-bottom: 8px;
}
.kgshop-ex-title {
    font-size: 26px; font-weight: 400; color: #111;
    letter-spacing: -0.01em; margin-bottom: 12px; line-height: 1.2;
}
.kgshop-ex-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.kgshop-ex-artist-link {
    font-size: 12px; color: #0097A7; text-decoration: none;
    border-bottom: 0.5px solid #0097A7; padding-bottom: 1px;
    transition: opacity 0.15s;
}
.kgshop-ex-artist-link:hover { opacity: 0.7; }
.kgshop-ex-back {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
    color: #aaa; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap; padding-top: 4px;
    transition: color 0.15s;
}
.kgshop-ex-back:hover { color: #0097A7; }