
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(fonts/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(fonts/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/oswald-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Oswald';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(fonts/oswald-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --espresso: #211B14;
    --charcoal: #2C2620;
    --bone: #F5F0E6;
    --bone-2: #ECE4D5;
    --leather: #8A5A2B;
    --cognac: #B5712F;
    --cognac-dark: #8F571F;
    --gold: #C9A24B;
    --text: #2A2520;
    --text-light: #6E6356;
    --surface: #FFFFFF;
    --line: rgba(42,37,32,0.12);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bone);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* height:auto is load-bearing. The width/height attributes on <img> are presentational hints, so
   an image declaring height='1024' keeps that height once CSS narrows its width, stretching it
   vertically. Rules that set a real height (cards, thumbs, logos) are more specific and still win,
   and the attributes keep doing their job of reserving space before the image loads. */
img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3 {
    font-family: 'Oswald', 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-wrap { max-width: var(--container); margin: 0 auto; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(1.5rem, 5vw, 4rem);
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(20,16,11,0.55) 0%, rgba(20,16,11,0.25) 35%, rgba(20,16,11,0.75) 100%),
        radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}

.lang-toggle {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1.25rem);
    right: clamp(0.75rem, 2vw, 1.25rem);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(20,16,11,0.45);
    backdrop-filter: blur(6px);
}

.lang-flag {
    display: block;
    width: 34px;
    line-height: 0;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.lang-flag svg { display: block; width: 100%; height: auto; }
.lang-flag:hover { opacity: 1; transform: translateY(-1px); }

/* The language you are already reading stays lit, so the pair reads as a state, not two links. */
.lang-flag.is-active { opacity: 1; outline: 2px solid var(--gold); outline-offset: 1px; }

.logo {
    position: relative;
    z-index: 3;
    width: clamp(130px, 26vw, 180px);
    height: auto;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    background: #fff;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    animation: fadeUp 1s ease both;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.hero-divider {
    display: block;
    width: 80px;
    height: 3px;
    background: var(--gold);
    margin: clamp(1.2rem, 3vw, 1.8rem) 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    max-width: 640px;
    color: rgba(255,255,255,0.92);
    margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.75rem;
    background: var(--cognac);
    color: #fff;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cta-button:hover {
    background: var(--cognac-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.scroll-cue {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 14px;
}

.scroll-cue::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 0; transform: translateY(0); }
    40% { opacity: 1; }
    80% { opacity: 0; transform: translateY(12px); }
    100% { opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content, .scroll-cue::before { animation: none; }
    html { scroll-behavior: auto; }
}

/* ===== MAIN / SECTIONS ===== */
main { max-width: var(--container); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2rem); }

.about {
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
    background: var(--bone-2);
    border-radius: 4px;
    margin-bottom: clamp(3rem, 7vw, 5rem);
}

.about h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--espresso);
    margin-bottom: 1.5rem;
}

.about h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto 0;
}

.about p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* The products list page repeats the homepage products section, so its h1 is styled by the same
   rule as that section's h2. The tag differs only because that page has no heading above it. */
.products h2,
.products-page h1 {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.75rem);
    color: var(--espresso);
    margin-bottom: 0.75rem;
}

.products .subtitle,
.products-page .subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(33,27,20,0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(33,27,20,0.16);
}

.product-card a { display: block; }

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

/* h5 on the homepage (nested under the category and sub category headings), h3 on the
   products list page, which has no such nesting. */
/* The card title's tag depends on the page's outline — h5 on the homepage, h4 on the products
   list page. The global `h1, h2, h3` rule reaches neither, so the heading styling is repeated
   here in full; otherwise the card title silently loses Oswald and its uppercasing. */
.product-card h3,
.product-card h4,
.product-card h5 {
    font-family: 'Oswald', 'Segoe UI', sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1.1rem 1.1rem 0.4rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--espresso);
}

/* ===== CATEGORY / SUB CATEGORY GROUPING ===== */
.category-group + .category-group { margin-top: clamp(4rem, 9vw, 6.5rem); }

