/* =========================================================
   STAR MART - CLEAN & FULL RESPONSIVE STYLESHEET
   ---------------------------------------------------------
   Design: Existing Star Mart Red / Yellow / White UI
   Structure:
   01. Google Font
   02. Root Variables
   03. Global Reset
   04. Global Layout
   05. Top Announcement Strip
   06. Main Header
   07. Header Logo
   08. Search Box
   09. Header Actions
   10. Category Navigation
   11. Category Animations
   12. Banner Slider
   13. Section Titles
   14. Brand Strip
   15. Product Grid
   16. Product Card
   17. Delivery / Payment
   18. Buttons
   19. Popup Advertisement
   20. Cart Drawer
   21. Product Detail
   22. Authentication / Forms
   23. Checkout / Orders / Profile
   24. Footer
   25. Toast / Empty States
   26. Accessibility
   27. LARGE DESKTOP / LAPTOP
   28. TABLET (FIXED)
   29. MOBILE
   30. SMALL MOBILE
   31. VERY SMALL MOBILE
   32. LANDSCAPE / TOUCH / REDUCED MOTION
   ========================================================= */


/* =========================================================
   01. GOOGLE FONT
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@800&display=swap');


/* =========================================================
   02. ROOT VARIABLES
   ========================================================= */

:root {
    --primary: #f30000;
    --primary-dark: #f30000;

    --brand-red: #E31B23;
    --brand-red-dark: #C9151D;
    --brand-red-light: #FCEBED;

    --brand-yellow: #FFC400;
    --brand-yellow-light: #FFF8D6;

    --wave-red: #f74343;
    --wave-light: #f97173;
    --accent: #ff5a3c;

    --text: #222222;
    --muted: #6b6b6b;
    --text-muted: #777777;

    --white: #FFFFFF;
    --page-bg: #F7F7F7;
    --bg-soft: transparent;

    --border: #E5E5E5;

    --radius: 10px;

    /* Brand strip image size on MOBILE only (100% = full cell, lower = smaller) */
    --brand-chip-size-mobile: 80%;

    /* Gap between category navigation items (mobile / tablet) */
    --nav-gap-tablet: 16px;
    --nav-gap-mobile: 12px;
    --nav-gap-small: 10px;

    /* Banner ratio: SAME on every device so the image never crops.
       If your banner image is not 3:1, change this to its real width / height */
    --banner-ratio: 15 / 5;

    --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.18);

    --site-bg-image: url("https://cdn.shopify.com/s/files/1/0560/3154/3495/files/site_background_img.png?v=1687416949");
}


/* =========================================================
   03. GLOBAL RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--site-bg-image);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   04. GLOBAL LAYOUT
   ========================================================= */

.container {
    width: min(100%, 1500px);
    max-width: 1500px;
    margin-inline: auto;
    padding-inline: clamp(12px, 2vw, 24px);
}

.section {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   05. TOP ANNOUNCEMENT STRIP
   ========================================================= */

.top-strip {
    width: 100%;
    min-height: 32px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ecebe5;
    background-image: var(--site-bg-image);
    color: #222222;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 2.1;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(227, 27, 35, 0.08);
    overflow: hidden;
}

.top-strip img {
    display: block;
    width: auto;
    max-width: 24px;
    object-fit: contain;
    flex-shrink: 0;
}


/* =========================================================
   06. MAIN HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    background: linear-gradient(135deg, #fffefe 0%, #d8baba 50%, #800020 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.45);
}

.header-inner {
    width: 100%;
    max-width: 1600px;
    min-height: 108px;
    margin: 0 auto;
    padding: 10px clamp(14px, 3vw, 42px);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 55px);
    flex-wrap: nowrap;
}


/* =========================================================
   07. LOGO
   ========================================================= */

.logo {
    margin: -10px 0;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 999;
    overflow: visible;
}

.logo img {
    display: block;
    width: 130px;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
    transform: scale(1.3);
    position: relative;
    z-index: 999;
}

.logo span {
    color: #E31B23;
}


/* =========================================================
   08. SEARCH BOX
   ========================================================= */

.search-box {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 46px;
    margin: 0;
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.search-box:focus-within {
    border-color: #FFC400;
    box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.22), 0 3px 10px rgba(0, 0, 0, 0.12);
}

.search-box input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222222;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1;
}

.search-box input::placeholder {
    color: #8A8A8A;
}

.search-box button {
    flex: 0 0 52px;
    width: 52px;
    height: 100%;
    padding: 0;
    border: 0;
    background: #FFC400;
    color: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: #FFD33D;
}


/* =========================================================
   09. HEADER ACTIONS
   ========================================================= */

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 24px);
    white-space: nowrap;
    min-width: 0;
}

.icon-btn {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    color: #FFC400;
    opacity: 1;
}

