/* =========================
   SHOP STYLES
   ========================= */

/* Compatibility aliases: shop.css predates the style.css design-token rename. */
:root {
    --spacing-2xl: var(--spacing-xxl);
    --spacing-3xl: var(--spacing-xxxl);
    --border-radius-sm: var(--border-radius-small);
}

/* =========================
   STOREFRONT CHROME (header / nav / footer / language switcher)
   ========================= */
.shop-main {
    min-height: 60vh;
}

/* Guard against any accidental horizontal overflow on the storefront. */
html, body { overflow-x: hidden; }

.shop-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.shop-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.shop-logo img {
    max-height: 44px;
    width: auto;
}

.shop-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--primary-color);
}

.shop-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.shop-nav > a {
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-nav > a:hover {
    color: var(--accent-color);
}

.shop-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
}

.shop-lang {
    display: inline-flex;
    gap: 2px;
    margin: 0;
}

.shop-lang-btn {
    border: 1px solid transparent;
    background: none;
    padding: 4px 7px;
    font-family: var(--font-family);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--border-radius-small);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.shop-lang-btn:hover {
    color: var(--primary-color);
}

.shop-lang-btn.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.shop-footer {
    margin-top: var(--spacing-xxxl);
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.shop-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.shop-footer-powered {
    margin-top: 4px !important;
    font-size: 0.78rem !important;
    opacity: 0.8;
}

.messages-container {
    margin: var(--spacing-md) auto;
}

@media (max-width: 600px) {
    /* Logo on its own row; the nav wraps onto a full-width second row so the
       header no longer crams everything edge-to-edge. */
    .shop-header-inner { flex-wrap: wrap; row-gap: var(--spacing-sm); }
    .shop-nav { width: 100%; flex-wrap: wrap; align-items: center; gap: var(--spacing-sm) var(--spacing-md); }
    .shop-nav > a { font-size: 0.9rem; }
    .shop-lang { margin-left: auto; }
}

/* Shop Hero */
.shop-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

/* Storefront hero with a theme background image (store.theme.hero_image). */
.shop-hero--image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shop-hero {
    padding: clamp(3.5rem, 9vw, 7rem) 0;
}

.shop-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.shop-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: 0.01em;
    color: #fff;
    margin-bottom: var(--spacing-md);
}

.shop-hero__intro,
.shop-hero p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    max-width: 46ch;
    margin: 0 auto var(--spacing-lg);
}

/* gold CTA on the dark hero scrim (good contrast on the green/green scrim) */
.shop-hero__cta {
    margin-top: var(--spacing-sm);
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #1d1d1d;
}

.shop-hero__cta::before { display: none; }

.shop-hero__cta:hover {
    background: #fff;
    border-color: #fff;
    color: var(--primary-color);
}

.shop-hero-small {
    padding: var(--spacing-xl) 0;
}

