/* Shop page overrides for La Cherie */

.lc-landing .lc-shop-hero {
    padding: 28px 0 20px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 34%),
        linear-gradient(180deg, rgba(248, 244, 240, 0.98) 0%, rgba(242, 235, 228, 0.88) 100%);
    border-bottom: 1px solid rgba(91, 13, 13, 0.08);
}

.lc-landing .lc-shop-title {
    margin: 0;
    max-width: 12ch;
    font-family: var(--font-serif, "Playfair Display", Georgia, serif);
    font-size: clamp(2.45rem, 6vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: var(--lc-primary);
}

.lc-landing .lc-shop-subtitle {
    max-width: 44rem;
    margin: 12px auto 0;
    font-family: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: clamp(0.98rem, 2vw, 1.08rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--lc-text-soft);
}

.lc-landing .lc-shop-main-section {
    padding-top: 14px;
}

.lc-landing .lc-shop-tabs {
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(91, 13, 13, 0.12);
    box-shadow: 0 8px 24px rgba(56, 17, 17, 0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.lc-landing .lc-shop-tab {
    min-height: 42px;
    padding: 10px 16px;
    color: var(--lc-primary);
    border: 1px solid rgba(91, 13, 13, 0.16);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 6px rgba(56, 17, 17, 0.04);
}

.lc-landing .lc-shop-tab .lc-tab-short {
    display: none;
}

.lc-landing .lc-shop-tab.is-active {
    background: var(--lc-primary);
    color: #ffffff;
    border-color: var(--lc-primary);
    box-shadow: 0 10px 18px rgba(56, 17, 17, 0.18);
}

.lc-landing .lc-shop-tab-dot {
    background: rgba(91, 39, 39, 0.34);
}

.lc-landing .lc-shop-tab.is-active .lc-shop-tab-dot {
    background: rgba(248, 216, 181, 0.95);
    box-shadow: 0 0 0 3px rgba(248, 216, 181, 0.16);
}

.lc-landing .lc-quick-filter {
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(91, 13, 13, 0.10);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(56, 17, 17, 0.05);
}

.lc-landing .lc-quick-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.lc-landing .lc-quick-filter-label {
    margin: 0;
    color: var(--lc-text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lc-landing .lc-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(91, 13, 13, 0.16);
    background: #ffffff;
    color: var(--lc-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(56, 17, 17, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.lc-landing .lc-filter-toggle svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

.lc-landing .lc-filter-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(56, 17, 17, 0.08);
}

.lc-landing .lc-quick-filter-input {
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(91, 13, 13, 0.16);
    padding: 0 16px;
    font-size: 15px;
    color: var(--lc-primary);
    background: var(--lc-surface);
    box-shadow: inset 0 1px 2px rgba(56, 17, 17, 0.04);
}

.lc-landing .lc-quick-filter-input:focus {
    outline: none;
    border-color: var(--lc-primary);
    box-shadow: 0 0 0 3px rgba(91, 13, 13, 0.10);
}

.lc-landing .lc-quick-filter-empty,
.lc-landing .lc-shop-results-count {
    margin: 10px 0 0;
    color: var(--lc-text-soft);
    font-size: 13px;
    font-weight: 600;
}

.lc-landing .lc-shop-products-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.lc-landing .lc-shop-products-grid > * {
    content-visibility: auto;
    contain-intrinsic-size: 280px 380px;
}

.lc-landing .lc-collection-card,
.lc-landing .lc-product-card {
    content-visibility: auto;
    contain-intrinsic-size: 280px 380px;
    transform: translateZ(0);
}

.lc-landing .lc-collection-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(91, 13, 13, 0.10);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(56, 17, 17, 0.06);
}

.lc-landing .lc-collection-poster {
    aspect-ratio: 3 / 4;
    padding: 10px;
    background:
        radial-gradient(circle at 12% 14%, rgba(236, 229, 222, 0.85) 0%, rgba(250, 248, 245, 0) 38%),
        linear-gradient(180deg, #ffffff 0%, #f8f3ef 100%);
}

.lc-landing .lc-collection-poster img {
    border-radius: 12px;
    object-fit: contain;
    background: #ffffff;
}

.lc-landing .lc-collection-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    padding: 12px 13px 14px;
}

.lc-landing .lc-collection-title {
    flex: 1 1 100%;
    margin: 0;
    font-family: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--lc-primary);
}

.lc-landing .lc-collection-parent {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: var(--lc-text-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.lc-landing .lc-collection-count {
    margin-left: auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(91, 13, 13, 0.06);
    color: var(--lc-text-soft);
    font-size: 11px;
    font-weight: 700;
}

.lc-landing .lc-product-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(91, 13, 13, 0.09);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 20px rgba(56, 17, 17, 0.06);
}

.lc-landing .lc-product-card--item-view {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 244, 239, 0.98) 100%);
    display: flex;
    height: 100%;
}

.lc-landing .lc-product-card--item-view .lc-product-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100%;
    width: 100%;
    padding: 12px 12px 14px;
}

.lc-landing .lc-product-card--item-view .lc-product-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid rgba(91, 13, 13, 0.07);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f0ea 100%);
    overflow: hidden;
    flex-shrink: 0;
    min-height: 120px;
}

