/* SECO Custom Styles */

/* ============================================================
   SWEETALERT — SECO THEME
   v1.0.0 (23.02.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

/* Overlay — glass effect + z-index above everything */
.sweet-overlay {
    background-color: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 100000 !important;
}

/* Alert box — SECO sharp design */
.sweet-alert {
    box-shadow: none !important;
    background-color: #ffffff !important;
    border-radius: 0 !important;
    border: 2px solid #000000 !important;
    font-family: var(--font-base, 'Montserrat', sans-serif) !important;
    padding: 40px 32px 32px !important;
    z-index: 100001 !important;
}

/* Title */
.sweet-alert h2 {
    color: #111111 !important;
    font-family: var(--font-base, 'Montserrat', sans-serif) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 8px !important;
}

/* Message text */
.sweet-alert p,
.sweet-alert .lead {
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    color: #444 !important;
    font-family: var(--font-base, 'Montserrat', sans-serif) !important;
    margin-bottom: 0 !important;
    margin-top: 4px !important;
}

/* Icon — warning: SECO red */
.sweet-alert .sa-icon.sa-warning {
    border-color: #e34636 !important;
}
.sweet-alert .sa-icon.sa-warning .sa-body,
.sweet-alert .sa-icon.sa-warning .sa-dot {
    background-color: #e34636 !important;
}
.sweet-alert .sa-icon.sa-warning.pulseWarning {
    border-color: #e34636 !important;
    animation: none !important;
}

/* Button container */
.sweet-alert .sa-button-container {
    margin-top: 28px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    gap: 12px !important;
    justify-content: flex-start !important;
}

/* Confirm button — SECO accent (red) */
.sweet-alert .confirm {
    background: #e34636 !important;
    border: 2px solid #e34636 !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-family: var(--font-base, 'Montserrat', sans-serif) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 10px 24px !important;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
    margin: 0 !important;
}
.sweet-alert .confirm:hover {
    background: #c23a2e !important;
    border-color: #c23a2e !important;
}

/* Cancel button — outlined black */
.sweet-alert .cancel {
    background: #fff !important;
    border: 2px solid #111 !important;
    border-radius: 0 !important;
    color: #111 !important;
    font-family: var(--font-base, 'Montserrat', sans-serif) !important;
    font-size: 0.8125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    padding: 10px 24px !important;
    box-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
    margin: 0 !important;
}
.sweet-alert .cancel:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Mini cart button - relative positioning for badge */
.header-cart-dropdown .icon-btn {
    position: relative;
}

/* Mini cart counter badge - position in corner */
.mini-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    line-height: 1.2;
}

/* Hide counter when empty or hidden class */
.mini-cart-count.hidden {
    display: none;
}

/* Show cart dropdown programmatically (not just on hover) */
.header-cart-dropdown.show .cart-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Sticky miniCart - when header is out of viewport */
.header-cart-dropdown.show.sticky-mode .cart-dropdown-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: slideInFromRight 0.3s ease;
}

/* OPENED mode — sidebar wysuwany z prawej krawędzi ekranu */
.header-cart-dropdown.opened .cart-dropdown-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 400px !important;
    min-width: auto !important;
    max-width: 100vw !important;
    border-radius: 0 !important;
    z-index: 9999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: none !important;
    animation: slideInFromRightFull 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
    overflow-y: auto !important;
}

/* Closing animation — sidebar wsuwa się z powrotem w prawą krawędź */
.header-cart-dropdown.closing .cart-dropdown-menu {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    bottom: 0 !important;
    height: 100vh !important;
    width: 400px !important;
    transition: none !important;
    animation: slideOutToRightFull 0.28s cubic-bezier(0.55, 0, 0.75, 0.06) forwards !important;
}

/* Backdrop overlay dla minicart (desktop opened mode) */
.minicart-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.minicart-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767px) {
    .minicart-backdrop {
        display: none !important;
    }
}

/* Disable hover when in opened mode */
.header-cart-dropdown.opened:hover .cart-dropdown-menu {
    /* Opened mode doesn't use hover - stays open until close button clicked */
}

/* Close button - only visible in opened mode */
.cart-dropdown-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #e8e8e8;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.header-cart-dropdown.opened .cart-dropdown-close {
    display: flex;
}

.cart-dropdown-close:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.cart-dropdown-close:hover i {
    color: #fff;
}

