/* ==========================================================================
   STYLE DLA SKLEPU, KAFELKÓW KATEGORII, KONFIGURATORA I KOSZYKA
   Metal System - Parapety Jędrzejów
   ========================================================================== */

:root {
  --shop-primary: #ff0018;
  --shop-primary-dark: #d60014;
  --shop-primary-light: rgba(255, 0, 24, 0.08);
  --shop-dark: #1a202c;
  --shop-gray-100: #f8fafc;
  --shop-gray-200: #e2e8f0;
  --shop-gray-300: #cbd5e1;
  --shop-text: #334155;
  --shop-radius: 12px;
  --shop-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  --shop-shadow-hover: 0 18px 40px rgba(0, 0, 0, 0.12);
  --shop-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. HERO I BANER GŁÓWNY SKLEPU (ECOMMERCE STORE HERO)
   ========================================================================== */
.shop-hero-section {
  position: relative;
  background: linear-gradient(135deg, #111827 0%, #1e293b 60%, #0f172a 100%);
  color: #ffffff;
  padding: 85px 0 95px;
  overflow: hidden;
  border-bottom: 3px solid var(--shop-primary);
}

.shop-hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 0, 24, 0.18) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.shop-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.shop-hero-tag .dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #22c55e;
}

.shop-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
}

.shop-hero-title span {
  color: #ff334b;
  text-shadow: 0 0 25px rgba(255, 0, 24, 0.4);
}

.shop-hero-desc {
  font-size: 17px;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 620px;
  margin-bottom: 30px;
}

.shop-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.shop-chip-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--shop-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-chip-btn:hover {
  background: var(--shop-primary);
  border-color: var(--shop-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.shop-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero-primary {
  background: var(--shop-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 0, 24, 0.4);
  transition: var(--shop-transition);
  border: none;
}

.btn-hero-primary:hover {
  background: var(--shop-primary-dark);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 0, 24, 0.5);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--shop-transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ==========================================================================
   2. PASEK ATUTÓW SKLEPU (E-COMMERCE FEATURE CARDS)
   ========================================================================== */
.shop-features-section {
  position: relative;
  margin-top: -36px;
  z-index: 20;
  margin-bottom: 45px;
}

.shop-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.shop-feature-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.shop-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff0018 0%, #b80010 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.shop-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 35px rgba(255, 0, 24, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(255, 0, 24, 0.35);
}

.shop-feature-card:hover::before {
  opacity: 1;
}

.shop-feature-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff0018 0%, #c40012 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 18px rgba(255, 0, 24, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-feature-card:hover .shop-feature-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 10px 22px rgba(255, 0, 24, 0.38);
}

.shop-feature-content {
  flex: 1;
  min-width: 0;
}

.shop-feature-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
  margin-bottom: 3px;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.shop-feature-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
  font-weight: 500;
}

@media (max-width: 1199px) {
  .shop-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 575px) {
  .shop-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .shop-features-section {
    margin-top: 15px;
    margin-bottom: 30px;
  }
}

/* Fallback starych klas */
.shop-perks-bar {
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: -36px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--shop-gray-200);
}

.shop-perk-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
}

.shop-perk-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(255, 0, 24, 0.08);
  color: var(--shop-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.shop-perk-title {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--shop-dark);
  margin-bottom: 2px;
}

.shop-perk-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 0;
  line-height: 1.4;
}

/* ==========================================================================
   HEADER TOP BAR ALIGNMENT & COMPACT SLIM LAYOUT
   ========================================================================== */
.header-one .logo-area {
  padding: 6px 0 !important;
}

.header-one .logo img {
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain;
}

ul.top-info-box {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
  float: right !important;
  gap: 16px !important;
}

ul.top-info-box li {
  float: none !important;
  margin: 0 !important;
  padding: 0 16px 0 0 !important;
  border-right: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}

