﻿@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Barlow+Condensed:wght@600;700;800&display=swap');

:root {
    --blue:         #1a3a6b;
    --blue-mid:     #2255a4;
    --blue-light:   #e8f0fb;
    --red:          #d62b2b;
    --red-light:    #fdeaea;
    --orange:       #f45ec6;
    --orange-light: #fff3e8;
    --white:        #ffffff;
    --gray-50:      #f7f8fa;
    --gray-100:     #eef0f4;
    --gray-200:     #dde1e9;
    --gray-400:     #9aa3b2;
    --gray-600:     #5a6479;
    --gray-900:     #1c2233;

    --surface:      var(--white);
    --surface-alt:  var(--gray-50);
    --border:       var(--gray-200);

    --shadow-xs:    0 1px 3px rgba(26,58,107,.08);
    --shadow-sm:    0 4px 12px rgba(26,58,107,.10);
    --shadow-md:    0 8px 24px rgba(26,58,107,.13);
    --shadow-lg:    0 16px 40px rgba(26,58,107,.16);

    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-full: 999px;
    --page-max: 1300px;
    --content-max: 1300px;
    --focus-ring: 0 0 0 3px rgba(34,85,164,.22);
    --nav-shift: 16px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    touch-action: manipulation;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html { margin: 0; padding: 0; width: 100%; }

body {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--gray-900);
    background:
        radial-gradient(circle at 8% -5%, rgba(34,85,164,.10) 0%, rgba(34,85,164,0) 34%),
        radial-gradient(circle at 92% 8%, rgba(107, 33, 244, 0.1) 0%, rgba(124, 33, 244, 0) 28%),
        linear-gradient(180deg, #f9fbff 0%, #f3f7fc 40%, #eef3fa 100%);
    min-height: 100vh;
    padding-top: 82px;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    line-height: 1.45;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.page-wrap { min-height: 100vh; }


/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    color: #1a3a6b;
    position: fixed;
    top: 0; left: 0; right: 0;
    margin: 0;
    z-index: 5000;
    box-shadow: 0 10px 24px rgba(26,58,107,.14);
    border-bottom: 1px solid #d9e6f5;
    backdrop-filter: saturate(120%) blur(7px);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.site-header::after {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(34,85,164,0), rgba(34,85,164,.32), rgba(34,85,164,0));
    pointer-events: none;
}

.header-inner {
    max-width: var(--page-max);
    width: 90%;
    margin: 0 auto;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Logo */
.header-logo { flex-shrink: 0; }

#gorsaj-logo {
    height: 56px;
    width: auto;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

/* Search bar */
.header-search {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #d4e2f3;
    border-radius: var(--r-full);
    padding: 0 16px;
    gap: 10px;
    transition: border-color .2s;
}

/* Blue focus — no orange glow */
.header-search:focus-within {
    border-color: var(--blue-mid);
}

.header-search-icon {
    color: #506481;
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-900);
    padding: 10px 0;
}

.header-search-input::placeholder { color: #7f90a7; }

/* Nav links */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.header-nav-link {
    color: #1f4f8f;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--r-full);
    transition: background .18s, color .18s, transform .14s;
    white-space: nowrap;
}

.header-nav-link:hover {
    background: #e8f0fb;
    color: #153b6d;
    transform: translateY(-1px);
}

.header-nav-link.active {
    background: #1f4f8f;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(31,79,143,.22);
}

/* Right side */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    border-radius: var(--r-full);
    padding: 4px 8px;
}

.lang-sep { color: #8ba1bc; font-size: 12px; }

.lang-btn {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #3f628e;
    padding: 2px 6px;
    border-radius: var(--r-full);
    transition: background .15s, color .15s;
    letter-spacing: .5px;
}

.lang-btn:hover { color: #1a3a6b; }
.lang-btn.active { background: #1f4f8f; color: #fff; }

/* Icon buttons */
.header-icon-btn {
    width: 40px; height: 40px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f4f8f;
    transition: background .18s, color .18s;
    position: relative;
    flex-shrink: 0;
}

.header-icon-btn:hover { background: #1f4f8f; color: #fff; }

/* Always hide mobile search bar */
.header-search-mobile { display: none !important; }


/* ══════════════════════════════════════════════════════════
   HOMEPAGE – HERO SLIDER
══════════════════════════════════════════════════════════ */
.home-hero {
    width: 90%;
    max-width: var(--content-max);
    margin: 30px auto 0;
}

.home-slider-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 56px rgba(20,56,96,.22);
    background: linear-gradient(135deg, #edf3fb, #e8f0fb);
    border: 1px solid #dce6f3;
}

.home-slider-track {
    display: flex;
    transition: transform .42s cubic-bezier(.4,0,.2,1);
}

.home-slide {
    min-width: 100%;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    overflow: hidden;
}

.home-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.home-slide-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-400);
    font-size: 13px;
}

.home-slide-promo {
    position: relative;
    justify-content: flex-start;
    padding: 40px 56px;
    color: #fff;
}

.home-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8,22,40,.82) 0%, rgba(8,22,40,.58) 42%, rgba(8,22,40,.16) 100%);
}

