/* ====================================================
   Header Top Bar & Sub Navigation
   ==================================================== */

/* --- Top Bar --- */
.header-topbar {
    background-color: var(--color-topbar-bg, #2d2d2d);
    color: var(--color-topbar-text, #e0e0e0);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    gap: 16px;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-link {
    color: var(--color-topbar-text, #e0e0e0);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.topbar-link:hover {
    color: #fff;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.topbar-phone svg {
    flex-shrink: 0;
}

.topbar-phone:hover {
    color: var(--color-primary-light, #5AACDE);
}

.topbar-call-btn {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    background-color: var(--color-brand-primary, #1E6DB4);
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.topbar-call-btn:hover {
    background-color: var(--color-brand-accent, #112244);
    color: #fff;
}

.topbar-messengers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.topbar-messenger:hover {
    opacity: 1;
}

.topbar-messenger img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* --- Catalog Button --- */
.catalog-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 56px;
    min-width: 280px;
    background-color: var(--color-primary, #1E6DB4);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.catalog-btn:hover {
    background-color: var(--color-primary-dark, #112244);
    color: #fff;
    text-decoration: none;
}

.catalog-btn svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

/* --- Sub Navigation --- */
.header-subnav {
    background-color: var(--color-primary, #1E6DB4);
    color: #fff;
}

.subnav-content {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.subnav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: var(--radius-sm, 4px);
    white-space: nowrap;
}

.subnav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.subnav-link--accent {
    color: #fff;
    font-weight: 600;
}

.subnav-link svg {
    flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .header-topbar {
        display: none;
    }

    .header-subnav {
        display: none;
    }

    .catalog-btn.desktop-only {
        display: none;
    }
}

@media (min-width: 993px) {
    .header-topbar {
        display: block;
    }

    .logo-link {
        gap: 14px;
    }

    .logo-img {
        height: 72px;
    }
}
.header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.contact-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-cta-primary);
    padding: 0;
}

.contact-icon-btn:hover {
    transform: scale(1.1);
    color: var(--color-brand-light);
}

.contact-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

.messenger-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.phone-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.phone-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.phone-popup-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--neutral-medium);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.phone-popup-close:hover {
    color: var(--neutral-dark);
}

.phone-popup-number {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    padding-right: 24px;
    white-space: nowrap;
}

.phone-popup-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-cta-primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.phone-popup-copy:hover {
    background: var(--color-brand-light);
}

.phone-popup-copy svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

@media (max-width: 991px) {
    .header-contacts {
        gap: 8px;
    }
    
    .contact-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .contact-icon-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .messenger-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 767px) {
    .header-contacts {
        display: none;
    }
}

/* --- Phone Float Widget --- */
.phone-float {
    position: fixed;
    /* right:0 + padding-inline-end: надійніше за right:Npx при overflow на корені (WebKit) */
    inset: auto 0 max(28px, calc(env(safe-area-inset-bottom, 0px) + 4px)) auto;
    z-index: 1100;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
    /* мін. відступ + safe-area + запас під box-shadow (16px blur) і scale(1.06) на hover */
    padding-inline-end: calc(32px + env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    pointer-events: none;
}

.phone-float > * {
    pointer-events: auto;
}

.phone-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-cta-primary, #1E6DB4);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.phone-float-btn:hover {
    background-color: var(--color-primary-dark, #112244);
    transform: scale(1.06);
}

.phone-float-btn svg {
    pointer-events: none;
}

.phone-float-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-float-panel[hidden] {
    display: none;
}

.phone-float-number {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-dark, #1a1a1a);
    white-space: nowrap;
}

.phone-float-call,
.phone-float-callback {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.phone-float-call {
    background-color: var(--color-cta-primary, #1E6DB4);
    color: #fff;
}

.phone-float-call:hover {
    background-color: var(--color-primary-dark, #112244);
    color: #fff;
}

.phone-float-callback {
    background-color: transparent;
    color: var(--color-cta-primary, #1E6DB4);
    border: 1.5px solid var(--color-cta-primary, #1E6DB4);
}

.phone-float-callback:hover {
    background-color: var(--color-cta-primary, #1E6DB4);
    color: #fff;
}

.phone-float-call--stub,
.phone-float-callback--stub {
    opacity: 0.55;
    cursor: not-allowed;
    user-select: none;
}

/* phone-float-callback як <button> */
button.phone-float-callback {
    width: 100%;
    cursor: pointer;
    border: 1.5px solid var(--color-cta-primary, #1E6DB4);
    background-color: transparent;
    color: var(--color-cta-primary, #1E6DB4);
    font-family: inherit;
}

button.phone-float-callback:hover {
    background-color: var(--color-cta-primary, #1E6DB4);
    color: #fff;
}

@media (max-width: 768px) {
    .phone-float {
        inset: auto 0 calc(80px + max(8px, env(safe-area-inset-bottom, 0px))) auto;
        padding-inline-end: calc(32px + env(safe-area-inset-right, 0px));
    }
}

/* ── Callback Modal ──────────────────────────────────────────────────────── */

.callback-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-modal[hidden] {
    display: none;
}

.callback-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.callback-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    padding: 32px 28px 28px;
    width: min(420px, calc(100vw - 32px));
    z-index: 1;
}

.callback-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--neutral-medium, #555);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.callback-modal__close:hover {
    background-color: var(--neutral-light, #f0f0f0);
}

.callback-modal__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-dark, #1a1a1a);
}

.callback-modal__desc {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--neutral-medium, #666);
}

.callback-modal__form .form-group {
    margin-bottom: 12px;
}

.callback-modal__error {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: var(--color-danger, #dc3545);
}

body.modal-open {
    overflow: hidden;
}

/* Сторінка контактів: якорі не ховаються під sticky header */
.contacts-main .contact-anchor-card {
    scroll-margin-top: 6rem;
}

/* ═══════════════════════════════════════════════════════════════════
   MEGA-MENU  — desktop catalog dropdown (3-level: L1 → L2 → L3)
   Desktop only; mobile uses existing burger/mobile-catalog flow.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Catalog button active state ── */
.catalog-btn[aria-expanded="true"] {
    background-color: var(--color-brand-accent, #112244);
}

/* ── Overlay backdrop ── */
.mega-menu__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1099;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.mega-menu:not([hidden]) .mega-menu__backdrop {
    opacity: 1;
    pointer-events: auto;
}

/* ── Wrapper: positioned inside .main-header-wrap ── */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
}

.mega-menu[hidden] {
    display: none;
}

/* ── Main body ── */
.mega-menu__body {
    display: flex;
    background: var(--color-white, #fff);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    border-top: 2px solid var(--color-brand-primary, #1E6DB4);
    max-height: calc(100vh - 130px);
    overflow: hidden;
    position: relative;
    z-index: 1100;
}

/* ── L1 Sidebar ── */
.mega-menu__sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--color-bg-primary, #EEF5FC);
    overflow-y: auto;
    border-right: 1px solid var(--color-border-light, #E0E0E0);
    padding: 8px 0;
    display: flex;
    flex-direction: column;
}

.mega-menu__l1-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary, #2C2C2C);
    text-align: left;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.35;
}

.mega-menu__l1-item:hover,
.mega-menu__l1-item[aria-expanded="true"] {
    background-color: var(--color-white, #fff);
    border-left-color: var(--color-brand-primary, #1E6DB4);
    color: var(--color-brand-primary, #1E6DB4);
}

.mega-menu__l1-icon {
    font-size: 1.1em;
    flex-shrink: 0;
}

.mega-menu__l1-name {
    flex: 1;
}

.mega-menu__l1-arrow {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s;
}

.mega-menu__l1-item:hover .mega-menu__l1-arrow,
.mega-menu__l1-item[aria-expanded="true"] .mega-menu__l1-arrow {
    opacity: 1;
}

.mega-menu__all-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    margin-top: auto;
    border-top: 1px solid var(--color-border-light, #E0E0E0);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-brand-primary, #1E6DB4);
    text-decoration: none;
    transition: color 0.15s;
}

.mega-menu__all-link:hover {
    color: var(--color-brand-accent, #112244);
    text-decoration: none;
}

/* ── Panels (L2 columns + L3 links) ── */
.mega-menu__panels {
    flex: 1;
    overflow-y: auto;
    min-width: 0;
}

.mega-menu__panel {
    height: 100%;
}

.mega-menu__panel[hidden] {
    display: none;
}

.mega-menu__panel-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 20px 24px;
    align-content: flex-start;
}

/* ── L2 Column ── */
.mega-menu__column {
    flex: 0 0 200px;
    min-width: 180px;
    max-width: 220px;
    padding: 0 12px 20px 0;
}

.mega-menu__col-title {
    display: flex;
    align-items: flex-end;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-brand-accent, #112244);
    text-decoration: none;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-brand-primary, #1E6DB4);
    transition: color 0.15s;
    line-height: 1.3;
    /* two text lines: 2 × 0.875rem × 1.3 + padding-bottom */
    min-height: calc(0.875rem * 1.3 * 2 + 6px);
}

.mega-menu__col-title:hover {
    color: var(--color-brand-primary, #1E6DB4);
    text-decoration: none;
}

.mega-menu__col-title--solo {
    font-weight: 500;
    border-bottom-color: var(--color-border-light, #E0E0E0);
}

/* ── L3 links ── */
.mega-menu__col-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-menu__col-link {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-secondary, #6B6B6B);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.15s;
    line-height: 1.35;
}

.mega-menu__col-link:hover {
    color: var(--color-brand-primary, #1E6DB4);
    text-decoration: none;
}

/* ── Scrollbar styling ── */
.mega-menu__sidebar::-webkit-scrollbar,
.mega-menu__panels::-webkit-scrollbar {
    width: 4px;
}

.mega-menu__sidebar::-webkit-scrollbar-thumb,
.mega-menu__panels::-webkit-scrollbar-thumb {
    background: var(--color-border-medium, #BDBDBD);
    border-radius: 4px;
}

/* ── Wrapper that provides positioning context for mega-menu ── */
.main-header-wrap {
    position: relative;
}

/* ── Hide on mobile (burger menu handles catalog) ── */
@media (max-width: 991px) {
    .mega-menu {
        display: none !important;
    }
}
/* ============================================ */
/*           ЗАГАЛЬНІ СТИЛІ КАРТОК ТОВАРІВ    */
/*     (Використовуються на всіх сторінках)   */
/* ============================================ */

/* CSS-змінні для карток */
:root {
  /* Розміри карток */
  --card-max-width: 260px;
  --card-border-radius: 12px;
  --card-aspect-ratio: 1 / 1;
  --card-padding: 12px;
  --card-gap: 8px;
  
  /* Бейджі */
  --badge-padding: 4px 8px;
  --badge-radius: 16px;
  --badge-font-size: 10px;
  --badge-offset: 8px;
  
  /* Кнопка обраного */
  --wishlist-size: 32px;
  --wishlist-icon-size: 16px;
  --wishlist-offset: 8px;
  
  /* Кольори карток */
  --card-bg: var(--color-white);
  --card-border: var(--color-gray-200);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-lg);
}

/* ============================================ */
/*              БАЗОВА КАРТКА ТОВАРУ           */
/* ============================================ */

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-border-radius);
  overflow: hidden;
  transition: all var(--transition-normal);
  height: 100%;
  width: 100%;
  position: relative;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

/* ============================================ */
/*              МЕДІАБЛОК КАРТКИ               */
/* ============================================ */

.product-card__media,
.product-image {
  position: relative;
  aspect-ratio: var(--card-aspect-ratio);
  overflow: hidden;
  background: var(--color-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Посилання заповнює медіаблок, щоб % розміри img рахувались від контейнера з aspect-ratio */
.product-card__media > a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 100%;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.product-card__image,
.product-image img {
  width: 100%;
  height: 100%;
  max-width: 300px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card__image,
.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-card__placeholder,
.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: var(--font-size-3xl);
  color: var(--color-gray-400);
  background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
}

/* ============================================ */
/*              КНОПКА ОБРАНОГО                */
/* ============================================ */

.product-card__wishlist,
.wishlist-btn,
.wishlist-icon {
  position: absolute;
  top: var(--wishlist-offset);
  right: var(--wishlist-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--wishlist-size);
  height: var(--wishlist-size);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.product-card__wishlist:hover,
.wishlist-btn:hover,
.wishlist-icon:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: scale(1.1);
}

.product-card__wishlist--active,
.wishlist-btn.active,
.wishlist-icon.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.product-card__wishlist-icon,
.heart-icon {
  font-size: var(--wishlist-icon-size);
  line-height: 1;
  transition: transform 0.2s ease;
}

.product-card__wishlist:hover .product-card__wishlist-icon,
.wishlist-btn:hover .heart-icon,
.wishlist-icon:hover .heart-icon {
  transform: scale(1.1);
}

/* ============================================ */
/*              БЕЙДЖІ ТОВАРУ                  */
/* ============================================ */

.product-card__badges,
.product-badges,
.product-stickers {
  position: absolute;
  top: var(--badge-offset);
  left: var(--badge-offset);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 15;
  transform: translateX(-2px) translateY(-2px);
}

.product-badge,
.badge,
.product-sticker {
  padding: var(--badge-padding);
  border-radius: var(--badge-radius);
  font-size: var(--badge-font-size);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

.product-badge--sale,
.badge-sale,
.sale-badge {
  background: var(--badge-sale);
  color: var(--color-white);
}

.product-badge--new,
.badge-new {
  background: var(--badge-new);
  color: var(--color-white);
}

.product-badge--top,
.badge-top,
.featured-badge {
  background: var(--badge-top);
  color: var(--color-text-primary);
}

.product-badge--hit,
.badge-hit {
  background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
  color: var(--color-white);
}

/* ============================================ */
/*              КОНТЕНТ КАРТКИ                 */
/* ============================================ */

.product-card__content,
.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--card-padding);
  gap: var(--card-gap);
  min-height: 0;
}

.product-card__name,
.product-name,
.product-content h3 {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--color-gray-900);
  line-height: 1.3;
  margin: 0 0 var(--card-gap) 0;
  word-spacing: 0.1em;
  letter-spacing: 0.01em;
  
  /* Обмеження до 2 рядків */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

.product-card__link,
.product-link {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

.product-card__link:hover,
.product-link:hover {
  color: var(--color-primary);
}

/* ============================================ */
/*              ЦІНА ТОВАРУ                    */
/* ============================================ */

.product-card__price,
.product-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
  margin-bottom: 0;
  flex-wrap: wrap;
  min-height: 24px;
}

.product-card__price-current,
.price-current {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  line-height: 1;
}

.product-card__price-old,
.price-old {
  font-size: 13px;
  color: var(--color-gray-500);
  text-decoration: line-through;
  line-height: 1;
}

.product-card__price-save {
  padding: 2px 6px;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.price-wholesale {
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
}

.price-type {
  font-size: 10px;
  color: var(--color-gray-500);
  text-transform: uppercase;
}

/* ============================================ */
/*              ДІЇ З ТОВАРОМ                  */
/* ============================================ */

.product-card__actions,
.product-actions {
  margin-top: auto;
  padding: 0 var(--card-padding) var(--card-padding);
}

.product-card__add-cart,
.btn-add-cart {
  width: 100%;
  padding: 10px var(--space-sm);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: auto;
}

.product-card__add-cart:hover,
.btn-add-cart:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 109, 180, 0.3);
}

.product-card__add-cart:active,
.btn-add-cart:active {
  transform: translateY(0);
}

.product-card__add-cart--added,
.btn-add-cart.added {
  background: var(--color-success);
  pointer-events: none;
}

.product-card__add-cart--disabled,
.btn-add-cart:disabled {
  background: var(--color-gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}

.product-card__add-cart--loading,
.btn-add-cart.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ============================================ */
/*              АДАПТИВНІСТЬ                   */
/* ============================================ */

/* Планшети */
@media (max-width: 768px) {
  :root {
    --card-max-width: 220px;
    --card-padding: 10px;
    --card-gap: 6px;
    --wishlist-size: 30px;
    --wishlist-icon-size: 15px;
    --badge-font-size: 9px;
  }
  
  .product-card__name,
  .product-name,
  .product-content h3 {
    font-size: 13px;
    min-height: 34px;
  }
  
  .product-card__price-current,
  .price-current {
    font-size: 15px;
  }
  
  .product-card__add-cart,
  .btn-add-cart {
    font-size: 12px;
    padding: 8px;
  }
}

/* Мобільні */
@media (max-width: 480px) {
  :root {
    --card-padding: 8px;
    --card-gap: 4px;
    --wishlist-size: 28px;
    --wishlist-icon-size: 14px;
    --wishlist-offset: 6px;
    --badge-font-size: 8px;
    --badge-offset: 6px;
  }
  
  .product-card__name,
  .product-name,
  .product-content h3 {
    font-size: 12px;
    min-height: 30px;
  }
  
  .product-card__price-current,
  .price-current {
    font-size: 14px;
  }
  
  .product-card__price-old,
  .price-old {
    font-size: 11px;
  }
  
  .product-card__add-cart,
  .btn-add-cart {
    padding: 6px;
    font-size: 11px;
  }
  
  .product-badge,
  .badge,
  .product-sticker {
    padding: 2px 6px;
    font-size: var(--badge-font-size);
  }
}

/* ============================================ */
/*              УТИЛІТНІ КЛАСИ                 */
/* ============================================ */

.card-compact {
  --card-max-width: 200px;
  --card-padding: 8px;
}

.card-large {
  --card-max-width: 300px;
  --card-padding: 16px;
}

.card-rounded {
  --card-border-radius: 16px;
}

.card-square {
  --card-aspect-ratio: 1 / 1;
}

.card-portrait {
  --card-aspect-ratio: 3 / 4;
}

.no-hover .product-card:hover {
  transform: none;
  box-shadow: var(--card-shadow);
}

.loading-skeleton .product-card {
  background: var(--color-gray-100);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
/* ============================================ */
/*         ІКОНКИ ТА БЕЙДЖІ - СТАНДАРТИ        */
/*      Єдиний підхід для всього проєкту      */
/* ============================================ */

/* ========== ІКОНКИ ========== */

/* Base icon class */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Icon sizes */
.icon-xs { width: 16px; height: 16px; }
.icon-sm { width: 20px; height: 20px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* SVG icons default styling */
.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
}

/* Icon в кнопках */
.btn .icon {
  margin-right: var(--spacing-xs);
}

.btn .icon-only {
  margin: 0;
}

/* ========== БЕЙДЖІ ========== */

/* Universal badge base */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Badge sizes */
.badge-sm {
  padding: 2px 6px;
  font-size: 10px;
}

.badge-lg {
  padding: 6px 12px;
  font-size: 12px;
}

/* Badge colors - semantic */
.badge-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.badge-secondary {
  background: var(--color-secondary);
  color: var(--color-neutral-dark);
}

.badge-success {
  background: var(--color-success);
  color: var(--color-white);
}

.badge-warning {
  background: var(--color-warning);
  color: var(--color-neutral-dark);
}

.badge-danger {
  background: var(--color-danger);
  color: var(--color-white);
}

.badge-info {
  background: var(--color-info);
  color: var(--color-white);
}

/* Badge variants - outline */
.badge-outline {
  background: transparent;
  border: 2px solid currentColor;
}

.badge-outline.badge-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ========== PRODUCT BADGES (на картках) ========== */

/* Container для бейджів на product card */
.product-badges,
.product-card__badges,
.product-stickers {
  position: absolute;
  top: var(--badge-offset, 8px);
  left: var(--badge-offset, 8px);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  z-index: 15;
}

/* Product badge base */
.product-badge,
.product-sticker {
  display: inline-block;
  padding: var(--badge-padding, 4px 8px);
  border-radius: var(--badge-radius, 16px);
  font-size: var(--badge-font-size, 10px);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--color-white);
  line-height: 1;
  white-space: nowrap;
}

/* Product badge types */
.product-badge--sale,
.badge-sale,
.sale-badge,
.sticker-sale {
  background: var(--badge-sale);
  color: var(--color-white);
}

.product-badge--new,
.badge-new,
.new-badge,
.sticker-new {
  background: var(--badge-new);
  color: var(--color-white);
}

.product-badge--top,
.product-badge--hit,
.badge-top,
.badge-hit,
.featured-badge,
.sticker-top {
  background: var(--badge-top);
  color: var(--color-text-primary);
}

/* ========== NOTIFICATION BADGES ========== */

/* Badge у навігації (cart/wishlist counts) */
.nav-badge,
.mobile-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  padding: 2px 6px;
  border-radius: 50px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

/* Badge в user dropdown */
.badge-small {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: var(--font-weight-semibold);
}

/* Status badges (для замовлень) */
.order-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-confirmed {
  background: #d1ecf1;
  color: #0c5460;
}

.status-processing {
  background: #d1e7ff;
  color: #004085;
}

.status-shipped {
  background: #cfe2ff;
  color: #084298;
}

.status-delivered,
.status-completed {
  background: #d4edda;
  color: #155724;
}

.status-cancelled {
  background: #f8d7da;
  color: #721c24;
}

/* ========== HEART ICON (Wishlist) ========== */

/* Універсальна іконка серця */
.icon-heart,
.product-card__wishlist-icon,
.heart-icon {
  font-size: 16px;
  line-height: 1;
  transition: transform var(--transition-fast);
}

/* Animation для wishlist */
.animate-heart {
  animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.1); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
  .badge {
    padding: 3px 6px;
    font-size: 10px;
  }
  
  .nav-badge,
  .mobile-badge {
    font-size: 10px;
    min-width: 16px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .product-badge,
  .product-sticker {
    padding: 2px 6px;
    font-size: var(--badge-font-size, 8px);
  }
}

/* ========== ACCESSIBILITY ========== */

/* High contrast підтримка */
@media (prefers-contrast: high) {
  .badge,
  .product-badge {
    border-width: 3px;
  }
}

/* Reduced motion підтримка */
@media (prefers-reduced-motion: reduce) {
  .animate-heart {
    animation: none;
  }
  
  .icon,
  .badge {
    transition: none;
  }
}

.hidden {
    display: none;
}

.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-cta-primary);
    color: white;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.badge.hidden {
    display: none;
}

.wishlist-link,
.cart-link,
.compare-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-link .badge,
.cart-link .badge,
.compare-link .badge {
    position: absolute;
    top: -6px;
    right: -6px;
}

.compare-link--active {
    color: var(--color-cta-primary);
}

.nav-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-cta-primary);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.nav-badge-hidden {
    display: none;
}

/* Хедер: іконки + бейджі (десктоп і мобільна панель дій — спільні правила) */
.header-actions.desktop-actions .wishlist-link,
.header-actions.desktop-actions .compare-link,
.header-actions.desktop-actions .cart-link,
.header-actions.mobile-actions .cart-link,
.header-actions.mobile-actions .compare-link,
.header-actions.mobile-actions .wishlist-link {
    gap: var(--spacing-xs);
    color: var(--color-text-primary);
    text-decoration: none;
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    background: transparent;
    flex-shrink: 0;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
}

.header-actions.desktop-actions .wishlist-link:hover,
.header-actions.desktop-actions .compare-link:hover,
.header-actions.desktop-actions .cart-link:hover,
.header-actions.mobile-actions .cart-link:hover,
.header-actions.mobile-actions .compare-link:hover,
.header-actions.mobile-actions .wishlist-link:hover {
    background: rgba(30, 109, 180, 0.08);
    color: var(--color-text-primary);
}

.header-actions.desktop-actions .compare-link.compare-link--active,
.header-actions.mobile-actions .compare-link.compare-link--active {
    color: var(--color-cta-primary);
}

.header-actions.desktop-actions .compare-link.compare-link--active:hover,
.header-actions.mobile-actions .compare-link.compare-link--active:hover {
    background: rgba(30, 109, 180, 0.08);
    color: var(--color-cta-primary);
}

.header-actions.desktop-actions .wishlist-link .action-icon,
.header-actions.desktop-actions .compare-link .action-icon,
.header-actions.desktop-actions .cart-link .action-icon,
.header-actions.mobile-actions .wishlist-link .action-icon,
.header-actions.mobile-actions .compare-link .action-icon,
.header-actions.mobile-actions .cart-link .action-icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

.header-actions.desktop-actions .wishlist-link .badge,
.header-actions.desktop-actions .compare-link .badge,
.header-actions.desktop-actions .cart-link .badge,
.header-actions.mobile-actions .wishlist-link .badge,
.header-actions.mobile-actions .compare-link .badge,
.header-actions.mobile-actions .cart-link .badge {
    top: -5px;
    right: -5px;
}

@media (max-width: 991.98px) {
    .header-actions .wishlist-link,
    .header-actions .compare-link,
    .header-actions .cart-link {
        padding: var(--spacing-sm);
    }
}

.footer-main {
  background: var(--color-text-primary);
  color: var(--color-text-white);
  padding: var(--spacing-xxl, 60px) 0 var(--spacing-lg, 24px);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl, 32px);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-col {
  margin-bottom: var(--spacing-lg, 24px);
}

.footer-title {
  color: var(--color-text-white);
  font-size: var(--font-size-lg, 18px);
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: var(--spacing-md, 16px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-links li {
  margin-bottom: var(--spacing-sm, 12px);
}

.footer-links a {
  color: var(--color-bg-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition-fast, 0.2s);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-brand-light);
  transform: translateX(3px);
}

.footer-contact {
  margin-top: var(--spacing-lg, 24px);
  margin-bottom: var(--spacing-md, 16px);
}

.footer-phone,
.footer-email {
  margin-bottom: var(--spacing-sm, 12px);
}

.footer-phone a,
.footer-email a {
  color: var(--color-text-white);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast, 0.2s);
}

.footer-phone a:hover,
.footer-email a:hover {
  color: var(--color-brand-accent);
}

.footer-messengers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.footer-messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-messenger-viber {
  background: #7360f2;
  color: #fff;
}

.footer-messenger-viber:hover {
  background: #5a4bbf;
  transform: translateY(-2px) scale(1.05);
}

.footer-messenger-telegram {
  background: #0088cc;
  color: #fff;
}

.footer-messenger-telegram:hover {
  background: #006699;
  transform: translateY(-2px) scale(1.05);
}

.footer-messenger-whatsapp {
  background: #25d366;
  color: #fff;
}

.footer-messenger-whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px) scale(1.05);
}

.footer-messenger-link svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .footer-messengers {
    justify-content: flex-start;
    gap: 8px;
  }
  
  .footer-messenger-link {
    width: 32px;
    height: 32px;
  }
  
  .footer-messenger-link svg {
    width: 16px;
    height: 16px;
  }
}

.footer-schedule {
  margin-top: var(--spacing-lg, 24px);
  padding: var(--spacing-md, 16px);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 8px);
}

.footer-schedule__title {
  color: var(--color-text-white);
  font-weight: 600;
  margin-bottom: var(--spacing-xs, 8px);
}

.footer-schedule p {
  margin-bottom: var(--spacing-xs, 8px);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-bg-secondary);
}

.footer-address {
  margin-top: var(--spacing-md, 16px);
  padding-top: var(--spacing-md, 16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
  margin-top: var(--spacing-lg, 24px);
}

.footer-social__title {
  color: var(--color-text-white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm, 12px);
}

.social-links {
  display: flex;
  gap: var(--spacing-sm, 12px);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-white);
  transition: all var(--transition-normal, 0.3s);
  text-decoration: none;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--color-brand-accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-subscribe-text {
  color: var(--color-bg-secondary);
  font-size: 14px;
  margin-bottom: var(--spacing-md, 16px);
  line-height: 1.5;
}

.footer-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 12px);
}

.footer-input {
  padding: 14px var(--spacing-md, 16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  font-size: 15px;
  transition: all var(--transition-fast, 0.2s);
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-input:focus {
  outline: none;
  border-color: var(--color-brand-light);
  background: rgba(255, 255, 255, 0.15);
}

.footer-privacy {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs, 8px);
  font-size: 12px;
  color: var(--color-bg-secondary);
  cursor: pointer;
  margin-top: var(--spacing-md, 16px);
  margin-bottom: var(--spacing-md, 16px);
}

.footer-privacy input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.footer-privacy a {
  color: var(--color-brand-light);
  text-decoration: underline;
}

.footer-privacy a:hover {
  color: var(--color-brand-accent);
}

.footer-submit-btn {
  padding: var(--spacing-sm, 12px) var(--spacing-md, 16px);
  background: var(--color-brand-primary);
  color: var(--color-text-white);
  border: none;
  border-radius: var(--radius-md, 8px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal, 0.3s);
}

.footer-submit-btn:hover {
  background: var(--color-brand-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 109, 180, 0.3);
}

.footer-bottom {
  background: var(--color-text-primary);
  padding: var(--spacing-md, 16px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md, 16px);
}

.footer-copyright {
  margin: 0;
  color: var(--color-bg-secondary);
  font-size: 14px;
}

.footer-developer {
  margin: 0;
  color: var(--color-bg-secondary);
  font-size: 13px;
}

.footer-developer a {
  color: var(--color-brand-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-developer a:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.55);
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg, 24px);
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: var(--spacing-xl, 40px) 0 var(--spacing-md, 16px);
  }
  
  .footer-bottom__content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xs, 8px);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg, 24px);
  }
  
  .footer-title {
    font-size: 16px;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
}
/* Subscribe form messages */
.subscribe-message {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 0.9rem;
  text-align: center;
  animation: subscribeIn 0.3s ease;
}

.subscribe-message--success {
  background: rgba(76, 175, 80, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.subscribe-message--error {
  background: rgba(229, 57, 53, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(229, 57, 53, 0.3);
}

.subscribe-message--fadeout {
  animation: subscribeOut 0.3s ease forwards;
}

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

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

/* Footer info accordion */
#footerInfoDropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#footerInfoDropdown.footer-info-open {
  max-height: 600px;
}
/* Стилі для категорій товарів - КВАДРАТНІ КАРТКИ З КАРТИНКОЮ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-md);
}

.category-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    position: relative;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-name {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    color: rgb(0, 0, 0);
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.category-card:hover .category-name {
    color: #ffd700;
}

/* Виділення для акційних товарів */
.category-featured {
    border: 3px solid #ff9800;
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    animation: featuredPulse 2s ease-in-out infinite;
}

.category-featured .category-content {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    bottom: 0;
    top: auto;
    padding: 15px;
}

.category-featured .category-name {
    color: white;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.category-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255, 152, 0, 0.6);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    color: #ee5a52;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: badgeBounce 1.5s ease-in-out infinite;
    z-index: 2;
}


/* Анімації */
@keyframes featuredPulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(255, 152, 0, 0.6);
    }
}

@keyframes badgeBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}


/* Адаптивність */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-top: 25px;
        padding: 0 var(--spacing-md);
    }
    
    .category-card {
        aspect-ratio: 1;
        min-height: 140px;
    }
    
    .category-content {
        padding: 14px;
    }
    
    .category-name {
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 20px;
        padding: 0 var(--spacing-md);
    }
    
    .category-card {
        aspect-ratio: 1;
        min-height: 120px;
    }
    
    .category-content {
        padding: 12px;
    }
    
    .category-name {
        font-size: 0.9em;
        line-height: 1.3;
    }
    
    .category-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 0.65em;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 15px;
        padding: 0 var(--spacing-md);
    }
    
    .category-card {
        aspect-ratio: 1;
        min-height: 140px;
    }
    
    .category-content {
        padding: 10px;
    }
    
    .category-name {
        font-size: 0.85em;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .categories-grid {
        gap: 10px;
        padding: 0 var(--spacing-sm);
    }
    
    .category-card {
        min-height: 120px;
    }
    
    .category-content {
        padding: 8px;
    }
    
    .category-name {
        font-size: 0.8em;
        line-height: 1.3;
    }
}

/* Спеціальні стилі для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .category-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .category-card:hover {
        -webkit-transform: translateY(-5px) translateZ(0);
        transform: translateY(-5px) translateZ(0);
    }
    
    .category-featured:hover {
        -webkit-transform: translateY(-8px) translateZ(0);
        transform: translateY(-8px) translateZ(0);
    }
}
.promo-images-section {
    padding: 40px 0;
}

.promo-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.promo-image-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-image-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 109, 180, 0.15);
}

.promo-image-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .promo-images-section {
        padding: 30px 0;
    }

    .promo-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .promo-image-item {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .promo-images-section {
        padding: 20px 0;
    }

    .promo-images-grid {
        gap: 12px;
        padding: 0 10px;
    }

    .promo-image-item {
        border-radius: 8px;
    }
}

@supports (-webkit-touch-callout: none) {
    .promo-image-item {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .promo-image-item:hover {
        -webkit-transform: translateY(-4px) translateZ(0);
        transform: translateY(-4px) translateZ(0);
    }
}

.brands-section {
  padding: 60px 0;
}

.brands-section .section-title {
  text-align: center;
  margin-bottom: 40px;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  aspect-ratio: 16/9;
}

.brand-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(30, 109, 180, 0.2);
}

.brand-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
  }
}

@media (max-width: 991px) {
  .brands-section {
    padding: 40px 0;
  }
  
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
}

@media (max-width: 768px) {
  .brands-section {
    padding: 30px 0;
  }
  
  .brands-section .section-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
}

@media (max-width: 480px) {
  .brands-grid {
    gap: 12px;
  }
  
}
/* Секція відгуків */

.reviews-section {
    padding: 60px 0;
    margin-top: 40px; /* Відступ від основного контенту */
    clear: both; /* Гарантує що секція не перекривається з sidebar */
}

.reviews-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 40px;
    text-align: center;
}

.reviews-slider-container {
    position: relative;
    padding: 0 50px;
}

.reviews-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 20px 0;
    margin: 0 -12px;
    padding: 20px 12px;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    flex: 0 0 380px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.review-card.expanded {
    height: auto;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-light);
}

.review-product-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--gray-light);
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    color: var(--neutral-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.review-rating {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 16px;
    color: var(--badge-top);
}

.star.empty {
    color: var(--gray-medium);
}

.review-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30, 109, 180, 0.1);
    color: var(--color-cta-primary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.review-text {
    color: var(--neutral-medium);
    line-height: 1.6;
    font-size: 14px;
    position: relative;
}

.review-text.collapsed {
    max-height: 60px;
    overflow: hidden;
}

.review-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(transparent, var(--white));
}

.review-text.expanded {
    max-height: none;
    overflow: visible;
}

.review-read-more {
    background: none;
    border: none;
    color: var(--color-cta-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    transition: opacity 0.3s ease;
}

.review-read-more:hover {
    opacity: 0.8;
}

.review-date {
    font-size: 12px;
    color: var(--gray-medium);
    text-align: right;
}

.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-light);
    color: var(--neutral-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.reviews-nav-btn:hover {
    background: var(--color-cta-primary);
    border-color: var(--color-cta-primary);
    color: var(--white);
}

.reviews-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-prev-btn {
    left: 0;
}

.reviews-next-btn {
    right: 0;
}

/* Планшетна версія */
@media (max-width: 1024px) {
    .reviews-section {
        padding: 50px 0;
    }

    .reviews-section .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .reviews-slider-container {
        padding: 0 45px;
    }

    .review-card {
        flex: 0 0 320px;
        padding: 20px;
    }

    .reviews-slider {
        gap: 20px;
    }
}

/* Мобільна версія */
@media (max-width: 767.98px) {
    .reviews-section {
        padding: 40px 0;
    }

    .reviews-section .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .reviews-slider-container {
        padding: 0 40px;
    }

    .review-card {
        flex: 0 0 calc(100vw - 100px);
        padding: 16px;
    }
    
    .review-card.expanded {
        height: auto;
    }

    .reviews-slider {
        gap: 20px;
        padding: 16px 10px;
        margin: 0 -10px;
    }

    .review-header {
        padding-bottom: 12px;
    }

    .review-product-image {
        width: 40px;
        height: 40px;
    }

    .review-author-name {
        font-size: 14px;
    }

    .review-rating .star {
        font-size: 14px;
    }

    .review-text {
        font-size: 13px;
    }
    
    .review-text.collapsed {
        max-height: 55px;
    }

    .reviews-nav-btn {
        width: 36px;
        height: 36px;
    }

    .reviews-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Дуже маленькі екрани */
@media (max-width: 375px) {
    .reviews-slider-container {
        padding: 0 35px;
    }

    .review-card {
        flex: 0 0 260px;
        padding: 14px;
    }

    .reviews-nav-btn {
        width: 32px;
        height: 32px;
    }
}

/* iOS Safari оптимізації */
@supports (-webkit-touch-callout: none) {
    .reviews-slider {
        -webkit-overflow-scrolling: touch;
    }

    .review-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .reviews-nav-btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .reviews-slider,
    .review-card,
    .reviews-nav-btn {
        transition: none;
    }
}
.sidebar-menu {
  box-sizing: border-box;
  width: 320px;
  min-height: calc(
    100svh - var(--layout-sidebar-sticky-top) -
      var(--layout-sidebar-viewport-bottom-gap)
  );
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 8px 0;
  align-self: flex-start;
}

.sidebar-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu__item {
  position: relative;
  margin-bottom: 0;
}

.sidebar-menu__item:not(:last-child) {
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-menu__item.has-children > .sidebar-menu__link {
  pointer-events: auto;
  touch-action: manipulation;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  color: var(--color-text-secondary);
}

.sidebar-menu__item.active > .sidebar-menu__link .category-icon {
  color: var(--color-cta-primary);
}

.sidebar-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: 0;
  transition: background-color var(--transition-fast, 0.2s),
    color var(--transition-fast, 0.2s);
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-menu__link:hover {
  background: rgba(30, 109, 180, 0.08);
  color: var(--color-cta-primary);
}

.sidebar-menu__item.active > .sidebar-menu__link {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  border-left: 3px solid var(--color-brand-primary);
  padding-left: calc(14px - 3px);
  box-shadow: none;
}

.sidebar-menu__item.active > .sidebar-menu__link:hover {
  background: rgba(30, 109, 180, 0.1);
  color: var(--color-text-primary);
}

.sidebar-menu__text {
  flex: 1;
  font-weight: var(--font-weight-medium, 500);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.sidebar-menu__text:hover {
  color: var(--color-cta-primary);
}

.sidebar-menu__item.active > .sidebar-menu__link .sidebar-menu__text:hover {
  color: var(--color-cta-primary);
}

.sidebar-menu__item.active > .sidebar-menu__link .sidebar-menu__arrow {
  color: var(--color-text-muted);
}

.sidebar-menu__arrow {
  color: var(--color-text-muted);
  transition: transform var(--transition-normal, 0.3s) ease;
  transform-origin: center;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  margin: -4px;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sidebar-menu__item.menu-open .sidebar-menu__arrow {
  transform: rotate(90deg);
}

.sidebar-menu__submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal, 0.3s) ease;
  margin-top: 0;
}

.sidebar-menu__item.menu-open .sidebar-menu__submenu {
  margin-top: var(--spacing-xs, 8px);
}

.submenu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-left: var(--spacing-lg, 24px);
  padding-right: var(--spacing-sm, 12px);
  padding-bottom: var(--spacing-xs, 8px);
}

.submenu__link {
  display: block;
  padding: var(--spacing-xs, 8px) var(--spacing-sm, 12px);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm, 13px);
  border-radius: var(--radius-sm, 6px);
  transition: background-color var(--transition-fast, 0.2s),
    color var(--transition-fast, 0.2s),
    padding-left var(--transition-fast, 0.2s);
}

.submenu__link:hover {
  background: rgba(30, 109, 180, 0.06);
  color: var(--color-cta-primary);
  padding-left: calc(var(--spacing-sm, 12px) + 4px);
}

.submenu__item.active .submenu__link {
  background: rgba(30, 109, 180, 0.12);
  color: var(--color-brand-primary);
  font-weight: var(--font-weight-semibold);
  padding-left: calc(var(--spacing-sm, 12px) + 4px);
}

@media (max-width: 991px) {
  .sidebar-menu {
    display: none;
  }
}
.home-main-layout {
  padding: var(--spacing-xl) 0 var(--spacing-xl) 0;
  width: 100%;
  position: relative;
}

.home-main-layout > .container {
  max-width: 100%;
  padding-left: var(--spacing-sm);
  padding-right: var(--spacing-sm);
}

.layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--spacing-md);
  align-items: start;
  width: 100%;
  max-width: 100%;
  position: relative;
}

/* Sidebar на головній - статичний до секції відгуків */
.home-catalog-sidebar {
  background: transparent;
  align-self: flex-start;
  position: sticky;
  top: var(--layout-sidebar-sticky-top);
  z-index: 50;
  max-height: calc(
    100svh - var(--layout-sidebar-sticky-top) -
      var(--layout-sidebar-viewport-bottom-gap)
  );
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-brand-light) transparent;
  transition: all 0.3s ease;
}

/* Прокрутка для sidebar */
.home-catalog-sidebar::-webkit-scrollbar {
  width: 6px;
}

.home-catalog-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.home-catalog-sidebar::-webkit-scrollbar-thumb {
  background: var(--color-brand-light);
  border-radius: 3px;
}

.home-catalog-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-primary);
}

