/* =========================================================
   JERZGO | PROFESSIONAL E-COMMERCE STYLES
   Homepage stylesheet
========================================================= */


/* =========================================================
   1. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: #f7f8f6;
    color: #101510;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   2. GLOBAL VARIABLES
========================================================= */

:root {
    --green: #18c56e;
    --green-dark: #0b8d4b;
    --green-light: #dff9eb;
    --black: #050806;
    --dark: #0b120e;
    --dark-2: #111b15;
    --white: #ffffff;
    --off-white: #f7f8f6;
    --gray-50: #fafafa;
    --gray-100: #f0f2ef;
    --gray-200: #e2e6e1;
    --gray-400: #929a94;
    --gray-600: #5d665f;
    --gray-800: #252c27;
    --danger: #e53935;
    --container: 1240px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 5px 20px rgba(5, 15, 9, 0.06);
    --shadow-md: 0 14px 35px rgba(5, 15, 9, 0.10);
    --shadow-lg: 0 25px 60px rgba(5, 15, 9, 0.15);
    --transition: 0.25s ease;
}


/* =========================================================
   3. UTILITY
========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   4. ANNOUNCEMENT BAR
========================================================= */

.announcement-bar {
    min-height: 38px;
    padding: 8px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: var(--black);
    color: #eaf8ef;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.announcement-bar p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* =========================================================
   5. HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(14px);
}

.header-container {
    width: min(100% - 40px, var(--container));
    min-height: 78px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}


/* =========================================================
   6. LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--green);
    color: var(--black);
    border-radius: 10px;
    font-size: 22px;
    font-weight: 900;
    transform: skew(-8deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.07em;
}

.logo-text span {
    color: var(--green-dark);
}


/* =========================================================
   7. MAIN NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.main-navigation a {
    position: relative;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 700;
    transition: color var(--transition);
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--black);
}

.main-navigation a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    height: 3px;
    background: var(--green);
    border-radius: 10px;
}


/* =========================================================
   8. HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search-form {
    width: 230px;
    height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: var(--gray-100);
    border: 1px solid transparent;
    border-radius: 9px;
    transition: all var(--transition);
}

.search-form:focus-within {
    background: var(--white);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(24, 197, 110, 0.10);
}

.search-form span {
    font-size: 15px;
}

.search-form input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--black);
    font-size: 12px;
}

.search-form input::placeholder {
    color: var(--gray-400);
}

.header-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    background: var(--white);
    font-size: 17px;
    transition: all var(--transition);
}

.header-button:hover {
    color: var(--green-dark);
    border-color: var(--green);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    background: var(--green);
    color: var(--black);
    border: 2px solid var(--white);
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    background: var(--white);
    color: var(--black);
    font-size: 22px;
    line-height: 1;
}

body.menu-open {
    overflow: hidden;
}

.sidebar,
.overlay {
    display: none;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    width: min(78vw, 320px);
    padding: 24px 18px 18px;
    background: linear-gradient(180deg, #0d1711 0%, #09140d 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -18px 0 55px rgba(0, 0, 0, 0.28);
    transform: translateX(105%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    display: block;
    padding: 14px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #edf7f0;
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
    font-weight: 700;
}

.sidebar nav a:hover,
.sidebar nav a:focus-visible {
    background: rgba(24, 197, 110, 0.09);
    border-color: rgba(24, 197, 110, 0.32);
    color: #72f0ad;
    outline: none;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   9. HERO
========================================================= */

.hero {
    position: relative;
    min-height: 610px;
    width: min(100% - 40px, var(--container));
    margin: 28px auto 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 78% 45%, rgba(24, 197, 110, 0.22), transparent 31%), linear-gradient(125deg, #06100a 0%, #0c1b12 55%, #07100b 100%);
    color: var(--white);
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: 15%;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -80px;
    bottom: -470px;
    border: 1px solid rgba(24, 197, 110, 0.18);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 70px 0 70px 70px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(24, 197, 110, 0.35);
    border-radius: 50px;
    background: rgba(24, 197, 110, 0.08);
    color: #7ef0b2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 620px;
    margin-top: 22px;
    font-size: clamp(48px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.07em;
    font-weight: 900;
}

.hero h1 span {
    display: block;
    color: var(--green);
}

.hero-content>p {
    max-width: 500px;
    margin-top: 25px;
    color: #b7c4bb;
    font-size: 16px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--green);
    color: var(--black);
}

