@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
    --bg: #fafaf7;
    --panel: #ffffff;
    --card: #efede7;
    --accent: #5faf7e;
    --accent-2: #2f5b4f;
    --text: #1d1f1e;
    --muted: #585a59;
    --border: #e6e2d9;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.07);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --container: 1200px;
}

.theme-dark {
    --bg: #0f0f0f;
    --panel: #1b1b1b;
    --card: #1a1a1a;
    --accent: #2e5a41;
    --accent-2: #4e8a67;
    --text: #ececec;
    --muted: #b7b7b7;
    --border: #262626;
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 46px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 20px 88px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 40px;
    height: 72px;
}

.theme-dark .navbar {
    background: rgba(20, 20, 20, 0.92);
}

.logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.logo-leaf {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
    margin-top: 12px;
    animation: fadeIn 0.7s ease;
}

.hero h1 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 58px);
    margin: 10px 0 12px;
    line-height: 1.15;
}

.hero .lede {
    font-size: 17px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 6px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.hero-visual {
    display: grid;
    gap: 12px;
}

.hero-frame {
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.hero-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
    display: block;
}

.hero-soon {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    color: var(--muted);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--card);
    color: var(--muted);
    font-size: 13px;
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 10px 24px rgba(95, 175, 126, 0.35);
}

.btn.primary:hover {
    transform: translateY(-1px) scale(1.01);
    background: #529a6e;
}

.btn.secondary {
    background: var(--panel);
    border-color: var(--border);
}

.btn.secondary:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.section {
    margin-top: 48px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--accent-2);
    margin: 0;
}

.serif {
    font-family: "Playfair Display", "Times New Roman", serif;
}

.lede {
    margin: 6px 0 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--card);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.feature-title {
    font-weight: 600;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.popular-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.25s ease;
    position: relative;
}

.card-link {
    color: inherit;
}

.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.card-img {
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    min-height: 320px;
    display: block;
    transition: transform 0.25s ease;
}

.card:hover .card-img img {
    transform: scale(1.02);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.08));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-body {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.card h3 {
    margin: 0;
    font-size: 18px;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.small {
    font-size: 13px;
}

.price {
    font-weight: 700;
    color: var(--text);
}

.card-actions {
    padding: 0 16px 16px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table th,
.cart-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.cart-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-actions-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
}

.qty button {
    border: none;
    background: var(--panel);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text);
}

.qty button:hover {
    background: var(--card);
}

.cart-summary {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.empty-state {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    display: grid;
    gap: 10px;
    justify-items: center;
    box-shadow: var(--shadow-sm);
}

.empty-state img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.form {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: grid;
    gap: 14px;
    box-shadow: var(--shadow-sm);
}

.field {
    display: grid;
    gap: 6px;
    color: var(--text);
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
    font-family: inherit;
    font-size: 15px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #969696;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(95, 175, 126, 0.2);
}

.error {
    color: #b03a2e;
}

.flash {
    position: fixed;
    top: 80px;
    right: 20px;
    display: grid;
    gap: 8px;
    z-index: 20;
}

.flash-item {
    background: var(--accent-2);
    color: white;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    min-width: 180px;
}

.dropzone {
    border: 1.5px dashed #7b8f80;
    border-radius: var(--radius-md);
    background: var(--card);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    transition: border-color 0.2s ease, background 0.2s ease;
    display: grid;
    gap: 8px;
    place-items: center;
}

.dropzone input[type="file"] {
    display: none;
}

.dropzone.dragover {
    border-color: var(--text);
    background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%);
}

.dropzone-icon {
    color: var(--accent-2);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 28px 40px 24px;
    color: var(--muted);
    background: var(--card);
}

.theme-dark .footer {
    background: #121212;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: var(--container);
    margin: 0 auto 10px;
}

.footer-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.footer-logo {
    font-size: 18px;
}

.footer a {
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
}

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

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: 14px;
        flex-direction: column;
        align-items: flex-start;
        background: var(--panel);
        padding: 14px 16px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-page {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .thumbs {
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        grid-auto-rows: 96px;
        flex-wrap: wrap;
        grid-auto-flow: row;
        display: grid;
    }
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.category-pill {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.category-pill:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 12px;
}

.product-page {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: start;
    margin-top: 12px;
}

.gallery {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
}

.thumbs {
    display: grid;
    gap: 10px;
    align-content: start;
}

.thumb {
    width: 80px;
    height: 96px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-sm) - 4px);
    display: block;
}

.thumb:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.thumb.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.main-media {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    box-shadow: var(--shadow-md);
}

.main-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
    display: block;
    transition: opacity 0.2s ease;
}

.fade {
    opacity: 0.5;
}

.product-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 16px;
}

.checkout-layout {
    grid-template-columns: 1.2fr 0.8fr;
}

.map-placeholder {
    height: 280px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: #0f0f0f;
    display: grid;
    place-items: center;
    color: var(--muted);
    margin: 8px 0;
}

.thumb-sm {
    width: 56px;
    height: 56px;
}

.thumb-sm img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-sm);
}

.checkout-layout .option-tiles .option-tile {
    background: #111;
    border-color: #1f1f1f;
}

.checkout-layout .option-tiles .option-tile.selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(95, 175, 126, 0.15);
}

.order-summary {
    position: sticky;
    top: 90px;
}

.mobile-fixed {
    display: none;
}

.product-header h1 {
    margin: 4px 0;
    font-size: 34px;
}

.meta-line {
    display: flex;
    gap: 10px;
    color: var(--muted);
    align-items: center;
    flex-wrap: wrap;
}

.rating {
    color: var(--accent-2);
    font-weight: 600;
}

.price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-lg {
    font-size: 24px;
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: var(--muted);
}

.badge-sale {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent-2);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-left: 6px;
}

.add-form .wide {
    width: 100%;
}

.options {
    display: grid;
    gap: 12px;
}

.option-group {
    display: grid;
    gap: 8px;
}

.option-label {
    font-weight: 600;
}

.option-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.option-tile {
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.option-tile:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.option-tile.selected {
    border-color: var(--accent);
    color: var(--accent);
}

.option-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.swatch {
    border: 1px solid var(--border);
    background: var(--panel);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.swatch-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: inline-block;
}

.swatch.selected {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.badge-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.badge-item .icon {
    color: var(--muted);
}

.accordion {
    display: grid;
    gap: 10px;
}

.acc-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--panel);
}

.acc-toggle {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text);
    text-align: left;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
}

.acc-body {
    display: none;
    padding: 0 14px 12px;
}

.acc-item.active .acc-body {
    display: block;
}

.product-photo {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px;
    box-shadow: var(--shadow-md);
}

.product-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
    display: block;
}

.product-info {
    display: grid;
    gap: 16px;
    align-content: start;
}

.info-block {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.info-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.info-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-price {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.price-lg {
    font-size: 22px;
    font-weight: 700;
}

.soon-thumb img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.card-img img {
    background: #0b0b0b;
}

@media (max-width: 600px) {
    .container {
        padding: 96px 16px 64px;
    }

    .hero h1 {
        font-size: 32px;
    }

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

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

    .btn {
        padding: 12px 16px;
        min-height: 48px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.field input,
.field textarea,
select {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #f0f0f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b0b0b0;
}
