/* ============================================================
   css.css — główny arkusz stylów AfroShop
   Kolejność ładowania: theme.css → css.css
   ============================================================ */

/* ============================================================
   1. RESET I BAZA
   ============================================================ */
* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-bg);
    font-family: Arial, sans-serif;
    color: var(--color-text);
}

.container-main { max-width: 100%; margin: 0 auto; }

a { color: var(--color-brand); text-decoration: none; }
a:hover { color: var(--color-brand); text-decoration: none; }

.flex { display: flex; flex-wrap: wrap; }
.flex div { margin: 6px; }

/* ============================================================
   2. TOPBAR
   ============================================================ */
.topbarbor { border-bottom: 1px solid var(--color-border); }
.topbar { background: var(--color-bg); padding: 10px 20px; }
.topbar-inner { display: flex; align-items: center; gap: 16px; }

.logo { display: inline-block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.search-wrap {
    flex: 1; display: flex; align-items: center; gap: 10px;
    background: var(--color-bg-light); border-radius: var(--radius-full);
    padding: 8px 16px; min-width: 0; position: relative;
}
.search-icon { color: var(--color-text-muted); flex-shrink: 0; }
.search-input { flex: 1; border: none; background: transparent; outline: none; font-size: 14px; color: var(--color-brand); min-width: 0; }
.search-input::placeholder { color: var(--color-text-muted); }

.topbar-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.icon-btn {
    background: none; border: none; cursor: pointer; padding: 8px;
    border-radius: var(--radius-sm); display: flex; align-items: center;
    justify-content: center; transition: background 0.2s; position: relative;
}
.icon-btn:hover { background: var(--color-bg-light); }

.cart-count {
    position: absolute; top: 2px; right: 2px; background: var(--color-brand);
    color: #fff; font-size: 9px; width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.wishlist-icon-wrap { position: relative; }
.wishlist-count {
    position: absolute; top: 2px; right: 2px; background: #ef4444;
    color: #fff; font-size: 9px; width: 15px; height: 15px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }

.mobile-menu { display: none; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.mobile-menu a { display: block; padding: 10px 20px; border-top: 1px solid var(--color-border-light); font-size: 14px; }
.mobile-menu a:hover { background: var(--color-bg-light); }

/* ============================================================
   3. WYSZUKIWARKA AUTOCOMPLETE
   ============================================================ */
.search-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--color-bg); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 10000; max-height: 420px; overflow-y: auto;
}
.search-dropdown.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    text-decoration: none; color: var(--color-brand); transition: background 0.15s;
    border-bottom: 1px solid var(--color-border-light);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--color-bg-light); }