ul.top-info-box li.header-cart-box,
ul.top-info-box li.header-get-a-quote,
ul.top-info-box li.last {
  border-right: none !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

ul.top-info-box .info-box {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  white-space: nowrap !important;
}

ul.top-info-box .info-box-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: var(--shop-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  margin-right: 8px;
}

ul.top-info-box .info-box-title {
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  margin: 0 0 1px 0 !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  display: block !important;
  white-space: nowrap !important;
}

ul.top-info-box .info-box-subtitle {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  text-decoration: none !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  display: block !important;
  white-space: nowrap !important;
  transition: color 0.2s ease !important;
}

ul.top-info-box .info-box-subtitle:hover {
  color: var(--shop-primary) !important;
}

/* ==========================================================================
   MENU NAWIGACJI - ZAWSZE W JEDNEJ LINII (SINGLE LINE NAVBAR)
   ========================================================================== */
.header-one .site-navigation {
  background: #1e242b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 2px solid var(--shop-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .header-one .site-navigation .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  @media (min-width: 1320px) {
    .header-one .site-navigation .container {
      max-width: 1280px;
      padding-left: 15px;
      padding-right: 15px;
    }
  }

  .header-one .navbar {
    padding: 0 !important;
  }

  .header-one .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0 !important;
  }

  .header-one ul.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100%;
    margin: 0 !important;
    gap: 0;
  }

  .header-one ul.navbar-nav > li {
    padding-left: 0 !important;
    padding-right: 22px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  .header-one ul.navbar-nav > li:last-child {
    padding-right: 0 !important;
  }

  .header-one ul.navbar-nav > li > a {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    padding: 16px 0 !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #f1f5f9 !important;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .header-one ul.navbar-nav > li:hover > a {
    color: #ff0018 !important;
  }

  .header-one ul.navbar-nav > li.active > a {
    color: #ff0018 !important;
    position: relative;
  }

  .header-one ul.navbar-nav > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ff0018;
    border-radius: 3px 3px 0 0;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .header-one ul.navbar-nav > li {
    padding-right: 14px !important;
  }
  .header-one ul.navbar-nav > li > a {
    font-size: 12px !important;
    letter-spacing: 0.1px;
    padding: 14px 0 !important;
  }
}

/* ==========================================================================
   MOBILE HEADER & DRAWER OPTIMIZATION (max-width: 991px)
   ========================================================================== */
@media (max-width: 991px) {
  #top-bar {
    display: none !important;
  }

  .header-one .header-middle-bar {
    border-bottom: 1px solid #e2e8f0;
  }

  .header-one .logo-area {
    padding: 4px 0 !important;
  }

  .header-logo-img {
    max-height: 30px !important;
    width: auto !important;
    object-fit: contain;
  }

  /* Pasek szybkich akcji mobilnych */
  .mobile-quick-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
  }

  .mobile-hdr-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    text-decoration: none !important;
    position: relative;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
  }

  .mobile-hdr-btn:hover,
  .mobile-hdr-btn:active {
    background: #e2e8f0;
    color: var(--shop-primary);
  }

  .mobile-hdr-call {
    background: #fee2e2;
    color: var(--shop-primary);
    border-color: #fca5a5;
  }

  .mobile-hdr-cart {
    background: var(--shop-primary);
    color: #ffffff;
    border-color: var(--shop-primary);
  }

  .mobile-hdr-cart:hover,
  .mobile-hdr-cart:active {
    background: var(--shop-primary-dark);
    color: #ffffff;
  }

  .mobile-hdr-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ffffff;
    color: var(--shop-primary);
    border: 2px solid var(--shop-primary);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    padding: 0 4px;
    line-height: 13px;
    min-width: 16px;
    text-align: center;
  }

  .mobile-hdr-menu-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #1e242b !important;
    color: #ffffff !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    padding: 0 !important;
    cursor: pointer;
  }

  /* Pasek site-navigation na mobile */
  .header-one .site-navigation {
    padding: 0 !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  .header-one .site-navigation .navbar {
    padding: 0 !important;
  }

  .header-one .navbar-collapse {
    background: #181d24;
    padding: 12px 18px 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  }

  .header-one ul.navbar-nav > li {
    padding: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .header-one ul.navbar-nav > li > a {
    padding: 11px 0 !important;
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13.5px !important;
    color: #f1f5f9 !important;
    text-transform: uppercase;
    font-weight: 700;
  }

  .header-one ul.navbar-nav > li.active > a,
  .header-one ul.navbar-nav > li:hover > a {
    color: var(--shop-primary) !important;
    padding-left: 6px !important;
  }

  .header-one .dropdown-menu {
    background: #11151b !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px;
    margin: 5px 0 10px;
    padding: 8px 12px;
  }

  .header-one .dropdown-menu li a {
    color: #cbd5e1 !important;
    font-size: 13px !important;
    padding: 6px 0 !important;
    display: block;
  }
}

/* ==========================================================================
   3. KAFELKI GRAFICZNE KATEGORII NA STRONIE GŁÓWNEJ (EQUAL HEIGHTS & SMOOTH ZOOM)
   ========================================================================== */
.section-categories {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  border-bottom: 1px solid #edf2f7;
}

.category-intro-box {
  padding: 10px 10px 10px 0;
}

.category-intro-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.15;
}

.category-intro-text {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.7;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 991px) {
  .category-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 576px) {
  .category-tiles-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.category-tile-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
  will-change: transform, box-shadow;
}

.category-tile-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 0, 24, 0.3);
  border-color: rgba(255, 0, 24, 0.45);
}

.category-tile-image-wrap {
  height: 270px;
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.category-tile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1), filter 0.65s ease;
  will-change: transform;
}