.category-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 2.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--espresso);
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--cognac);
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.subcategory-group + .subcategory-group { margin-top: clamp(3rem, 6.5vw, 4.5rem); }

.subcategory-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.25rem, 2.6vw, 1.5rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--leather);
    margin-bottom: clamp(1.1rem, 2.5vw, 1.5rem);
}

.product-card .price {
    padding: 0 1.1rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    /* --cognac on white is ~3.9:1, under the 4.5:1 WCAG AA needs for body text; the darker
       shade is ~5.9:1. This was the only contrast failure Lighthouse reported. */
    color: var(--cognac-dark);
}

.buy-link {
    display: block;
    padding: 0.9rem 1.1rem 1.2rem;
    color: var(--leather);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.product-card:hover .buy-link { color: var(--cognac-dark); }

/* ===== FOOTER ===== */
footer {
    background: var(--espresso);
    color: rgba(255,255,255,0.85);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 2rem) 2rem;
    margin-top: clamp(3rem, 7vw, 5rem);
}

.footer-content {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    width: clamp(180px, 30vw, 240px);
    height: auto;
    background: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
}

.contact h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.footer-content p { margin-bottom: 0.5rem; }

.social-links { margin-top: 0.8rem; }

.social-links a {
    display: inline-block;
    margin-right: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: var(--cognac);
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    transition: background 0.3s, transform 0.2s;
}

.social-links a:hover { background: var(--gold); color: var(--espresso); transform: translateY(-2px); }

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

/* ===== PRODUCT PAGE ===== */
.product-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245,240,230,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem clamp(1.25rem, 4vw, 2rem);
}

.back-link {
    color: var(--leather);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.back-link:hover { color: var(--cognac-dark); }

.breadcrumbs {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem clamp(1.25rem, 4vw, 2rem) 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumbs a { color: var(--leather); }
.breadcrumbs a:hover { color: var(--cognac); text-decoration: underline; }
.breadcrumbs [aria-current='page'] { color: var(--espresso); font-weight: 500; }

.header-logo { height: 44px; width: auto; }

.product-page {
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3.5rem);
}

.main-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bone-2);
}

.main-image {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(33,27,20,0.12);
    transition: opacity 0.3s ease-in-out;
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s, opacity 0.2s;
    z-index: 2;
    color: var(--espresso);
    opacity: 0;
}

.product-gallery:hover .gallery-nav { opacity: 1; }

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-thumb.active {
    border-color: var(--cognac);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,12,8,0.94);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active { display: flex; }

#lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 3px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 28px;
    color: #fff;
    font-size: 2.6rem;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 1001;
    line-height: 1;
}

.lightbox-close:hover { transform: scale(1.2); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1001;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.category {
    color: var(--cognac);
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
}

.product-info h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin: 0.5rem 0;
    color: var(--espresso);
}

.code {
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.description {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 2rem;
    color: var(--text);
}

.specs {
    background: var(--bone-2);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.specs h3 {
    color: var(--espresso);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.specs table { width: 100%; border-collapse: collapse; }
.specs tr { border-bottom: 1px solid var(--line); }
.specs tr:last-child { border-bottom: none; }
.specs td { padding: 0.7rem 0.5rem; }
.specs td:first-child { font-weight: 600; color: var(--text-light); width: 45%; }

.buy-button {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: var(--cognac);
    color: #fff;
    border-radius: 2px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.buy-button:hover {
    background: var(--cognac-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(143,87,31,0.4);
}

.back-button {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.back-button:hover { color: var(--cognac); }

.products-page { max-width: var(--container); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem); }

/* No ::after underline here: the homepage section heading has none, and this page is meant to
   read as the same section. Its sizing and spacing come from the shared `.products h2` rule. */

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .product-page { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .gallery-nav { opacity: 1; background: rgba(255,255,255,0.92); }
    .footer-content { flex-direction: column; text-align: center; align-items: center; }
    .product-card img { height: 240px; }
}

@media (max-width: 480px) {
    .gallery-thumb { width: 64px; height: 64px; }
    .social-links a { display: block; margin: 0.4rem auto; max-width: 220px; }
    .lightbox-close { right: 16px; }
}
