/* Blush Unlimited — Public Storefront */

:root {
    --bg-cream: #FAF8F6;
    --bg-white: #FFFFFF;
    --text-primary: #1C1C1C;
    --text-muted: #6B6560;
    --accent-blush: #9E5F78;
    --accent-blush-hover: #7E4A60;
    --border-subtle: #E8E4DF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', 'Segoe UI', sans-serif;
    --max-content: 1280px;
    --header-height: 72px;
}

body.storefront {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-cream);
    line-height: 1.65;
}

body.storefront .main-content {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Announcement */
.storefront-announcement {
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 1rem;
}

/* Header */
body.storefront .main-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.storefront .header-container {
    max-width: var(--max-content);
    min-height: var(--header-height);
    padding: 0.75rem 1.5rem;
}

body.storefront .logo .logo-link {
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.35rem;
    gap: 0.75rem;
}

body.storefront .logo .logo-img {
    height: 64px;
    max-height: 64px;
    max-width: 200px;
}

body.storefront .main-nav a {
    color: var(--text-primary);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.4rem 0.75rem;
    border-radius: 0;
    background: transparent;
}

body.storefront .main-nav a:hover,
body.storefront .main-nav a.active {
    color: var(--accent-blush);
    background: transparent;
}

body.storefront .nav-cart-count {
    font-size: 0.75rem;
    margin-left: 0.15rem;
}

body.storefront .nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Buttons */
body.storefront .btn-primary,
body.storefront .btn-add-to-bag {
    display: inline-block;
    background: var(--accent-blush);
    color: #fff;
    border: 1px solid var(--accent-blush);
    padding: 0.85rem 2rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s, border-color 0.2s;
}

body.storefront .btn-primary:hover,
body.storefront .btn-add-to-bag:hover {
    background: var(--accent-blush-hover);
    border-color: var(--accent-blush-hover);
    color: #fff;
}

body.storefront .btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}

body.storefront .btn-secondary:hover {
    border-color: var(--accent-blush);
    color: var(--accent-blush);
}

body.storefront .btn-text-link {
    color: var(--accent-blush);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

body.storefront .btn-text-link:hover {
    text-decoration: underline;
}

/* Footer */
body.storefront .main-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-subtle);
    margin-top: 0;
    padding: 3rem 0 1.5rem;
    text-align: left;
}

body.storefront .footer-inner {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 1.5rem;
}

body.storefront .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

body.storefront .footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

body.storefront .footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

body.storefront .footer-col a:hover {
    color: var(--accent-blush);
}

body.storefront .footer-trust {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.25rem;
}

body.storefront .footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Homepage sections */
.home-section {
    padding: 4rem 1.5rem;
}

.home-section-inner {
    max-width: var(--max-content);
    margin: 0 auto;
}

.home-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    background-color: #EDE8E4;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.home-hero-overlay {
    max-width: 640px;
}

.home-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.home-hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.home-trust {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.home-trust-grid {
    max-width: var(--max-content);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.home-trust-item {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.home-trust-icon {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blush);
}

.home-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-story-text h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 1.25rem;
}

.home-story-text p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.home-story-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--bg-cream);
}

.home-why {
    background: var(--bg-white);
}

.home-why h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.home-why-item h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.home-why-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.home-featured h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.home-featured-footer {
    text-align: center;
    margin-top: 2.5rem;
}

.home-cta {
    background: #F3EFEB;
    text-align: center;
}

.home-cta p {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.4;
}

/* Product grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: transparent;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-image-wrap {
    position: relative;
    aspect-ratio: 4/5;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 1rem;
    background: var(--bg-cream);
    transition: transform 0.35s ease;
}

.product-card-link:hover .product-card-image {
    transform: scale(1.03);
}

.product-card-image--empty {
    background: var(--bg-cream);
}

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
}

.product-card-badge--sale {
    color: var(--accent-blush);
}

.product-card-brand {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.product-card-link:hover .product-card-title {
    color: var(--accent-blush);
}

.product-card-jp {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.product-card-short {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.product-card-price {
    font-size: 0.95rem;
}

.product-card-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.4rem;
}

.product-card-price .sale-price {
    color: var(--accent-blush);
    font-weight: 600;
}

/* Shop page */
.shop-page {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.shop-page h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.shop-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.catalog-toolbar {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-form input[type="text"],
.filter-form select {
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--bg-white);
    min-width: 200px;
}

.filter-form input:focus,
.filter-form select:focus {
    outline: none;
    border-color: var(--accent-blush);
}

.shop-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Product PDP */
.product-pdp {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent-blush);
}

