/*
Theme Name: XXX Eyewear
Theme URI: https://example.com/
Author: XXX
Description: A precision automotive eyewear storefront for WordPress and WooCommerce.
Version: 1.0.0
Text Domain: xxx-eyewear
*/

:root {
    --navy: #102138;
    --navy-deep: #0a182a;
    --red: #e52338;
    --steel: #6d7b84;
    --ink: #152033;
    --muted: #6c727a;
    --line: #dfe3e6;
    --soft: #f4f5f5;
    --white: #ffffff;
    --content: 1320px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.65;
}

body.menu-open,
body.search-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    border-radius: 0;
    font: inherit;
}

button,
input[type="submit"] {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
.brand-mark,
.eyebrow,
.outline-button,
.solid-button,
.desktop-actions,
.desktop-shop-link,
.announcement {
    letter-spacing: 0;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 10000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--navy);
    background: var(--white);
}

.icon {
    width: 20px;
    height: 20px;
}

.announcement {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    color: var(--red);
    background: var(--white);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
}

.site-header {
    position: relative;
    z-index: 50;
    color: var(--white);
    background: var(--navy);
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(100% - 72px, var(--content));
    min-height: 118px;
    margin: 0 auto;
}

.desktop-shop-link,
.desktop-actions,
.text-button {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
}

.desktop-shop-link {
    justify-self: start;
}

.desktop-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 24px;
}

.desktop-actions a,
.desktop-shop-link,
.text-button {
    transition: color 180ms ease;
}

.desktop-actions a:hover,
.desktop-shop-link:hover,
.text-button:hover {
    color: var(--red);
}

.text-button,
.icon-button {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
}

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
}

.site-header .icon {
    filter: brightness(0) invert(1);
}

.brand-mark {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    color: var(--red);
    border: 2px solid var(--red);
    border-radius: 50%;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
}

.currency {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}

.currency::before {
    content: '';
    width: 18px;
    height: 12px;
    background: linear-gradient(90deg, #1d4d98 0 33%, #fff 33% 66%, #d92532 66%);
}

.mobile-menu-button,
.mobile-actions,
.mobile-drawer {
    display: none;
}

.search-overlay {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
    color: var(--white);
    background: rgba(10, 24, 42, 0.98);
}

.search-overlay[hidden] {
    display: none;
}

.search-overlay form {
    width: min(760px, 100%);
}

.search-overlay label {
    display: block;
    margin-bottom: 22px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
}

.search-field-row {
    display: grid;
    grid-template-columns: 1fr 52px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
}

.search-field-row input {
    min-width: 0;
    padding: 14px 0;
    color: var(--white);
    background: transparent;
    border: 0;
    outline: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
}

.search-field-row .icon {
    filter: brightness(0) invert(1);
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
}

.hero {
    position: relative;
    height: 700px;
    min-height: 560px;
    overflow: hidden;
    color: var(--white);
    background: var(--navy);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 80px max(48px, calc((100% - var(--content)) / 2));
    visibility: hidden;
    opacity: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    transition: opacity 500ms ease, visibility 500ms ease;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 27, 0.26);
}

.hero-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(620px, 70%);
}

.hero-content.align-right {
    justify-self: end;
    text-align: right;
}

.eyebrow {
    margin-bottom: 12px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin-bottom: 28px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    line-height: 1.25;
}

.solid-button,
.outline-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.solid-button {
    color: var(--navy);
    background: var(--white);
    border: 1px solid var(--white);
}

.solid-button:hover {
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
}

.solid-button.dark {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.outline-button {
    color: var(--red);
    background: transparent;
    border: 1px solid var(--red);
}

.outline-button:hover {
    color: var(--white);
    background: var(--red);
}

.hero-dots {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 28px;
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--white);
    border-radius: 50%;
}

.hero-dots button.is-active {
    background: var(--white);
}

.product-section {
    padding: 88px max(36px, calc((100% - var(--content)) / 2)) 110px;
    text-align: center;
}