.cart-dropdown-close i {
    font-size: 14px;
    color: #333;
}

/* Alert bar inside miniCart */
/* klaudiusz@ovh-dpakula: max-height/overflow zamiast display:none — CSS transitions nie animują display */
.cart-dropdown-alert {
    padding: 0 16px;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.3s ease, opacity 0.28s ease, transform 0.28s ease, padding 0.3s ease;
}

.cart-dropdown-alert.show {
    max-height: 60px;
    padding: 12px 16px;
    opacity: 1;
    transform: translateY(0);
}

.cart-dropdown-alert.success {
    background: #4CAF50;
    color: #fff;
}

.cart-dropdown-alert.error {
    background: #f44336;
    color: #fff;
}

.cart-dropdown-alert.warning {
    background: #ff9800;
    color: #fff;
}

/* Smooth fade-out + height collapse — added by JS before removing .show */
.cart-dropdown-alert.hiding {
    max-height: 0 !important;
    padding: 0 16px !important;
    opacity: 0 !important;
    transform: translateY(4px) !important;
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease !important;
}


/* Slide in from top - for opened mode */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide out to top - for closing opened mode */
@keyframes slideOutToTop {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* Slide in from right - for sticky mode (30px float, auto-show) */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right — full sidebar (opened mode, click) */
@keyframes slideInFromRightFull {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

/* Slide out to right — full sidebar (closing opened mode) */
@keyframes slideOutToRightFull {
    from { transform: translateX(0); }
    to   { transform: translateX(100%); }
}

/* Slide in from left — full sidebar (opened mode, click) */
@keyframes slideInFromLeftFull {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

/* Slide out to left — full sidebar (closing opened mode) */
@keyframes slideOutToLeftFull {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

/* Mobile - sticky mode float */
@media (max-width: 767px) {
    .header-cart-dropdown.show.sticky-mode .cart-dropdown-menu {
        left: 20px;
        right: 20px;
        top: 20px;
        width: auto;
        min-width: auto;
    }
    /* Na mobile opened nie jest używany (klik otwiera mobile sidebar) */
    .header-cart-dropdown.opened .cart-dropdown-menu,
    .header-cart-dropdown.closing .cart-dropdown-menu {
        display: none !important;
    }
}

/* Cart dropdown - wider for better UX */
.cart-dropdown-menu {
    min-width: 400px !important;
}

/* Cart dropdown items - no padding, images closer to edge */
.cart-dropdown-items {
    padding: 0;
}

/* Remove from cart button - subtle gray by default */
.remove-from-cart {
    color: #ccc8c8;
    transition: color 0.2s ease;
}

.remove-from-cart:hover {
    color: #dc3545;
}

/* Mini cart loading state - dropdown */
#miniCart.cart-loading .mini-cart-inner .cart-dropdown-items {
    opacity: 0.3;
    pointer-events: none;
}

#miniCart.cart-loading .mini-cart-inner .cart-dropdown-header::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #dc3545;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Mini cart loading state - button (when counter is hidden) */
#miniCart.cart-loading .mini-cart-count.hidden {
    display: block !important;
    background: transparent;
    color: transparent;
}

#miniCart.cart-loading .mini-cart-count.hidden::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-centered 0.8s linear infinite;
}

/* Spin animation for inline elements */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Spin animation for positioned elements (with translate) */
@keyframes spin-centered {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ========================================================================
   UNIVERSAL FORM UTILITIES
   Reusable form components for the entire SECO project

   USE THESE CLASSES:
   - .seco-input       → text inputs, email, tel, etc.
   - .seco-select      → select dropdowns
   - .seco-textarea    → textareas
   - .seco-form-group  → wrapper for label + input
   - .seco-form-row-2  → 2-column grid layout (responsive)

   EXAMPLE HTML:

   <div class="seco-form-row-2">
      <div class="seco-form-group">
         <label>Imię</label>
         <input type="text" class="seco-input" placeholder="Jan">
      </div>
      <div class="seco-form-group">
         <label>Nazwisko</label>
         <input type="text" class="seco-input" placeholder="Kowalski">
      </div>
   </div>

   ======================================================================== */

/* Base input styling */
.seco-input,
.seco-select,
.seco-textarea {
   padding: var(--space-md);
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   border-radius: var(--radius-sm);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   width: 100%;
   transition: border-color 0.2s ease;
}

/* Focus state */
.seco-input:focus,
.seco-select:focus,
.seco-textarea:focus {
   outline: none;
   border-color: var(--color-text);
}

/* Disabled state */
.seco-input:disabled,
.seco-select:disabled,
.seco-textarea:disabled {
   background: var(--color-bg-secondary);
   cursor: not-allowed;
   opacity: 0.6;
}

/* Form group (label + input wrapper) */
.seco-form-group {
   margin-bottom: var(--space-lg);
}

.seco-form-group label {
   display: block;
   margin-bottom: var(--space-xs);
   font-size: 0.8125rem;
   font-weight: var(--fw-medium);
   color: var(--color-text);
}

/* Form row - 2 column grid */
.seco-form-row-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-lg);
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
   .seco-form-row-2 {
      grid-template-columns: 1fr;
   }
}

