/* =============================================
   ELARA THEME — SHOP PAGE (Premium Redesign)
   ============================================= */

/* ---- SHOP HERO STRIP ---- */
.shop-hero-strip {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 0;
    margin-top: 76px;
}

.shop-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.shop-hero-text h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 4px;
}

.shop-product-count {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0;
}

/* Inline shop search bar — wider and centred */
.shop-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 50px;
    padding: 0 6px 0 18px;
    gap: 10px;
    width: min(480px, 100%);
    /* wider: up to 480px, full width on small screens */
    transition: border-color 0.18s, box-shadow 0.18s;
}

/* The wrapper (smart-search-wrapper) also needs to respect the width */
.shop-hero-inner .smart-search-wrapper {
    width: min(480px, 100%);
    flex-shrink: 0;
}

@media (max-width: 700px) {
    .shop-hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-search-bar,
    .shop-hero-inner .smart-search-wrapper {
        width: 100%;
    }
}

.shop-search-bar:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
    background: var(--bg-card);
}

.shop-search-bar i {
    font-size: 0.84rem;
    flex-shrink: 0;
}

.shop-search-bar input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text);
    outline: none;
    padding: 11px 0;
    font-family: var(--font-body);
}

.shop-search-bar input::placeholder {
    color: var(--text-muted);
}

.shop-search-bar button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.18s;
}

.shop-search-bar button:hover {
    background: var(--gold-dark);
}

/* Category pills row */
.shop-cat-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shop-cat-pills::-webkit-scrollbar {
    display: none;
}

.shop-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
    margin-bottom: -1px;
}

.shop-cat-pill:hover {
    color: var(--text);
}

.shop-cat-pill.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 600;
}

.shop-cat-pill-count {
    font-size: 0.7rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 600;
}

.shop-cat-pill.active .shop-cat-pill-count {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold-dark);
}

/* ---- MAIN LAYOUT ---- */
.shop-section {
    padding: 32px 0 80px;
    background: var(--bg-secondary);

    /* Personalisation callout — shown on main shop only */
    .shop-personalisation-note {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(201, 168, 76, 0.08);
        border: 1.5px solid rgba(201, 168, 76, 0.25);
        border-radius: 10px;
        padding: 12px 18px;
        font-size: 0.85rem;
        color: var(--text);
        margin-bottom: 4px;
        line-height: 1.5;
    }

    .shop-personalisation-note i {
        color: var(--gold);
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    min-height: 60vh;
}

.elara-shop-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    gap: 28px;
    align-items: start;
}

/* ---- SIDEBAR ---- */
.elara-shop-sidebar {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
    overflow: hidden;
}

.sidebar-inner {
    padding: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header span {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}

.sidebar-header i {
    color: var(--gold);
    font-size: 0.78rem;
}

.sidebar-clear-all {
    font-size: 0.76rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
}

.sidebar-clear-all:hover {
    color: #e53935;
}

/* Sidebar blocks */
.sidebar-block {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-block:last-child {
    border-bottom: none;
}

.sidebar-block-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
}

/* Sidebar search */
.sidebar-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 10px;
    transition: border-color 0.18s;
}

.sidebar-search:focus-within {
    border-color: var(--gold);
}

.sidebar-search i {
    color: var(--text-muted);
    font-size: 0.78rem;
    flex-shrink: 0;
}

.sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.84rem;
    color: var(--text);
    outline: none;
    padding: 9px 0;
    font-family: var(--font-body);
}

.sidebar-search input::placeholder {
    color: var(--text-muted);
}

/* Category list */
.sidebar-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-cat-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.18s;
}

.sidebar-cat-link i {
    font-size: 0.72rem;
    color: #ccc;
    transition: color 0.18s;
    flex-shrink: 0;
}

.sidebar-cat-link:hover,
.sidebar-cat-link.active {
    background: var(--bg-secondary);
    color: var(--text);
}

.sidebar-cat-link.active {
    background: rgba(201, 168, 76, 0.08);
    color: var(--gold-dark);
    font-weight: 600;
}

.sidebar-cat-link.active i {
    color: var(--gold);
}

.sidebar-cat-count {
    margin-left: auto;
    font-size: 0.7rem;
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-cat-link.active .sidebar-cat-count {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold-dark);
}

/* Price range */
.sidebar-price-wrap {
    padding: 4px 0;
}

.sidebar-price-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sidebar-price-display span:last-child {
    color: var(--text);
    font-weight: 600;
}

.sidebar-price-range {
    width: 100%;
    accent-color: var(--gold);
    height: 4px;
    cursor: pointer;
}

.sidebar-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}

/* Sort select */
.sidebar-sort select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.86rem;
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.18s;
}

.sidebar-sort select:focus {
    border-color: var(--gold);
}

/* ---- TOOLBAR ---- */
.elara-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-mobile-btn {
    display: none;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: border-color 0.18s;
    position: relative;
}

.filter-mobile-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-active-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

/* Active chips in toolbar */
.active-search-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(201, 168, 76, 0.1);
    border: 1.5px solid rgba(201, 168, 76, 0.3);
    font-size: 0.78rem;
    color: var(--gold-dark);
    font-weight: 600;
}

.active-search-chip a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2px;
    font-size: 0.72rem;
    transition: color 0.15s;
}

.active-search-chip a:hover {
    color: #e53935;
}

.active-search-chip--cat {
    background: rgba(201, 168, 76, 0.07);
}

/* View toggle */
.view-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.view-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.view-btn.active {
    background: var(--gold);
    color: #fff;
}