.shop-hero-small h1 {
    font-size: 2rem;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* On a dark image hero the breadcrumb sits on the scrim → light. */
.shop-hero .breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.shop-hero .breadcrumb a:hover { color: #fff; }

.breadcrumb span {
    margin: 0 var(--spacing-xs);
    opacity: 0.6;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.category-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.category-icon {
    font-size: 3rem;
    color: white;
    text-transform: uppercase;
}

.category-card h3 {
    padding: var(--spacing-md);
    margin: 0;
    font-size: 1.125rem;
    text-align: center;
}

.category-card .product-count {
    display: block;
    text-align: center;
    padding-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.category-card-large .category-content {
    padding: var(--spacing-lg);
}

.category-card-large h3 {
    text-align: left;
    padding: 0;
    margin-bottom: var(--spacing-sm);
}

.category-card-large p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.category-card-large .product-count {
    text-align: left;
    padding: 0;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

/* Product Card */
.product-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    font-size: 3rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.sale {
    background: #e53e3e;
    color: white;
}

.product-badge.out-of-stock {
    background: #718096;
    color: white;
}

.product-info {
    padding: var(--spacing-md);
}

.product-category {
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.price, .price-sale {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-sale {
    color: #e53e3e;
}

.btn-add-cart {
    margin: 0 var(--spacing-md) var(--spacing-md);
    width: calc(100% - 2 * var(--spacing-md));
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.product-count-text {
    color: var(--text-secondary);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-dropdown select {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.product-thumbnails {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
}

.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.product-category-label {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-price-detail {
    margin-bottom: var(--spacing-md);
}

.price-large, .price-sale-large {
    font-size: 1.75rem;
    font-weight: 700;
}

.price-sale-large {
    color: #e53e3e;
}

.price-original-large {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: var(--spacing-sm);
}

.product-stock {
    margin-bottom: var(--spacing-lg);
}

.stock-available {
    color: #38a169;
    font-weight: 500;
}

.stock-unavailable {
    color: #e53e3e;
    font-weight: 500;
}

.product-description {
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    color: var(--text-secondary);
}

.product-features {
    margin-bottom: var(--spacing-lg);
}

.product-features h4 {
    margin-bottom: var(--spacing-sm);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: var(--spacing-xs) 0;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.add-to-cart-form {
    margin-bottom: var(--spacing-lg);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.quantity-input input {
    width: 60px;
    text-align: center;
    border: none;
    padding: var(--spacing-sm);
    font-size: 1rem;
}

.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: var(--border-color);
}

.btn-add-cart-detail {
    width: 100%;
}

.product-sku {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Cart Styles */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-2xl);
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: left;
    padding: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.cart-table td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.cart-product-name {
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.cart-product-name:hover {
    color: var(--primary-color);
}

.cart-product-category {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.quantity-input-small {
    display: inline-flex;
}

.quantity-input-small .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

.quantity-input-small input {
    width: 50px;
    padding: var(--spacing-xs);
}

.btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: #fee2e2;
    color: #e53e3e;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.2s ease;
}

.btn-remove:hover {
    background: #fecaca;
}

.cart-summary {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h3 {
    margin-bottom: var(--spacing-lg);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-summary hr {
    margin: var(--spacing-md) 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: var(--spacing-md);
}

/* Checkout Styles */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-2xl);
}

@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }
}

.checkout-section {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.checkout-section h3 {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 500px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkout-summary {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h3 {
    margin-bottom: var(--spacing-lg);
}

.checkout-items {
    margin-bottom: var(--spacing-lg);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

.checkout-item-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkout-item-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.checkout-item-name {
    font-weight: 500;
    font-size: 0.875rem;
}

.checkout-item-qty {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.checkout-totals {
    margin-bottom: var(--spacing-lg);
}

.checkout-totals hr {
    margin: var(--spacing-md) 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.checkout-notice {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.checkout-notice a {
    color: var(--primary-color);
}

/* Order Confirmation */
.order-confirmation {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #38a169;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto var(--spacing-lg);
}

.confirmation-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.order-details-box {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.order-details-box h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 500px) {
    .order-info-grid {
        grid-template-columns: 1fr;
    }
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-item .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.order-info-item .value {
    font-weight: 600;
}

.order-status-pending {
    color: #d69e2e;
}

.order-status-processing {
    color: #3182ce;
}

.order-status-shipped {
    color: #805ad5;
}

.order-status-delivered {
    color: #38a169;
}

.order-status-cancelled {
    color: #e53e3e;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table tfoot td {
    font-weight: 500;
}

.order-total-row td {
    font-size: 1.125rem;
    font-weight: 700;
}

.confirmation-actions {
    margin-top: var(--spacing-2xl);
}

.confirmation-actions p {
    margin-bottom: var(--spacing-lg);
}

.confirmation-actions .btn {
    margin: 0 var(--spacing-sm);
}

/* Empty State */
.empty-state {
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.empty-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: var(--spacing-lg);
}

.empty-state h2 {
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Responsive */
@media (max-width: 600px) {
    .shop-hero {
        padding: clamp(2.5rem, 12vw, 4rem) 0;
    }

    .shop-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .shop-hero .eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }

    .shop-hero__intro {
        font-size: 1rem;
    }

    .category-grid,
    .category-grid-large,
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .demo-modal { padding: var(--spacing-md); }
    .demo-modal__card { max-width: 100%; }

    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }
}

/* Very small phones: single column reads better than two cramped columns. */
@media (max-width: 380px) {
    .category-grid,
    .category-grid-large,
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   EDITORIAL SHOP ADDITIONS
   ========================= */

/* Light page header (category list / detail) */
.shop-pagehead {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid var(--border-color);
}

.shop-pagehead h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: var(--spacing-xs) 0 0;
}

.shop-pagehead__intro {
    margin: var(--spacing-md) 0 0;
    color: var(--text-secondary);
    max-width: 60ch;
    line-height: 1.6;
}

/* Editorial section head (eyebrow + serif title) */
.shop-sechead {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.shop-sechead h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    margin: 0;
}

/* PDP price in the display serif */
.price-large,
.price-sale-large {
    font-family: var(--font-display);
    font-weight: 500;
}

/* Demo badge in the storefront header */
.shop-demo-badge {
    font-family: var(--font-family);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-color);
    background: transparent;
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    padding: 3px 10px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-demo-badge:hover { background: var(--accent-color); color: #fff; }

/* Footer demo note */
.shop-footer-demo {
    margin-top: 6px !important;
    font-size: 0.74rem !important;
    color: var(--text-light) !important;
}

/* Demo disclaimer modal */
.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.demo-modal[hidden] { display: none; }

.demo-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 28, 24, 0.55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* The card is itself fixed + transform-centred, so it is always centred on the
   viewport regardless of how the overlay box measures on narrow screens. */
.demo-modal__card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: calc(100% - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: var(--border-radius-large);
    border-top: 3px solid var(--accent-color);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.demo-modal__card h2 {
    font-size: 1.6rem;
    margin: 0 0 var(--spacing-md);
}

.demo-modal__card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 var(--spacing-lg);
}

.demo-modal__btn { width: 100%; }

/* Mobile: fix the card to a px width (percentage/vw widths mis-measure inside
   the fixed, flex-centered overlay on narrow viewports). Placed last so it
   wins over the base rule above. */
@media (max-width: 600px) {
    .demo-modal__card { width: 340px; max-width: 100%; }
}

@media (max-width: 372px) {
    .demo-modal__card { width: 280px; }
}

/* =========================
   SHOP BUTTONS + SORT TOOLBAR
   ========================= */

/* Drop the gold slide-fill on storefront buttons (too close to the marketing
   site); a calm lift + shadow on hover is enough, like the hero CTA. */
.btn-primary::before,
.btn-secondary::before { display: none; }

.btn-secondary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sort / filter bar — quiet, editorial */
.shop-toolbar {
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.product-count-text {
    font-size: var(--font-size-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.sort-dropdown { gap: var(--spacing-sm); }

.sort-dropdown label {
    font-size: var(--font-size-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
}

.sort-dropdown select {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L2 4h8z' fill='%23999999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--spacing-md) center;
    padding: var(--spacing-sm) calc(var(--spacing-lg) + 10px) var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sort-dropdown select:hover { border-color: var(--border-color-hover); }

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.18);
}