.home-slide-content { position: relative; z-index: 1; max-width: 560px; }

.home-slide-eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: .9;
    margin-bottom: 10px;
}

.home-slide-content h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.05;
    margin-bottom: 12px;
    font-weight: 800;
}

.home-slide-content p {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(242,247,255,.94);
    margin-bottom: 18px;
}

.home-slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f68d2f, #f47721);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 8px 20px rgba(244,119,33,.38);
    transition: transform .15s ease, box-shadow .15s ease;
}

.home-slide-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(244,119,33,.45); }

.home-slide-one {
    background:
        radial-gradient(circle at 82% 20%, rgba(73,146,237,.35) 0%, rgba(73,146,237,0) 38%),
        linear-gradient(120deg, #183963 0%, #1f4f88 52%, #2a6fb8 100%);
}

.home-slide-two {
    background:
        radial-gradient(circle at 85% 22%, rgba(244,119,33,.34) 0%, rgba(244,119,33,0) 34%),
        linear-gradient(118deg, #1d3f6d 0%, #285a97 47%, #2c78c5 100%);
}

.home-slide-three {
    background:
        radial-gradient(circle at 78% 24%, rgba(62,173,142,.34) 0%, rgba(62,173,142,0) 34%),
        linear-gradient(115deg, #14345a 0%, #1d4d82 48%, #2466a9 100%);
}

.home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.93);
    box-shadow: 0 3px 12px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--blue);
    transition: background .18s, box-shadow .18s, color .18s;
}

.home-slider-arrow:hover { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(244,119,33,.35); }
.home-prev { left: 16px; }
.home-next { right: 16px; }

.home-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.home-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s, width .2s;
}

.home-dot.active { background: var(--orange); transform: scale(1.2); width: 22px; border-radius: 4px; }


/* ══════════════════════════════════════════════════════════
   HOMEPAGE – INFO CARDS
══════════════════════════════════════════════════════════ */
.home-info-row {
    width: 90%;
    max-width: var(--content-max);
    margin: 16px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.home-info-card {
    background: var(--white);
    border: 1px solid #d9e5f2;
    border-radius: var(--r-md);
    box-shadow: 0 8px 18px rgba(24,65,109,.08);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow .2s, transform .2s;
}

.home-info-card:hover { box-shadow: 0 16px 30px rgba(24,65,109,.16); transform: translateY(-3px); }

.home-info-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 2px; }
.home-info-card > div > *:not(strong) { font-size: 13px; color: var(--gray-600); }

.home-info-card:nth-child(1) .home-info-icon { background: var(--orange-light); color: var(--orange); }
.home-info-card:nth-child(2) .home-info-icon { background: var(--red-light);    color: var(--red); }
.home-info-card:nth-child(3) .home-info-icon { background: var(--blue-light);   color: var(--blue-mid); }