/* PŁYNNE ZBLIŻENIE ZDJĘCIA PO NAJECHANIU (SMOOTH ZOOM-IN) */
.category-tile-card:hover .category-tile-image {
  transform: scale(1.10);
  filter: brightness(1.04);
}

.category-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(15, 23, 42, 0.5) 100%);
  transition: opacity 0.4s ease;
}

.category-tile-card:hover .category-tile-overlay {
  opacity: 0.8;
}

.category-tile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--shop-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 0, 24, 0.4);
  z-index: 2;
}

.category-tile-icon-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--shop-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 3;
  transition: transform 0.35s ease, background 0.35s ease;
}

.category-tile-card:hover .category-tile-icon-badge {
  transform: scale(1.1) rotate(5deg);
  background: #ffffff;
}

.category-tile-price-tag {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 3;
}

.category-tile-body {
  padding: 18px 20px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-tile-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--shop-dark);
  margin-bottom: 8px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.category-tile-card:hover .category-tile-title {
  color: var(--shop-primary);
}

.category-tile-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  max-height: 40px;
}

.category-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--shop-gray-200);
  margin-top: auto;
}

.category-count-pill {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.category-btn-arrow {
  color: var(--shop-primary);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-tile-card:hover .category-btn-arrow {
  transform: translateX(5px);
}

/* ==========================================================================
   2. KARTY PRODUKTÓW (PRODUCT CARDS - EQUAL HEIGHTS)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.product-card {
  background: #ffffff;
  border-radius: var(--shop-radius);
  border: 1px solid var(--shop-gray-200);
  box-shadow: var(--shop-shadow);
  overflow: hidden;
  transition: var(--shop-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shop-shadow-hover);
  border-color: rgba(255, 0, 24, 0.3);
}

.product-card-thumb-wrap {
  height: 200px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.product-card-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.product-card:hover .product-card-thumb {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--shop-dark);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
}

.product-card-calc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #0284c7;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  z-index: 2;
}

.product-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: var(--shop-primary);
  margin-bottom: 6px;
}

.product-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--shop-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 16px;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   3. DEDYKOWANY KONFIGURATOR CENY I WYMIARÓW (DLA PARAPETÓW)
   ========================================================================== */
.parapet-configurator-box {
  background: #fbfcfe;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 14px 10px;
  margin-bottom: 14px;
}

.config-field-group {
  margin-bottom: 12px;
}

.config-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}

.config-field-label .info-icon {
  color: #0284c7;
  cursor: help;
  font-size: 13px;
}

.config-select,
.config-input {
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  padding: 0 10px;
  background-color: #ffffff;
  color: #1e293b;
  transition: var(--shop-transition);
}

.config-select:focus,
.config-input:focus {
  border-color: var(--shop-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 0, 24, 0.1);
}

.config-calc-summary-row {
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.config-calc-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.config-calc-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--shop-primary);
}

/* Przyciski i akcje */
.product-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--shop-gray-200);
}

.product-card-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: var(--shop-primary);
}

.product-card-unit {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.product-card-stock {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-card-stock::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-add-cart {
  flex: 1;
  background: var(--shop-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--shop-transition);
}

.btn-add-cart:hover {
  background: var(--shop-primary-dark);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 0, 24, 0.3);
}

.input-qty {
  width: 58px;
  text-align: center;
  border: 1px solid var(--shop-gray-300);
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

/* Karta produktu - Stepper ilości i przycisk Dodaj do koszyka (Pixel-Perfect) */
.product-purchase-action-block {
  margin-top: 1.5rem;
}

.product-action-controls-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.product-qty-stepper-box {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  height: 50px;
  min-width: 135px;
  max-width: 145px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s;
}

.product-qty-stepper-box:focus-within {
  border-color: #ff0018;
  box-shadow: 0 0 0 3px rgba(255, 0, 24, 0.1);
}

.btn-qty-step-action {
  border: none;
  background: #f8fafc;
  width: 40px;
  height: 100%;
  font-size: 13px;
  font-weight: bold;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  padding: 0;
  margin: 0;
}

.btn-qty-step-action:hover {
  background: #e2e8f0;
  color: #0f172a;
}

#product-qty-input-field {
  border: none !important;
  border-left: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  height: 100% !important;
  font-size: 16px !important;
  color: #0f172a !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100%;
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
}

#product-qty-input-field::-webkit-inner-spin-button,
#product-qty-input-field::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 480px) {
  .product-action-controls-row {
    flex-wrap: wrap;
  }
  .product-qty-stepper-box {
    width: 100%;
    max-width: 100%;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   WARIANTY KOLORYSTYCZNE & KAFELKI PRÓBEK KOLORÓW (PRODUCT COLOR SWATCHES)
   ========================================================================== */
.product-colors-selection-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.product-colors-selection-wrap {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.color-swatch-squares-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 9px;
}

.color-swatch-square-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px 5px 8px 5px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none !important;
  user-select: none;
  position: relative;
  width: 100%;
}

.color-swatch-square-btn:hover {
  background: #ffffff;
  border-color: #ff0018;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.color-swatch-square-btn.active {
  background: #fffafa;
  border-color: #ff0018;
  box-shadow: 0 0 0 2.5px rgba(255, 0, 24, 0.22), 0 8px 20px rgba(255, 0, 24, 0.12);
}

.swatch-square-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.swatch-check-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff0018;
  color: #ffffff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.35);
}