/* Коли sidebar зупинений перед секцією відгуків (контролюється JavaScript) */
.home-catalog-sidebar.sidebar-stopped {
  /* JavaScript встановить position: absolute та top */
}

.home-content {
  min-width: 0;
}

.banner-slider-section {
  margin-bottom: var(--spacing-2xl);
}

#bannerSlider {
  scroll-margin-top: 6rem;
}

@media (max-width: 991px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .home-catalog-sidebar {
    display: none;
  }
  
  .home-main-layout {
    padding: 0 0 var(--spacing-md) 0;
  }
}

/* Banner Slider */
.banner-slider-section {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 20px;
}

.banner-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Десктопна версія - відступи та центрування */
@media (min-width: 769px) {
    .banner-slider-section {
        padding: 0 20px;
        margin-top: 30px;
    }
    
    .banner-slider-container {
        max-width: 1200px;
    }
}

/* Мобільна версія - по всій ширині */
@media (max-width: 768px) {
    .banner-slider-section {
        padding: 0;
        margin-top: 0;
    }
    
    .banner-slider-container {
        border-radius: 0;
        max-width: none;
    }
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Banner Placeholder Styles */
.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--primary-pink);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-content {
    text-align: center;
    color: var(--gray-medium);
    padding: var(--spacing-xl);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.6;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--neutral-dark);
}