.home-info-icon {
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   HOMEPAGE – CATEGORY GRID
══════════════════════════════════════════════════════════ */
.home-cat-section {
    width: 90%;
    max-width: var(--content-max);
    margin: 28px auto 0;
}

.home-cat-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: .3px;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    padding-right: 28px;
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: transparent;
    width: 100%;
    gap: 0;
}

.home-cat-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--white);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gray-900);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    padding: 20px 10px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}

.home-cat-card:hover { transform: translateY(-5px); box-shadow: 0 18px 32px rgba(20,60,102,.16); background: linear-gradient(180deg, #fff9f3, #fff3e8); color: var(--blue); }
.home-cat-card svg { color: var(--blue-mid); transition: color .2s; }
.home-cat-card:hover svg { color: var(--orange); }


/* ══════════════════════════════════════════════════════════
   FILTER BAR
══════════════════════════════════════════════════════════ */
.categories-header {
    width: 90%;
    max-width: var(--content-max);
    margin: 28px auto 0;
    padding: 16px 22px;
    background: rgba(255,255,255,.93);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 16px;
    flex-wrap: wrap;
    position: sticky;
    top: 82px;
    z-index: 120;
    backdrop-filter: blur(7px);
}

.sort-container { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-dropdown { position: relative; display: inline-block; }

.sort-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    background: #eef4fc;
    color: var(--blue);
    border: 1.5px solid #d8e3f1;
    border-radius: var(--r-md);
    transition: background .18s, border-color .18s, color .18s;
    white-space: nowrap;
    cursor: pointer;
}

.sort-btn:hover,
.sort-btn[aria-expanded="true"] { background: var(--blue); color: #fff; border-color: var(--blue); border-bottom-left-radius: 0; }

.dropdown-menu {
    position: absolute;
    left: 0; top: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    transform: translateY(-6px);
    z-index: 50;
    padding: 6px;
    display: flex;
    flex-direction: column;
    list-style: none;
}

.sort-dropdown:hover .dropdown-menu,
.sort-dropdown.open .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    border-top-left-radius: 0;
}

.dropdown-menu li { list-style: none; }

.dropdown-menu button {
    display: block;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-900);
    border-radius: var(--r-sm);
    transition: background .15s, color .15s;
    cursor: pointer;
    user-select: none;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
}

.dropdown-menu button:hover  { background: var(--blue-light); color: var(--blue); }
.dropdown-menu button:active { background: var(--blue); color: #fff; }

#search-input {
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13px;
    border: 1.5px solid #d6e2ef;
    border-radius: var(--r-md);
    outline: none;
    background: var(--surface);
    color: var(--gray-900);
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
}

#search-input:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(34,85,164,.12); }

.search-btn {
    background: transparent;
    border: none;
    padding: 4px;
    color: var(--gray-600);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}

.search-btn:hover { color: var(--blue); background: var(--blue-light); }

.clear-btn {
    border: 1.5px solid #d6e2ef;
    background: #fff;
    color: var(--gray-600);
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    transition: background .18s, color .18s, border-color .18s, transform .12s;
}

.clear-btn:hover { background: var(--red-light); border-color: var(--red); color: var(--red); transform: translateY(-1px); }

.results-meta { width: 100%; margin-top: -2px; font-size: 12px; font-weight: 600; color: var(--gray-600); }


/* ══════════════════════════════════════════════════════════
   PRICE RANGE SLIDER
══════════════════════════════════════════════════════════ */
.range-wrapper { width: 260px; background: var(--surface); border-radius: var(--r-md); padding: 8px 12px 10px; }
.range-container { position: relative; width: 100%; height: 20px; }

.slider { position: relative; z-index: 1; height: 5px; top: 75%; transform: translateY(-50%); }

.slider > input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    padding: 0; margin: 0;
}