.lc-landing .lc-product-card--item-view .lc-product-image-wrap img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lc-landing .lc-product-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.lc-landing .lc-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(56, 17, 17, 0.08);
}

.lc-landing .lc-badge-warning {
    background: rgba(255, 243, 205, 0.96);
    color: #8b6914;
}

.lc-landing .lc-badge-sold-out {
    background: rgba(250, 215, 211, 0.96);
    color: #c0392b;
}

.lc-landing .lc-badge-new {
    background: rgba(250, 240, 208, 0.98);
    color: #8b6914;
}

.lc-landing .lc-product-name {
    margin: 0;
    font-family: var(--font-sans, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
    color: var(--lc-primary);
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.lc-landing .lc-product-meta {
    margin: 4px 0 0;
    color: var(--lc-text-soft);
    font-size: 12px;
}

.lc-landing .lc-shop-charm-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: auto;
    min-height: 48px;
}

.lc-landing .lc-shop-charm-price {
    margin: 0;
    color: var(--gold-500);
    font-family: var(--font-mono, "JetBrains Mono", "Courier New", monospace);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.lc-landing .lc-shop-charm-price del {
    display: block;
    margin-bottom: 2px;
    color: var(--lc-text-soft);
    font-size: 12px;
    font-weight: 500;
}

.lc-landing .lc-shop-charm-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 42px;
    min-width: 42px;
    flex-shrink: 0;
}

.lc-landing .lc-product-card--item-view .lc-shop-cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(91, 13, 13, 0.14);
    border-radius: 999px;
    background: #ffffff;
    color: var(--lc-primary);
    box-shadow: 0 6px 14px rgba(56, 17, 17, 0.08);
}

.lc-landing .lc-product-card--item-view .lc-shop-cart-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.lc-landing .lc-product-card--item-view .lc-shop-cart-button__icon i {
    margin: 0;
    line-height: 1;
    font-size: 14px;
}

.lc-landing .lc-product-card--item-view .lc-shop-cart-button--fallback {
    min-width: 42px;
    width: auto;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.lc-landing .lc-product-card--item-view .lc-shop-cart-button:hover {
    background: var(--lc-primary);
    color: #ffffff;
    border-color: var(--lc-primary);
    box-shadow: 0 10px 18px rgba(56, 17, 17, 0.14);
}

.lc-landing .lc-product-card--item-view .added_to_cart {
    display: none !important;
}

.lc-landing .lc-qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 32px;
    padding: 0 4px;
    border: 1px solid var(--lc-primary);
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    flex-wrap: nowrap;
}