.product-pdp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery-main {
    aspect-ratio: 1;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    cursor: zoom-in;
}

.product-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 1.5rem;
}

.gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-cream);
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
    border-color: var(--accent-blush);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-purchase {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.product-brand-line {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.product-pdp h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.product-title-jp {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-short-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.product-pdp .product-price {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.product-pdp .product-price .sale-price {
    color: var(--accent-blush);
    font-weight: 600;
}

.product-pdp .product-price .original-price {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-meta p {
    margin-bottom: 0.25rem;
}

.product-manufacturer-link {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-blush);
    text-decoration: none;
    margin-bottom: 1rem;
}

.product-manufacturer-link:hover {
    text-decoration: underline;
}

.product-trust-line {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-blush);
    margin-bottom: 1.25rem;
}

.site-wide-note {
    background: var(--bg-cream);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    border-radius: 0;
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-subtle);
    width: fit-content;
}

.qty-stepper button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-white);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.qty-stepper button:hover {
    color: var(--accent-blush);
}

.qty-stepper input {
    width: 48px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.95rem;
}

.btn-add-to-bag {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
}

.product-accordions {
    border-top: 1px solid var(--border-subtle);
}

.accordion-item {
    border-bottom: 1px solid var(--border-subtle);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--text-primary);
    text-align: left;
}

.accordion-trigger:hover {
    color: var(--accent-blush);
}

.accordion-panel {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.accordion-panel.open {
    display: block;
}

.accordion-panel ul {
    margin-left: 1.25rem;
}

.product-related {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.product-related h2 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem;
}

.product-related .products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-contact-cta {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.product-lightbox.open {
    display: flex;
}

.product-lightbox img {
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.product-lightbox .lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

/* Cart & checkout */
.storefront-page {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.storefront-page h1 {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

body.storefront .data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
}

body.storefront .data-table th,
body.storefront .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

body.storefront .data-table th {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-actions,
.checkout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    align-items: center;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.checkout-summary {
    background: var(--bg-white);
    border: 1px solid var(--border-subtle);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.checkout-summary h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

body.storefront .form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
}

body.storefront .form-group input,
body.storefront .form-group select,
body.storefront .form-group textarea {
    width: 100%;
    border: 1px solid var(--border-subtle);
    padding: 0.65rem 0.85rem;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
    background: var(--bg-white);
}

body.storefront .message-success {
    background: #eef6f0;
    border: 1px solid #c5dcc9;
    color: #2d5a36;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

body.storefront .message-error {
    background: #fdf0f0;
    border: 1px solid #e8c5c5;
    color: #8b3a3a;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.policy-page {
    max-width: 720px;
}

.policy-page h1 {
    margin-bottom: 1.5rem;
}

.policy-page p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid,
    .product-related .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .home-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.storefront .logo .logo-img {
        height: 52px;
        max-height: 52px;
    }
    body.storefront .nav-toggle {
        display: block;
    }
    body.storefront .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 0.5rem;
    }
    body.storefront .main-nav.open {
        display: flex;
    }
    .home-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-story-grid {
        grid-template-columns: 1fr;
    }
    .home-why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .products-grid,
    .product-related .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .product-pdp-grid {
        grid-template-columns: 1fr;
    }
    .product-purchase {
        position: static;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    body.storefront .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body.storefront .logo .logo-img {
        height: 44px;
        max-height: 44px;
    }
    .products-grid,
    .product-related .products-grid {
        grid-template-columns: 1fr;
    }
    .home-hero {
        min-height: 320px;
        padding: 3rem 1rem;
    }
    .home-hero.home-hero--has-mobile {
        min-height: 520px;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}