.slider > input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--orange);
    cursor: pointer;
    transition: transform .15s;
}

.slider > input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.slider-track { position: absolute; width: 100%; height: 5px; background: var(--gray-200); top: 100%; transform: translateY(-50%); border-radius: 3px; }
.slider-track-fill { position: absolute; height: 5px; background: linear-gradient(90deg, var(--blue-mid), var(--orange)); border-radius: 3px; top: 100%; transform: translateY(-50%); }

.value-display { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--gray-600); }
.value-display span { font-weight: 700; color: var(--blue); }


/* ══════════════════════════════════════════════════════════
   CATEGORIES SECTION
══════════════════════════════════════════════════════════ */
.categories { width: 90%; max-width: var(--content-max); margin: 0 auto; min-height: 640px; display: flex; flex-direction: column; }

.categories-display { display: flex; background: rgba(255,255,255,.92); border: 1px solid #d7e4f1; border-top: none; min-height: 640px; }

.category-nav {
    width: 220px; min-width: 220px;
    border-right: 1px solid var(--border);
    padding: 20px 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #f3f8fd 100%);
    position: sticky;
    top: calc(82px + 72px);
    align-self: flex-start;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.category-nav h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray-400); margin-bottom: 10px; padding: 0 6px; }
.category-nav ul { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.category-nav li { width: 100%; }

.category-nav button {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    color: var(--gray-600);
    border-radius: var(--r-sm);
    padding: 8px 12px 8px 18px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s, border-color .15s;
    position: relative;
}

.category-nav button::before {
    content: '';
    position: absolute;
    left: 6px; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 0;
    background: var(--orange);
    border-radius: 2px;
    transition: height .18s;
}

.category-nav button:hover { background: var(--blue-light); color: var(--blue); border-color: var(--gray-200); }
.category-nav button:hover::before { height: 55%; }
.category-nav button.active { background: var(--blue-light); color: var(--blue); font-weight: 700; border-color: var(--blue-mid); }
.category-nav button.active::before { height: 55%; }

#products { flex: 1; display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 20px; padding: 24px; width: 100%; box-sizing: border-box; background: rgba(255,255,255,.93); }

.product {
    background: var(--white);
    border-radius: 14px;
    flex: 1 1 200px;
    max-width: 30%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(20,60,102,.08);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
}

.product:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,60,102,.16); border-color: var(--blue-mid); }

.product::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--blue-mid), var(--orange)); opacity: 0; transition: opacity .2s; }
.product:hover::before { opacity: 1; }
.product > a:first-child { display: block; overflow: hidden; }

.product img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 16px; transition: transform .25s; box-sizing: border-box; }
.product:hover img { transform: scale(1.05); }