/* ============================================
   B2C Header Profile Dropdown
   ============================================ */
.b2c-header__profile-dropdown {
  position: relative;
  display: inline-block;
}

.b2c-header__profile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-bg-dark, #000000);
  color: var(--color-text-inverse, #ffffff);
  text-decoration: none;
  border-radius: var(--radius-pill, 999px);
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s;
}

.b2c-header__profile:hover {
  opacity: 0.9;
}

.b2c-header__profile strong {
  margin-left: 4px;
}

.b2c-header__profile i.fa-chevron-down {
  font-size: 12px;
  color: var(--color-text-inverse, #ffffff);
  transition: transform 0.2s;
}

.b2c-header__profile-dropdown:hover .b2c-header__profile i.fa-chevron-down {
  transform: rotate(180deg);
}

.b2c-header__profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 8px;
}

.b2c-header__profile-dropdown:hover .b2c-header__profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #2c2c2c;
  text-decoration: none;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.profile-menu-item:last-child {
  border-bottom: none;
}

.profile-menu-item:hover {
  background-color: #f9f9f9;
}

.profile-menu-item i {
  width: 16px;
  text-align: center;
  color: #666;
}

.profile-menu-item--logout {
  color: #e34636;
}

.profile-menu-item--logout i {
  color: #e34636;
}

.profile-menu-item--logout:hover {
  background-color: #fff5f5;
}

/* Hide wishlist heart icon in header */
.b2c-header__icon-btn[aria-label="Ulubione"],
.b2c-mobile-header__icon[aria-label="Ulubione"] {
  display: none !important;
}

/* Mobile: disable dropdown, keep simple link */
@media (max-width: 768px) {
  .b2c-header__profile-menu {
    display: none;
  }

  .b2c-header__profile i.fa-chevron-down {
    display: none;
  }
}

/* ===========================
   LIVE SEARCH DROPDOWN - LIQUID GLASS
   =========================== */

.livesearch-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 0 1px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-height: 80vh;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 12px;
  padding: 24px;
}

.livesearch-loading,
.livesearch-noresults,
.livesearch-error {
  padding: 20px;
  text-align: center;
  color: #666;
}

.livesearch-loading i {
  margin-right: 8px;
  color: var(--color-primary, #e34636);
}

.livesearch-noresults {
  font-size: 14px;
}

.livesearch-error {
  color: #d32f2f;
}

/* Categories section - small tags at top */
.livesearch-categories {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.livesearch-categories-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #999;
  margin-bottom: 12px;
}

.livesearch-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.livesearch-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(227, 70, 54, 0.08);
  border: 1px solid rgba(227, 70, 54, 0.2);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #e34636;
  transition: all 0.2s ease;
}

.livesearch-category-tag:hover {
  background: rgba(227, 70, 54, 0.15);
  border-color: rgba(227, 70, 54, 0.4);
  transform: translateY(-1px);
}

.livesearch-category-tag i {
  font-size: 11px;
}

/* Products grid - 4 columns on desktop */
.livesearch-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px var(--space-lg);
  align-items: start;
}

/* Product card - same structure as b2c-product-card */
.livesearch-item {
  /* background: var(--color-bg); */
  border: none;
  border-radius: 0;
  overflow: visible;
}

.livesearch-item:hover .livesearch-img {
  transform: scale(1.05);
}

.livesearch-item--selected .livesearch-image-area {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(227, 70, 54, 0.2);
}

.livesearch-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
  height: 100%;
}