.lc-landing .lc-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 6px;
    border: none;
    background: transparent;
    color: var(--lc-primary);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.lc-landing .lc-qty-val {
    min-width: 20px;
    padding: 0 4px;
    color: var(--lc-primary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.lc-landing .lc-shop-sidebar {
    width: 340px;
    max-width: 100vw;
    background: rgba(255, 255, 255, 0.97);
    border-left: 1px solid rgba(91, 13, 13, 0.08);
    transform: translate3d(100%, 0, 0);
    right: 0;
    will-change: transform;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.lc-landing .lc-shop-sidebar.is-open {
    transform: translate3d(0, 0, 0);
}

.lc-landing .lc-shop-sidebar-overlay {
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

body.lc-shop-sidebar-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}

.lc-landing .lc-filter-close-btn {
    top: 12px;
    right: 12px;
    color: var(--lc-primary);
}

.lc-landing .lc-filter-close-bottom {
    border-radius: 10px;
    background: var(--lc-primary);
}

.lc-landing .lc-filter-actions {
    gap: 10px;
}

.lc-landing .lc-filter-select {
    border-radius: 10px;
}

@media (hover: hover) and (pointer: fine) {
    .lc-landing .lc-shop-tab:hover,
    .lc-landing .lc-collection-card:hover,
    .lc-landing .lc-product-card:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 1024px) {
    .lc-landing .lc-shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lc-landing .lc-shop-sidebar {
        width: min(360px, 92vw);
    }
}

@media (max-width: 768px) {
    .lc-landing .lc-shop-hero {
        padding: 14px 0 10px;
    }

    .lc-landing .lc-shop-title {
        max-width: 10ch;
        font-size: clamp(1.9rem, 10vw, 2.35rem);
        line-height: 0.98;
    }

    .lc-landing .lc-shop-subtitle {
        margin-top: 8px;
        max-width: 28ch;
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .lc-landing .lc-shop-tabs {
        margin: 0 -8px 14px;
        padding: 6px;
        border-radius: 18px;
    }

    .lc-landing .lc-shop-tab {
        min-width: 88px;
        padding: 9px 11px;
    }

    .lc-landing .lc-shop-tab .lc-tab-full {
        display: none;
    }

    .lc-landing .lc-shop-tab .lc-tab-short {
        display: inline;
    }

    .lc-landing .lc-quick-filter {
        position: sticky;
        top: 6px;
        z-index: 24;
        margin-bottom: 8px;
        padding: 10px;
        border-radius: 16px;
    }

    .lc-landing .lc-quick-filter-head {
        margin-bottom: 8px;
    }

    .lc-landing .lc-filter-toggle {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 13px;
    }

    .lc-landing .lc-quick-filter-input {
        height: 40px;
        font-size: 14px;
    }

    .lc-landing .lc-shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .lc-landing .lc-collection-title {
        font-size: 15px;
    }

    .lc-landing .lc-collection-count,
    .lc-landing .lc-collection-parent {
        font-size: 10px;
    }

    .lc-landing .lc-product-card--item-view .lc-shop-cart-button {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .lc-landing .lc-shop-charm-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 8px;
        min-height: 44px;
    }

    .lc-landing .lc-shop-charm-actions {
        width: auto;
        justify-content: flex-end;
        min-width: 38px;
    }

    .lc-landing .lc-shop-charm-price {
        min-height: 34px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .lc-landing .lc-shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lc-landing .lc-shop-tab {
        min-width: 78px;
        padding: 8px 10px;
    }

    .lc-landing .lc-quick-filter {
        top: 4px;
    }

    .lc-landing .lc-product-card--item-view .lc-product-box {
        padding: 10px;
        gap: 8px;
    }

    .lc-landing .lc-product-card--item-view .lc-product-image-wrap {
        min-height: 104px;
        padding: 8px;
        border-radius: 12px;
    }

    .lc-landing .lc-product-badges {
        top: 6px;
        left: 6px;
        gap: 3px;
    }

    .lc-landing .lc-badge {
        min-height: 20px;
        padding: 0 7px;
        font-size: 10px;
    }

    .lc-landing .lc-shop-charm-footer {
        gap: 6px;
        min-height: 40px;
    }

    .lc-landing .lc-shop-charm-price {
        min-height: 32px;
        font-size: 14px;
    }

    .lc-landing .lc-shop-charm-price del {
        font-size: 11px;
    }

    .lc-landing .lc-shop-charm-actions {
        min-width: 34px;
        min-height: 34px;
    }

    .lc-landing .lc-product-card--item-view .lc-shop-cart-button {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .lc-landing .lc-product-card--item-view .lc-shop-cart-button__icon i {
        font-size: 12px;
    }
}

@media (max-width: 390px) {
    .lc-landing .lc-shop-products-grid {
        gap: 8px;
    }

    .lc-landing .lc-product-card--item-view .lc-product-box {
        padding: 8px;
    }

    .lc-landing .lc-product-card--item-view .lc-product-image-wrap {
        min-height: 96px;
        padding: 7px;
    }

    .lc-landing .lc-shop-charm-price {
        font-size: 13px;
    }

    .lc-landing .lc-shop-charm-price del {
        margin-bottom: 1px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .lc-landing .lc-shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .lc-landing .lc-product-card--item-view .lc-product-image-wrap {
        min-height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lc-landing .lc-shop-tab,
    .lc-landing .lc-collection-card,
    .lc-landing .lc-product-card,
    .lc-landing .lc-filter-toggle,
    .lc-landing .lc-shop-sidebar,
    .lc-landing .lc-shop-sidebar-overlay {
        transition: none;
    }

    .lc-landing .lc-shop-tab:hover,
    .lc-landing .lc-collection-card:hover,
    .lc-landing .lc-product-card:hover,
    .lc-landing .lc-filter-toggle:hover {
        transform: none;
    }
}