.section-heading p {
    margin-bottom: 8px;
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
}

.section-heading h2,
.story-band h2,
.page-header h1,
.woocommerce-products-header__title,
.woocommerce div.product .product_title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    line-height: 1.3;
}

.section-heading h2 {
    margin-bottom: 56px;
    color: var(--navy);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 18px;
}

.product-card {
    min-width: 0;
    text-align: left;
}

.product-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--soft);
}

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

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

.product-card-copy {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 3px 0;
}

.product-card-copy h3,
.product-card-copy p {
    margin: 0;
    font-size: 12px;
}

.product-card-copy h3 {
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
}

.product-section > .outline-button {
    margin-top: 70px;
}

.story-band {
    display: grid;
    min-height: 450px;
    place-items: center;
    padding: 80px 30px;
    color: var(--white);
    background: var(--steel);
    text-align: center;
}

.story-band > div {
    max-width: 610px;
}

.story-band h2 {
    margin-bottom: 20px;
    font-size: 30px;
}

.story-copy {
    max-width: 520px;
    margin: 0 auto 25px;
    color: rgba(255, 255, 255, 0.9);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
}

.text-link .icon {
    filter: brightness(0) invert(1);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    min-height: 320px;
    gap: 8px;
    padding: 8px 0;
    background: var(--white);
}

.editorial-grid figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    background: var(--soft);
}

.editorial-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.15);
    transition: filter 240ms ease;
}

.editorial-grid figure:hover img {
    filter: saturate(1);
}

.site-footer {
    padding: 72px max(38px, calc((100% - var(--content)) / 2)) 30px;
    color: var(--white);
    background: var(--navy);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 90px;
}

.footer-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-column h2 {
    max-width: 250px;
    margin-bottom: 18px;
    color: var(--red);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
}

.footer-column a,
.footer-column p {
    font-size: 12px;
}

.footer-column a:hover {
    color: var(--red);
}

