/* ==========================================================
   ShadesWeb Digital Store
   Global UI Framework
   ========================================================== */

/* ---------- Design Tokens ---------- */

:root {
    --color-background: #f5f1e7;
    --color-surface: #fffdf8;
    --color-surface-muted: #ebe5d7;

    --color-charcoal: #202020;
    --color-charcoal-soft: #303030;

    --color-olive: #354f24;
    --color-olive-hover: #466832;
    --color-olive-light: #dfe7d7;

    --color-red: #a62d2d;
    --color-red-hover: #892323;

    --color-text: #2b2b2b;
    --color-text-muted: #6b675e;
    --color-border: #d8d0c0;
    --color-white: #ffffff;

    --font-family-base: "Segoe UI", Arial, Helvetica, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.75rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 4px 12px rgba(32, 32, 32, 0.08);
    --shadow-md: 0 10px 28px rgba(32, 32, 32, 0.12);
    --shadow-lg: 0 18px 45px rgba(32, 32, 32, 0.16);

    --container-width: 1280px;
    --transition: 180ms ease;
}

/* ---------- Reset ---------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-charcoal);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-3xl);
}

h2 {
    font-size: var(--font-size-2xl);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

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

/* ---------- Links ---------- */

a {
    color: var(--color-olive);
    text-decoration: none;
    transition:
        color var(--transition),
        background-color var(--transition);
}

a:hover,
a:focus-visible {
    color: var(--color-olive-hover);
}

/* ---------- Accessibility ---------- */

:focus-visible {
    outline: 3px solid rgba(166, 45, 45, 0.4);
    outline-offset: 3px;
}

/* ---------- Layout ---------- */

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main {
    min-height: 68vh;
    padding: 56px 0;
}

/* ---------- Trust Bar ---------- */

.trust-bar {
    background: linear-gradient(
        90deg,
        #4b6d2c 0%,
        var(--color-olive) 50%,
        #4b6d2c 100%
    );
    color: var(--color-white);
    font-size: var(--font-size-sm);
}

.trust-bar-items {
    display: flex;
    align-items: center;
    gap: 54px;
    min-height: 34px;
}

.trust-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.trust-bar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Header ---------- */

.site-header {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 26px 0;
}

.site-header a {
    color: var(--color-white);
}

.header-layout {
    display: grid;
    grid-template-columns: 240px minmax(650px, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-left: -70px;
    margin-right: -60px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo:hover,
.site-logo:focus-visible {
    text-decoration: none;
}

.site-logo-image {
    display: block;
    height: 72px;
    width: auto;
}

.site-tagline {
    margin-top: 7px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.header-search {
    width: 100%;
    max-width: 760px;
    position: relative;
    top: -10px;
}

.header-search form {
    display: flex;
    width: 100%;
}

.header-search-input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #555555;
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
}

.header-search-input:focus {
    border-color: var(--color-olive-hover);
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(70, 104, 50, 0.2);
}

.header-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 112px;
    height: 48px;
    padding: 0 22px;
    border: 1px solid var(--color-olive);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--color-olive);
    color: var(--color-white);
    font-weight: 700;
    transition:
        background-color var(--transition),
        box-shadow var(--transition);
}

.header-search-button:hover,
.header-search-button:focus-visible {
    background: var(--color-olive-hover);
    box-shadow: var(--shadow-sm);
}

.header-search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 7px;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 700;
}

.header-action-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-action:first-child .header-action-icon {
    fill: none;
}

.header-action:hover,
.header-action:focus-visible {
    color: #dfe7d7;
    text-decoration: none;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--color-red);
    color: var(--color-white);
    font-size: var(--font-size-xs);
    font-weight: 800;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Navigation ---------- */

.site-navigation {
    background: var(--color-olive);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-menu {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu li {
    display: flex;
}

.main-menu a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 18px;
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 700;
    white-space: nowrap;
}

.main-menu a:hover,
.main-menu a:focus-visible {
    background: var(--color-olive-hover);
    color: var(--color-white);
    text-decoration: none;
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: var(--color-olive);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
    background: var(--color-olive-hover);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.button-secondary {
    background: var(--color-charcoal);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--color-charcoal-soft);
}

.button-danger {
    background: var(--color-red);
}

.button-danger:hover,
.button-danger:focus-visible {
    background: var(--color-red-hover);
}

/* ---------- Cards ---------- */

.card {
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.card-title {
    margin-bottom: 10px;
}

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

/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 7px;
    color: var(--color-charcoal);
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-text);
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.form-control:focus {
    border-color: var(--color-olive);
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 79, 36, 0.15);
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--color-olive-light);
    color: var(--color-olive);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---------- Alerts ---------- */

.alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.alert-success {
    border-color: #9db889;
    background: #edf5e8;
    color: #27461c;
}

.alert-error {
    border-color: #d69a9a;
    background: #fbeaea;
    color: #7a1f1f;
}

/* ---------- Homepage Hero ---------- */

.homepage-main {
    padding: 0;
}

.homepage-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 45%, rgba(83, 116, 49, 0.14), transparent 34%),
        linear-gradient(110deg, #090b0a 0%, #0d100e 52%, #070908 100%);
    color: var(--color-white);
}

.homepage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-radial-gradient(
            circle at 78% 50%,
            transparent 0,
            transparent 36px,
            rgba(116, 151, 73, 0.035) 37px,
            transparent 38px
        );
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 50% 50%;
    align-items: center;
    gap: 20px;
    min-height: 370px;
    padding: 0 0 24px;
}

.hero-content {
    max-width: 760px;
    margin-left: -70px;
}

.hero-title {
    margin-bottom: 16px;
    color: var(--color-white);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2.7rem, 3.25vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.hero-title-line {
    display: block;
}

.hero-title strong {
    color: #7da548;
    font-weight: 700;
}

.hero-description {
    max-width: 500px;
    margin-bottom: 22px;
    color: #e4e4e4;
    font-size: 1rem;
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 10px 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.hero-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-button:hover,
.hero-button:focus-visible {
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.hero-button-primary {
    border-color: #6f9940;
    background: linear-gradient(135deg, #6d963e, #4d712d);
}

.hero-button-primary:hover,
.hero-button-primary:focus-visible {
    background: linear-gradient(135deg, #7ca849, #587f33);
}

.hero-button-secondary {
    border-color: #729d41;
    background: rgba(5, 7, 6, 0.72);
}

.hero-button-secondary:hover,
.hero-button-secondary:focus-visible {
    background: rgba(92, 130, 52, 0.18);
}

.hero-trust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.hero-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.hero-trust-item svg {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    fill: none;
    stroke: #79a746;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-trust-item div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-trust-item strong {
    color: var(--color-white);
    font-size: 0.67rem;
    line-height: 1.25;
    text-transform: uppercase;
}

.hero-trust-item span {
    color: #c6c6c6;
    font-size: 0.63rem;
    line-height: 1.25;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
}

.hero-devices-image {
    display: block;
    width: 118%;
    max-width: none;
    height: auto;
    margin-right: -60px;
    object-fit: contain;
}

@media (max-width: 1050px) {
    .hero-layout {
        grid-template-columns: 1fr;
        padding: 42px 0;
    }

    .hero-content {
        max-width: 680px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-devices-image {
        max-width: 720px;
    }
}

@media (max-width: 700px) {
    .hero-layout {
        min-height: auto;
        padding: 34px 0 38px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 14px;
    }
}

/* ---------- Featured Products ---------- */

.featured-products-section {
    padding: 72px 0 82px;
    background: var(--color-background);
}

.featured-products-container,
.footer-newsletter-layout,
.footer-main-grid,
.footer-bottom-layout {
    max-width: calc(var(--container-width) + 130px);
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--color-olive);
    font-size: var(--font-size-xs);
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: var(--color-charcoal);
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 5px;
    color: var(--color-olive);
    font-size: var(--font-size-sm);
    font-weight: 800;
}

.section-view-all:hover,
.section-view-all:focus-visible {
    color: var(--color-olive-hover);
    text-decoration: none;
}

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

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(53, 79, 36, 0.12);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    border-color: rgba(53, 79, 36, 0.25);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--color-surface-muted);
}

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

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

.product-card-badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--color-white);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.product-card-badge-bestseller {
    background: #4f772d;
}

.product-card-badge-popular {
    background: #2f5f9f;
}

.product-card-badge-new {
    background: #7a2f98;
}

.product-card-badge-bundle {
    background: #b33333;
}

.product-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.product-card-category {
    display: block;
    margin-bottom: 8px;
    color: var(--color-olive);
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
}

.product-card-title {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.product-card-title a {
    color: var(--color-charcoal);
}

.product-card-title a:hover,
.product-card-title a:focus-visible {
    color: var(--color-olive-hover);
    text-decoration: none;
}

.product-card-description {
    margin: 0 0 16px;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: 1.55;
}

.product-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 0.72rem;
}

.product-card-rating {
    color: #b27a14;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.product-card-rating span {
    color: var(--color-text-muted);
    letter-spacing: 0;
}

.product-card-downloads {
    color: var(--color-text-muted);
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-height: 29px;
}

.current-price,
.sale-price {
    color: var(--color-charcoal);
    font-size: 1.35rem;
    font-weight: 800;
}

.sale-price {
    color: var(--color-red);
}

.original-price {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-decoration: line-through;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.product-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 10px;
    border: 1px solid var(--color-olive);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition:
        background-color var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.product-card-button:hover,
.product-card-button:focus-visible {
    text-decoration: none;
    transform: translateY(-1px);
}

.product-card-button-cart {
    background: var(--color-olive);
    color: var(--color-white);
}

.product-card-button-cart:hover,
.product-card-button-cart:focus-visible {
    border-color: var(--color-olive-hover);
    background: var(--color-olive-hover);
    color: var(--color-white);
}

.product-card-button-details {
    background: transparent;
    color: var(--color-olive);
}

.product-card-button-details:hover,
.product-card-button-details:focus-visible {
    background: var(--color-olive-light);
    color: var(--color-olive);
}

@media (max-width: 1050px) {
    .product-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .featured-products-section {
        padding: 52px 0 60px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

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

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

/* ---------- Shop by Category ---------- */

.shop-categories-section {
    padding: 66px 0 74px;
    background: var(--color-surface-muted);
}

.categories-section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.category-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    min-width: 0;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    padding: 24px 18px 20px;
    border: 1px solid rgba(53, 79, 36, 0.12);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.category-card:hover,
.category-card:focus-visible {
    border-color: rgba(53, 79, 36, 0.28);
    color: var(--color-text);
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: var(--color-olive-light);
    color: var(--color-olive);
    transition:
        background-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.category-card:hover .category-card-icon,
.category-card:focus-visible .category-card-icon {
    background: var(--color-olive);
    color: var(--color-white);
    transform: scale(1.05);
}

.category-card-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-card h3 {
    margin: 0 0 10px;
    color: var(--color-charcoal);
    font-size: 1rem;
    line-height: 1.3;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.category-card-link {
    margin-top: auto;
    color: var(--color-olive);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 1150px) {
    .category-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .shop-categories-section {
        padding: 52px 0 60px;
    }

    .category-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .category-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 0;
}

.footer-newsletter {
    background: var(--color-charcoal);
    color: var(--color-white);
    padding: 72px 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-newsletter .section-eyebrow {
    color: #b9d86a;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-newsletter-layout {
    display: grid;
    grid-template-columns: 46% 31% 23%;
    align-items: center;
    gap: 48px;
}

.footer-newsletter-left {
    max-width: 640px;
}

.footer-newsletter-form {
    display: flex;
    width: 100%;
    margin: 0 0 18px;
}

.footer-newsletter-form input {
    flex: 1;
    height: 54px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    font-size: 1rem;
}

.footer-newsletter-form button {
    height: 54px;
    padding: 0 28px;
    border: 0;
    background: var(--color-olive);
    color: var(--color-white);
    font-weight: 700;
    cursor: pointer;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    transition: background .25s ease;
}

.footer-newsletter-form button:hover {
    background: var(--color-olive-hover);
}

.footer-newsletter-center,
.footer-why,
.footer-guarantee {
    padding-top: 4px;
}

.footer-why {
    border-left: 1px solid rgba(255,255,255,.10);
    padding-left: 42px;
}

.footer-newsletter-note {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: .95rem;
}

.footer-guarantee {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-trust-badge {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
}

.footer-newsletter-right {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-width: 500px;
}

.footer-why {
    padding-top: 6px;
}

.footer-why h3 {
    margin: 0 0 14px;
    color: var(--color-white);
    font-size: 1.15rem;
    font-weight: 700;
}

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

.footer-why-list li {
    margin-bottom: 10px;
    color: rgba(255,255,255,.90);
    line-height: 1.6;
}

/* ---------- Main Footer ---------- */

.footer-main {
    background: var(--color-charcoal);
    padding: 38px 0 34px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.55fr .9fr 1.15fr 1fr 1fr 1.35fr;
    gap: 24px;
    align-items: start;
}

.footer-main-grid > *:not(:first-child) {
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,.10);
}

.footer-company p {
    margin: 14px 0 18px;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
    max-width: 320px;
}

.footer-logo img {
    display: block;
    width: 210px;
    height: auto;
}

.footer-links h3 {
    margin: 0 0 14px;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

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

.footer-links li + li {
    margin-top: 5px;
}

.footer-links a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-payment-image {
    display: block;
    width: 220px;
    height: auto;
    max-width: 100%;
    margin: 8px 0 18px;
}

.footer-payments p {
    margin: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
    font-size: .95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    color: rgba(255,255,255,.90);
    background: transparent;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: all .25s ease;
}

.footer-social a:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: var(--color-white);
    transform: translateY(-2px);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
    color: var(--color-white);
    text-decoration: none;
    transition: all .2s ease;
}

.footer-social a:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    h1 {
        font-size: 2.15rem;
    }

    .container {
        padding: 0 18px;
    }

    .site-main {
        padding: 38px 0;
    }

    .main-menu {
        flex-direction: column;
    }

    .main-menu a {
        padding: 13px 18px;
    }
}

/* ---------- Footer Bottom ---------- */

.footer-bottom {
    background: #171717;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.footer-copyright {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}

.footer-copyright a,
.footer-bottom-links a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

.footer-copyright a:hover,
.footer-bottom-links a:hover {
    color: var(--color-white);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

@media (max-width: 768px) {

    .footer-bottom-layout {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }

}

/* ==========================================================
   Product Details Layout
========================================================== */

.product-page {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.product-breadcrumb {
    margin-bottom: 32px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.product-overview .container {
    display: grid;
    grid-template-columns: minmax(0, 700px) 420px;
    gap: 48px;
    align-items: start;
}

.product-gallery {
    display: flex;
    flex-direction: column;
}

.product-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 560px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #f7f7f7;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-summary {
    position: sticky;
    top: 30px;
}

.product-gallery,
.product-summary {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
}

.product-gallery {
    min-height: 720px;
}

.product-summary {
    min-height: auto;
}

.product-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f8f8f8;
    font-size: 1.1rem;
    color: #777;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.product-thumbnails > div {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #f8f8f8;
    font-size: 0.9rem;
    color: #777;
}

.product-category {
    margin-bottom: 10px;
    color: var(--color-olive);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-title {
    margin: 0 0 18px;
    font-size: 2.6rem;
    line-height: 1.15;
}

.product-meta {
    margin-bottom: 18px;
    color: #666;
}

.product-badges {
    margin-bottom: 22px;
}

.product-price {
    margin: 30px 0;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-charcoal);
}

.product-actions {
    margin: 32px 0;
}

.product-facts {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.product-description,
.product-features,
.product-included,
.product-requirements,
.product-specifications,
.product-reviews,
.product-faq,
.related-products,
.recent-products {
    padding: 56px 0;
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.product-specs-table th,
.product-specs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.product-specs-table th {
    width: 220px;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.related-products-grid > div,
.review-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
}

.product-actions {
    display: grid;
    gap: 14px;
    margin: 36px 0 28px;
}

.product-actions button {
    height: 56px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.product-actions a,
.product-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.product-actions .btn-cart {
    background: var(--color-olive);
    color: var(--color-white);
}

.product-actions .btn-buy {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.product-actions .btn-wishlist {
    background: #f4f4f4;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.product-description .container,
.product-features .container,
.product-included .container,
.product-requirements .container,
.product-specifications .container,
.product-reviews .container,
.product-faq .container,
.related-products .container,
.recent-products .container {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 40px;
}

.product-description h2,
.product-features h2,
.product-included h2,
.product-requirements h2,
.product-specifications h2,
.product-reviews h2,
.product-faq h2,
.related-products h2,
.recent-products h2 {
    margin-bottom: 24px;
}

.product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.product-thumbnails div {
    overflow: hidden;
}

.product-thumbnails img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.product-summary button {
    transition: all 0.2s ease;
}

.product-summary .btn-cart:hover {
    background: var(--color-olive-hover);
}

.product-summary .btn-buy:hover {
    opacity: 0.92;
}

.product-summary .btn-wishlist:hover {
    background: #ececec;
}

.product-thumbnails div {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-thumbnails div:hover {
    transform: translateY(-2px);
    border-color: var(--color-olive);
}

.product-facts {
    display: grid;
    gap: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.product-facts strong {
    display: inline-block;
    min-width: 140px;
    color: var(--color-charcoal);
}

.product-summary {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-gallery {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-description .container,
.product-features .container,
.product-included .container,
.product-requirements .container,
.product-specifications .container,
.product-reviews .container,
.product-faq .container,
.related-products .container,
.recent-products .container {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.product-price-sale {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-charcoal);
}

.product-price-original {
    font-size: 1.3rem;
    color: #888;
    text-decoration: line-through;
}

.product-savings {
    margin: -10px 0 28px;
    color: #1b7d2a;
    font-weight: 700;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.badge-best-seller {
    background: #ffe7a8;
    color: #7a5700;
}

.badge-download {
    background: #e6f5e8;
    color: #256c36;
}

.badge-secure {
    background: #e7f0ff;
    color: #1d4f9c;
}

.product-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #666;
    font-size: 0.95rem;
}

.product-rating {
    color: #f5a623;
    font-weight: 700;
}

.product-divider {
    color: #c5c5c5;
}

.product-reviews-count,
.product-download-count {
    color: var(--color-text);
}

.product-sku {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: #777;
    letter-spacing: 0.04em;
}

.product-summary {
    position: sticky;
    top: 30px;
    align-self: start;
}

@media (max-width: 1024px) {
    .product-overview .container {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
    }
}

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.product-tab {
    padding: 10px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    color: var(--color-text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-tab:hover,
.product-tab.active {
    background: var(--color-olive);
    color: var(--color-white);
    border-color: var(--color-olive);
}

.product-guarantees {
    display: grid;
    gap: 12px;
    margin: 30px 0;
    padding: 20px;
    background: #f8f8f8;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.product-guarantees div {
    font-size: 0.95rem;
    font-weight: 600;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-header h2 {
    margin: 0;
}

.view-all-link {
    color: var(--color-olive);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--color-olive-hover);
}

@media (max-width: 768px) {

    .product-page {
        padding: 24px 18px 60px;
    }

    .product-main-image {
        height: 360px;
    }

    .related-products-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-price-sale {
        font-size: 2.2rem;
    }

}

.product-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.review-placeholder {
    display: block;
    min-height: auto;
    padding: 28px;
    text-align: left;
    line-height: 1.7;
}

.review-placeholder p {
    margin: 16px 0;
    font-size: 1.05rem;
    font-style: italic;
}

.review-placeholder strong {
    display: block;
    margin-top: 12px;
}

.section-subtitle {
    color: #777;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-description,
.product-features,
.product-included,
.product-requirements,
.product-specifications,
.product-reviews,
.product-faq,
.related-products,
.recent-products {
    scroll-margin-top: 120px;
}

.product-description + .product-features,
.product-features + .product-included,
.product-included + .product-requirements,
.product-requirements + .product-specifications,
.product-specifications + .product-reviews,
.product-reviews + .product-faq,
.product-faq + .related-products,
.related-products + .recent-products {
    margin-top: 32px;
}

.product-breadcrumb a {
    color: var(--color-olive);
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: var(--color-olive-hover);
}

.product-breadcrumb span {
    margin: 0 8px;
}

.product-breadcrumb span:last-child {
    margin-right: 0;
    color: var(--color-text);
    font-weight: 600;
}

.product-breadcrumb {
    font-size: 0.95rem;
    color: #777;
}

.product-breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.product-breadcrumb span {
    margin: 0;
}

.product-page h2 {
    margin: 0 0 24px;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-charcoal);
}

.product-page p,
.product-page li {
    color: var(--color-text);
    line-height: 1.8;
}

.product-page ul {
    margin: 0;
    padding-left: 22px;
}

.product-page li + li {
    margin-top: 10px;
}

.product-guarantee {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    line-height: 1.6;
}

.product-guarantee:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-guarantee strong {
    display: block;
    margin-bottom: 4px;
    color: var(--color-charcoal);
}

.product-main-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-main-image img {
    transition: transform 0.25s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.product-thumbnails img:hover {
    opacity: 0.8;
}

.btn-demo {
    background: var(--color-white);
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
}

.btn-demo:hover {
    background: var(--color-charcoal);
    color: var(--color-white);
}

.btn-share {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-share:hover {
    background: #f5f5f5;
    border-color: var(--color-charcoal);
}

.product-actions button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    user-select: none;
}

.product-actions button:focus-visible {
    outline: 3px solid rgba(70, 104, 50, 0.35);
    outline-offset: 2px;
}

.product-actions button:active {
    transform: scale(0.98);
}

.product-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.product-actions button:disabled:hover {
    transform: none;
}

.product-actions button.loading {
    opacity: 0.75;
    pointer-events: none;
}