.btn-primary:hover {
    background: #39df89;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(24, 197, 110, 0.25);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 42px;
}

.hero-trust div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-trust strong {
    font-size: 15px;
    color: var(--white);
}

.hero-trust span {
    color: #8e9b92;
    font-size: 10px;
}

.hero-image {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 12% 10% 8% 5%;
    background: radial-gradient( circle, rgba(24, 197, 110, 0.22), transparent 62%);
    pointer-events: none;
}

.hero-image img {
    position: relative;
    z-index: 2;
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 25px 0 0 25px;
    mix-blend-mode: normal;
    filter: saturate(1.05) contrast(1.03);
}


/* =========================================================
   10. SECTIONS
========================================================= */

.categories-section,
.products-section,
.why-jerzgo {
    width: min(100% - 40px, var(--container));
    margin: 95px auto 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.section-header span {
    display: block;
    margin-bottom: 7px;
    color: var(--green-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.section-header h2 {
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-header>a {
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.section-header>a:hover {
    text-decoration: underline;
}


/* =========================================================
   11. CATEGORY GRID
========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-image {
    position: absolute;
    inset: 0;
}

.category-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(0, 0, 0, 0.03) 20%, rgba(0, 0, 0, 0.88) 100%);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.06);
}

.category-content {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 23px;
}

.category-content h3 {
    font-size: 22px;
    letter-spacing: -0.03em;
}

.category-content p {
    margin-top: 5px;
    color: #c2cdc5;
    font-size: 12px;
}

.category-content strong {
    display: inline-block;
    margin-top: 15px;
    color: #6ef0a7;
    font-size: 11px;
}


/* =========================================================
   12. FLASH SALE
========================================================= */

.flash-sale {
    width: min(100% - 40px, var(--container));
    margin: 80px auto 0;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    align-items: center;
    gap: 30px;
    background: var(--green);
    border-radius: var(--radius-md);
    color: var(--black);
    box-shadow: 0 15px 35px rgba(24, 197, 110, 0.16);
}

.flash-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.flash-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.10);
    font-size: 19px;
}

.flash-content small {
    display: block;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.flash-content h2 {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.flash-content p {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
}

.deal-reason {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(3, 8, 8, 0.82);
}

.countdown {
    display: flex;
    align-items: center;
    gap: 7px;
}

.countdown div {
    min-width: 52px;
    padding: 7px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.09);
    border-radius: 7px;
}

.countdown strong {
    font-size: 17px;
    line-height: 1;
}

.countdown small {
    margin-top: 4px;
    font-size: 8px;
    font-weight: 700;
}

.flash-sale>a {
    padding: 11px 15px;
    background: var(--black);
    color: var(--white);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform var(--transition);
}

.flash-sale>a:hover {
    transform: translateY(-2px);
}


/* =========================================================
   13. PRODUCT GRID
========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 13px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(24, 197, 110, 0.30);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: #eef1ed;
}

.product-image>a {
    display: block;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

.discount {
    position: absolute;
    z-index: 4;
    top: 10px;
    left: 10px;
    padding: 5px 7px;
    background: var(--danger);
    color: var(--white);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
}

.wishlist {
    position: absolute;
    z-index: 5;
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    transition: all var(--transition);
}

.wishlist:hover {
    color: var(--danger);
    transform: scale(1.08);
}

.product-content {
    padding: 15px;
}

.product-content>small {
    color: var(--green-dark);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.product-content h3 {
    min-height: 39px;
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.35;
}

.product-content h3 a:hover {
    color: var(--green-dark);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    color: #f2a900;
    font-size: 10px;
}

.rating span {
    color: var(--gray-400);
    font-size: 9px;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 11px;
}

.price strong {
    color: var(--black);
    font-size: 16px;
    font-weight: 900;
}

.price del {
    color: var(--gray-400);
    font-size: 10px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    margin-top: 13px;
}

.view-button,
.cart-button-small {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    transition: all var(--transition);
}

.view-button {
    border: 1px solid var(--gray-200);
    color: var(--gray-800);
    background: var(--white);
}

.view-button:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.cart-button-small {
    border: 0;
    background: var(--black);
    color: var(--white);
}

.cart-button-small:hover {
    background: var(--green);
    color: var(--black);
}


/* =========================================================
   14. WHY JERZGO
========================================================= */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.benefit-grid article {
    padding: 26px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
}

.benefit-grid article>span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    background: var(--green-light);
    border-radius: 10px;
    color: var(--green-dark);
    font-weight: 900;
}

.benefit-grid h3 {
    font-size: 14px;
}

.benefit-grid p {
    margin-top: 7px;
    color: var(--gray-600);
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   15. NEWSLETTER
========================================================= */

.newsletter-section {
    width: min(100% - 40px, var(--container));
    margin: 90px auto 0;
    padding: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: radial-gradient( circle at 85% 50%, rgba(24, 197, 110, 0.20), transparent 35%), var(--dark);
    color: var(--white);
}

.newsletter-section>div:first-child {
    max-width: 550px;
}

.newsletter-section span {
    color: var(--green);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.newsletter-section h2 {
    margin-top: 7px;
    font-size: 29px;
    letter-spacing: -0.04em;
}

.newsletter-section p {
    margin-top: 7px;
    color: #a7b2aa;
    font-size: 12px;
}

.newsletter-form {
    min-width: 390px;
    display: flex;
    padding: 5px;
    background: var(--white);
    border-radius: 8px;
}

.newsletter-form input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 0 12px;
    background: transparent;
    color: var(--black);
    font-size: 11px;
}

.newsletter-form button {
    min-height: 38px;
    padding: 0 17px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: var(--black);
    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   16. FOOTER
========================================================= */

.footer {
    margin-top: 80px;
    padding: 65px 20px 20px;
    background: var(--black);
    color: var(--white);
}

.footer-grid {
    width: min(100%, var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
}

.footer-description {
    max-width: 250px;
    margin-top: 16px;
    color: #7e8881;
    font-size: 11px;
    line-height: 1.7;
}

.footer-grid h3 {
    margin-bottom: 17px;
    font-size: 12px;
}

.footer-grid>div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-grid>div a:not(.logo) {
    color: #8d9790;
    font-size: 10px;
    transition: color var(--transition);
}

.footer-grid>div a:not(.logo):hover {
    color: var(--green);
}

.footer-bottom {
    width: min(100%, var(--container));
    margin: 50px auto 0;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #1d251f;
    color: #68716b;
    font-size: 9px;
}


/* =========================================================
   17. RESPONSIVE TABLET
========================================================= */

@media (max-width: 1100px) {
    .main-navigation {
        gap: 17px;
    }
    .main-navigation a {
        font-size: 11px;
    }
    .search-form {
        width: 180px;
    }
    .hero {
        grid-template-columns: 1fr 0.9fr;
    }
    .hero-content {
        padding-left: 45px;
    }
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .product-card:nth-child(5) {
        display: none;
    }
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* =========================================================
   18. TABLET
========================================================= */

@media (max-width: 900px) {
    .header-container {
        min-height: 70px;
    }
    .main-navigation {
        display: none;
    }
    .mobile-menu-button {
        display: grid;
        place-items: center;
    }
    .overlay,
    .sidebar {
        display: block;
    }
    .hero {
        min-height: 560px;
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 55px 40px 25px;
    }
    .hero-image {
        min-height: 260px;
        position: absolute;
        right: 0;
        bottom: 0;
        width: 55%;
        opacity: 0.55;
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-card:nth-child(5) {
        display: block;
    }
    .flash-sale {
        grid-template-columns: 1fr auto;
    }
    .flash-content p {
        display: none;
    }
    .flash-sale>a {
        display: none;
    }
    .benefit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-section {
        flex-direction: column;
        align-items: stretch;
    }
    .newsletter-form {
        min-width: 0;
        width: 100%;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   19. MOBILE
========================================================= */

@media (max-width: 650px) {
    .announcement-bar {
        gap: 8px;
        padding: 8px 12px;
        font-size: 9px;
    }
    .announcement-bar p:nth-child(2) {
        display: none;
    }
    .header-container {
        width: min(100% - 20px, var(--container));
        gap: 8px;
    }
    .logo {
        min-width: 0;
    }
    .logo-text {
        font-size: 20px;
    }
    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .search-form {
        display: none;
    }
    .header-button {
        width: 37px;
        height: 37px;
    }
    .hero {
        width: calc(100% - 20px);
        min-height: 540px;
        margin-top: 12px;
        border-radius: 18px;
        overflow: hidden;
    }
    .hero-content {
        padding: 36px 18px 20px;
    }
    .hero-tag {
        padding: 7px 10px;
        font-size: 9px;
        letter-spacing: 0.08em;
    }
    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
        max-width: 260px;
    }
    .hero-content>p {
        max-width: 390px;
        font-size: 13px;
        line-height: 1.6;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 270px;
    }
    .btn {
        width: 100%;
    }
    .hero-trust {
        gap: 14px;
    }
    .hero-trust strong {
        font-size: 13px;
    }
    .hero-image {
        position: relative;
        width: 100%;
        height: 220px;
        min-height: 220px;
        opacity: 0.34;
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 18px 18px 0 0;
    }
    .categories-section,
    .products-section,
    .why-jerzgo,
    .flash-sale,
    .newsletter-section {
        width: calc(100% - 20px);
    }
    .categories-section,
    .products-section,
    .why-jerzgo {
        margin-top: 65px;
    }
    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
    .section-header h2 {
        font-size: 27px;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .category-card {
        min-height: 270px;
    }
    .flash-sale {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }
    .countdown {
        justify-content: space-between;
    }
    .countdown div {
        flex: 1;
        min-width: 0;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .product-image {
        height: 205px;
    }
    .product-content {
        padding: 12px;
    }
    .product-content h3 {
        font-size: 11px;
    }
    .price strong {
        font-size: 14px;
    }
    .product-actions {
        grid-template-columns: 1fr;
    }
    .view-button,
    .cart-button-small {
        width: 100%;
    }
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .newsletter-section {
        margin-top: 65px;
        padding: 28px 22px;
    }
    .newsletter-section h2 {
        font-size: 24px;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
    }
    .newsletter-form input {
        min-height: 42px;
    }
    .footer {
        margin-top: 60px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }
    .footer-grid>div:first-child {
        grid-column: 1 / -1;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 35px;
    }
}


/* =========================================================
   20. SMALL PHONES
========================================================= */

@media (max-width: 400px) {
    .announcement-bar {
        padding-inline: 8px;
    }
    .announcement-bar p {
        font-size: 8px;
    }
    .header-container {
        width: min(100% - 16px, var(--container));
    }
    .header-button {
        width: 34px;
        height: 34px;
    }
    .mobile-menu-button {
        width: 36px;
        height: 36px;
    }
    .hero h1 {
        font-size: 45px;
    }
    .hero-trust {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-image {
        height: 280px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid>div:first-child {
        grid-column: auto;
    }
}


/* =========================================================
   21. ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Admin-managed homepage gallery */
.managed-home-gallery {
    width: min(100% - 40px, var(--container));
    margin: 0 auto 64px;
}

.managed-home-gallery-heading {
    margin-bottom: 20px;
}

.managed-home-gallery-heading > span {
    color: var(--green, #0b8d4b);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.managed-home-gallery-heading h2 {
    margin-top: 6px;
    color: var(--home-text, #101510);
    font-size: clamp(24px, 4vw, 34px);
}

.managed-home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.managed-home-gallery-card {
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    background: var(--home-image-bg, #eef2ee);
}

.managed-home-gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 760px) {
    .managed-home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .managed-home-gallery {
        width: min(100% - 28px, var(--container));
        margin-bottom: 44px;
    }
}

@media (max-width: 400px) {
    .managed-home-gallery-grid {
        gap: 8px;
    }

    .managed-home-gallery-card {
        border-radius: 10px;
    }
}


/* =========================================================
   22. CUSTOMER AUTHENTICATION
========================================================= */

body.auth-pending {
    visibility: hidden;
}

.auth-customer-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 8px;
}

.site-header .header-actions>a[aria-label="Account"] {
    display: none;
}

.auth-customer-profile {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
}

.auth-customer-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 16px;
}

.auth-customer-name {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-logout-button {
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 11px;
    font-weight: 700;
}

.auth-logout-button:hover:not(:disabled) {
    border-color: var(--green);
    color: var(--green-dark);
}

.auth-logout-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.jersey-header .auth-customer-controls {
    margin-left: 4px;
}

@media (max-width: 650px) {
    .auth-customer-controls {
        gap: 6px;
        margin-left: 0;
    }
    .auth-customer-name {
        max-width: 85px;
    }
    .auth-customer-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .auth-logout-button {
        min-height: 33px;
        padding: 0 8px;
        font-size: 10px;
    }
    .jersey-header {
        gap: 10px;
        padding-inline: 12px;
    }
    .jersey-header nav {
        gap: 12px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .site-header .header-actions>a[aria-label="Wishlist"] {
        display: none;
    }
    .site-header .header-actions {
        gap: 5px;
    }
    .auth-customer-controls {
        gap: 4px;
    }
    .auth-customer-name {
        max-width: 48px;
    }
    .auth-logout-button {
        padding-inline: 6px;
    }
    .jersey-header nav a:not(.jersey-cart-link) {
        display: none;
    }
}


/* ===== JERZGO mobile menu ===== */

.jz-topbar,
.jz-overlay,
.jz-drawer {
    display: none;
}

@media (max-width: 900px) {
    .jz-topbar {
        position: sticky;
        top: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 64px;
        padding: 0 18px;
        background: rgba(7, 17, 11, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    /* the topbar already shows the logo, so hide the duplicate in the card */
    .auth-mobile-logo {
        display: none !important;
    }
    .jz-menu-btn {
        width: 44px;
        height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        padding: 0;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.2s, transform 0.15s;
    }
    .jz-menu-btn:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    .jz-menu-btn:active {
        transform: scale(0.94);
    }
    .jz-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }
    .jz-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
    }
    .jz-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    .jz-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(310px, 84vw);
        padding: 20px 18px 24px;
        background: linear-gradient(180deg, #0c1d13 0%, #07110b 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
        z-index: 1001;
        overflow-y: auto;
    }
    .jz-drawer.active {
        transform: translateX(0);
        visibility: visible;
    }
    .jz-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 18px;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .jz-close {
        width: 40px;
        height: 40px;
        padding: 0;
        font-size: 26px;
        line-height: 1;
        color: #fff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        cursor: pointer;
    }
    .jz-close:hover {
        background: rgba(255, 255, 255, 0.14);
    }
    .jz-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .jz-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 14px;
        color: #e8efe9;
        font-size: 1rem;
        font-weight: 600;
        text-decoration: none;
        border-radius: 12px;
        transition: background 0.2s, color 0.2s;
    }
    .jz-nav a::after {
        content: "›";
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.3);
        transition: transform 0.2s, color 0.2s;
    }
    .jz-nav a:hover,
    .jz-nav a:focus-visible {
        background: rgba(34, 197, 94, 0.14);
        color: #4ade80;
        outline: none;
    }
    .jz-nav a:hover::after {
        transform: translateX(4px);
        color: #4ade80;
    }
    .jz-drawer-foot {
        margin-top: auto;
        padding-top: 20px;
        font-size: 0.8rem;
        text-align: center;
        color: rgba(255, 255, 255, 0.4);
    }
    body.jz-lock {
        overflow: hidden;
    }
}


/* Hidden by default everywhere */

.jz-topbar {
    display: none;
}

.jz-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.jz-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.jz-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(310px, 84vw);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
    z-index: 1001;
}

.jz-drawer.active {
    transform: translateX(0);
    visibility: visible;
}


/* Menu is for mobile/tablet only */

@media (min-width: 901px) {
    .jz-overlay,
    .jz-drawer {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .jz-topbar {
        display: flex;
    }
}


.jerzgo-assistant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    font-family: 'Inter', sans-serif;
}

.assistant-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #00a651 0%, #0a8f46 100%);
    color: #fff;
    font-weight: 700;
    padding: 12px 18px;
    box-shadow: 0 16px 30px rgba(0, 166, 81, 0.28);
    cursor: pointer;
}

.assistant-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
}

.assistant-panel {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: min(360px, calc(100vw - 28px));
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #f3fff8;
    border-bottom: 1px solid #e7f5ed;
}

.assistant-kicker {
    margin: 0;
    color: #00a651;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assistant-header h3 {
    margin: 4px 0 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.assistant-close {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding: 14px 12px 8px;
    background: #fff;
}

.assistant-message {
    max-width: 90%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.assistant-message.bot {
    background: #eefaf3;
    color: #0f172a;
    border-top-left-radius: 4px;
}

.assistant-message.user {
    margin-left: auto;
    background: #00a651;
    color: white;
    border-top-right-radius: 4px;
}

.assistant-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 12px 12px;
}

.assistant-chip {
    border: 1px solid #dfece4;
    background: #f5faf6;
    color: #0f172a;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 0.76rem;
    cursor: pointer;
}

.assistant-form {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.assistant-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #dfe7e2;
    border-radius: 12px;
    padding: 11px 12px;
    font-size: 0.92rem;
}

.assistant-form button {
    border: none;
    border-radius: 12px;
    background: #00a651;
    color: white;
    font-weight: 700;
    padding: 11px 14px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .jerzgo-assistant {
        right: 12px;
        bottom: 12px;
    }

    .assistant-panel {
        width: min(320px, calc(100vw - 20px));
    }
}

/* =========================================================
   END OF JERZGO CSS
========================================================= */


/* =========================================================
   HOME PAGE THEME
========================================================= */

:root[data-theme="dark"] {
    color-scheme: dark;
    --home-bg: #111713;
    --home-surface: #19221c;
    --home-surface-raised: #202b23;
    --home-text: #edf4ef;
    --home-muted: #a2afa6;
    --home-border: #303d34;
    --home-image-bg: #202c24;
}

body {
    background: var(--home-bg, #f7f8f6);
    color: var(--home-text, #101510);
    transition: background-color .2s ease, color .2s ease;
}

:root[data-theme="dark"] .site-header {
    background: rgba(24, 33, 27, 0.96);
    border-bottom-color: var(--home-border);
}

:root[data-theme="dark"] .main-navigation a {
    color: var(--home-muted);
}

:root[data-theme="dark"] .main-navigation a:hover,
:root[data-theme="dark"] .main-navigation a.active {
    color: var(--home-text);
}

:root[data-theme="dark"] .search-form {
    background: var(--home-surface-raised);
}

:root[data-theme="dark"] .search-form:focus-within {
    background: var(--home-surface);
}

:root[data-theme="dark"] .search-form input {
    color: var(--home-text);
}

:root[data-theme="dark"] .header-button,
:root[data-theme="dark"] .mobile-menu-button {
    border-color: var(--home-border);
    background: var(--home-surface);
    color: var(--home-text);
}

:root[data-theme="dark"] .header-button:hover {
    color: var(--green);
}

:root[data-theme="dark"] .cart-count {
    border-color: var(--home-surface);
}

:root[data-theme="dark"] .section-header h2,
:root[data-theme="dark"] .product-content h3,
:root[data-theme="dark"] .price strong,
:root[data-theme="dark"] .benefit-grid h3 {
    color: var(--home-text);
}

:root[data-theme="dark"] .section-header span,
:root[data-theme="dark"] .section-header>a,
:root[data-theme="dark"] .product-content>small,
:root[data-theme="dark"] .product-content h3 a:hover {
    color: #70dfa0;
}

:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .benefit-grid article {
    border-color: var(--home-border);
    background: var(--home-surface);
}

:root[data-theme="dark"] .product-image {
    background: var(--home-image-bg);
}

:root[data-theme="dark"] .view-button {
    border-color: var(--home-border);
    background: var(--home-surface-raised);
    color: var(--home-text);
}

:root[data-theme="dark"] .cart-button-small {
    background: var(--green);
    color: #06140b;
}

:root[data-theme="dark"] .benefit-grid p {
    color: var(--home-muted);
}

.home-theme-toggle {
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--gray-200);
    border-radius: 9px;
    background: var(--white);
    color: var(--gray-800);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.home-theme-toggle:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.home-theme-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

:root[data-theme="dark"] .home-theme-toggle {
    border-color: var(--home-border);
    background: var(--home-surface);
    color: var(--home-text);
}

:root[data-theme="dark"] .home-theme-toggle:hover {
    color: var(--green);
}

@media (max-width: 650px) {
    .home-theme-toggle {
        width: 37px;
        min-width: 37px;
        height: 37px;
        padding: 0;
    }

    .home-theme-label {
        display: none;
    }
}