.newsletter p {
    max-width: 330px;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter form {
    display: grid;
    width: min(100%, 330px);
    gap: 12px;
    margin-top: 8px;
}

.newsletter input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    color: var(--white);
    background: var(--navy-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter .outline-button {
    width: fit-content;
}

.form-status {
    padding-left: 12px;
    border-left: 2px solid var(--red);
}

.form-status.dark {
    color: var(--ink);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-links a {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 10px;
}

.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 80px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 11px;
}

.payment-marks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.payment-marks span {
    padding: 3px 7px;
    color: var(--navy);
    background: var(--white);
    border-radius: 2px;
    font-size: 8px;
    font-weight: 700;
}

.page-shell,
.commerce-shell {
    width: min(100% - 64px, 1180px);
    min-height: 55vh;
    margin: 0 auto;
    padding: 80px 0 110px;
}

.page-header {
    margin-bottom: 55px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.page-header .eyebrow {
    color: var(--red);
}

.page-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: 40px;
}

.page-content {
    max-width: 820px;
}

.page-content h2,
.page-content h3 {
    margin-top: 42px;
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-top: 35px;
}

.contact-form label {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--line);
}

.contact-form textarea,
.contact-form .solid-button {
    grid-column: 1 / -1;
}

.contact-form .solid-button {
    width: fit-content;
    margin-top: 12px;
}

/* WooCommerce */
.commerce-shell .woocommerce-breadcrumb {
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 11px;
}

.woocommerce-products-header__title {
    margin-bottom: 45px;
    color: var(--navy);
    font-size: 40px;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    margin-bottom: 36px;
    font-size: 12px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 42px;
    padding: 8px 34px 8px 12px;
    background: var(--white);
    border: 1px solid var(--line);
}

.woocommerce ul.products {
    display: grid;
    clear: both;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px 18px;
    margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-bottom: 15px;
    object-fit: cover;
    background: var(--soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    color: var(--navy);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    text-transform: uppercase;
}

.woocommerce ul.products li.product .price {
    color: var(--ink);
    font-size: 12px;
}

.woocommerce ul.products li.product .button {
    margin-top: 8px;
}

.woocommerce div.product {
    display: flow-root;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    margin-bottom: 80px;
}

.woocommerce div.product .product_title {
    color: var(--navy);
    font-size: 36px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--red);
    font-size: 18px;
}

.woocommerce .quantity .qty {
    min-height: 48px;
    border: 1px solid var(--line);
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    min-height: 48px;
    padding: 13px 22px;
    color: var(--white);
    background: var(--navy);
    border-radius: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 11px;
    font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce button.button.alt:hover {
    color: var(--white);
    background: var(--red);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--red);
    background: var(--soft);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.select2-container--default .select2-selection--single {
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 0;
}

.woocommerce table.shop_table {
    border-color: var(--line);
    border-radius: 0;
}

.woocommerce-tabs,
.related.products {
    clear: both;
}

@media (max-width: 980px) {
    .header-inner {
        width: min(100% - 30px, var(--content));
        min-height: 88px;
    }

    .desktop-shop-link,
    .desktop-actions {
        display: none;
    }

    .mobile-menu-button,
    .mobile-actions {
        display: inline-flex;
    }

    .mobile-menu-button {
        justify-self: start;
    }

    .mobile-actions {
        justify-self: end;
        gap: 2px;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
        font-size: 15px;
    }

    .mobile-drawer {
        position: absolute;
        top: 100%;
        left: 0;
        display: grid;
        width: 100%;
        padding: 26px 24px 32px;
        gap: 0;
        background: var(--navy);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-drawer[hidden] {
        display: none;
    }

    .mobile-drawer a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 13px;
        font-weight: 700;
    }

    .hero {
        height: 620px;
    }

    .hero-slide {
        padding: 60px 36px;
    }

    .product-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .editorial-grid figure {
        aspect-ratio: 4 / 3;
    }

    .footer-inner {
        gap: 45px;
    }
}

@media (max-width: 640px) {
    .announcement {
        min-height: 34px;
        font-size: 9px;
    }

    .header-inner {
        min-height: 78px;
    }

    .icon-button {
        width: 36px;
        height: 36px;
    }

    .hero {
        height: 530px;
        min-height: 530px;
    }

    .hero-slide {
        align-items: end;
        padding: 52px 24px 58px;
        background-position: 58% center;
    }

    .hero-slide:nth-child(2) {
        background-position: 65% center;
    }

    .hero-content,
    .hero-content.align-right {
        width: 100%;
        justify-self: stretch;
        text-align: center;
    }

    .hero h1,
    .hero h2 {
        font-size: 23px;
    }

    .hero-dots {
        right: auto;
        bottom: 20px;
        left: 22px;
    }

    .product-section {
        padding: 64px 18px 80px;
    }

    .section-heading h2 {
        margin-bottom: 36px;
        font-size: 22px;
    }

    .product-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .product-image,
    .woocommerce ul.products li.product a img {
        aspect-ratio: 4 / 3;
    }

    .product-section > .outline-button {
        margin-top: 50px;
    }

    .story-band {
        min-height: 380px;
        padding: 65px 26px;
    }

    .story-band h2 {
        font-size: 25px;
    }

    .editorial-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .editorial-grid .editorial-large {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 10;
    }

    .site-footer {
        padding: 55px 24px 28px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 55px;
    }

    .payment-marks {
        justify-content: flex-start;
    }

    .page-shell,
    .commerce-shell {
        width: min(100% - 36px, 1180px);
        padding: 55px 0 80px;
    }

    .page-header h1,
    .woocommerce-products-header__title {
        font-size: 30px;
    }

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

    .contact-form textarea,
    .contact-form .solid-button {
        grid-column: 1;
    }

    .search-field-row input {
        font-size: 20px;
    }

    .woocommerce div.product .product_title {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
