/* White & gold drinks storefront */
:root {
    --bg: #ffffff;
    --bg-muted: #faf8f5;
    --bg-elevated: #ffffff;
    --surface: #f5f0e8;
    --border: #e8e0d4;
    --text: #1c1917;
    --muted: #57534e;
    --accent: #b8860b;
    --accent-hover: #9a7209;
    --accent-soft: rgba(184, 134, 11, 0.12);
    --danger: #dc2626;
    --success: #16a34a;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(28, 25, 23, 0.08);
    --font-body: "DM Sans", system-ui, sans-serif;
    --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg-muted);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1140px, 92vw);
    margin-inline: auto;
}

.main-content {
    flex: 1;
}

/* Top contact strip */
.top-header {
    background: linear-gradient(90deg, var(--surface) 0%, #fffef9 50%, var(--surface) 100%);
    border-bottom: 1px solid var(--border);
    font-size: 0.8125rem;
}

.top-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.45rem 0;
}

.top-header-phones {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.top-header-sep {
    color: var(--border);
    user-select: none;
}

.top-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text);
    font-weight: 500;
}

.top-header-link:hover {
    color: var(--accent);
}

.top-header-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.85;
}

.top-header-icon--mail {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b8860b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.top-header-icon--phone {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b8860b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

@media (max-width: 560px) {
    .top-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-header-phones {
        width: 100%;
    }
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(184, 134, 11, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
}

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

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.main-nav a {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    background: var(--surface);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
}

.cart-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cart-icon {
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b8860b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cart-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-size: 0.8rem;
}

.cart-total {
    font-weight: 600;
    color: var(--accent);
}

.cart-count-badge {
    font-size: 0.75rem;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b8860b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/24px no-repeat;
    border-radius: 8px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
        order: 2;
    }

    .header-actions {
        order: 3;
    }

    .main-nav {
        width: 100%;
        order: 4;
        display: none;
        padding: 1rem 0;
        border-top: 1px solid var(--border);
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0 5rem;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-soft), transparent),
        linear-gradient(180deg, #fffef9 0%, var(--bg-muted) 100%);
}

.hero.hero-slider {
    padding-bottom: 3.25rem;
}

.hero-slider-viewport {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-slider-track {
    display: flex;
    flex-direction: row;
    transition: transform 0.45s ease;
    will-change: transform;
}

.hero-slide {
    flex: 0 0 auto;
    box-sizing: border-box;
    min-height: 0;
}

.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 254, 249, 0.92);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.hero-slider-btn:hover {
    border-color: var(--accent);
}

.hero-slider-prev {
    left: max(0.5rem, calc((100vw - 1140px) / 2 + 0.25rem));
}

.hero-slider-next {
    right: max(0.5rem, calc((100vw - 1140px) / 2 + 0.25rem));
}

@media (max-width: 900px) {
    .hero-slider-prev {
        left: 0.35rem;
    }

    .hero-slider-next {
        right: 0.35rem;
    }
}

.hero-slider-btn::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border: 2px solid var(--accent);
    border-width: 0 0 2px 2px;
}

.hero-slider-prev::after {
    transform: rotate(45deg);
    margin-left: 14px;
}

.hero-slider-next::after {
    transform: rotate(-135deg);
    margin-right: 14px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    cursor: pointer;
}

.hero-slider-dot.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.hero-inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 880px) {
    .hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 1rem;
    line-height: 1.15;
}

.hero .lead {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 36ch;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.badge {
    background: var(--surface);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, #d4a84b, var(--accent));
    color: #1c1208;
    border: 1px solid rgba(184, 134, 11, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
    color: #1c1208;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.btn-block {
    width: 100%;
}

.hero-visual {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    background: linear-gradient(145deg, #fffef9, var(--surface));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    font-size: 4rem;
    overflow: hidden;
}

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

.hero-visual-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 8rem;
}

/* Sections */
.section {
    padding: 3rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0;
}

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

.link-all {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Category pills */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pill {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
    font-size: 0.85rem;
    border: 1px solid var(--border);
}

.pill:hover,
.pill.is-active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-elevated);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
    transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 134, 11, 0.45);
    box-shadow: 0 12px 32px rgba(184, 134, 11, 0.12);
}

.card-image {
    aspect-ratio: 1;
    background: var(--surface);
    overflow: hidden;
}

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

.card-body {
    padding: 1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
}

.card-body h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.card-body h3 a {
    color: var(--text);
}

.card-body h3 a:hover {
    color: var(--accent);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.price {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
}

.price-was {
    text-decoration: line-through;
    color: var(--muted);
    font-size: 0.9rem;
}

.cat-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* Info strip */
.info-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.info-item {
    text-align: center;
    padding: 1rem;
}

.info-item strong {
    display: block;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* Page layout */
.page-hero {
    padding: 2.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.page-hero h1 {
    font-family: var(--font-display);
    margin: 0 0 0.5rem;
}

.prose {
    max-width: 65ch;
}

.prose p {
    color: var(--muted);
}

/* Contact page — company info */
.contact-details {
    display: grid;
    gap: 1rem;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .contact-details:not(.contact-details--stack) {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-details--stack {
    grid-template-columns: 1fr;
}

.contact-details-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}

.contact-details-card--wide {
    grid-column: 1 / -1;
}

.contact-details-card h2,
.contact-details-card h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin: 0 0 0.65rem;
    color: var(--accent);
}

/* Contact page — two columns on large screens */
.contact-page-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .contact-page-layout {
        grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
        gap: 2.5rem 3rem;
    }

    .contact-page-aside {
        position: sticky;
        top: 5.75rem;
    }
}

.contact-page-aside-title,
.contact-page-form-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 1rem;
}

.contact-page-form .form-grid,
.contact-page-form-grid {
    max-width: none;
}

.contact-details-name {
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.contact-details-block {
    margin: 0;
    font-size: 0.95rem;
}

/* Forms */
.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 480px;
}

.form-row-2 {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Checkout */
.checkout-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .checkout-layout {
        grid-template-columns: minmax(260px, 340px) 1fr;
    }
}

.checkout-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    position: sticky;
    top: 5.5rem;
}

.checkout-summary-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.925rem;
}

.checkout-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border);
}

.checkout-summary-list li:last-child {
    border-bottom: none;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-top: 0.75rem;
    border-top: 2px solid var(--accent);
    font-size: 1.1rem;
}

.checkout-form-wrap {
    max-width: 640px;
}

.checkout-form.form-grid {
    max-width: none;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid var(--success);
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid var(--danger);
    color: #991b1b;
}

/* Cart table */
.table-wrap {
    overflow-x: auto;
}

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

.cart-table th,
.cart-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.cart-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.qty-input {
    width: 72px;
}

/* Product detail */
.product-detail {
    display: grid;
    gap: 2rem;
    padding: 2rem 0 3rem;
}

@media (min-width: 800px) {
    .product-detail {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.product-gallery {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 1;
}

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

/* Footer */
.site-footer {
    margin-top: auto;
    background: linear-gradient(180deg, var(--surface) 0%, #fffef9 100%);
    border-top: 1px solid var(--border);
    padding-top: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    padding: 0 0.5rem;
}

.pagination a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.pagination .current {
    background: linear-gradient(135deg, #d4a84b, var(--accent));
    border-color: rgba(184, 134, 11, 0.5);
    color: #1c1208;
    font-weight: 700;
}