.placeholder-text {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-pink);
    font-weight: 600;
}

.placeholder-content small {
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--neutral-dark);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.banner-nav:hover {
    background: var(--white);
    color: var(--primary-pink);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav-prev {
    left: 20px;
}

.banner-nav-next {
    right: 20px;
}

.nav-arrow {
    font-weight: bold;
    line-height: 1;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.banner-dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Slider Responsive */
@media (max-width: 1024px) {
    .banner-slider-section {
        height: 300px;
    }
    
    .banner-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .banner-nav-prev {
        left: 10px;
    }
    
    .banner-nav-next {
        right: 10px;
    }
    
    .banner-dots {
        bottom: 15px;
    }
    
    .banner-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 768px) {
    .banner-slider-section {
        height: 280px;
    }
    
    .placeholder-content h3 {
        font-size: 1.25rem;
    }
    
    .placeholder-text {
        font-size: 0.875rem;
    }
    
    .placeholder-icon {
        font-size: 3.5rem;
    }
    
    .placeholder-content {
        padding: var(--spacing-lg);
    }
    
    .banner-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .banner-nav-prev {
        left: 5px;
    }
    
    .banner-nav-next {
        right: 5px;
    }
    
    .banner-dots {
        bottom: 10px;
    }
    
    .banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* iOS Safari optimizations */
@supports (-webkit-touch-callout: none) {
    .banner-slider-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .banner-slide {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .banner-image {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Content Sliders */
.categories-slider-container,
.products-slider-container {
    position: relative;
    margin: 0 -15px;
}

.categories-slider,
.products-slider {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 var(--spacing-lg);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-slider::-webkit-scrollbar,
.products-slider::-webkit-scrollbar {
    display: none;
}

.categories-slider .category-card,
.products-slider .product-card {
    flex: 0 0 auto;
    width: 280px;
    margin-bottom: 0;
}

.categories-slider .category-card {
    width: 200px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-pink);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-pink);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
    left: -25px;
}

.slider-btn-next {
    right: -25px;
}

/* Slider Mobile */
@media (max-width: 767.98px) {
    .slider-btn {
        display: none;
    }
    
    .categories-slider,
    .products-slider {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .categories-slider .category-card,
    .products-slider .product-card {
        width: 250px;
    }
    
    .categories-slider .category-card {
        width: 180px;
    }
}

/* Додаткові стилі для дуже маленьких екранів */
@media (max-width: 480px) {
    .banner-slider-section {
        height: 260px;
    }
}

@media (max-width: 375px) {
    .banner-slider-section {
        height: 240px;
    }
    
    .placeholder-content h3 {
        font-size: 1.125rem;
    }
    
    .placeholder-icon {
        font-size: 3rem;
    }
}

/* Touch Devices */
@media (max-width: 1024px) {
    .categories-slider,
    .products-slider {
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .categories-slider .category-card,
    .products-slider .product-card {
        scroll-snap-align: start;
    }
}

.categories-slider.scrolling,
.products-slider.scrolling {
    scroll-behavior: smooth;
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.slider-indicator.active {
    background: var(--primary-pink);
}

/* Cart Icon */
.cart-icon {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
    transition: transform var(--transition-fast);
}

@media (max-width: 767.98px) {
    .cart-icon {
        font-size: 24px;
    }
}

/* iOS Safari specific */
@supports (-webkit-touch-callout: none) {
    .categories-slider,
    .products-slider {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .categories-slider .category-card,
    .products-slider .product-card {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: no-preference) {
    .categories-slider,
    .products-slider {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    .categories-slider,
    .products-slider {
        scroll-behavior: auto;
    }
    
    .slider-btn {
        transition: none;
    }
    
    .cart-icon {
        transition: none;
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .slider-btn {
        border: 2px solid currentColor;
    }
}
/* Стилі для слайдера акційних пропозицій */

.promotions-section {
    padding: 50px 0;
}

.promotions-section .section-title {
    font-size: 2.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin-bottom: 14px;
}

.promotions-section .section-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.promotions-section.mobile-only {
    display: none;
}

.promotions-section.desktop-only {
    display: block;
}

.promotions-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    overflow: hidden;
}

.promotions-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 15px;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.promotions-slider::-webkit-scrollbar {
    display: none;
}

.promo-card {
    flex: 0 0 calc((100% - 45px) / 4);
    min-width: 200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 109, 180, 0.15);
}

.promo-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: white;
    border-radius: 10px 10px 0 0;
}

.promo-image .product-card__wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
}

.promo-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.promo-image .promo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
}

.promo-image .product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.promo-image .placeholder-icon {
    font-size: 4rem;
}

.promo-content {
    padding: 12px;
}

.promo-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 2.6rem;
}

.promo-name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.promo-name a:hover {
    color: var(--color-brand-primary, #1E6DB4);
}

.promo-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.promo-price .price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

.promo-price .price-new {
    font-size: 1rem;
    color: var(--color-brand-primary, #1E6DB4);
    font-weight: 700;
}

.promo-actions {
    margin-top: 8px;
}

.promo-add-cart {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    background: var(--color-brand-primary, #1E6DB4);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-add-cart:hover:not(:disabled) {
    background: var(--color-brand-accent, #112244);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 109, 180, 0.4);
}

.promo-add-cart--disabled {
    background: #ccc;
    cursor: not-allowed;
}

.promo-content .btn {
    width: 100%;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.promo-content .btn-primary {
    background: var(--color-brand-primary, #1E6DB4);
    border: none;
    color: white;
}

.promo-content .btn-primary:hover:not(:disabled) {
    background: var(--color-brand-accent, #112244);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 109, 180, 0.4);
}

.promo-content .btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.promo-prev-btn,
.promo-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--color-brand-primary, #1E6DB4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: var(--color-brand-primary, #1E6DB4);
}

.promo-prev-btn:hover:not(:disabled),
.promo-next-btn:hover:not(:disabled) {
    background: var(--color-brand-primary, #1E6DB4);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.promo-prev-btn:disabled,
.promo-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promo-prev-btn {
    left: 0;
}

.promo-next-btn {
    right: 0;
}

.promo-prev-btn svg,
.promo-next-btn svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.promo-nav-buttons-mobile {
    display: none;
}

.products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.promotions-view-all {
    text-align: center;
    margin: 20px 0 0;
    padding: 0;
}

.promotions-section .promotions-view-all {
    text-align: center;
    margin: 20px 0 0;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--color-brand-primary, #1E6DB4);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid var(--color-brand-primary, #1E6DB4);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-view-all:hover {
    background: var(--color-brand-primary, #1E6DB4);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 109, 180, 0.3);
}

.btn-view-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-view-all:hover svg {
    transform: translateX(5px);
}

.btn-view-all:active {
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .products-section .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .promotions-slider-container {
        padding: 0 45px;
    }
}

@media (max-width: 767.98px) {
    .promotions-section.mobile-only {
        display: block;
    }
    
    .promotions-section.desktop-only {
        display: none;
    }
    
    .products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .promotions-section {
        padding: 30px 0;
    }
    
    .promotions-view-all {
        margin: 16px 0 0;
    }
    
    .btn-view-all {
        padding: 8px 20px;
        font-size: 13px;
        gap: 6px;
    }
    
    .btn-view-all svg {
        width: 14px;
        height: 14px;
    }
    
    .promotions-section .section-title {
        font-size: 1.875rem;
    }
    
    .promotions-section .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .promotions-slider-container {
        padding: 0;
    }
    
    .promo-prev-btn,
    .promo-next-btn {
        display: none;
    }
    
    .promo-nav-buttons-mobile {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 12px;
        padding: 0;
    }
    
    .promo-prev-btn-mobile,
    .promo-next-btn-mobile {
        width: 32px;
        height: 32px;
        background: white;
        border: 1px solid var(--color-brand-primary, #1E6DB4);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--color-brand-primary, #1E6DB4);
        padding: 0;
    }
    
    .promo-prev-btn-mobile:disabled,
    .promo-next-btn-mobile:disabled,
    .promo-prev-btn-mobile.disabled,
    .promo-next-btn-mobile.disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .promo-prev-btn-mobile svg,
    .promo-next-btn-mobile svg {
        width: 16px;
        height: 16px;
        pointer-events: none;
    }
    
    .promotions-slider {
        gap: 12px;
        padding: 10px 0 15px;
    }
    
    .promo-card {
        flex: 0 0 calc((100% - 12px) / 2);
        min-width: 0;
        max-width: calc((100% - 12px) / 2);
    }
    
    .promo-image {
        height: 150px;
    }
    
    .promo-image .product-card__wishlist {
        top: 6px;
        right: 6px;
        width: 30px;
        height: 30px;
        padding: 4px;
    }
    
    .promo-image .product-card__wishlist-icon {
        font-size: 18px;
    }
    
    .promo-badges {
        top: 6px;
        left: 6px;
        gap: 4px;
    }
    
    .promo-content {
        padding: 10px;
    }
    
    .promo-name {
        font-size: 0.8rem;
        margin-bottom: 8px;
        min-height: 2.4rem;
        line-height: 1.2;
    }
    
    .promo-price {
        gap: 5px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .promo-price .price-old {
        font-size: 0.7rem;
    }
    
    .promo-price .price-new {
        font-size: 0.9rem;
    }
    
    .promo-add-cart {
        padding: 7px 10px;
        font-size: 0.75rem;
    }
    
    .promo-content .btn {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .promo-card {
        flex: 0 0 calc((100% - 10px) / 2);
        min-width: 0;
        max-width: calc((100% - 10px) / 2);
    }
    
    .products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .promotions-slider {
        gap: 10px;
    }
    
    .promo-image {
        height: 130px;
    }
    
    .promo-image .product-card__wishlist {
        top: 4px;
        right: 4px;
        width: 28px;
        height: 28px;
        padding: 3px;
    }
    
    .promo-image .product-card__wishlist-icon {
        font-size: 16px;
    }
    
    .promo-badges {
        top: 4px;
        left: 4px;
        gap: 3px;
    }
    
    .promo-content {
        padding: 8px;
    }
    
    .promo-name {
        font-size: 0.7rem;
        margin-bottom: 6px;
        min-height: 2.1rem;
        line-height: 1.15;
    }
    
    .promo-price {
        gap: 4px;
        margin-bottom: 6px;
    }
    
    .promo-price .price-old {
        font-size: 0.65rem;
    }
    
    .promo-price .price-new {
        font-size: 0.8rem;
    }
    
    .promo-add-cart {
        padding: 6px 8px;
        font-size: 0.7rem;
    }
    
    .promo-content .btn {
        padding: 5px 6px;
        font-size: 0.65rem;
    }
    
    .promo-prev-btn-mobile,
    .promo-next-btn-mobile {
        width: 30px;
        height: 30px;
    }
    
    .promo-prev-btn-mobile svg,
    .promo-next-btn-mobile svg {
        width: 14px;
        height: 14px;
    }
}

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

.promo-card {
    animation: fadeInUp 0.5s ease forwards;
}

.promo-card:nth-child(1) { animation-delay: 0.1s; }
.promo-card:nth-child(2) { animation-delay: 0.15s; }
.promo-card:nth-child(3) { animation-delay: 0.2s; }
.promo-card:nth-child(4) { animation-delay: 0.25s; }
.promo-card:nth-child(5) { animation-delay: 0.3s; }

@supports (-webkit-touch-callout: none) {
    .promo-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .promo-card:hover {
        -webkit-transform: translateY(-5px) translateZ(0);
        transform: translateY(-5px) translateZ(0);
    }
    
    .promo-prev-btn-mobile,
    .promo-next-btn-mobile {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-card {
        animation: none;
    }
    
    .promo-prev-btn,
    .promo-next-btn,
    .promo-prev-btn-mobile,
    .promo-next-btn-mobile {
        transition: none;
    }
}

/* Стилі для сторінки доставки та оплати */

/* Delivery Methods Section */
.delivery-methods-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Anonymity Notice */
.anonymity-notice {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px;
}

.anonymity-text {
    display: inline-block;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--color-cta-primary);
    margin: 0;
    padding: 15px 30px;
    background: rgba(30, 109, 180, 0.08);
    border-radius: 50px;
    border: 2px solid rgba(30, 109, 180, 0.2);
    box-shadow: 0 4px 15px rgba(30, 109, 180, 0.15);
    transition: all 0.3s ease;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding: 15px 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(30, 109, 180, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    cursor: default;
}

.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(30, 109, 180, 0.15);
    border-color: rgba(30, 109, 180, 0.3);
}

.delivery-image {
    text-align: center;
    margin-bottom: 25px;
}

.delivery-image img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.delivery-card:hover .delivery-image img {
    transform: scale(1.1);
}

.delivery-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.delivery-description {
    color: #666;
    font-size: 0.95em;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.delivery-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.delivery-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.delivery-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

/* Free Shipping Info */
.delivery-free-shipping {
    text-align: center;
    margin-top: 40px;
    padding: 20px 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.free-shipping-text {
    font-size: 1.3em;
    color: var(--color-cta-primary);
    margin: 0;
    font-weight: 600;
}

.free-shipping-text strong {
    font-weight: 700;
    font-size: 1.2em;
}

/* Payment Methods Section */
.payment-methods-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 15px 0;
}

.payment-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(52, 58, 64, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    cursor: default;
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 58, 64, 0.15);
    border-color: rgba(52, 58, 64, 0.3);
}

.payment-image {
    text-align: center;
    margin-bottom: 25px;
}

.payment-image img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-image img {
    transform: scale(1.1);
}

.payment-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.payment-description {
    color: #666;
    font-size: 0.95em;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.payment-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.payment-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.payment-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}


/* Адаптивність */
@media (max-width: 1024px) {
    .anonymity-text {
        font-size: 1.15em;
        padding: 12px 25px;
    }
    
    .delivery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .anonymity-notice {
        margin-bottom: 30px;
    }
    
    .anonymity-text {
        font-size: 1.05em;
        padding: 12px 20px;
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .delivery-free-shipping {
        margin-top: 25px;
        padding: 15px 15px;
    }
    
    .free-shipping-text {
        font-size: 1.15em;
    }
    
    .free-shipping-text strong {
        font-size: 1.2em;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .delivery-card,
    .payment-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    .delivery-image img,
    .payment-image img {
        max-width: 100px;
        height: auto;
    }
    
    .delivery-title,
    .payment-title {
        font-size: 1.25em;
    }
    
    .delivery-description,
    .payment-description {
        font-size: 0.95em;
    }
    
    .delivery-features li,
    .payment-features li {
        padding-left: 28px;
        padding-right: 10px;
        font-size: 0.95em;
    }
    
    .delivery-features li::before,
    .payment-features li::before {
        left: 5px;
    }
}

@media (max-width: 480px) {
    .anonymity-notice {
        margin-bottom: 25px;
    }
    
    .anonymity-text {
        font-size: 0.9em;
        padding: 10px 15px;
        line-height: 1.4;
    }
    
    .delivery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .delivery-card,
    .payment-card {
        padding: 18px;
        border-radius: 15px;
    }
    
    .delivery-image img,
    .payment-image img {
        max-width: 90px;
        height: auto;
    }
    
    .delivery-title,
    .payment-title {
        font-size: 1.2em;
    }
    
    .delivery-description,
    .payment-description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .delivery-features li,
    .payment-features li {
        font-size: 0.9em;
        padding: 6px 0;
        padding-left: 26px;
    }
    
    .delivery-features li::before,
    .payment-features li::before {
        left: 3px;
        font-size: 1.1em;
    }
    
    .delivery-free-shipping {
        margin-top: 20px;
        padding: 15px 12px;
    }
    
    .free-shipping-text {
        font-size: 1.05em;
    }
    
    .free-shipping-text strong {
        font-size: 1.15em;
    }
}

/* Анімації */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

/* Спеціальні стилі для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .delivery-card,
    .payment-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .delivery-card:hover,
    .payment-card:hover {
        -webkit-transform: translateY(-10px) translateZ(0);
        transform: translateY(-10px) translateZ(0);
    }
}

/* Кредит та розстрочка + якорі для topbar */
.credit-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

#credit,
#schedule {
    scroll-margin-top: 5rem;
}
/* Стилі для відображення цін товарів */
.product-price {
    margin: 10px 0;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.price-row.wholesale {
    opacity: 0.8;
}

.price-current, .price-wholesale {
    font-weight: bold;
    font-size: 1.1em;
}

.price-current {
    color: var(--color-brand-primary);
}

.price-wholesale {
    color: #4caf50;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.price-type {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75em;
    color: #666;
    text-transform: uppercase;
    font-weight: 500;
}

.price-row.wholesale .price-type {
    background: #e8f5e8;
    color: #4caf50;
}

.quantity-prices {
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #2196f3;
}

.qty-price {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 3px;
}

.qty-price:last-child {
    margin-bottom: 0;
}

.qty-price strong {
    color: #2196f3;
}

.additional-prices {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #eee;
}

.price-save {
    font-size: 0.85em;
    color: #4caf50;
    font-weight: 500;
    margin-top: 5px;
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .product-price {
        margin: 8px 0;
    }
    
    .price-row {
        gap: 6px;
        margin-bottom: 3px;
    }
    
    .price-current, .price-wholesale {
        font-size: 1em;
    }
    
    .quantity-prices {
        padding: 6px;
        margin-top: 6px;
    }
    
    .qty-price {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .quantity-prices {
        font-size: 0.8em;
    }
}

/* Стікери товарів */
.product-stickers {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.product-sticker {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 12px;
    color: white;
    text-align: center;
    min-width: 40px;
}

.sticker-top {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.sticker-new {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.4);
}

.sticker-sale {
    background: var(--badge-sale);
    box-shadow: 0 2px 8px rgba(30, 109, 180, 0.4);
}

/* Анімація для стікерів */
.product-sticker {
    animation: stickerPulse 2s ease-in-out infinite;
}

@keyframes stickerPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Стікери на мобільних */
@media (max-width: 768px) {
    .product-stickers {
        top: 8px;
        left: 8px;
        gap: 3px;
    }
    
    .product-sticker {
        padding: 2px 6px;
        font-size: 0.7em;
        min-width: 35px;
    }
}
/**
 * Wishlist Styles
 * Стилі для списку бажань з адаптацією для mobile та iOS Safari
 */

/* ==================== 
   Wishlist Page
==================== */

.wishlist-page {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 400px);
}

.wishlist-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--gray-light);
}

.wishlist-header .page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.wishlist-header .title-icon {
    width: 48px;
    height: 48px;
    stroke: var(--color-brand-primary);
    flex-shrink: 0;
}

.wishlist-count {
    font-size: 1.125rem;
    color: var(--gray-medium);
    margin: 0;
}

/* ==================== 
   Wishlist Content
==================== */

.wishlist-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Сітка товарів для wishlist */
.wishlist-content .products-grid {
    margin-bottom: var(--spacing-xl);
}

.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ==================== 
   Wishlist Item
==================== */

.wishlist-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

.wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-brand-primary);
}

.item-image {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--gray-light);
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
}

.no-image svg {
    width: 48px;
    height: 48px;
    stroke: var(--gray-medium);
}

/* ==================== 
   Item Info
==================== */

.item-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

.item-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.item-name a {
    color: var(--neutral-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.item-name a:hover {
    color: var(--color-brand-primary);
}

.item-category {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-medium);
}

.item-description {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--neutral-dark);
    line-height: 1.5;
}

.item-footer {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.item-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-primary);
}

.price-old {
    font-size: 1.125rem;
    color: var(--gray-medium);
    text-decoration: line-through;
}

.stock-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-status.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.stock-status.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* ==================== 
   Item Actions
==================== */

.item-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-end;
}

.btn-remove-wishlist {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--gray-light);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-wishlist:hover {
    background: #fee;
    border-color: #ef4444;
    color: #ef4444;
}

.btn-remove-wishlist svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.btn-add-to-cart {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.75rem 1.25rem;
    background: var(--color-brand-primary);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-add-to-cart:hover {
    background: var(--color-brand-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 109, 180, 0.3);
}

.btn-add-to-cart svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* ==================== 
   Wishlist Actions
==================== */

.wishlist-actions {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--gray-light);
}

.wishlist-actions .btn {
    flex: 1;
    text-align: center;
}

/* ==================== 
   Empty Wishlist
==================== */

.wishlist-empty {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-xl);
    background: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon svg {
    width: 64px;
    height: 64px;
    stroke: var(--gray-medium);
}

.empty-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin: 0 0 var(--spacing-md) 0;
}

.empty-text {
    font-size: 1.125rem;
    color: var(--gray-medium);
    margin: 0 0 var(--spacing-xl) 0;
    max-width: 500px;
}

/* Компактна кнопка для empty wishlist на десктопі */
.wishlist-empty .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9375rem;
    font-weight: 600;
    max-width: 280px;
}

/* ==================== 
   Wishlist Toggle Button
==================== */

.btn-toggle-wishlist,
.wishlist-toggle,
.btn-wishlist,
.wishlist-btn,
.product-card__wishlist {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.btn-toggle-wishlist:hover,
.wishlist-toggle:hover,
.btn-wishlist:hover,
.wishlist-btn:hover,
.product-card__wishlist:hover {
    border-color: var(--color-brand-primary);
    background: rgba(30, 109, 180, 0.05);
}

.btn-toggle-wishlist.active,
.wishlist-toggle.active,
.btn-wishlist.active,
.wishlist-btn.active,
.product-card__wishlist.active,
.product-card__wishlist--active {
    background: var(--color-brand-primary);
    border-color: var(--color-brand-primary);
    color: var(--white);
}

.btn-toggle-wishlist svg,
.wishlist-toggle svg,
.btn-wishlist svg,
.wishlist-btn svg {
    width: 24px;
    height: 24px;
    stroke: var(--neutral-dark);
    fill: none;
    transition: all var(--transition-fast);
}

.btn-toggle-wishlist.active svg,
.wishlist-toggle.active svg,
.btn-wishlist.active svg,
.wishlist-btn.active svg {
    fill: var(--white);
    stroke: var(--white);
}

/* Для text-based іконок */
.icon-heart,
.product-card__wishlist-icon {
    font-size: 24px;
    color: var(--neutral-dark);
    transition: all var(--transition-fast);
}

.btn-wishlist.active .icon-heart,
.wishlist-btn.active .icon-heart,
.product-card__wishlist.active .product-card__wishlist-icon,
.product-card__wishlist--active .product-card__wishlist-icon {
    color: var(--white);
}

.btn-toggle-wishlist.animate-heart,
.wishlist-toggle.animate-heart,
.btn-wishlist.animate-heart,
.wishlist-btn.animate-heart,
.product-card__wishlist.animate-heart {
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* ==================== 
   Notifications
==================== */

.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    z-index: 10000;
    background: var(--white);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    transition: all var(--transition-medium);
}

.notification.show {
    right: var(--spacing-lg);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    stroke: #22c55e;
}

.notification-error .notification-icon {
    stroke: #ef4444;
}

.notification-content span {
    font-size: 0.9375rem;
    color: var(--neutral-dark);
}

/* ==================== 
   Tablet Adaptation
==================== */

@media (max-width: 991.98px) {
    .wishlist-item {
        grid-template-columns: 100px 1fr auto;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
    }

    .item-image {
        width: 100px;
        height: 100px;
    }

    .item-name {
        font-size: 1.125rem;
    }

    .price-current {
        font-size: 1.25rem;
    }

    .wishlist-header .page-title {
        font-size: 2rem;
    }

    .wishlist-header .title-icon {
        width: 40px;
        height: 40px;
    }

    /* Планшетна адаптація кнопки wishlist empty */
    .wishlist-empty .btn {
        max-width: 320px;
        font-size: 0.9375rem;
    }
}

/* ==================== 
   Mobile Adaptation
==================== */

@media (max-width: 768px) {
    .wishlist-page {
        padding: var(--spacing-lg) 0;
    }

    .wishlist-header {
        margin-bottom: var(--spacing-lg);
    }

    .wishlist-header .page-title {
        font-size: 1.75rem;
        gap: var(--spacing-sm);
    }

    .wishlist-header .title-icon {
        width: 32px;
        height: 32px;
    }

    .wishlist-item {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        gap: var(--spacing-sm);
    }

    .item-image {
        width: 80px;
        height: 80px;
        grid-row: 1 / 3;
    }

    .item-info {
        grid-column: 2;
        grid-row: 1;
    }

    .item-actions {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .item-name {
        font-size: 1rem;
    }

    .item-description {
        display: none;
    }

    .price-current {
        font-size: 1.125rem;
    }

    .btn-add-to-cart {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .wishlist-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
        /* Як на сторінці товару: .product-detail > .container padding */
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
        box-sizing: border-box;
    }

    .wishlist-actions .btn {
        width: 100%;
    }

    .empty-title {
        font-size: 1.5rem;
    }

    .empty-text {
        font-size: 1rem;
    }

    /* Мобільна версія кнопки wishlist empty повертається до повної ширини */
    .wishlist-empty .btn {
        max-width: none;
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 1rem;
    }

    .notification {
        min-width: auto;
        max-width: calc(100% - 2 * var(--spacing-lg));
        right: -100%;
    }

    .notification.show {
        right: var(--spacing-lg);
    }
}

/* ==================== 
   iOS Safari Optimizations
==================== */

@supports (-webkit-touch-callout: none) {
    .wishlist-item {
        -webkit-tap-highlight-color: transparent;
    }

    .btn-toggle-wishlist,
    .wishlist-toggle,
    .btn-wishlist,
    .wishlist-btn,
    .product-card__wishlist,
    .btn-remove-wishlist,
    .btn-add-to-cart {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }

    @media (hover: none) and (pointer: coarse) {
        .wishlist-item:hover {
            box-shadow: none;
            border-color: var(--gray-light);
        }
        
        .wishlist-item:active {
            transform: scale(0.98);
        }
    }
}

/* ==================== 
   High Contrast Mode
==================== */

@media (prefers-contrast: high) {
    .wishlist-item {
        border-width: 2px;
    }

    .btn-toggle-wishlist,
    .wishlist-toggle,
    .btn-wishlist,
    .wishlist-btn,
    .product-card__wishlist {
        border-width: 3px;
    }
}

/* ==================== 
   Reduced Motion
==================== */

@media (prefers-reduced-motion: reduce) {
    .wishlist-item,
    .btn-toggle-wishlist,
    .wishlist-toggle,
    .btn-wishlist,
    .wishlist-btn,
    .product-card__wishlist,
    .btn-add-to-cart,
    .notification {
        transition: none;
    }

    .btn-toggle-wishlist.animate-heart,
    .wishlist-toggle.animate-heart,
    .btn-wishlist.animate-heart,
    .wishlist-btn.animate-heart,
    .product-card__wishlist.animate-heart {
        animation: none;
    }
}

.product-badge--sale-name {
    display: block;
    background: var(--color-brand-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.product-badge--discount {
    display: block;
    background: var(--color-cta-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.sale-countdown {
    display: block;
    padding: 8px 12px;
    background: rgba(255, 68, 68, 0.75);
    color: white;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    white-space: nowrap;
    backdrop-filter: blur(6px);
}

.countdown-ended {
    background: rgba(153, 153, 153, 0.9);
}

.product-card__badges,
.product-badges,
.promo-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    max-width: calc(100% - 50px);
}

.product-card__wishlist {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card__wishlist:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-card__wishlist--active {
    background: var(--color-brand-accent);
    color: white;
}

.product-card__wishlist-icon {
    font-size: 16px;
    line-height: 1;
}

@media (max-width: 768px) {
    .product-badge--sale-name {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .product-badge--discount {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .sale-countdown {
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .product-card__badges,
    .product-badges,
    .promo-badges {
        max-width: calc(100% - 30px);
    }
    
    .product-card__wishlist {
        width: 28px;
        height: 28px;
    }
    
    .product-card__wishlist-icon {
        font-size: 14px;
    }
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast--show {
    transform: translateX(0);
    opacity: 1;
}

.toast__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
}

.toast__message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.toast--success {
    border-left: 4px solid #28a745;
}

.toast--success .toast__icon {
    background: #28a745;
    color: #fff;
}

.toast--error {
    border-left: 4px solid var(--color-error);
}

.toast--error .toast__icon {
    background: var(--color-error);
    color: #fff;
}

.toast--warning {
    border-left: 4px solid #ffc107;
}

.toast--warning .toast__icon {
    background: #ffc107;
    color: #333;
}

.toast--info {
    border-left: 4px solid #17a2b8;
}

.toast--info .toast__icon {
    background: #17a2b8;
    color: #fff;
}

@media (max-width: 576px) {
    .toast-container {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