.search-result-item__img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; border: 1px solid var(--color-border-light); }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__name { font-size: 13px; font-weight: 600; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-item__price { font-size: 12px; color: var(--color-text-muted); margin: 0; }
.search-result-item__variants { font-size: 11px; color: var(--color-text-muted); flex-shrink: 0; }
.search-result-all { display: block; text-align: center; padding: 10px; font-size: 13px; font-weight: 600; color: var(--color-brand); background: var(--color-bg-light); text-decoration: none; border-top: 1px solid var(--color-border-light); }
.search-result-all:hover { background: var(--color-bg); }
.search-result-empty, .search-loading { padding: 20px; text-align: center; font-size: 13px; color: var(--color-text-muted); }

/* ============================================================
   4. MENU KATEGORII
   ============================================================ */
.categories-container_k { position: relative; padding: 0 55px; margin: 6px 0; }
.categories-text { display: flex; gap: 3px; overflow-x: hidden; overflow-y: hidden; scroll-behavior: smooth; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.categories-text::-webkit-scrollbar { display: none; }
.cat-item-text { flex: 0 0 auto; text-align: center; flex-shrink: 0; cursor: pointer; }
.cat-item-text p { font-size: 12px; margin: 0; padding: 8px 0; transition: all 0.2s; }
.cat-item-text:hover p { color: #1abc9c; transform: translateY(-2px); }
.text-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; width: 5px; height: 5px; border-radius: 50%; font-size: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: var(--shadow-md); }
.text-arrow:hover { background: var(--color-bg); color: #1abc9c; }
.text-arrow.prev { left: 5px; }
.text-arrow.next { right: 5px; }

/* ============================================================
   5. MEGA MENU
   ============================================================ */
.mega-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; box-shadow: var(--shadow-md); z-index: 999; padding: 20px; gap: 30px; height: 260px; overflow: hidden; }
.mega-trigger:hover .mega-menu { display: flex; }
.mega-left { width: 30%; border-right: 1px solid #eee; font-size: 14px; }
.mega-right { width: 70%; font-size: 10px; }
.mega-left, .mega-right { max-height: 226px; overflow-y: auto; padding-right: 15px; }
.mega-left::-webkit-scrollbar { width: 6px; }
.mega-left::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.mega-left::-webkit-scrollbar-thumb:hover { background: #ccc; }
.mega-cat-item { padding: 10px 15px; cursor: pointer; border-bottom: 1px solid var(--color-border-light); }
.mega-cat-item:hover { background: #f1f1f1; color: #8a8886; border-bottom: 1px solid #cfcbc4; }
.mega-right a { color: var(--color-brand); text-decoration: none; }
.sub-item img { width: 60px; height: 60px; border-radius: 50px; overflow: hidden; background: var(--color-bg); }
.categories-text a { pointer-events: auto !important; position: relative; z-index: 9999; }

/* ============================================================
   6. KARUZELA KATEGORII
   ============================================================ */
.categories-container { position: relative; padding: 0 60px; margin: 10px auto; width: 87%; display:none;}
.categories-grid {
    display: flex !important; flex-direction: column !important; flex-wrap: wrap !important;
    gap: 2px; max-height: 400px; max-width: 100%;
    overflow-x: scroll !important; overflow-y: hidden !important;
    scroll-behavior: smooth; padding-bottom: 20px; align-content: flex-start;
    scrollbar-width: none; -ms-overflow-style: none;
}
.categories-grid::-webkit-scrollbar { display: none; }
.cat-item { width: 120px; flex: 0 0 auto; text-align: center; height: 120px; }
.cat-item p { font-size: 13px; margin: 8px auto 0; max-width: 120px; word-wrap: break-word; line-height: 1.25; min-height: 38px; }
.cat-item:hover img { transform: scale(1.2); }
.cat-img { width: 80px; height: 80px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background: var(--color-bg); }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.95); border: 1px solid var(--color-border); width: 46px; height: 46px; border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; box-shadow: var(--shadow-md); }
.carousel-arrow:hover { background: var(--color-bg); color: #1abc9c; }
.carousel-arrow.prev { left: 5px; }
.carousel-arrow.next { right: 5px; }

/* ============================================================
   7. LISTA PRODUKTÓW
   ============================================================ */
.prodw { display: flex; flex-wrap: inherit; }
/*.wthirty { width: 25%; margin: 10px; height: 400px; overflow-y: auto; }*/
.wthirty {
  width: 25%;
  margin: 10px;
  height: calc(100vh - 20px);
  overflow-y: auto;
  position: sticky;
  top: 10px;
  align-self: flex-start;
}
.wseventy { width: 75%; margin: 10px; }
.flexfotow { display: flex; flex-wrap: wrap; }
.flexfotowa { width: 160px; }
.blocka { display: block; width: 100%; }
.product-card { transition: all 0.2s; width: 95%; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card__img { aspect-ratio: 1/1; background: #f3f4f6; overflow: hidden; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.p4 { margin: 0; }
.p4prname { font-size: 10px; }
.p4prprice { font-size: 14px; font-weight: 600; text-align: center; }
.no-products { padding: 20px; color: var(--color-text-muted); font-size: 14px; }
.product-color-dots { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 2px; }
.product-color-dot { width: 18px; height: 18px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--color-border-light); transition: transform 0.15s; display: block; flex-shrink: 0; }
.product-color-dot:hover { transform: scale(1.25); border-color: var(--color-brand); }

/* ============================================================
   8. FILTRY
   ============================================================ */
.filter-section summary { list-style: none; }
.filter-section summary::-webkit-details-marker { display: none; }
.filter-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; color: var(--color-brand); }
.filter-summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 8px 20px 8px 10px; font-size: 14px; font-weight: 500; list-style: none; }
.filter-summary::-webkit-details-marker { display: none; }
.filter-toggle { font-size: 18px; line-height: 1; }
.filter-body { margin-top: 10px; padding-left: 4px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.filter-label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.circle-checkbox { appearance: none; width: 18px; height: 18px; border: 2px solid #d1d5db; border-radius: 50%; cursor: pointer; position: relative; }
.circle-checkbox:checked { border-color: var(--color-link); background-color: var(--color-link); }
.circle-checkbox:checked::after { content: ''; position: absolute; top: 3px; left: 3px; width: 8px; height: 8px; background: white; border-radius: 50%; }
.color-circle { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid #e5e7eb; transition: all 0.2s; }
.color-circle.active { border-color: var(--color-link); transform: scale(1.15); }
.color-circles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.color-multi { background: linear-gradient(135deg, #f472b6, #3b82f6); }
.filter-price { margin-top: 24px; padding: 0 4px; }
.filter-price-header { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.filter-price-value { font-weight: 600; color: var(--color-brand); }
.filter-price-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--color-text-muted); }
.price-slider-wrap { position: relative; height: 20px; margin-bottom: 12px; }
.price-slider-track { position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: var(--color-border); border-radius: 2px; transform: translateY(-50%); pointer-events: none; }
.price-slider-fill { position: absolute; top: 50%; height: 4px; background: var(--color-brand); border-radius: 2px; transform: translateY(-50%); pointer-events: none; }
.price-slider-wrap input[type="range"] { position: absolute; top: 50%; left: 0; width: 100%; height: 4px; transform: translateY(-50%); appearance: none; background: transparent; pointer-events: none; margin: 0; }
.price-slider-wrap input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--color-brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer; pointer-events: all; }
.price-slider-wrap input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--color-brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer; pointer-events: all; }
.price-slider-wrap input[type="range"]::-moz-range-track { background: transparent; height: 4px; }

/* ============================================================
   9. SZCZEGÓŁY PRODUKTU
   ============================================================ */
   .pd-desc-section__text{width:90%;}
.pd-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: flex; gap: 40px; align-items: flex-start; }
.pdleft { width: 60%; padding: 20px; flex-shrink: 0; }
.pdright { width: 40%; padding: 20px; }
.main-image { width: 90%; margin: 0 auto; }
.pd-gallery { display: flex; gap: 8px; }
.pd-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.pd-thumbs::-webkit-scrollbar { width: 4px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
.pd-main-wrap { flex: 1; }
.thumbnail { width: 50px; height: 50px; object-fit: cover; cursor: pointer; border: 2px solid transparent; margin-bottom: 8px; }
.thumbnail.active { border-color: var(--color-link); }
.pd-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.pd-rating { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #ca8a04; margin-bottom: 16px; }
.pd-price { font-size: 28px; font-weight: 600; color: var(--color-price); margin-bottom: 24px; }
.pd-section { margin-bottom: 20px; }
.pd-label { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.pd-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-color-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.pd-color-thumb:hover { border-color: var(--color-brand); }
.pd-color-thumb--active { border-color: #16a34a; }
.pd-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pd-description { font-size: 14px; color: #374151; margin-top: 16px; line-height: 1.6; }
.pd-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.pd-actions .add_tocart { flex: 1; }
.add_tocart { color: var(--color-brand); border: 1px solid var(--color-border-light); background: var(--color-bg-light); box-shadow: var(--shadow-sm); width: 100%; height: 2rem; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; transition: all 0.2s; }
.add_tocart:hover { color: #fff; background: var(--color-brand); border-color: var(--color-brand); }
.button_size { padding: 2px; width: 31px; font-size: 10px; border-radius: var(--radius-sm); text-align: center; cursor: pointer; background: var(--color-bg); }
#open_r_size, #close_size { cursor: pointer; }
.wishlist-btn { width: 42px; height: 32px; border: 1px solid var(--color-border-light); background: var(--color-bg-light); border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--color-brand); flex-shrink: 0; transition: all 0.2s; }
.wishlist-btn:hover { border-color: #ef4444; color: #ef4444; }
.wishlist-btn.active { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.wishlist-btn.active svg { fill: #ef4444; }

/* Galeria overlay */
.gallery-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; display: none; }
.gallery-overlay:not(.hidden) { display: flex; justify-content: center; align-items: center; }
.hidden { display: none !important; }
.gallery-content { display: flex; width: 100%; height: 100%; }
.gallery-thumbs { width: 120px; overflow-y: auto; }
.gallery-thumbs img { width: 100%; margin-bottom: 5px; cursor: pointer; }
.gallery-main { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; background: #111; }
.gallery-main button { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; font-size: 30px; padding: 10px 15px; cursor: pointer; z-index: 2; }
.gallery-main button:hover { background: rgba(0,0,0,0.8); }
.gallery-main button:first-of-type { left: 100px; }
.gallery-main button:last-of-type { right: 100px; }
.gallery-main img { width: 90%; height: 90%; object-fit: contain; }
.close-btn { position: absolute; top: 20px; right: 30px; font-size: 40px; color: white; cursor: pointer; z-index: 1; }

/* ============================================================
   10. TABELA ROZMIARÓW
   ============================================================ */
#open_size { opacity: 0; visibility: hidden; transform: scale(0.1); transition: all 0.9s ease; position: fixed; top: 10px; left: 0; right: 0; margin: 0 auto; width: 95%; max-width: 530px; z-index: 10001; pointer-events: none; }
#open_size.active { opacity: 1; visibility: visible; transform: scale(1); pointer-events: all; }
.size_container { width: 100%; max-width: 530px; font-family: Arial; color: var(--color-brand); background: var(--color-bg); height: 502px; overflow-y: auto; overflow-x: hidden; border: 1px solid #000; }
.size_header { display: flex; border-bottom: 1px solid #000; }
.size_header_title { flex: 1; text-align: center; margin: 20px 0; font-size: 24px; font-weight: 700; }
.size_close { width: 40px; text-align: center; cursor: pointer; }
.size_fit_row { display: flex; }
.size_fit_col { flex: 1; text-align: center; }
.size_fit_label { flex: 1; text-align: left; padding-left: 10px; }
.size_fit_line { flex: 1; border-bottom: 1px solid #000; }
.size_fit_active { flex: 0.5; border-bottom: 3px solid #000; }
.size_row { display: flex; }
.size_cell { flex: 1; padding: 5px 0; text-align: center; border-bottom: 1px solid #000; }
.size_border_right { border-right: 1px solid #000; }
.size_header_cell { background: var(--color-bg-light); font-weight: 700; }
.size_small_col { max-width: 10%; }
.size_medium_col { max-width: 30%; }
.size_bold { background: var(--color-bg-light); font-weight: 700; }
.size_measure { display: flex; gap: 20px; margin-top: 20px; }
.size_measure img { max-width: 200px; }
.size_fit_stats { display: flex; text-align: center; margin-bottom: 20px; }
.size_fit_main { font-weight: 700; text-decoration: underline; flex: 1; }
.size_fit_other { flex: 1; }
.size_buyer_header { background: var(--color-bg-light); font-weight: 700; border: 1px solid #000; }
.size_buyer_cell { border-bottom: 1px solid #000; border-right: 1px solid #000; }
.size_buyer_last { border-bottom: 1px solid #000; }

/* ============================================================
   11. PROFIL DROPDOWN
   ============================================================ */
.profile-wrap { position: relative; }
.profile-name-badge { font-size: 11px; font-weight: 600; color: var(--color-brand); margin-left: 2px; }
.profile-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: 280px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 10000; }
.profile-dropdown.active { display: block; }
.profile-dropdown__login { padding: 20px; }
.profile-dropdown__title { font-size: 16px; font-weight: 600; color: var(--color-brand); margin: 0 0 16px; }
.auth-input { width: 100%; padding: 8px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-brand); background: var(--color-bg); margin-bottom: 10px; box-sizing: border-box; }
.auth-input:focus { border-color: var(--color-brand); outline: none; }
.auth-btn { width: 100%; padding: 10px; background: var(--color-brand); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-bottom: 12px; }
.auth-btn:hover { opacity: 0.85; }
.auth-links { display: flex; justify-content: space-between; font-size: 12px; }
.auth-links a { color: var(--color-text-muted); }
.auth-links a:hover { color: var(--color-brand); }
.auth-message { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px; }
.auth-message--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-message--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.profile-dropdown__user-info { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--color-border-light); }
.profile-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--color-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.profile-dropdown__name { font-size: 14px; font-weight: 600; color: var(--color-brand); margin: 0 0 2px; }
.profile-dropdown__email { font-size: 11px; color: var(--color-text-muted); margin: 0; }
.profile-dropdown__menu { padding: 8px 0; }
.profile-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 14px; color: var(--color-brand); text-decoration: none; transition: background 0.15s; width: 100%; background: none; border: none; cursor: pointer; text-align: left; }
.profile-menu-item:hover { background: var(--color-bg-light); }
.profile-menu-item--admin { color: #7c3aed; font-weight: 600; }
.profile-menu-item--logout { color: #dc2626; border-top: 1px solid var(--color-border-light); margin-top: 4px; }

/* ============================================================
   12. KOSZYK DRAWER
   ============================================================ */
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9998; }
.cart-overlay.active { display: block; }
.cart-drawer { position: fixed; top: 0; right: -420px; width: 420px; height: 100vh; background: var(--color-bg); z-index: 9999; display: flex; flex-direction: column; transition: right 0.3s ease; box-shadow: -4px 0 24px rgba(0,0,0,0.12); }
.cart-drawer.active { right: 0; }
.cart-drawer__header { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--color-border-light); flex-shrink: 0; }
.cart-drawer__title { font-size: 18px; font-weight: 600; color: var(--color-brand); margin: 0; }
.cart-drawer__close { background: none; border: none; cursor: pointer; color: var(--color-brand); padding: 4px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.cart-drawer__close:hover { background: var(--color-bg-light); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-loading, .cart-empty { text-align: center; color: var(--color-text-muted); font-size: 14px; padding: 40px 20px; }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border-light); position: relative; }
.cart-item__img { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__meta { font-size: 12px; color: var(--color-text-muted); margin: 0 0 4px; }
.cart-item__price { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0 0 8px; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button { width: 24px; height: 24px; border: 1px solid var(--color-border); background: var(--color-bg); border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--color-brand); line-height: 1; }
.cart-item__qty button:hover { background: var(--color-bg-light); }
.cart-item__qty span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; color: var(--color-brand); }
.cart-item__remove { position: absolute; top: 12px; right: 0; background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 4px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.cart-item__remove:hover { color: #dc2626; background: #fef2f2; }
.cart-drawer__footer { padding: 16px 20px; border-top: 1px solid var(--color-border-light); flex-shrink: 0; }
.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 600; color: var(--color-brand); margin-bottom: 12px; }
.cart-checkout-btn { width: 100%; padding: 12px; background: var(--color-brand); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.cart-checkout-btn:hover { opacity: 0.85; }
.cart-toast { position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%); background: var(--color-brand); color: #fff; padding: 12px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 500; z-index: 99999; transition: bottom 0.3s ease; white-space: nowrap; }
.cart-toast.active { bottom: 30px; }

/* ============================================================
   13. CHECKOUT
   ============================================================ */
.checkout-wrap { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.checkout-title { font-size: 24px; font-weight: 600; color: var(--color-brand); margin-bottom: 24px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: flex-start; }
.checkout-section { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 16px; }
.checkout-section__title { font-size: 16px; font-weight: 600; color: var(--color-brand); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border-light); }
.checkout-payment__option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; color: var(--color-brand); }
.checkout-payment__option--active { border-color: var(--color-brand); background: var(--color-bg-light); }
.checkout-payment__option input { accent-color: var(--color-brand); }
.checkout-payment__option strong { display: block; margin-bottom: 2px; }
.checkout-payment__option p { font-size: 12px; color: var(--color-text-muted); margin: 0; }
.checkout-notes { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-brand); resize: vertical; box-sizing: border-box; font-family: Arial, sans-serif; }
.checkout-notes:focus { border-color: var(--color-brand); outline: none; }
.checkout-summary { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 20px; }
.checkout-items { margin-bottom: 20px; }
.checkout-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); }
.checkout-item:last-child { border-bottom: none; }
.checkout-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.checkout-item__name { font-size: 12px; font-weight: 600; color: var(--color-brand); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkout-item__meta { font-size: 11px; color: var(--color-text-muted); margin: 0 0 4px; }
.checkout-item__price { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0; }
.checkout-totals { border-top: 1px solid var(--color-border-light); padding-top: 16px; margin-bottom: 20px; }
.checkout-totals__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--color-text-muted); margin-bottom: 8px; }
.checkout-totals__row--total { font-size: 16px; font-weight: 700; color: var(--color-brand); border-top: 1px solid var(--color-border-light); padding-top: 12px; margin-top: 8px; }
.checkout-submit { width: 100%; padding: 14px; background: var(--color-brand); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; transition: opacity 0.2s; margin-bottom: 12px; }
.checkout-submit:hover { opacity: 0.85; }
.checkout-note { font-size: 11px; color: var(--color-text-muted); text-align: center; line-height: 1.5; margin: 0; }

/* ============================================================
   14. ORDER SUCCESS
   ============================================================ */
.success-wrap { display: flex; justify-content: center; align-items: center; min-height: 60vh; padding: 40px 20px; }
.success-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 48px 40px; text-align: center; max-width: 480px; width: 100%; }
.success-icon { width: 80px; height: 80px; border-radius: 50%; background: #f0fdf4; border: 2px solid #22c55e; color: #22c55e; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-title { font-size: 28px; font-weight: 700; color: var(--color-brand); margin: 0 0 8px; }
.success-subtitle { font-size: 16px; color: var(--color-text-muted); margin: 0 0 28px; }
.success-details { background: var(--color-bg-light); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; text-align: left; }
.success-details__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--color-border-light); color: var(--color-text-muted); }
.success-details__row:last-child { border-bottom: none; }
.success-details__row strong { color: var(--color-brand); }
.success-info { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 28px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   15. ZAMÓWIENIA
   ============================================================ */
.orders-group { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 16px; }
.orders-group__header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border-light); flex-wrap: wrap; }
.orders-group__label { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.orders-group__label--unpaid { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.orders-group__label--placed { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.orders-group__info { font-size: 13px; color: var(--color-text-muted); flex: 1; }
.orders-group__total { padding: 12px 16px; text-align: right; font-size: 14px; color: var(--color-text-muted); border-top: 1px solid var(--color-border-light); background: var(--color-bg-light); }
.orders-group__total strong { color: var(--color-brand); font-size: 16px; }

/* ============================================================
   16. STRONA GŁÓWNA
   ============================================================ */
.home-section { margin: 24px 0; padding: 0 20px; }
.home-section--deals { background: linear-gradient(135deg, #fff9f0, #fff); padding: 20px; border-radius: var(--radius-md); border: 1px solid #fde68a; }
.home-section__header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.home-section__title { font-size: 18px; font-weight: 700; color: var(--color-brand); margin: 0; }
.home-section__sub { font-size: 13px; color: var(--color-text-muted); }
.home-products-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.home-products-scroll::-webkit-scrollbar { display: none; }
.home-product-card { flex: 0 0 150px; text-decoration: none; position: relative; }
.home-product-card__img { width: 150px; height: 150px; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-light); border: 1px solid var(--color-border-light); }
.home-product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.home-product-card:hover .home-product-card__img img { transform: scale(1.05); }
.home-product-card__name { font-size: 11px; color: var(--color-brand); margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.home-product-card__price { font-size: 12px; font-weight: 600; color: var(--color-brand); margin: 0; }
.home-product-card__badge { position: absolute; top: 8px; left: 8px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; z-index: 1; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.home-grid-card { position: relative; }
.home-grid-card__link { text-decoration: none; display: block; }
.home-grid-card__img { width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-light); border: 1px solid var(--color-border-light); }
.home-grid-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s; }
.home-grid-card:hover .home-grid-card__img img { transform: scale(1.04); }
.home-grid-card__name { font-size: 11px; color: var(--color-brand); margin: 6px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; min-height: 30px; }
.home-grid-card__price { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0 0 6px; }
.home-grid-card__colors { display: flex; gap: 4px; flex-wrap: wrap; }
.home-grid-card__color-dot { width: 20px; height: 20px; border-radius: 50%; background-size: cover; background-position: center; border: 1px solid var(--color-border-light); transition: transform 0.15s; display: block; }
.home-grid-card__color-dot:hover { transform: scale(1.2); border-color: var(--color-brand); }
.paginator { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.paginator__btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px; color: var(--color-brand); text-decoration: none; transition: all 0.15s; background: var(--color-bg);cursor:pointer; }
.paginator__btn:hover { background: var(--color-bg-light); border-color: var(--color-brand); }
.paginator__btn--active { background: var(--color-brand); border-color: var(--color-brand); color: #fff; font-weight: 700; }
.paginator__dots { color: var(--color-text-muted); font-size: 14px; padding: 0 4px; }

/* ============================================================
   17. SEKCJE STRONY
   ============================================================ */
.section { background: var(--color-bg); margin: 15px 0; padding: 15px; border-radius: var(--radius-md); }
.products { display: flex; gap: 10px; overflow-x: auto; }
.product { min-width: 100px; }
.product img { width: 100%; border-radius: var(--radius-sm); }
.price { font-weight: bold; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 0; }
.grid img { width: 100%; border-radius: var(--radius-sm); }

/* ============================================================
   18. FOOTER
   ============================================================ */
.footer { background: var(--color-bg-light); border-top: 1px solid var(--color-border); margin-top: 48px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 40px 20px 32px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.footer-logo span { font-size: 16px; font-weight: 700; color: var(--color-brand); }
.footer-tagline { font-size: 13px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 16px; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social__link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-brand); font-size: 13px; text-decoration: none; transition: all 0.2s; }
.footer-social__link:hover { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.footer-col__title { font-size: 14px; font-weight: 700; color: var(--color-brand); margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--color-text-muted); font-size: 13px; transition: color 0.15s; }
.footer-links a:hover { color: var(--color-brand); }
.footer-contact-info { color: var(--color-text-muted); line-height: 1.6; margin: 0 0 14px; }
.footer-contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--color-brand); color: #fff; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.footer-contact-btn:hover { opacity: 0.85; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-top: 1px solid var(--color-border); max-width: 1200px; margin: 0 auto; color: var(--color-text-muted); font-size: 12px; flex-wrap: wrap; gap: 8px; }
.footer-bottom__payment { display: flex; align-items: center; gap: 6px; }
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin: 0 2px;
}
 
.payment-badge--mtn {
    background: #fff8dc;
    color: #856404;
    border: 1px solid #FFCC00;
}
 
.payment-badge--airtel {
    background: #fff0f0;
    color: #dc2626;
    border: 1px solid #E40000;
}

/* ============================================================
   19. PANEL UŻYTKOWNIKA
   ============================================================ */
.account-wrap { display: flex; gap: 24px; max-width: 1200px; margin: 30px auto; padding: 0 20px; align-items: flex-start; }
.account-sidebar { width: 220px; flex-shrink: 0; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.account-sidebar__user { display: flex; align-items: center; gap: 12px; padding: 20px 16px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border-light); }
.account-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.account-sidebar__name { font-size: 14px; font-weight: 600; color: var(--color-brand); margin: 0 0 2px; }
.account-sidebar__email { font-size: 11px; color: var(--color-text-muted); margin: 0; word-break: break-all; }
.account-nav { padding: 8px 0; }
.account-nav__section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); padding: 12px 16px 4px; }
.account-nav__item { display: flex; align-items: center; gap: 10px; padding: 9px 16px; font-size: 13px; color: var(--color-brand); text-decoration: none; transition: background 0.15s; background: none; border: none; cursor: pointer; width: 100%; text-align: left; }
.account-nav__item:hover { background: var(--color-bg-light); }
.account-nav__item.active { background: var(--color-bg-light); font-weight: 600; border-left: 3px solid var(--color-brand); }
.account-nav__badge { margin-left: auto; background: var(--color-brand); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; }
.account-nav__signout { border-top: 1px solid var(--color-border-light); margin-top: 8px; padding-top: 4px; }
.account-nav__item--logout { color: #dc2626; }
.account-main { flex: 1; min-width: 0; }
.account-section-title { font-size: 20px; font-weight: 600; color: var(--color-brand); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border-light); }
.account-back { margin-bottom: 16px; font-size: 14px; }
.account-back a { color: #888; }
.account-back a:hover { color: var(--color-brand); }
.account-alert { padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; }
.account-alert--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.account-alert--error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.account-empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.account-empty svg { margin-bottom: 16px; opacity: 0.3; }
.account-empty p { font-size: 15px; margin-bottom: 20px; }
.account-btn { display: inline-flex; align-items: center; padding: 10px 20px; background: var(--color-brand); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: opacity 0.2s; }
.account-btn:hover { opacity: 0.85; color: #fff; }
.account-btn--sm { padding: 6px 14px; font-size: 13px; }
.order-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; }
.order-card__header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border-light); }
.order-card__number { font-size: 14px; font-weight: 600; color: var(--color-brand); margin-right: 12px; }
.order-card__date { font-size: 12px; color: var(--color-text-muted); }
.order-card__status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid; }
.order-card__body { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.order-card__info { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--color-text-muted); }
.order-card__total { font-weight: 600; color: var(--color-brand); font-size: 15px; }
.order-detail { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.order-detail__meta { display: flex; gap: 24px; padding: 16px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border-light); font-size: 14px; color: var(--color-text-muted); }
.order-detail__address { padding: 16px; border-bottom: 1px solid var(--color-border-light); font-size: 14px; line-height: 1.6; }
.order-detail__address strong { display: block; margin-bottom: 8px; color: var(--color-brand); }
.order-detail__items { padding: 16px; }
.order-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-border-light); }
.order-item:last-child { border-bottom: none; }
.order-item__img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.order-item__name { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0 0 4px; }
.order-item__meta { font-size: 12px; color: var(--color-text-muted); margin: 0 0 4px; }
.order-item__price { font-size: 13px; font-weight: 600; color: var(--color-brand); margin: 0; }
.order-detail__total { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 16px; background: var(--color-bg-light); font-size: 14px; border-top: 1px solid var(--color-border-light); }
.account-form { max-width: 560px; }
.account-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.account-form__group { margin-bottom: 16px; }
.account-form__group label { display: block; font-size: 13px; font-weight: 500; color: var(--color-brand); margin-bottom: 6px; }
.account-form__group input, .account-form__group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-size: 14px; color: var(--color-brand); background: var(--color-bg); box-sizing: border-box; }
.account-form__group input:focus, .account-form__group textarea:focus { border-color: var(--color-brand); outline: none; }
.account-form__group input.disabled { background: var(--color-bg-light); color: var(--color-text-muted); cursor: not-allowed; }
.account-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.account-product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border-light); transition: transform 0.2s; }
.account-product-card img:hover { transform: translateY(-2px); }
.account-product-card__name { font-size: 11px; color: var(--color-brand); margin: 6px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-product-card__price { font-size: 12px; font-weight: 600; color: var(--color-brand); margin: 0; }
.account-widgets { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.account-widget { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.account-widget__header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--color-bg-light); border-bottom: 1px solid var(--color-border-light); font-size: 13px; font-weight: 600; color: var(--color-brand); }
.account-widget__header a { font-size: 12px; font-weight: 400; color: var(--color-text-muted); }
.account-widget__products { display: flex; gap: 4px; padding: 10px; }
.account-widget__products img { width: calc(33% - 3px); aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.account-contact { max-width: 560px; font-size: 14px; color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   20. STRONA WYSZUKIWANIA
   ============================================================ */
.search-page { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.search-page__header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border-light); }
.search-page__title { font-size: 22px; font-weight: 600; color: var(--color-brand); margin: 0; }
.search-page__title span { color: var(--color-text-muted); font-weight: 400; }
.search-page__count { font-size: 14px; color: var(--color-text-muted); margin-bottom: 20px; }
.search-page__empty { text-align: center; padding: 60px 20px; color: var(--color-text-muted); }
.search-page__empty svg { opacity: 0.3; margin-bottom: 16px; }
.search-page__empty p { font-size: 16px; margin-bottom: 8px; }
.search-page__tip { font-size: 13px !important; margin-bottom: 24px !important; }

/* ============================================================
   21. RESPONSIVE — WSZYSTKIE MEDIA QUERIES W JEDNYM MIEJSCU
   ============================================================ */
@media (min-width: 768px) {
    .grid           { grid-template-columns: repeat(4, 1fr); }
    .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .footer-inner    { grid-template-columns: 1fr 1fr; gap: 24px; }
    .account-widgets { display: none; }
}

@media (max-width: 768px) {
    .topbar-inner            { flex-wrap: wrap; }
    .topbar-icons            { display: flex; gap: 2px; }
    .hamburger               { display: flex; align-items: center; justify-content: center; }
    .search-wrap             { order: 3; width: 100%; max-width: 100%; margin-top: 10px; }
    .menu-scroll             { display: none; }
    .categories-container_k  { display: none; }
    .categories-container    { width: 100%; padding: 0 40px; }
    .categories-grid         { max-height: 260px; }
    .carousel-arrow          { width: 32px; height: 32px; font-size: 20px; }
    .cat-item                { width: 90px; height: 90px; margin: 9px 0; }
    .cat-img                 { width: 60px; height: 60px; }
    .flexfotowa              { width: 140px; }
    .pd-container            { flex-direction: column; }
    .pdleft                  { width: 100%; padding: 10px; }
    .pdright                 { width: 100%; padding: 10px; }
    .checkout-grid           { grid-template-columns: 1fr; }
    .checkout-summary        { position: static; }
    .home-grid               { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .home-product-card       { flex: 0 0 130px; }
    .home-product-card__img  { width: 130px; height: 130px; }
    .account-wrap            { flex-direction: column; padding: 0 12px; }
    .account-sidebar         { width: 100%; }
    .account-form__row       { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .cart-drawer       { width: 100%; right: -100%; }
    .profile-dropdown  { right: -60px; width: 260px; }
    .footer-inner      { grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
    .footer-bottom     { flex-direction: column; text-align: center; }
}
/* ============================================================
   PAYMENT PAGE - wklej do css.css
   ============================================================ */

.payment-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 60vh;
    padding: 40px 20px;
}

.payment-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    max-width: 440px;
    width: 100%;
}

.payment-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.payment-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-brand);
    margin: 0 0 2px;
}

.payment-card__subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* Podsumowanie */
.payment-order-summary {
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 24px;
}

.payment-order-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-text-muted);
    padding: 4px 0;
}

.payment-order-row--total {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-brand);
    border-top: 1px solid var(--color-border-light);
    margin-top: 8px;
    padding-top: 8px;
}

/* Komunikat */
.payment-message {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
}

.payment-message--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.payment-message--success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Przycisk */
.payment-btn {
    width: 100%;
    padding: 14px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 16px;
}

.payment-btn:hover { opacity: 0.9; color: #fff; }
.payment-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.payment-btn--cancel {
    background: var(--color-bg-light);
    color: var(--color-brand);
    border: 1px solid var(--color-border);
    margin-top: 12px;
    font-size: 14px;
}

.payment-btn--cod {
    background: var(--color-brand);
    font-size: 14px;
}

/* Oczekiwanie */
.payment-waiting {
    text-align: center;
    padding: 20px 0;
}

.payment-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.payment-waiting__text {
    font-size: 15px;
    color: var(--color-brand);
    line-height: 1.6;
    margin-bottom: 12px;
}

.payment-waiting__text small {
    font-size: 13px;
    color: var(--color-text-muted);
}

.payment-countdown {
    font-size: 24px;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 8px;
}

/* Alternatywa COD */
.payment-alternative {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    font-size: 13px;
    color: var(--color-text-muted);
}

.payment-alternative p { margin: 0 0 8px; }

/* ============================================================
   STRONY STATYCZNE — static-page, contact, faq, track
   Dodaj na końcu css.css
   ============================================================ */

.static-page {
    max-width: 860px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.static-page__inner {}

.static-page__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
}

.static-page__lead {
    font-size: 16px;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.static-page__section {
    margin-bottom: 32px;
}

.static-page__section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-text);
}

.static-page__section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 10px;
}

.static-page__section a {
    color: var(--color-brand);
    text-decoration: underline;
}

.static-page__list {
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}

.static-page__note {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.static-page__table-wrap {
    overflow-x: auto;
}

.static-page__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.static-page__table th {
    background: var(--color-bg-light);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
}

.static-page__table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border);
}

/* ===== STEPS (How to Order) ===== */
.static-page__steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.static-page__step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.static-page__step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-brand);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.static-page__step-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.static-page__step-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ===== FAQ ===== */
.static-page__faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item__question {
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-light);
}