.view-btn:not(.active):hover {
    background: var(--bg-secondary);
    color: var(--text);
}

/* ---- EMPTY STATE ---- */
.elara-shop-empty {
    text-align: center;
    padding: 72px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.elara-shop-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #ccc;
}

.elara-shop-empty h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 8px;
}

.elara-shop-empty p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.elara-shop-empty-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ---- PAGINATION ---- */
.elara-shop-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ---- LIST VIEW ---- */
#shopProducts.list-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#shopProducts.list-view .product-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    border-radius: 12px;
}

#shopProducts.list-view .product-img-wrap {
    padding-top: 0;
    height: 200px;
}

#shopProducts.list-view .product-img-wrap img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#shopProducts.list-view .product-info {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#shopProducts.list-view .product-name {
    font-size: 1.1rem;
}

/* ---- MOBILE SIDEBAR OVERLAY ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.25s;
}

.sidebar-overlay.open {
    display: block;
    opacity: 1;
}

/* ---- DARK MODE ---- */
[data-theme="dark"] .shop-hero-strip {
    background: var(--navbar-bg);
}

[data-theme="dark"] .shop-search-bar {
    background: #252525;
}

[data-theme="dark"] .shop-cat-pill {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .elara-shop-sidebar {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .sidebar-search {
    background: #252525;
}

[data-theme="dark"] .sidebar-sort select {
    background: #252525;
    color: #f0f0f0;
    border-color: var(--border);
}

[data-theme="dark"] .sidebar-cat-link.active {
    background: rgba(201, 168, 76, 0.12);
}

[data-theme="dark"] .view-toggle {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .filter-mobile-btn {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .elara-shop-empty {
    background: var(--bg-card);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]):not([data-theme="dark"]) .shop-hero-strip {
        background: #161616;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .shop-search-bar {
        background: #252525;
    }

    :root:not([data-theme="light"]):not([data-theme="dark"]) .sidebar-sort select {
        background: #252525;
        color: #f0f0f0;
    }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .elara-shop-layout {
        grid-template-columns: 230px 1fr;
    }
}

@media (max-width: 768px) {
    .elara-shop-layout {
        grid-template-columns: 1fr;
    }

    .elara-shop-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        z-index: 1500;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
        transition: transform 0.32s cubic-bezier(0.32, 1, 0.4, 1);
        overflow-y: auto;
    }

    .elara-shop-sidebar.open {
        transform: translateX(0);
    }

    .filter-mobile-btn {
        display: flex;
    }

    .shop-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-search-bar {
        width: 100%;
    }

    #shopProducts.list-view .product-card {
        grid-template-columns: 110px 1fr;
    }

    #shopProducts.list-view .product-img-wrap {
        height: 130px;
    }

    #shopProducts.list-view .product-info {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .shop-cat-pills {
        margin-bottom: 0;
    }

    .elara-shop-toolbar {
        gap: 8px;
    }
}

/* ---- CONTACT PAGE (was in shop.css) ---- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 35px;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.contact-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.contact-form-area {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.contact-form-area h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--text);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-form-area {
        padding: 25px;
    }

    .contact-info h2 {
        font-size: 1.6rem;
    }
}

/* =============================================
   PRICE RANGE DUAL SLIDER
   ============================================= */
.sidebar-price-wrap {
    padding: 4px 0;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.price-range-track {
    position: relative;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    margin: 16px 0 20px;
}

.price-range-fill {
    position: absolute;
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    top: 0;
    pointer-events: none;
}

.price-thumb {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
    top: 0;
    outline: none;
}

.price-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.15s ease;
}

.price-thumb::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.price-thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    cursor: pointer;
}

.price-filter-apply {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--text);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: background 0.2s ease;
    font-family: var(--font-body);
    margin-top: 4px;
}

.price-filter-apply:hover {
    background: var(--gold);
}

/* =============================================
   VARIANT SELECTION — Unselected State
   Forces customer to actively choose
   ============================================= */

/* Unselected swatch = desaturated ring, no glow */
.aoa-swatch.aoa-swatch--unset {
    opacity: 0.45;
    box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.12);
}

/* Unselected size/option button */
.aoa-size-btn.aoa-size-btn--unset {
    border-color: #e0e0e0;
    color: #bbb;
    background: #fafafa;
}

/* Required label indicator */
.aoa-variant-label .aoa-required-star {
    color: #d32f2f;
    margin-left: 2px;
    font-size: 0.9em;
}

/* Shake animation for unselected required fields */
@keyframes aoa-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    15%,
    45%,
    75% {
        transform: translateX(-5px);
    }

    30%,
    60%,
    90% {
        transform: translateX(5px);
    }
}

.aoa-variant-section.aoa-required-error .aoa-colour-swatches,
.aoa-variant-section.aoa-required-error .aoa-size-btns {
    animation: aoa-shake 0.4s ease;
}

/* Highlight required section */
.aoa-variant-section.aoa-required-error {
    background: rgba(211, 47, 47, 0.04);
    border: 1.5px solid rgba(211, 47, 47, 0.3);
    border-radius: 10px;
    padding: 12px;
}

.aoa-required-msg {
    font-size: 0.75rem;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

/* Order summary on product page — before checkout */
.aoa-selection-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.84rem;
}

.aoa-selection-summary h5 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.aoa-selection-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.aoa-selection-row:last-child {
    border-bottom: none;
}

.aoa-selection-row span:first-child {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.aoa-selection-row span:last-child {
    font-weight: 600;
}

/* Not-selected placeholder */
.aoa-selection-placeholder {
    color: #d32f2f !important;
    font-weight: 400 !important;
    font-style: italic;
}