.color-swatch-square-btn.active .swatch-check-badge {
  opacity: 1;
  transform: scale(1);
}

.swatch-square-meta {
  width: 100%;
  margin-top: 5px;
  text-align: center;
}

.swatch-square-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.color-swatch-square-btn.active .swatch-square-name {
  color: #ff0018;
  font-weight: 800;
}

.swatch-square-ral {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.1;
  margin-top: 1.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.color-swatch-square-btn.active .swatch-square-ral {
  color: #e11d48;
}

/* Wzornik w zakładce opisu */
.color-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.color-gallery-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.color-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #ff0018;
}

.color-gallery-swatch-box {
  height: 110px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.color-gallery-info {
  padding: 10px 12px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.color-gallery-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.color-gallery-sub {
  font-size: 11.5px;
  color: #64748b;
}

/* ==========================================================================
   4. STRONA KOSZYKA (MODERN BALANCED CHECKOUT LAYOUT)
   ========================================================================== */
.cart-section {
  padding: 50px 0 80px;
  background: #f8fafc;
}

.cart-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.cart-box-header {
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.cart-box-body {
  padding: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--shop-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  border-radius: 50%;
  margin-right: 8px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.cart-item-info {
  flex: 2;
  min-width: 200px;
}

.cart-item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--shop-dark);
  margin-bottom: 4px;
}

.cart-item-config-badge {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 13.5px;
  color: var(--shop-primary);
  font-weight: 700;
}

.cart-item-qty-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-total {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--shop-dark);
  min-width: 90px;
  text-align: right;
}

/* Kafelki metod płatności */
.payment-methods-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 0;
  transition: all 0.25s ease;
}

.payment-option-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.payment-option-card input[type="radio"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--shop-primary);
}

.payment-option-card:has(input[type="radio"]:checked) {
  border-color: var(--shop-primary);
  background: rgba(255, 0, 24, 0.02);
  box-shadow: 0 0 0 1px var(--shop-primary);
}

.payment-option-content {
  flex: 1;
}

.payment-option-title {
  font-size: 14.5px;
  color: #1e293b;
}

.cart-summary-sticky-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
  padding: 26px;
  position: -webkit-sticky;
  position: sticky;
  top: 90px;
  z-index: 30;
  transition: box-shadow 0.2s ease;
}

@media (max-width: 991px) {
  .cart-summary-sticky-card {
    position: static;
    top: auto;
    margin-top: 25px;
  }
}

.cart-summary-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f1f5f9;
}

.cart-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #475569;
}

.cart-summary-total-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.total-label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  font-weight: 600;
}

.total-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 4px 0 2px;
}

.total-vat {
  font-size: 11.5px;
  color: #cbd5e1;
}

.checkout-submit-btn {
  border-radius: 10px;
  background: var(--shop-primary);
  border: none;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.checkout-submit-btn:hover {
  background: var(--shop-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 24, 0.35) !important;
}

.cart-security-badges {
  font-size: 12.5px;
}

/* ==========================================================================
   5. TOAST POWIADOMIENIA
   ========================================================================== */
.shop-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--shop-dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--shop-primary);
}

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

/* ==========================================================================
   6. DEDYKOWANA KARTA PRODUKTU (PRODUKT.PHP)
   ========================================================================== */
.product-single-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--shop-dark);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  z-index: 2;
}

.product-single-calc-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #0284c7;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
  z-index: 2;
}

.product-gallery-box {
  background: #f8fafc;
  border: 1px solid var(--shop-gray-200);
  transition: var(--shop-transition);
}

.product-gallery-box:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Sticky podgląd produktu na karcie produktu (desktop) */
@media (min-width: 992px) {
  .product-gallery-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 85px;
    z-index: 10;
    transition: top 0.2s ease;
  }
}

.product-details-wrap .config-live-price {
  color: var(--shop-primary);
  font-family: 'Montserrat', sans-serif;
}

/* ==========================================================================
   7. COOKIE CONSENT BAR
   ========================================================================== */
.cookie-consent-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 2px solid rgba(255, 0, 24, 0.8);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  transition: opacity 0.3s ease, transform 0.3s ease;
}