.product h3 { font-size: 13.5px; font-weight: 500; color: var(--gray-900); padding: 10px 12px 6px; line-height: 1.4; height: 52px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
.product h3 a { color: inherit; }
.product h3 a:hover { color: var(--blue-mid); }

.info { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 12px; margin-top: auto; gap: 8px; }
.info-container { display: flex; flex-direction: column; gap: 1px; }

.info-container p { margin: 0; font-size: 17px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.info-container p.original-price { font-size: 11px; color: #9aa3b2; text-decoration: line-through; font-weight: 400; }

.discount-container span { display: inline-block; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-full); margin-top: 3px; }

.info button { position: relative; background: var(--blue); border: none; color: #fff; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: background .18s, transform .1s, box-shadow .18s; }
.info button img { height: 18px; width: 18px; filter: brightness(0) invert(1); }
.info button:hover { background: var(--orange); box-shadow: 0 8px 16px rgba(244,119,33,.35); }
.info button:active { transform: scale(.92); }

.cart-badge { position: absolute; top: -7px; right: -7px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); }


/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination { max-width: var(--content-max); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 24px 26px; background: rgba(255,255,255,.92); border-top: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }

.pagination button { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--white); color: var(--gray-600); font-size: 13px; font-weight: 600; font-family: inherit; transition: background .18s, color .18s, border-color .18s, transform .1s; }
.pagination button:hover { background: var(--blue-mid); color: #fff; border-color: var(--blue-mid); transform: translateY(-1px); }
.pagination .page-number.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .disabled { opacity: .35; pointer-events: none; }


/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { width: 100%; background: linear-gradient(135deg, #14355f 0%, #1d4d8c 70%, #2256a1 100%); padding: 30px 24px; text-align: center; margin-top: auto; border-top: 1px solid rgba(255,255,255,.16); }
.footer p { color: rgba(255,255,255,.78); font-size: 13px; font-weight: 400; line-height: 1.7; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.empty-state { width: 100%; padding: 40px 20px; text-align: center; color: var(--gray-600); }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }

#toast-container { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1200; }

.toast { background: linear-gradient(135deg, #52d1f8, #169aa3); min-width: 220px; max-width: 320px; padding: 12px 16px; border-radius: var(--r-md); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-md); animation: toastIn .22s ease; }
.toast.success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.toast.error   { background: linear-gradient(135deg, var(--red), #b91c1c); }
.toast.hide    { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite; border-radius: var(--r-sm); }

@keyframes shimmer {
    0%   { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

.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; }

#info { width: 90%; max-width: 1200px; margin: 30px auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.orders-wrapper { width: 90%; max-width: 1200px; margin: 30px auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE – 1100px
══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .header-inner { width: 95%; }
    .header-search { max-width: 360px; }
    .product {max-width: none; min-width: 40%;}
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – 900px
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .header-nav-link { font-size: 13px; padding: 6px 10px; }
    .header-search { max-width: none; flex: 1; }
    .home-cat-grid { grid-template-columns: repeat(4, 1fr); }
    .categories-header { top: 82px; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE SEARCH BAR (below header, mobile only)
══════════════════════════════════════════════════════════ */
.mobile-search-bar {
    display: none;
    width: 100%;
    padding: 8px 14px;
    background: #fff;
    border-top: 1px solid #dce8f5;
    align-items: center;
    gap: 10px;
}

.mobile-search-bar svg { color: #506481; flex-shrink: 0; }

.mobile-search-bar .header-search-input {
    flex: 1;
    padding: 8px 4px;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM TAB BAR
══════════════════════════════════════════════════════════ */
.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #dce8f5;
    box-shadow: 0 -4px 20px rgba(26,58,107,.10);
    z-index: 4999;
    align-items: stretch;
    justify-content: space-around;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7a92ad;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    padding: 4px 2px;
    transition: color .18s;
    position: relative;
    min-width: 0;
}

.tab-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform .18s;
}

.tab-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 9px;
}

.tab-item.active { color: #1f4f8f; }
.tab-item.active svg { transform: translateY(-2px); }

.tab-item.active::after {
    content: '';
    position: absolute;
    top: 0; left: 15%; right: 15%;
    height: 2.5px;
    background: #1f4f8f;
    border-radius: 0 0 3px 3px;
}

.tab-lang {
    flex-direction: row;
    gap: 1px;
    padding: 4px 2px;
}

.tab-lang .lang-btn {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 3px;
}

.tab-lang .lang-sep {
    font-size: 10px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – 768px
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    body {
        padding-top: 100px;
        padding-bottom: 66px;
    }

    .site-header {
        overflow: visible;
    }

    .header-inner { 
        height: 56px; 
        width: 100%; 
        padding: 0 12px; 
        gap: 8px; 
    }

    #gorsaj-logo { height: 30px; }

    .header-search { display: none; }

    .mobile-search-bar {
        display: flex;
        width: 100%;
        padding: 7px 12px;
        background: #fff;
        border-top: 1px solid #dce8f5;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 10px rgba(26,58,107,.07);
    }

    .mobile-search-bar .header-search-input {
        flex: 1;
        padding: 7px 4px;
        font-size: 14px;
        border: none;
        outline: none;
        background: transparent;
    }

    .header-nav { display: none !important; }
    .header-right .header-icon-btn { display: none !important; }
    /* .header-right .lang-switcher { display: none !important; } */

    .mobile-tab-bar { display: flex; }

    .categories-header { 
        top: 100px; 
        width: 100%; 
        border-radius: 0; 
        padding: 12px 14px; 
        margin: 0; 
        gap: 10px; 
        margin-top: 20px;
    }

    .sort-container { width: 100%; flex-wrap: wrap; }
    .range-wrapper, #search-input, .clear-btn { width: 100%; }

    .home-hero {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-slider-wrap {
        border-radius: 25px;
        border: none;
        margin: 0;
        margin-top: 20px;
        width: 90%;
    }

    .home-slide {
        height: 260px;
    }

    .home-slide-promo {
        padding: 20px 16px;
    }

    .home-slide-content {
        max-width: 100%;
    }

    .home-slide-content h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .home-slide-content p {
        font-size: 12px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-slide-cta {
        min-height: 36px;
        padding: 0 14px;
        font-size: 12px;
    }

    .home-slider-arrow {
        width: 32px;
        height: 32px;
    }

    .home-prev { left: 8px; }
    .home-next { right: 8px; }

    .home-info-row { grid-template-columns: 1fr; gap: 10px; padding: 0 14px; box-sizing: border-box; width: 100%;}
    .home-cat-title   { font-size: 18px; }
    .home-cat-section {
        width: 100%;
        padding: 0 14px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .home-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .home-cat-card {
        aspect-ratio: auto;
        padding: 18px 12px;
        border-radius: var(--r-md);
        border: 1px solid #e8eef7;
        box-shadow: 0 2px 8px rgba(26,58,107,.06);
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-wrap {
        overflow-x: hidden;
        width: 100%;
    }
    .categories { width: 100%; }
    .categories-display { flex-direction: column; }
    .category-nav { width: 100%; min-width: 0; border-right: none; border-bottom: 1px solid var(--border); position: static; max-height: none; padding: 14px; }
    .category-nav ul { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .category-nav li { width: auto; }
    .category-nav button { padding: 6px 12px; white-space: nowrap; font-size: 12px; }
    .category-nav button::before { display: none; }

    #products { padding: 12px; gap: 8px; justify-content: space-between; }
    .product { width: calc(50% - 6px); flex: 0 0 calc(50% - 6px); max-width: none; min-width: 0; }

    .pagination { width: 100%; border-radius: 0; }
}

@media (max-width: 480px) {
    .header-nav-link { font-size: 10px; padding: 3px 5px; }
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .home-slide { height: 180px; }
}

@media (max-width: 380px) {
    .header-inner { padding: 0 8px; }
    #gorsaj-logo { height: 26px; }
    .home-slide { height: 150px; }
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product { width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – 480px
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .header-nav-link { font-size: 10px; padding: 3px 5px; }
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .home-slide { height: 180px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE – 380px
══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .header-inner { padding: 0 6px; gap: 2px; }
    #gorsaj-logo { height: 24px; }
    .header-nav-link { font-size: 9px; padding: 3px 4px; }
    .lang-btn { font-size: 9px; padding: 1px 3px; }
    .header-icon-btn { width: 26px; height: 26px; }
    .header-icon-btn svg { width: 15px; height: 15px; }
    .home-slide { height: 150px; }
    .home-cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product { width: calc(50% - 4px); flex: 0 0 calc(50% - 4px); }
    .home-slide-promo { padding: 16px 12px; }
    .home-slide-content h2 { font-size: 20px; margin-bottom: 6px; }
    .home-slide-content p  { font-size: 12px; margin-bottom: 8px; }
    .home-slide-cta { min-height: 34px; padding: 0 12px; font-size: 11px; }
}