@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
    --global-radius: 9px;
    --font-body: "Inter", Arial, sans-serif;
    --font-display: "Inter", Arial, sans-serif;
    --white: #ffffff;
    --muted: #a0a0a0;
    --text-secondary: #d0d0d0;
    --text-description: #b8b8b8;
    --text-success: #00e676;
    --text-error: #ff5252;
}

body {
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
}

::placeholder {
    color: var(--muted);
    opacity: 1;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--red);
}

.announcement,
.trust-strip,
.eyebrow {
    font-size: 12px;
}

.announcement {
    color: var(--text-secondary);
}

.brand-name,
.main-nav a {
    font-size: 14px;
}

.main-nav a {
    color: var(--text-secondary);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--white);
}

.cart-count {
    min-width: 17px;
    height: 17px;
    font-size: 12px;
    line-height: 17px;
}

.hero h1 {
    font-size: clamp(58px, 7vw, 88px);
}

.hero-description,
.manifesto-copy > p:not(.eyebrow) {
    color: var(--text-description);
    font-size: 16px;
}

.hero-tag,
.hero-tag small,
.hero-index,
.hero-bottom {
    color: var(--text-secondary);
    font-size: 12px;
}

.hero-tag small {
    color: var(--muted);
}

.hero-index span {
    font-size: 16px;
}

.hero-proof p,
.trust-strip {
    color: var(--text-secondary);
}

.button {
    font-size: 15px;
    color: var(--white);
}

.text-link {
    color: var(--text-secondary);
    font-size: 13px;
}