.livesearch-image-area {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-lg);
  margin: 4px 4px 0 4px;
  overflow: hidden;
}

.livesearch-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: var(--space-md);
}

.livesearch-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

.livesearch-content {
  padding: var(--space-xs) var(--space-sm) var(--space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.livesearch-product-category {
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text);
  min-height: 1em;
  margin-bottom: 4px;
}

.livesearch-name {
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
  line-height: 1.3;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.livesearch-meta {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-family: 'Courier New', monospace;
}

.livesearch-price {
  font-size: 1.125rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  margin-top: auto;
}

.livesearch-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.livesearch-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary, #e34636);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.livesearch-all:hover {
  opacity: 0.8;
}

.livesearch-all i {
  font-size: 12px;
}

/* Tablet adjustments - same as produkty-lista.css */
@media (max-width: 991px) {
  .livesearch-products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile adjustments - same as produkty-lista.css */
@media (max-width: 767px) {
  .livesearch-dropdown {
    position: fixed;
    top: 60px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    transform: none;
    max-height: calc(100vh - 80px);
    padding: 16px;
  }

  /* klaudiusz@ovh-dpakula: livesearch inside mobile overlay — blend with overlay,
     no floating glass panel, integrated list style */
  .mobile-search-overlay .livesearch-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10;
    margin-top: 0;
    /* strip the glass card styling */
    background: #fff;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
  }

  /* product list: horizontal row (image left, text right) */
  .mobile-search-overlay .livesearch-products {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .mobile-search-overlay .livesearch-item {
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-search-overlay .livesearch-link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
  }

  .mobile-search-overlay .livesearch-image-area {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0;
    border-radius: 8px;
  }

  .mobile-search-overlay .livesearch-image-wrapper {
    width: 60px;
    height: 60px;
    aspect-ratio: auto;
    padding: 6px;
  }

  .mobile-search-overlay .livesearch-content {
    flex: 1;
    padding: 0;
    min-width: 0;
  }

  .mobile-search-overlay .livesearch-product-category {
    font-size: 0.625rem;
    margin-bottom: 2px;
  }

  .mobile-search-overlay .livesearch-name {
    font-size: 0.875rem;
    -webkit-line-clamp: 1;
    margin-bottom: 2px;
  }

  .mobile-search-overlay .livesearch-meta {
    display: none;
  }

  .mobile-search-overlay .livesearch-price {
    font-size: 0.9375rem;
    margin-top: 0;
  }

  .mobile-search-overlay .livesearch-categories {
    padding: 12px 0;
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .mobile-search-overlay .livesearch-footer {
    padding: 16px 0;
    margin-top: 0;
    border-top: 1px solid #f0f0f0;
  }

  .mobile-search-overlay .livesearch-loading,
  .mobile-search-overlay .livesearch-noresults,
  .mobile-search-overlay .livesearch-error {
    padding: 24px 0;
  }

  .livesearch-products {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .livesearch-category-tag {
    font-size: 12px;
    padding: 5px 12px;
  }

  .livesearch-name {
    font-size: 0.75rem;
  }

  .livesearch-price {
    font-size: 1rem;
  }
}

/* ============================================================
   BLOG / NEWS — EDU SECTION ADDITIONS (section_blog.ctr.php)
   ============================================================ */

/* "Zobacz wszystkie" link in edu section header */
.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edu-see-all {
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-accent, #e34636);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.edu-see-all:hover {
  opacity: 0.75;
}

/* Image link wrapper in article cards */
.edu-card-image-link {
  display: block;
  text-decoration: none;
}

/* Edu card article — image */
.edu-card--article .edu-card-image {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

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

.edu-card-image-link:hover .edu-card-image img {
  transform: scale(1.04);
}

/* Lead text in edu cards */
.edu-card-lead {
  font-size: 0.875rem;
  color: var(--color-text-muted, #666);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Date in video card */
.edu-card-date {
  font-size: 0.8rem;
  color: var(--color-text-muted, #888);
  margin-bottom: 8px;
}

/* Title link in article card */
.edu-card-title a,
.edu-card-video-title a {
  color: inherit;
  text-decoration: none;
}

.edu-card-title a:hover,
.edu-card-video-title a:hover {
  color: var(--color-accent, #e34636);
}

/* Fixed card widths for carousel */
.edu-card--article {
  flex: 0 0 280px;
  min-width: 260px;
}

/* ============================================================
   BLOG LIST PAGE (page_blog.ctr.php)
   ============================================================ */

.blog-page {
  padding: var(--space-3xl, 64px) 0;
}

.blog-header {
  margin-bottom: 40px;
}

.blog-page-title {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-text, #111);
  margin-bottom: 12px;
}

.blog-page-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted, #555);
  max-width: 600px;
}

/* Category filter tabs */
.blog-category-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.blog-tab {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid #d0d0d0;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text, #333);
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
}

.blog-tab:hover {
  border-color: var(--color-accent, #e34636);
  color: var(--color-accent, #e34636);
}

.blog-tab--active {
  background: var(--color-accent, #e34636);
  border-color: var(--color-accent, #e34636);
  color: #fff;
}

/* Posts grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* Post card */
.blog-post-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-post-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.blog-post-card__image-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.blog-post-card__image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.blog-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card__image-link:hover .blog-post-card__image img {
  transform: scale(1.04);
}

.blog-post-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-post-card__category {
  font-size: 0.78rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent, #e34636);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.blog-post-card__date {
  font-size: 0.8rem;
  color: var(--color-text-muted, #888);
}

.blog-post-card__title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--color-text, #111);
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-post-card__title a {
  color: inherit;
  text-decoration: none;
}

.blog-post-card__title a:hover {
  color: var(--color-accent, #e34636);
}

.blog-post-card__lead {
  font-size: 0.875rem;
  color: var(--color-text-muted, #555);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.blog-post-card__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-accent, #e34636);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.blog-post-card__cta:hover {
  opacity: 0.75;
}

.blog-post-card__cta img {
  width: 16px;
  height: 16px;
}

/* Empty state */
.blog-no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--color-text-muted, #888);
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.blog-pagination__btn,
.blog-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid #d0d0d0;
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text, #333);
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
}

.blog-pagination__btn:hover,
.blog-pagination__num:hover {
  border-color: var(--color-accent, #e34636);
  color: var(--color-accent, #e34636);
}

.blog-pagination__num--active {
  background: var(--color-accent, #e34636);
  border-color: var(--color-accent, #e34636);
  color: #fff;
}

/* ============================================================
   BREADCRUMBS — global (blog, news, etc.)
   Produktowe strony mają te style w produkt-b2b/b2c.css.
   Tu definiujemy je globalnie dla pozostałych stron (blog).
   ============================================================ */

.breadcrumbs {
  padding: var(--space-md, 16px) 0;
  background: var(--color-bg, #fff);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs, 6px);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-small, 0.875rem);
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 6px);
}

.breadcrumbs__item::after {
  content: '→';
  color: var(--color-text-muted, #888);
}

.breadcrumbs__item:last-child::after {
  display: none;
}

.breadcrumbs__item a {
  color: var(--color-text-muted, #888);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__item a:hover {
  color: var(--color-text, #111);
}

.breadcrumbs__item span {
  color: var(--color-text, #111);
  font-weight: var(--fw-medium, 500);
}

@media (max-width: 767px) {
  .breadcrumbs__list {
    font-size: 0.75rem;
  }
}

/* ============================================================
   NEWS ARTICLE PAGE (page_news.ctr.php)
   ============================================================ */

.news-article {
  padding-bottom: var(--space-3xl, 64px);
}

.news-article__hero {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  margin-bottom: 0;
}

.news-article__hero-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.news-article__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 20px 0;
}

.news-article__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.news-article__category {
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent, #e34636);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.news-article__category:hover {
  opacity: 0.75;
}

.news-article__date {
  font-size: 0.875rem;
  color: var(--color-text-muted, #888);
}

.news-article__title {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-text, #111);
  margin-bottom: 24px;
}

.news-article__lead {
  font-size: 1.125rem;
  color: var(--color-text-muted, #444);
  line-height: 1.6;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e0e0e0;
}

.news-article__content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text, #222);
  margin-bottom: 40px;
}

.news-article__content h2 {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  margin: 32px 0 12px;
  color: var(--color-text, #111);
}

.news-article__content p {
  margin-bottom: 16px;
}

.news-article__back {
  padding: 20px 0 32px;
  border-top: 1px solid #e0e0e0;
}

.news-article__back-link {
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted, #555);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-article__back-link:hover {
  color: var(--color-accent, #e34636);
}

.news-article__related {
  background: var(--color-bg-light, #f8f8f8);
  padding: 60px 0;
  margin-top: 48px;
}

.news-related__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--color-text, #111);
  margin-bottom: 32px;
}

.blog-posts-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.blog-post-card--small .blog-post-card__image {
  height: 160px;
}

/* ============================================================
   RESPONSIVE — Blog
   ============================================================ */

@media (max-width: 991px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-posts-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-article__title {
    font-size: 1.6rem;
  }
}

@media (max-width: 767px) {
  .blog-posts-grid,
  .blog-posts-grid--3 {
    grid-template-columns: 1fr;
  }

  .blog-page-title {
    font-size: 1.5rem;
  }

  .news-article__hero-img {
    height: 250px;
  }

  .news-article__title {
    font-size: 1.35rem;
  }

  .news-article__inner {
    padding: 28px 16px 0;
  }

  .edu-card--article {
    flex: 0 0 240px;
    min-width: 220px;
  }

  .edu-card--video {
    flex: 0 0 320px;
    min-width: 300px;
  }

  .edu-card-video-grid {
    grid-template-columns: 1fr;
  }

  .edu-header {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* =========================================================
   STATIC PAGES (regulamin, o-nas, dostawa, etc.)
   v1.0.0 (22.02.2026) - klaudiusz@ovh-dpakula
   ========================================================= */

.static-page {
  max-width: 820px;
  margin: 52px auto 64px;
  background: #fff;
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.07);
  border-radius: 4px;
  padding: 52px 64px;
}

.static-page__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #111;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 3px solid #e34636;
  line-height: 1.2;
}

/* Headings inside content */
.static-page__body h1,
.static-page__body h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

.static-page__body h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.4;
}

.static-page__body h4,
.static-page__body h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  margin: 1.25rem 0 0.4rem;
}

/* Paragraphs */
.static-page__body p {
  font-size: 15px;
  line-height: 1.78;
  color: #444;
  margin-bottom: 1rem;
}

/* Lists */
.static-page__body ul,
.static-page__body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.25rem;
}

.static-page__body li {
  font-size: 15px;
  line-height: 1.72;
  color: #444;
  margin-bottom: 0.4rem;
}

/* Inline */
.static-page__body strong,
.static-page__body b {
  color: #111;
  font-weight: 600;
}

.static-page__body em,
.static-page__body i {
  color: #666;
}

/* Links */
.static-page__body a {
  color: #e34636;
  text-decoration: underline;
  text-decoration-color: rgba(227, 70, 54, 0.3);
  transition: text-decoration-color 0.15s;
}

.static-page__body a:hover {
  text-decoration-color: #e34636;
}

/* Dividers */
.static-page__body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2rem 0;
}

/* Blockquote */
.static-page__body blockquote {
  border-left: 3px solid #e34636;
  padding: 8px 20px;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
  background: #fafafa;
}

/* Tables */
.static-page__body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.static-page__body th {
  background: #111;
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.static-page__body td {
  padding: 9px 14px;
  border-bottom: 1px solid #eee;
  color: #444;
}

.static-page__body tr:last-child td {
  border-bottom: none;
}

/* ---- Mobile ---- */
@media (max-width: 991px) {
  .static-page {
    padding: 40px 40px;
  }
}

@media (max-width: 576px) {
  .static-page {
    margin: 24px 0 40px;
    padding: 28px 20px;
    box-shadow: none;
    border-radius: 0;
  }

  .static-page__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   PRODUCT CTA — UNAVAILABLE STATE (karuzele strona główna)
   v1.0.0 (23.02.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

.product-cta--unavailable {
  background-color: #d0d0d0 !important;
  cursor: not-allowed !important;
  opacity: 0.75;
}

.product-cta--unavailable:hover {
  background-color: #d0d0d0 !important;
}

/* ============================================================
   TOAST NOTIFICATION (Quick Add to Cart z karuzeli)
   v1.0.0 (23.02.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

#seco-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

#seco-toast.seco-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#seco-toast.seco-toast--error {
  background: #dc3545;
}

@media (max-width: 767px) {
  #seco-toast {
    bottom: 80px;
  }
}

/* ============================================================
   MINICART — NOWY PRODUKT: ANIMACJA HIGHLIGHT
   v1.0.0 (23.02.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

@keyframes highlightNew {
  0%   { background: rgba(227, 70, 54, 0.18); box-shadow: inset 3px 0 0 #e34636; }
  70%  { background: rgba(227, 70, 54, 0.06); box-shadow: inset 3px 0 0 #e34636; }
  100% { background: transparent; box-shadow: none; }
}

.cart-dropdown-item.cart-item--new,
.cart-item.cart-item--new {
  animation: highlightNew 1.6s ease-out forwards;
}

/* ============================================================
   OPINIE / RECENZJE — UKRYTE GLOBALNIE
   v1.0.0 (23.02.2026) - klaudiusz@ovh-dpakula
   Funkcja ocen nieaktywna — elementy ukryte na listingu + stronie produktu
   ============================================================ */

/* Karta produktu na listingu (page_category, page_search) */
.b2c-product-card__rating {
  display: none !important;
}

/* Sekcja oceny na stronie produktu (B2B + B2C) */
.product-info__rating {
  display: none !important;
}

/* ============================================================
   CAMPAIGN THRESHOLD DISCOUNTS — PODSUMOWANIE KOSZYKA
   v1.0.0 (28.02.2026) - klaudiusz@ovh-dpakula
   Wyświetlanie aktywnych zniżek kampanijnych pod łącznym rabatem
   ============================================================ */

.checkout-summary__campaigns {
  padding: 0 0 4px 0;
}

.checkout-summary__campaign-info {
  display: block;
  font-size: 0.8rem;
  color: #00b050;
  line-height: 1.4;
  padding: 1px 0;
}

.checkout-summary__campaign-info--gratis {
  color: #c0392b;
  font-weight: 500;
}

/* ============================================================
   LOYALTY PRIZES — Panel klienta sekcja nagród (R4)
   v1.0.0 (02.03.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

.loyalty-prizes {
  margin-top: 2rem;
}

.loyalty-prizes__title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: #111;
}

.loyalty-prizes__empty {
  color: #888;
  font-size: 0.9rem;
}

.loyalty-prizes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.loyalty-prize-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.18s;
}

.loyalty-prize-card:hover {
  border-color: #111;
}

.loyalty-prize-card--unavailable {
  opacity: 0.55;
}

.loyalty-prize-card--active {
  border-color: #00b050;
  background: #f6fff9;
}

.loyalty-prize-card__type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.loyalty-prize-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  line-height: 1.3;
}

.loyalty-prize-card__cost {
  font-size: 0.85rem;
  color: #555;
}

.loyalty-prize-card__btn {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.45rem 0.75rem;
  border-radius: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}

.loyalty-prize-card__btn--redeem {
  background: #111;
  color: #fff;
  transition: background 0.18s;
}

.loyalty-prize-card__btn--redeem:hover:not(:disabled) {
  background: #333;
}

.loyalty-prize-card__btn--redeem:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loyalty-prize-card__btn--active {
  background: #00b050;
  color: #fff;
}

.loyalty-prize-card__btn--locked {
  background: #f0f0f0;
  color: #888;
  cursor: not-allowed;
}

.loyalty-active-prize {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #f6fff9;
  border: 1px solid #00b050;
  font-size: 0.9rem;
  color: #111;
}

.loyalty-active-prize__icon {
  color: #00b050;
  font-weight: 700;
  margin-right: 0.35rem;
}

/* ============================================================
   LOYALTY HISTORY — historia transakcji punktowych
   v1.0.0 (02.03.2026) - klaudiusz@ovh-dpakula
   ============================================================ */

.loyalty-history {
  margin-top: 2rem;
}

.loyalty-history__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 0.75rem;
}

.loyalty-history__list {
  border: 1px solid #ececec;
  border-radius: 8px;
  overflow: hidden;
}

.loyalty-history__header {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  background: #f7f7f7;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.loyalty-history__row {
  display: grid;
  grid-template-columns: 90px 1fr 80px;
  padding: 0.65rem 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.85rem;
  align-items: center;
}

.loyalty-history__row:hover {
  background: #fafafa;
}

.loyalty-history__date {
  color: #999;
  font-size: 0.8rem;
}

.loyalty-history__desc {
  color: #333;
}

.loyalty-history__pts {
  text-align: right;
  font-weight: 700;
  font-size: 0.9rem;
}

.loyalty-history__pts--positive {
  color: #00b050;
}

.loyalty-history__pts--negative {
  color: #e53935;
}

.loyalty-history__empty {
  color: #aaa;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ============================================================
   PROMO STRIP — CLICKABLE BRAND BOX (a.promo-brand)
   v1.0.0 (28.02.2026) - klaudiusz@ovh-dpakula
   Reset link styles dla klikowalnych boksów producenta
   ============================================================ */

a.promo-brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

a.promo-brand:hover {
  opacity: 0.82;
}

a.promo-brand .promo-brand-name {
  color: var(--color-text, #111);
}

/* ============================================================
   ADDRESS MODAL — shared (checkout + panel)
   v1.0.0 (02.03.2026) - klaudiusz@ovh-dpakula
   Moved from panel-klienta-b2c.css so checkout can reuse
   ============================================================ */

.address-modal-overlay {
   display: none;
   position: fixed;
   inset: 0;
   z-index: 9000;
   background: rgba(0, 0, 0, 0.55);
   align-items: center;
   justify-content: center;
   padding: var(--space-md);
}

.address-modal-overlay.is-open {
   display: flex;
}

body.address-modal-open {
   overflow: hidden;
}

.address-modal {
   background: var(--color-bg);
   border: 1px solid var(--color-border);
   width: 100%;
   max-width: 600px;
   max-height: 90vh;
   overflow-y: auto;
   padding: var(--space-lg);
   position: relative;
}

.address-modal__header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: var(--space-md);
   padding-bottom: var(--space-sm);
   border-bottom: 1px solid var(--color-border);
}

.address-modal__title {
   font-size: 0.875rem;
   font-weight: var(--fw-bold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   margin: 0;
   color: var(--color-text);
}

.address-modal__close {
   width: 28px;
   height: 28px;
   background: transparent;
   border: none;
   font-size: 1.25rem;
   line-height: 1;
   cursor: pointer;
   color: var(--color-text-muted);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: var(--transition-base);
}

.address-modal__close:hover {
   color: var(--color-text);
}

.address-modal__error {
   padding: var(--space-sm) var(--space-md);
   background: #fef2f2;
   border: 1px solid #fca5a5;
   color: #dc2626;
   font-size: var(--fs-small);
   margin-bottom: var(--space-md);
}

.address-modal__grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: var(--space-sm) var(--space-md);
}

.address-modal__field {
   display: flex;
   flex-direction: column;
   gap: 4px;
}

.address-modal__field--full {
   grid-column: 1 / -1;
}

.address-modal__label {
   font-size: 0.6875rem;
   font-weight: var(--fw-semibold);
   text-transform: uppercase;
   letter-spacing: 0.04em;
   color: var(--color-text-muted);
}

.address-modal__input {
   padding: var(--space-sm) var(--space-md);
   border: 1px solid var(--color-border);
   background: var(--color-bg);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   color: var(--color-text);
   outline: none;
   transition: border-color 0.15s;
   width: 100%;
   box-sizing: border-box;
}

.address-modal__input:focus {
   border-color: var(--color-text);
}

.address-modal__footer {
   display: flex;
   gap: var(--space-sm);
   justify-content: flex-end;
   margin-top: var(--space-lg);
   padding-top: var(--space-sm);
   border-top: 1px solid var(--color-border);
}

.address-modal__btn {
   padding: var(--space-sm) var(--space-lg);
   font-family: var(--font-base);
   font-size: var(--fs-small);
   font-weight: var(--fw-semibold);
   text-transform: uppercase;
   letter-spacing: 0.05em;
   cursor: pointer;
   border: 2px solid transparent;
   transition: var(--transition-base);
}

.address-modal__btn--cancel {
   background: transparent;
   border-color: var(--color-border);
   color: var(--color-text-muted);
}

.address-modal__btn--cancel:hover {
   border-color: var(--color-text);
   color: var(--color-text);
}

.address-modal__btn--save {
   background: var(--color-bg-dark);
   color: var(--color-text-inverse);
   border-color: var(--color-bg-dark);
}

.address-modal__btn--save:hover {
   background: transparent;
   color: var(--color-text);
}

.address-modal__btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
}

@media (max-width: 480px) {
   .address-modal__grid {
      grid-template-columns: 1fr;
   }

   .address-modal__field--full {
      grid-column: 1;
   }

   .address-modal__footer {
      flex-direction: column-reverse;
   }

   .address-modal__btn {
      width: 100%;
      text-align: center;
   }
}