.faq-item__question::after {
    content: '+';
    font-size: 20px;
    color: var(--color-brand);
    flex-shrink: 0;
}

.faq-item[open] .faq-item__question::after {
    content: '−';
}

.faq-item__answer {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    border-top: 1px solid var(--color-border);
}

.faq-item__answer p { margin: 0; }

/* ===== TRACK ORDER ===== */
.track-order-box {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.track-order-box h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.track-order-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.track-order-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--color-bg);
    color: var(--color-text);
}

.track-order-btn {
    padding: 10px 20px;
    background: var(--color-brand);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.track-status-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 12px;
}

.track-status-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.track-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.track-status-item strong {
    display: block;
    margin-bottom: 2px;
}

.track-status-item p {
    margin: 0;
    color: var(--color-text-muted);
}

/* ===== ABOUT VALUES ===== */
.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.about-value {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
}

.about-value__icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.about-value h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.about-value p {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 24px;
}

.contact-alert--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.contact-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-form__group {
    margin-bottom: 16px;
}

.contact-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.2s;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: var(--color-brand);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-form__btn:hover { opacity: 0.9; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.contact-info__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.contact-info__item svg {
    color: var(--color-brand);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info__item strong {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-info__item a,
.contact-info__item span {
    color: var(--color-text-muted);
}

.contact-info__item a:hover { color: var(--color-brand); }

.breadcrumb {
    font-size: 13px;
    color: #666;
    margin: 0 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #666;
    text-decoration: none;
}
.breadcrumb a:hover { color: #000; }
.breadcrumb span { color: #999; }