.icon-btn svg {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: 18px;
    min-width: 17px;
    height: 17px;
    padding: 1px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20%;
    background: #ffffff;
    color: #111111;
    border: 2px solid #ffffff;
    font-size: 9px;
    line-height: 1;
    font-weight: 800;
}

.cart-value {
    color: #FFFFFF;
    margin-left: 1px;
    font-size: inherit;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   10. CATEGORY NAVIGATION
   ========================================================= */

.category-nav {
    width: 100%;
    min-height: 10px;
    background-color: #FFFFFF;
    background-image: var(--site-bg-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 0;
    border-bottom: 1px solid #E5E5E5;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

.category-nav .container {
    width: 100%;
    max-width: 1600px;
    height: 10px;
    min-height: 10px;
    margin: 0 auto;
    padding: 4px clamp(12px, 2vw, 30px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(4px, 0.8vw, 14px);
    overflow: hidden;
    font-weight: 700;
}

.category-nav a {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: #222222;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(10px, 0.78vw, 13px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    overflow: visible;
    border-radius: 10px;
    transform-origin: center;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.category-nav a span {
    position: relative;
    display: block;
    overflow: visible;
    text-overflow: ellipsis;
}

.category-nav a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #E31B23;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease, background-color 0.25s ease;
}

.category-nav a:hover span::after {
    transform: scaleX(1);
}

.category-nav a:hover {
    color: #E31B23;
    background: #FCEBED;
    transform: translateY(-1px);
}

.category-nav a img {
    width: clamp(20px, 1.6vw, 25px);
    height: clamp(20px, 1.6vw, 25px);
    flex: 0 0 auto;
    display: block;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.category-nav a:hover img {
    transform: scale(1.08);
}


/* =========================================================
   11. ACTIVE CATEGORY + CATEGORY ANIMATIONS
   ========================================================= */

.category-nav a.active {
    color: #171717;
    background: #FFC400;
    border-radius: 10px;
    padding-left: 15px;
    padding-right: 15px;
    box-shadow: 0 3px 10px rgba(255, 196, 0, 0.28);
    z-index: 2;
    animation: starMartActivePulse 2.2s ease-in-out infinite;
}

.category-nav a.active span::after {
    display: none;
}

.category-nav a.active:hover {
    color: #111111;
    background: #FFD33D;
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 5px 14px rgba(255, 196, 0, 0.35);
}

.category-nav a.active img {
    transform: scale(1.05);
}

.category-nav a.category-clicked {
    animation: categoryClickZoom 0.45s ease-in-out;
}

@keyframes starMartActivePulse {
    0%, 100% { box-shadow: 0 3px 10px rgba(255, 196, 0, 0.25); }
    50%      { box-shadow: 0 5px 16px rgba(255, 196, 0, 0.42); }
}

@keyframes categoryClickZoom {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.10); }
    100% { transform: scale(1); }
}


/* =========================================================
   12. BANNER SLIDER
   ========================================================= */

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: var(--banner-ratio);
    background: var(--bg-soft);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.banner-dots span.active {
    background: #FFFFFF;
    transform: scale(1.3);
}


/* =========================================================
   13. SECTION TITLES
   ========================================================= */

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 14px;
}


/* =========================================================
   14. BRAND STRIP
   ---------------------------------------------------------
   FIX: the old 99.5vw / left:10% / negative margin hack
   was removed. It caused sideways offset on tablets.
   The background is now simply full width.
   ========================================================= */

.section:has(.brand-strip) {
    background-color: #0000001a;
    width: 100%;
    position: relative;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
}

.section:has(.brand-strip) .container {
    max-width: 100%;
}

.brand-strip {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(10px, 4vw, 40px);
    width: 100%;
    overflow: visible;
    padding-inline: clamp(16px, 4vw, 40px);
    padding-block: 5px;
}

.brand-chip {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-width: 0;
    background-color: transparent;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.brand-chip:hover {
    transform: translateY(-10px);
}

.brand-chip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* =========================================================
   15. PRODUCT GRID
   ========================================================= */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}


/* =========================================================
   16. PRODUCT CARD
   ========================================================= */

.product-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #FFFFFF;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FFFFFF;
}

.product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.product-thumb .img-front { opacity: 1; }
.product-thumb .img-back  { opacity: 0; }

.product-card:hover .img-front { opacity: 0; }
.product-card:hover .img-back  { opacity: 1; }

.badge-discount {
    position: absolute;
    z-index: 1;
    left: -1px;
    top: 0;
    background: red;
    color: #FFFFFF;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 14px 0;
}

.badge-oos {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #b91c1c;
    z-index: 3;
    font-size: 13px;
    text-transform: uppercase;
}

.product-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.product-weight {
    width: fit-content;
    margin-left: auto;
    padding: 0.2em 0.5em;
    display: inline-block;
    background-color: #000000;
    color: #FFFFFF;
    border-radius: 14px 0;
    font-size: 20px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-name {
    min-height: 38px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
}

.price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
}

.price-old {
    font-size: 13px;
    color: var(--muted);
    text-decoration: line-through;
}


/* =========================================================
   17. DELIVERY / PAYMENT
   ========================================================= */

.delivery-paid {
    width: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 4px 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #16a34a;
    color: #FFFFFF;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.3;
    box-sizing: border-box;
}

.delivery-text {
    font-weight: 500;
}

.delivery-price {
    font-weight: 700;
    white-space: nowrap;
}

.delivery-free-image {
    width: fit-content;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0;
    display: flex;
    align-items: center;
    line-height: 0;
}

.delivery-free-image img {
    display: block;
    width: 85px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.payment-methods img {
    width: 70px;
    height: auto;
    object-fit: contain;
    display: block;
}

.payment-methods span {
    font-size: 13px;
    color: #666666;
}


/* =========================================================
   18. BUTTONS
   ========================================================= */

.add-cart-btn {
    width: 100%;
    margin-top: 6px;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.add-cart-btn img {
    width: 25px;
    height: 25px;
    object-fit: contain;
    display: block;
}

.add-cart-btn:hover {
    background: var(--primary-dark);
}

.add-cart-btn:active {
    transform: scale(0.97);
}

.add-cart-btn:disabled {
    background: #CCCCCC;
    cursor: not-allowed;
}

.view-more-wrap {
    text-align: center;
    margin-top: 30px;
}

.btn-outline {
    display: inline-block;
    padding: 11px 30px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-solid {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-solid:hover {
    background: var(--primary-dark);
}


/* =========================================================
   19. POPUP ADVERTISEMENT
   ========================================================= */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    position: relative;
    width: 92%;
    max-width: 480px;
    max-height: 92vh;
    background: #FFFFFF;
    border-radius: 14px;
    overflow: hidden;
    transform: scale(0.85);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.popup-overlay.show .popup-box {
    transform: scale(1);
}

.popup-box img {
    width: 100%;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease;
}

.popup-close:hover {
    background: #000000;
}


/* =========================================================
   20. CART DRAWER
   ========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 92vw;
    height: 100%;
    background: #FFFFFF;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
}

.cart-drawer.show {
    right: 0;
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
    margin: 0;
    font-size: 18px;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--muted);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
}

.cart-line {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.cart-line img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: var(--bg-soft);
    border-radius: 8px;
    padding: 4px;
}

.cart-line-info {
    flex: 1;
    min-width: 0;
}

.cart-line-name {
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-line-price {
    font-size: 13px;
    color: var(--muted);
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-control button {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: 1px solid var(--border);
    background: #FFFFFF;
    cursor: pointer;
    font-weight: 700;
}

.cart-remove {
    background: none;
    border: none;
    color: #b91c1c;
    font-size: 12px;
    cursor: pointer;
    margin-top: 6px;
}

.cart-drawer-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-row.total {
    font-weight: 800;
    font-size: 16px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}

.delivery-note {
    font-size: 12.5px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.delivery-note.free {
    background: #e7f8ee;
    color: var(--primary-dark);
}

.delivery-note.paid {
    background: #fff4e5;
    color: #92610b;
}

.cart-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 0;
}


/* =========================================================
   21. PRODUCT DETAIL
   ========================================================= */

.pd-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 50px;
    padding: 40px 0;
}

.pd-gallery {
    position: relative;
    min-width: 0;
}

.pd-main-image {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    position: relative;
    cursor: zoom-in;
    background: #fafafa;
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.25s ease;
    transform-origin: center;
}

.pd-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.pd-info {
    background: #fafafa;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 0;
}

.pd-thumbs img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px;
    background: #fafafa;
}

.pd-thumbs img.active {
    border-color: var(--primary);
}

.pd-info h1 {
    font-size: 26px;
    margin: 0 0 10px;
}

.pd-brand {
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.pd-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.pd-meta {
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 18px;
}

.pd-desc {
    line-height: 1.7;
    color: #333333;
    margin-bottom: 24px;
}

.pd-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pd-reviews {
    margin-top: 40px;
}

.review-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.review-stars {
    color: #f59e0b;
    font-size: 15px;
}

.review-form textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
}


/* =========================================================
   22. AUTHENTICATION / FORMS
   ========================================================= */

.auth-wrap {
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background-color: #FFFFFF;
}

.auth-wrap h2 {
    text-align: center;
    margin-bottom: 22px;
}

.google-btn {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
    font-size: 14.5px;
}

.google-btn:hover {
    background: var(--bg-soft);
}

.divider {
    text-align: center;
    color: var(--muted);
    margin: 18px 0;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}


/* =========================================================
   23. CHECKOUT / ORDERS / PROFILE
   ========================================================= */

.page-title {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 30px 0 20px;
    letter-spacing: 0.3px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.checkout-box,
.summary-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    background-color: #FFFFFF;
    min-width: 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.summary-line.total {
    font-weight: 800;
    font-size: 17px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
    padding-top: 14px;
}

.order-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 16px;
    background-color: #FFFFFF;
}

.order-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.status-pill {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.status-pending    { background: #fff4e5; color: #92610b; }
.status-processing { background: #e6f0ff; color: #1e40af; }
.status-shipped    { background: #ede9fe; color: #6d28d9; }
.status-delivered  { background: #e7f8ee; color: var(--primary-dark); }
.status-cancelled  { background: #fde8e8; color: #b91c1c; }

.profile-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

.profile-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.profile-menu a.active,
.profile-menu a:hover {
    background: var(--bg-soft);
    color: var(--primary-dark);
}


/* =========================================================
   24. FOOTER
   ========================================================= */

.site-footer {
    background: #14211a;
    color: #cfe3d6;
    margin-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    padding: 30px 20px;
}

.footer-grid > div {
    min-width: 0;
    overflow-wrap: break-word;
}

.footer-grid h4 {
    color: #FFFFFF;
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-grid a,
.footer-grid p {
    font-size: 13px;
    color: #a9c2b1;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #8aa591;
}


/* =========================================================
   25. TOAST / EMPTY STATES
   ========================================================= */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c1c1c;
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 4000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}


/* =========================================================
   26. ACCESSIBILITY
   ========================================================= */

.category-nav a:focus-visible,
.search-box button:focus-visible,
.icon-btn:focus-visible,
.logo:focus-visible {
    outline: 3px solid rgba(255, 196, 0, 0.75);
    outline-offset: 2px;
}


/* =========================================================
   27. LARGE DESKTOP / LAPTOP
   ========================================================= */

/* ---------- LARGE DESKTOP 1201px+ ---------- */

@media (min-width: 1201px) {

    .header-inner {
        min-height: 108px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        width: 124px;
        min-width: 124px;
        max-width: 124px;
        min-height: 108px;
    }

    .search-box {
        height: 46px;
    }

    .category-nav .container {
        height: 60px;
        min-height: 60px;
    }

    .pd-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 50px;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
        gap: 40px;
    }

    .profile-grid {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* ---------- LAPTOP 901px - 1200px ---------- */

@media (min-width: 901px) and (max-width: 1200px) {

    .container {
        padding-inline: 16px;
    }

    .header-inner {
        min-height: 92px;
        padding: 8px 18px;
        gap: 16px;
    }

    .logo {
        width: 104px;
        min-width: 104px;
        max-width: 104px;
        min-height: 92px;
        padding: 7px;
    }

    .logo img {
        max-width: 94px;
        max-height: 82px;
    }

    .search-box {
        height: 42px;
    }

    .search-box input {
        font-size: 13px;
    }

    .search-box button {
        width: 48px;
        flex-basis: 48px;
    }

    .header-actions {
        gap: 12px;
    }

    .icon-btn {
        font-size: 11px;
        gap: 5px;
    }

    .icon-btn svg {
        width: 24px;
        height: 24px;
    }

    .category-nav .container {
        height: 52px;
        min-height: 52px;
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav .container::-webkit-scrollbar {
        display: none;
    }

    .category-nav a {
        min-height: 40px;
        padding: 7px 8px;
        font-size: 9px;
        gap: 5px;
    }

    .brand-strip {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 18px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }

    .pd-wrap {
        gap: 28px;
        padding-block: 30px;
    }

    .pd-info h1 {
        font-size: 23px;
    }

    .pd-price {
        font-size: 23px;
    }

    .checkout-grid {
        grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
        gap: 24px;
    }

    .profile-grid {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 20px;
    }

    .footer-grid {
        gap: 20px;
        padding-inline: 20px;
    }

    .section {
        padding-block: 34px;
    }

    .section-title {
        font-size: 24px;
    }
}


/* =========================================================
   28. TABLET  601px - 900px   (FIXED)
   ---------------------------------------------------------
   Fixes:
   - Header uses a 2-row grid (logo + actions / search)
   - Category nav scrolls horizontally (no cut-off items)
   - Brand strip uses 6 columns instead of 12
   - Product grid adapts automatically (3 columns)
   - Checkout / product detail stack on small tablets
   ========================================================= */

@media (min-width: 601px) and (max-width: 900px) {

    .container {
        padding-inline: 16px;
    }

    /* ---------- Top strip ---------- */

    .top-strip {
        font-size: 12px;
        line-height: 1.5;
        padding: 6px 12px;
    }

    /* ---------- Header ---------- */

    .site-header {
        position: sticky;
        top: 0;
    }

    .header-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        min-height: 0;
        padding: 10px 18px 12px;
        gap: 10px 16px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        width: 100px;
        min-width: 100px;
        max-width: 100px;
        height: 56px;
        min-height: 56px;
        margin: 0;
        padding: 2px;
        justify-self: start;
    }

    .logo img {
        width: 96px;
        max-width: 96px;
        max-height: 56px;
        transform: scale(1.1);
        transform-origin: left center;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        gap: 18px;
    }

    .icon-btn {
        font-size: 12px;
        gap: 6px;
    }

    .icon-btn svg {
        width: 26px;
        height: 26px;
    }

    .cart-badge {
        left: 16px;
    }

    .search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        height: 44px;
        width: 100%;
    }

    .search-box input {
        font-size: 14px;
    }

    .search-box button {
        width: 50px;
        flex-basis: 50px;
    }

    /* ---------- Category navigation ---------- */

    .category-nav .container {
        height: 58px;
        min-height: 58px;
        padding: 6px 16px;
        justify-content: flex-start;
        gap: var(--nav-gap-tablet);
        column-gap: var(--nav-gap-tablet);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-nav .container::-webkit-scrollbar {
        display: none;
    }

    .category-nav a {
        flex: 0 0 auto;
        flex-shrink: 0;
        min-width: max-content;
        margin: 0;
        min-height: 42px;
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
    }

    .category-nav a.active {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-nav a img {
        width: 22px;
        height: 22px;
    }

    /* ---------- Banner ---------- */

    .banner-dots {
        bottom: 10px;
        gap: 7px;
    }

    /* ---------- Sections ---------- */

    .section {
        padding-block: 30px;
    }

    .section-title {
        font-size: 22px;
    }

    .section-sub {
        font-size: 13px;
        margin-bottom: 22px;
    }

    /* ---------- Brand strip ---------- */

    .brand-strip {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
        padding-inline: 16px;
        padding-block: 10px;
    }

    .brand-chip:hover {
        transform: translateY(-5px);
    }

    /* ---------- Products ---------- */

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 14px;
    }

    .product-info {
        padding: 11px 12px 13px;
    }

    .product-name {
        font-size: 13.5px;
    }

    .product-weight {
        font-size: 16px;
    }

    .price-current {
        font-size: 15px;
    }

    .add-cart-btn {
        padding: 9px;
        font-size: 12.5px;
    }

    .delivery-paid {
        font-size: 11px;
    }

    /* ---------- Product detail ---------- */

    .pd-wrap {
        gap: 22px;
        padding-block: 24px;
    }

    .pd-info {
        padding: 16px;
    }

    .pd-info h1 {
        font-size: 21px;
    }

    .pd-price {
        font-size: 21px;
    }

    .pd-desc {
        line-height: 1.6;
    }

    .pd-actions {
        flex-wrap: wrap;
    }

    /* ---------- Checkout / Profile / Forms ---------- */

    .checkout-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
        gap: 18px;
    }

    .checkout-box,
    .summary-box {
        padding: 18px;
    }

    .profile-grid {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 18px;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .auth-wrap {
        margin: 40px auto;
    }

    /* ---------- Cart drawer ---------- */

    .cart-drawer {
        width: 380px;
    }

    /* ---------- Footer ---------- */

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
        padding: 34px 18px;
    }
}


/* ---------- SMALL TABLET / LARGE PHONE PORTRAIT: 601px - 768px ---------- */

@media (min-width: 601px) and (max-width: 768px) {

    .pd-wrap {
        display: block;
    }

    .pd-gallery {
        margin-bottom: 20px;
    }

    .checkout-grid {
        display: block;
    }

    .checkout-box,
    .summary-box {
        margin-bottom: 16px;
    }

    .profile-grid {
        display: block;
    }

    .profile-menu {
        display: flex;
        gap: 6px;
        overflow-x: auto;
        margin-bottom: 16px;
        scrollbar-width: none;
    }

    .profile-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-menu a {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .brand-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


/* =========================================================
   29. MOBILE  (max-width: 600px)
   ========================================================= */

@media (max-width: 600px) {

    *,
    *::before,
    *::after {
        max-width: 100%;
    }

    .container {
        width: 100%;
        padding-inline: 12px;
    }

    /* ---------- Top strip ---------- */

    .top-strip {
        min-height: 25px;
        height: 25px;
        padding: 4px 7px;
        gap: 5px;
        font-size: 9px;
        line-height: 1.15;
        text-align: center;
    }

    .top-strip img {
        width: auto;
        height: 15px;
        max-width: 20px;
    }

    /* ---------- Header ---------- */

    .site-header {
        position: relative;
    }

    .header-inner {
        width: 100%;
        min-height: 0;
        padding: 8px 10px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 42px 38px;
        gap: 7px 8px;
    }

    /* ---------- Logo ---------- */

    .logo {
        grid-column: 1;
        grid-row: 1;
        width: 105px;
        min-width: 105px;
        max-width: 105px;
        height: 42px;
        min-height: 42px;
        margin: 0;
        padding: 3px 5px;
        border-radius: 7px;
        overflow: hidden;
    }

    .logo img {
        max-width: 95px;
        max-height: 36px;
        transform: scale(1.3);
    }

    /* ---------- Header actions ---------- */

    .header-actions {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        gap: 8px;
    }

    .icon-btn {
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 0;
        font-size: 0;
        gap: 0;
    }

    .icon-btn svg {
        width: 21px;
        height: 21px;
    }

    .icon-btn .action-text {
        display: none;
    }

    .cart-value {
        display: none;
    }

    .cart-badge {
        top: -4px;
        left: 17px;
        min-width: 14px;
        height: 14px;
        font-size: 8px;
    }

    /* ---------- Search ---------- */

    .search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 38px;
        margin: 0;
        border-radius: 20px;
    }

    .search-box input {
        min-width: 0;
        padding: 0 11px;
        font-size: 11px;
    }

    .search-box button {
        width: 44px;
        min-width: 44px;
        flex-basis: 44px;
        font-size: 11px;
    }

    /* ---------- Category navigation (horizontal scroll) ---------- */

    .category-nav {
        width: 100%;
        overflow: hidden;
    }

    .category-nav .container {
        width: 100%;
        max-width: none;
        min-height: 0;
        height: 46px;
        padding: 5px 12px;
        margin: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: var(--nav-gap-mobile);
        column-gap: var(--nav-gap-mobile);
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .category-nav .container::-webkit-scrollbar {
        display: none;
    }

    .category-nav a {
        width: auto;
        min-width: max-content;
        min-height: 36px;
        height: 36px;
        flex: 0 0 auto;
        flex-shrink: 0;
        margin: 0;
        padding: 7px 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 8px;
        font-size: 9px;
        letter-spacing: 0.3px;
        white-space: nowrap;
        transform: none !important;
        animation: none !important;
    }

    .category-nav a span {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-nav a img {
        width: 18px;
        height: 18px;
        flex: 0 0 18px;
    }

    .category-nav a:hover {
        transform: none !important;
    }

    .category-nav a.active {
        order: initial;
        padding-left: 11px;
        padding-right: 11px;
        transform: none !important;
        animation: none !important;
    }

    .category-nav::after {
        display: none;
    }

    /* ---------- Banner ---------- */

    .banner-slider {
        width: 100%;
    }

    .banner-slide {
        opacity: 1;
        transition: transform 1.2s ease-in-out;
        transform: translateX(100%);
    }

    .banner-slide.active {
        transform: translateX(0);
    }

    .banner-slide.previous {
        transform: translateX(-100%);
    }

    .banner-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-dots {
        bottom: 8px;
    }

    .banner-dots span {
        width: 7px;
        height: 7px;
    }

    /* ---------- Sections ---------- */

    .section {
        width: 100%;
        padding-block: 26px;
    }

    .section-title {
        font-size: clamp(17px, 5vw, 20px);
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .section-sub {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    /* ---------- Brand strip ---------- */

    .section:has(.brand-strip) {
        width: 100%;
        margin-inline: 0;
        left: auto;
        right: auto;
    }

    .section:has(.brand-strip) .container {
        width: 100%;
        max-width: none;
        padding-inline: 0;
    }

    .brand-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 9px 10px;
    }

    .brand-chip {
        width: var(--brand-chip-size-mobile);
        height: auto;
        margin-inline: auto;
    }

    .brand-chip:hover {
        transform: none;
    }

    /* ---------- Product grid ---------- */

    .product-grid {
        width: 100%;
        gap: 10px;
    }

    .product-card {
        width: 100%;
        min-width: 0;
        border-radius: 9px;
    }

    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }

    .product-thumb {
        width: 100%;
        aspect-ratio: 1 / 1;
    }

    .product-thumb img {
        padding: 8px;
    }

    .badge-discount {
        left: -1px;
        top: 0;
        padding: 4px 7px;
        font-size: 10px;
        border-radius: 10px 0;
    }

    .badge-oos {
        font-size: 10px;
    }

    .product-info {
        min-width: 0;
        padding: 9px 10px 10px;
        gap: 5px;
    }

    .product-weight {
        max-width: 100%;
        font-size: 13px;
        padding: 0.25em 0.45em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-name {
        min-height: 34px;
        font-size: 12.5px;
        line-height: 1.35;
    }

    .price-row {
        gap: 5px;
        flex-wrap: wrap;
    }

    .price-current {
        font-size: 14px;
    }

    .price-old {
        font-size: 11px;
    }

    /* ---------- Add to cart ---------- */

    .add-cart-btn {
        min-height: 38px;
        padding: 8px 6px;
        border-radius: 7px;
        font-size: 11.5px;
        gap: 5px;
    }

    .add-cart-btn img {
        width: 20px;
        height: 20px;
    }

    /* ---------- Delivery / payment ---------- */

    .delivery-paid {
        max-width: 100%;
        margin-block: 4px;
        padding: 3px 7px;
        font-size: 10px;
    }

    .delivery-text,
    .delivery-price {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .delivery-free-image {
        max-width: 100%;
    }

    .delivery-free-image img {
        width: 70px;
        max-width: 100%;
    }

    .payment-methods {
        gap: 6px;
        margin-top: 6px;
        flex-wrap: wrap;
    }

    .payment-methods img {
        width: 55px;
    }

    .payment-methods span {
        font-size: 11px;
    }

    /* ---------- Buttons ---------- */

    .view-more-wrap {
        margin-top: 22px;
    }

    .btn-outline,
    .btn-solid {
        max-width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }

    /* ---------- Product detail ---------- */

    .pd-wrap {
        display: block;
        width: 100%;
        padding-block: 20px;
    }

    .pd-gallery {
        width: 100%;
        margin-bottom: 20px;
    }

    .pd-main-image {
        width: 100%;
    }

    .pd-main-image img {
        padding: 14px;
    }

    .pd-thumbs {
        gap: 7px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .pd-thumbs::-webkit-scrollbar {
        display: none;
    }

    .pd-thumbs img {
        flex: 0 0 54px;
        width: 54px;
        height: 54px;
    }

    .pd-info h1 {
        font-size: 20px;
        line-height: 1.25;
    }

    .pd-price {
        font-size: 20px;
    }

    .pd-meta {
        font-size: 12.5px;
    }

    .pd-desc {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 20px;
    }

    .pd-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 9px;
    }

    .pd-actions > * {
        max-width: 100%;
    }

    /* ---------- Auth / forms ---------- */

    .auth-wrap {
        width: min(100%, 430px);
        max-width: 100%;
        margin: 28px auto;
        padding: 22px 16px;
    }

    .auth-wrap h2 {
        font-size: 21px;
    }

    .google-btn {
        min-height: 44px;
        font-size: 13.5px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }

    /* ---------- Checkout ---------- */

    .page-title {
        font-size: clamp(20px, 6vw, 24px);
        margin: 22px 0 16px;
        line-height: 1.2;
    }

    .checkout-grid {
        display: block;
        width: 100%;
        padding-bottom: 35px;
    }

    .checkout-box,
    .summary-box {
        width: 100%;
        margin-bottom: 16px;
        padding: 16px;
    }

    .summary-line {
        font-size: 13px;
    }

    .summary-line.total {
        font-size: 16px;
    }

    /* ---------- Orders / profile ---------- */

    .order-card {
        width: 100%;
        padding: 15px;
    }

    .order-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-grid {
        display: block;
        width: 100%;
        padding-bottom: 35px;
    }

    .profile-menu {
        display: flex;
        width: 100%;
        overflow-x: auto;
        gap: 5px;
        margin-bottom: 16px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .profile-menu::-webkit-scrollbar {
        display: none;
    }

    .profile-menu a {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-bottom: 0;
        padding: 9px 12px;
        font-size: 13px;
    }

    /* ---------- Cart drawer ---------- */

    .cart-drawer {
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100vw;
        height: 100dvh;
    }

    .cart-drawer-header {
        padding: 15px 16px;
    }

    .cart-drawer-body {
        padding: 8px 14px;
    }

    .cart-drawer-footer {
        padding: 14px 16px;
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }

    .cart-line {
        gap: 9px;
        padding: 11px 0;
    }

    .cart-line img {
        width: 58px;
        height: 58px;
    }

    /* ---------- Popup ---------- */

    .popup-box {
        width: calc(100% - 24px);
        max-width: 480px;
        border-radius: 12px;
    }

    .popup-close {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    /* ---------- Footer ---------- */

    .site-footer {
        margin-top: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 16px;
    }

    .footer-grid h4 {
        margin-bottom: 9px;
    }

    .footer-grid a,
    .footer-grid p {
        font-size: 12.5px;
        line-height: 1.8;
    }

    .footer-bottom {
        padding: 13px;
        font-size: 11.5px;
    }

    /* ---------- Toast / empty ---------- */

    .toast {
        width: calc(100% - 24px);
        max-width: 420px;
        bottom: 16px;
        padding: 10px 14px;
        font-size: 12.5px;
        text-align: center;
    }

    .empty-state {
        padding: 45px 16px;
    }
}


/* =========================================================
   30. SMALL MOBILE  (max-width: 420px)
   ========================================================= */

@media (max-width: 420px) {

    .container {
        padding-inline: 9px;
    }

    .top-strip {
        min-height: 23px;
        height: 23px;
        padding: 3px 5px;
        font-size: 8px;
    }

    .top-strip img {
        height: 14px;
    }

    .header-inner {
        padding: 7px 8px;
        grid-template-rows: 38px 36px;
        gap: 6px;
    }

    .logo {
        width: 94px;
        min-width: 94px;
        max-width: 94px;
        height: 38px;
        min-height: 38px;
    }

    .logo img {
        max-width: 86px;
        max-height: 33px;
    }

    .header-actions {
        gap: 6px;
    }

    .icon-btn {
        width: 27px;
        min-width: 27px;
        height: 27px;
    }

    .icon-btn svg {
        width: 19px;
        height: 19px;
    }

    .cart-badge {
        left: 14px;
        top: -3px;
        min-width: 13px;
        height: 13px;
        font-size: 7px;
    }

    .search-box {
        height: 36px;
        border-radius: 18px;
    }

    .search-box input {
        padding: 0 9px;
        font-size: 10px;
    }

    .search-box button {
        width: 40px;
        min-width: 40px;
        flex-basis: 40px;
    }

    .category-nav .container {
        height: 43px;
        min-height: 43px;
        padding-left: 10px;
        padding-right: 10px;
        gap: var(--nav-gap-small);
        column-gap: var(--nav-gap-small);
    }

    .category-nav a {
        min-height: 34px;
        height: 34px;
        padding: 6px 8px;
        font-size: 8px;
        gap: 4px;
    }

    .category-nav a img {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .brand-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding-inline: 8px;
    }

    .product-grid {
        gap: 8px;
    }

    .product-info {
        padding: 8px 8px 9px;
    }

    .product-name {
        font-size: 12px;
        min-height: 32px;
    }

    .product-weight {
        font-size: 12px;
    }

    .price-current {
        font-size: 13.5px;
    }

    .price-old {
        font-size: 10.5px;
    }

    .add-cart-btn {
        min-height: 36px;
        padding: 7px 4px;
        font-size: 10.5px;
    }

    .add-cart-btn img {
        width: 18px;
        height: 18px;
    }

    .delivery-paid {
        font-size: 9.5px;
    }

    .delivery-free-image img {
        width: 62px;
    }

    .payment-methods img {
        width: 50px;
    }

    .section {
        padding-block: 22px;
    }

    .section-title {
        font-size: 17px;
    }

    .section-sub {
        font-size: 11.5px;
    }

    .pd-wrap {
        padding-block: 16px;
    }

    .pd-thumbs img {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .checkout-box,
    .summary-box {
        padding: 14px;
    }

    .footer-grid {
        padding: 25px 12px;
    }
}


/* =========================================================
   31. VERY SMALL MOBILE  (max-width: 350px)
   ========================================================= */

@media (max-width: 350px) {

    .container {
        padding-inline: 7px;
    }

    .header-inner {
        padding-left: 7px;
        padding-right: 7px;
    }

    .logo {
        font-size: 15px;
    }

    .header-actions {
        gap: 3px;
    }

    .icon-btn {
        width: 24px;
        min-width: 24px;
        height: 24px;
    }

    .icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .search-box {
        height: 30px;
    }

    .search-box button {
        width: 37px;
        min-width: 37px;
        flex-basis: 37px;
    }

    .category-nav .container {
        gap: 8px;
        column-gap: 8px;
    }

    .category-nav a {
        padding-inline: 7px;
        font-size: 7.5px;
    }

    .category-nav a img {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .product-grid {
        gap: 6px;
    }

    .product-info {
        padding-inline: 7px;
    }

    .product-name {
        font-size: 11.5px;
    }

    .add-cart-btn {
        font-size: 10px;
    }
}


/* =========================================================
   32. LANDSCAPE / TOUCH / REDUCED MOTION
   ========================================================= */

/* ---------- Landscape phones ---------- */

@media (max-width: 600px) and (orientation: landscape) {

    .header-inner {
        grid-template-rows: 30px 32px;
    }
}

/* ---------- Touch devices (phones + tablets) ---------- */

@media (hover: none) and (pointer: coarse) {

    .product-card:hover,
    .brand-chip:hover {
        transform: none;
    }

    .product-card:hover .img-front {
        opacity: 1;
    }

    .product-card:hover .img-back {
        opacity: 0;
    }

    .category-nav a:hover {
        transform: none !important;
    }

    .add-cart-btn:active {
        transform: scale(0.98);
    }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