.section-heading h2,
.newsletter h2 {
    font-size: clamp(32px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.manifesto h2 {
    font-size: clamp(32px, 3.2vw, 42px);
    line-height: 1.15;
}

.category-pill {
    color: var(--text-secondary);
    font-size: 13px;
}

.category-pill.selected span {
    font-size: 12px;
}

.sort-control label,
.price-filter,
.price-filter button {
    color: var(--text-secondary);
    font-size: 12px;
}

.sort-control select,
.price-filter input,
.product-search input {
    color: var(--white);
    font-size: 14px;
}

.product-search input::placeholder,
.newsletter input::placeholder,
.checkout-fields input::placeholder,
.checkout-fields textarea::placeholder,
.coupon-row input::placeholder,
.account-card input::placeholder,
.admin-form input::placeholder,
.admin-form textarea::placeholder,
.admin-form select::placeholder,
.admin-login-page input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.product-info .product-brand {
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.6px;
}

.product-meta h3 {
    font-size: clamp(16px, 1.1vw, 18px);
    font-weight: 600;
    line-height: 1.35;
}

.product-info .product-rating,
.product-info .product-rating small {
    color: var(--text-secondary);
    font-size: 12px;
}

.product-badge {
    font-size: 12px;
    letter-spacing: 0.4px;
}

.product-stock-label {
    color: var(--text-success);
    font-size: 13px;
}

.product-stock-label.out {
    color: var(--text-error);
}

.product-details-link {
    color: var(--text-secondary);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.product-prices strong {
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
}

.product-prices del {
    color: var(--muted);
    font-size: 13px;
}

.product-image-wrap .wishlist-product {
    color: var(--white);
    font-size: 22px;
}

.loading-state,
.empty-catalog {
    color: var(--text-secondary);
}

.loading-state p,
.empty-catalog p,
.shop-status {
    color: var(--text-secondary);
    font-size: 13px;
}

.empty-catalog h3 {
    font-size: 22px;
}

.shop-status {
    color: var(--muted);
}

.footer-brand > p,
.footer-col > a,
.footer-col > p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 13px;
}

.social-links a,
.payment-badges span {
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-bottom,
.footer-bottom a {
    color: var(--muted);
    font-size: 12px;
}

.drawer-header h2 {
    font-size: 22px;
}

.drawer-header h2 span,
.cart-item-info p,
.cart-summary small {
    color: var(--text-secondary);
    font-size: 13px;
}

.drawer-header .eyebrow {
    color: var(--muted);
}

.cart-item-info h3 {
    font-size: 15px;
}

.quantity-control,
.quantity-control span {
    color: var(--text-secondary);
    font-size: 13px;
}

.cart-summary > div {
    font-size: 15px;
}

.cart-summary > div span {
    color: var(--text-secondary);
}

.toast {
    font-size: 14px;
}

.product-info h1 {
    font-size: clamp(32px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.product-info .product-detail-price {
    color: var(--white);
    font-size: 22px;
}

.product-detail-price del {
    color: var(--muted);
    font-size: 13px;
}

.detail-discount {
    font-size: 12px;
}

.detail-description {
    color: var(--text-description);
    font-size: 16px;
}

.product-stock {
    color: var(--text-success);
    font-size: 13px;
}

.product-stock.out {
    color: var(--text-error);
}

.spec-row {
    color: var(--text-secondary);
    font-size: 13px;
}

.spec-row span {
    color: var(--muted);
}

.related-products h2 {
    font-size: 30px;
}

.checkout-title,
.account-page h1,
.policy-page h1 {
    font-size: clamp(32px, 3.2vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.checkout-card h2,
.checkout-summary h2,
.account-card h2,
.policy-section h2 {
    font-size: 21px;
}

.checkout-fields label,
.account-card label,
.admin-form label,
.admin-login-page label {
    color: var(--text-secondary);
    font-size: 14px;
}

.checkout-fields input,
.checkout-fields textarea,
.coupon-row input,
.account-card input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-login-page input {
    color: var(--white);
    font-size: 15px;
}

.pay-choice strong {
    font-size: 15px;
}

.pay-choice small,
.checkout-lines,
.checkout-items,
.checkout-notice {
    color: var(--text-secondary);
    font-size: 14px;
}

.checkout-lines.total {
    color: var(--white);
    font-size: 16px;
}

.checkout-error,
.account-message,
.admin-error,
.admin-login-page .error {
    color: var(--text-error);
    font-size: 14px;
}

.checkout-notice,
.policy-note {
    color: var(--text-description);
    font-size: 14px;
}

.account-welcome p,
.account-page > p:not(.eyebrow),
.policy-section p,
.result p {
    color: var(--text-description);
    font-size: 15px;
}

.orders-table th,
.orders-table td {
    color: var(--text-secondary);
    font-size: 13px;
}

.orders-table th {
    color: var(--white);
}

.saved-item {
    font-size: 14px;
}

.saved-remove button {
    color: var(--text-error);
    font-size: 13px;
}

.result h1 {
    font-size: 32px;
}

.admin-sidebar nav a,
.admin-logout {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-top h1 {
    font-size: 28px;
}

.admin-top span,
.admin-stat span {
    color: var(--text-secondary);
    font-size: 13px;
}

.admin-stat strong {
    font-size: 26px;
}

.admin-card h2 {
    font-size: 21px;
}

.admin-table th,
.admin-table td {
    color: var(--text-secondary);
    font-size: 13px;
}

.admin-table th {
    color: var(--white);
}

.admin-notice,
.admin-error {
    font-size: 14px;
}

.admin-actions a,
.admin-actions button,
.admin-inline button {
    font-size: 12px;
}

.admin-login-page h1 {
    font-size: 30px;
}

.policy-section p {
    line-height: 1.8;
}

.policy-note {
    color: var(--text-description) !important;
    font-size: 14px !important;
}

.account-page p[style],
.admin-content p[style],
.not-found p[style] {
    color: var(--text-description) !important;
    font-size: 14px !important;
}

.admin-top > div {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
}

.admin-top button.admin-logout {
    color: var(--text-secondary) !important;
    font-size: 13px;
}

.admin-table small,
.admin-table del {
    color: var(--muted) !important;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 12px;
    }
}

@media (max-width: 780px) {
    .main-nav a {
        font-size: 15px;
    }

    .brand-name {
        font-size: 13px;
    }

    .section-heading h2,
    .newsletter h2 {
        font-size: clamp(30px, 8vw, 36px);
    }

    .category-pill {
        font-size: 12px;
    }

    .sort-control select,
    .price-filter input,
    .price-filter button {
        font-size: 13px;
    }

    .product-meta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .product-meta h3 {
        font-size: 16px;
    }

    .product-prices {
        display: flex;
        align-items: baseline;
        gap: 8px;
        text-align: left;
    }

    .product-prices del {
        margin-top: 0;
    }

    .product-details-link,
    .product-stock-label {
        font-size: 12px;
    }

    .hero-description,
    .manifesto-copy > p:not(.eyebrow) {
        font-size: 15px;
    }

    .trust-strip {
        font-size: 11px;
    }

    .footer-brand > p,
    .footer-col > a,
    .footer-col > p {
        font-size: 13px;
    }

    .footer-col h3 {
        font-size: 12px;
    }
}

@media (max-width: 440px) {
    .product-info .product-brand {
        font-size: 12px;
    }

    .product-prices strong {
        font-size: 18px;
    }

    .product-badge {
        font-size: 11px;
    }

    .checkout-fields label,
    .account-card label,
    .admin-form label,
    .admin-login-page label {
        font-size: 13px;
    }
}

@media (max-width: 540px) {
    .price-filter {
        flex-wrap: wrap;
    }

    .price-filter > label {
        flex: 0 0 100%;
    }

    .price-filter input {
        flex: 1;
        min-width: 80px;
        width: auto;
    }

    .price-filter button {
        flex: 1 1 calc(50% - 8px);
    }
}

.hero-proof p,
.trust-strip > div,
.quick-add span,
.manifesto-number span,
.drawer-header .eyebrow {
    font-size: 12px;
}

.newsletter form p,
.cart-empty p,
.coupon-row button {
    color: var(--text-secondary);
    font-size: 14px;
}

@media (max-width: 440px) {
    .product-badge {
        font-size: 12px;
    }
}

* {
    border-radius: var(--global-radius);
}

html,
body,
.cart-drawer-backdrop {
    border-radius: 0;
}

.quick-add:not(:disabled) {
    border-radius: 0 !important;
}

.brand-name.kovyxo-brand {
    color: #FFFFFF;
    font-family: "Inter", sans-serif;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

img,
video,
iframe {
    max-width: 100%;
}

.site-header {
    gap: clamp(12px, 2vw, 28px);
    padding-inline: clamp(20px, 5vw, 90px);
}

.main-nav {
    min-width: 0;
    gap: clamp(12px, 1.8vw, 27px);
}

.main-nav a {
    white-space: nowrap;
}

.section-wrap {
    min-width: 0;
}

.category-nav {
    width: min(1360px, calc(100% - clamp(32px, 8vw, 112px)));
    flex-wrap: wrap;
}

.account-page,
.policy-page,
.product-detail,
.checkout-page {
    min-width: 0;
}

.account-layout,
.checkout-layout,
.product-detail-grid,
.footer-main {
    min-width: 0;
}

.account-card,
.checkout-card,
.checkout-summary,
.product-info,
.footer-col {
    min-width: 0;
    overflow-wrap: anywhere;
}

.orders-table {
    min-width: 560px;
}

@media (max-width: 1100px) {
    .site-header {
        padding-inline: 4%;
    }

    .main-nav {
        gap: clamp(9px, 1.4vw, 15px);
        margin-right: clamp(12px, 2vw, 23px);
    }

    .category-nav {
        gap: 8px;
    }

    .category-nav__item {
        padding-inline: 9px;
    }
}

@media (max-width: 780px) {
    .site-header {
        gap: 8px;
        padding-inline: 5%;
    }

    .category-nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 5% 6px;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    .category-nav__item {
        flex: 0 0 auto;
    }

    .promo-slider {
        width: calc(100% - 28px);
        height: auto;
        min-height: 0;
        max-height: none;
        aspect-ratio: 43 / 23;
    }

    .account-page,
    .policy-page {
        padding-inline: 6%;
    }

    .account-welcome {
        align-items: flex-start;
        gap: 16px;
        flex-wrap: wrap;
    }

    .account-welcome h1 {
        overflow-wrap: anywhere;
    }

    .orders-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .site-footer,
    .footer-main {
        min-width: 0;
    }
}

@media (max-width: 540px) {
    .announcement {
        min-height: 30px;
        height: auto;
        padding: 6px 10px;
        font-size: 8px;
        letter-spacing: 1px;
        text-align: center;
    }

    .section-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading h2 {
        overflow-wrap: anywhere;
    }

    .product-search {
        width: 100%;
        min-width: 0;
    }

    .result {
        width: auto;
        margin: 45px 6%;
        padding: 28px 20px;
    }

    .policy-page h1,
    .account-page h1 {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 374px) {
    .announcement {
        gap: 5px;
        font-size: 7px;
        letter-spacing: .7px;
    }

    .site-header {
        padding-inline: 4%;
    }

    .header-actions {
        gap: 5px;
    }

    .account-card,
    .checkout-card,
    .checkout-summary {
        padding: 18px 14px;
    }
}

.brand-name.kovyxo-brand .brand-initial {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: var(--primary-color, #ff1744);
}

.announcement-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .site-header {
        justify-content: space-between;
        gap: clamp(8px, 2vw, 14px);
        padding-inline: clamp(12px, 4vw, 20px);
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }

    .brand {
        min-width: 0;
        flex: 0 1 auto;
        margin: 0;
    }

    .brand-name.kovyxo-brand {
        font-size: clamp(20px, 6.5vw, 25px);
    }

    .header-actions {
        flex: 0 0 auto;
        gap: clamp(4px, 1.2vw, 10px);
    }

    .header-actions .icon-button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        padding: 9px;
    }

    .header-actions .icon-button svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 540px) {
    .announcement {
        height: auto;
        min-height: 30px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 5px 10px;
        font-size: clamp(8.5px, 2.5vw, 9.5px);
        letter-spacing: clamp(.15px, .12vw, .4px);
        line-height: 1.35;
        text-align: center;
    }

    .announcement-copy {
        gap: 6px;
    }

    .announcement-divider {
        margin: 0 2px;
    }
}

@media (min-width: 891px) {
    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        grid-template-rows: 1fr;
        height: 78px;
        align-items: center;
        gap: 0;
        padding-inline: 2.5vw;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        flex: 0 0 auto;
    }

    .main-nav {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        position: static;
        gap: 40px;
        margin: 0;
        padding: 0;
    }

    .main-nav a {
        margin: 0;
        padding: 0;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 30px;
    }

    .header-preferences {
        flex: 0 0 auto;
        gap: 4px;
    }

    .display-mode-option {
        padding-inline: 10px;
    }
}

@media (min-width: 891px) and (max-width: 1319px) {
    .site-header {
        padding-inline: 3%;
    }

    .header-actions {
        gap: clamp(5px, calc(5.84vw - 47px), 30px);
    }

    .header-actions .header-preferences {
        gap: 4px;
    }

    .header-actions .display-mode-control {
        gap: 2px;
        padding: 2px;
    }

    .header-actions .display-mode-option {
        width: 24px;
        min-height: 30px;
        flex: 0 0 24px;
        gap: 0;
        padding: 0;
    }

    .header-actions .display-mode-option svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .header-actions .display-mode-option > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (min-width: 1320px) and (max-width: 1439px) {
    .header-actions {
        gap: clamp(5px, calc(20.833vw - 270px), 30px);
    }
}

@media (max-width: 890px) {
    .site-header {
        display: flex;
        height: 65px;
        align-items: center;
        justify-content: space-between;
        gap: clamp(4px, 1vw, 8px);
        padding-inline: 8px;
    }

    .menu-toggle {
        display: flex;
        order: -1;
    }

    .brand {
        min-width: 0;
        flex: 0 1 auto;
        order: 0;
        margin: 0;
    }

    .header-actions {
        flex: 0 0 auto;
        order: 1;
        gap: clamp(4px, 1.2vw, 10px);
    }

    .header-actions .header-preferences {
        flex: 0 0 auto;
        gap: 3px;
    }

    .header-actions .display-mode-control {
        gap: 2px;
        padding: 2px;
    }

    .header-actions .display-mode-option {
        width: 24px;
        min-height: 30px;
        flex: 0 0 24px;
        gap: 0;
        padding: 0;
    }

    .header-actions .display-mode-option svg {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .header-actions .display-mode-option > span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .main-nav {
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        padding: 14px 6% 20px;
        align-items: stretch;
        flex-direction: column;
        gap: 40px;
        background: #0d0d0d;
        border-bottom: 1px solid #292929;
        display: none;
    }

    .main-nav.nav-open {
        display: flex;
    }

    .main-nav a {
        margin: 0;
        padding: 8px 0;
    }
}

@media (max-width: 380px) {
    .site-header {
        gap: 0;
        padding-inline: 2px;
    }

    .header-actions .header-preferences {
        gap: 2px;
    }

    .header-actions .theme-switcher__trigger {
        width: 24px;
    }

    .header-actions .display-mode-control {
        gap: 1px;
        padding: 1px;
    }

    .header-actions .display-mode-option {
        width: 20px;
        min-height: 28px;
        flex-basis: 20px;
    }

    .header-actions {
        gap: 4px;
    }
}

@media (max-width: 330px) {
    .menu-toggle {
        width: 36px;
        flex-basis: 36px;
    }

    .header-actions .icon-button {
        width: 36px;
        min-width: 36px;
    }

    .header-actions .icon-button svg {
        width: 18px;
        height: 18px;
    }
}

:root {
    --site-container-max: 1220px;
    --site-container-gutter: clamp(12px, 4vw, 48px);
}

.site-container {
    width: min(calc(100% - var(--site-container-gutter) - var(--site-container-gutter)), var(--site-container-max));
    max-width: var(--site-container-max);
    margin-inline: auto;
}

.site-header,
.hero-bottom {
    padding-inline: max(var(--site-container-gutter), calc((100% - var(--site-container-max)) / 2));
}

.site-footer,
.account-footer {
    padding-inline: max(var(--site-container-gutter), calc((100% - var(--site-container-max)) / 2));
}

.section-wrap {
    width: min(calc(100% - var(--site-container-gutter) - var(--site-container-gutter)), var(--site-container-max));
    max-width: var(--site-container-max);
    margin-inline: auto;
    padding-inline: 0;
}

.product-detail,
.account-page,
.checkout-page {
    width: min(calc(100% - var(--site-container-gutter) - var(--site-container-gutter)), var(--site-container-max));
    max-width: var(--site-container-max);
    margin-inline: auto;
    padding-inline: 0;
}

.policy-page {
    width: min(calc(100% - var(--site-container-gutter) - var(--site-container-gutter)), var(--site-container-max));
    max-width: var(--site-container-max);
    margin-inline: auto;
    padding-inline: 0;
}

.policy-note,
.policy-section p {
    max-width: 900px;
}
