/* ==========================================================
   1. ГЛОБАЛЬНІ ЗМІННІ ТА ШРИФТИ
   ========================================================== */
@import url("https://fonts.googleapis.com/css2?family=Pathway+Gothic+One&family=Space+Grotesk:wght@500;700&family=Plus+Jakarta+Sans:wght@400;600;700&display=swap");

:root {
  --primary-red: #ff0000;
  --bg-black: #000000;
  --panel-grey: #0a0a0a;
  --input-bg: #ffffff;
  --text-white: #ffffff;

  --font-H1: "Pathway Gothic One", sans-serif;
  --font-H2: "Space Grotesk", sans-serif;
  --font-H3: "Space Grotesk", sans-serif;
  --font-H4: "Plus Jakarta Sans", sans-serif;
  --font-H5: "Plus Jakarta Sans", sans-serif;

  /* Твоя палітра */
  --primary: #1e0b1a;
  --primary-text: #1e0b1a;
  --light: #e6007e;
  --accent: #7842b6;
  --text-color: #9d9d9d;

  --glass-bg: rgba(10, 10, 10, 0.6);
  --glass-blur: blur(20px);
  --glass-border: rgba(255, 255, 255, 0.1);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: transparent;
  color: var(--text-white);
  font-family: var(--font-H4);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==========================================================
   2. ТИПОГРАФІКА ТА ГЛОБАЛЬНІ КЛАСИ
   ========================================================== */
.font-demo h1 {
  font-family: var(--font-H1);
  color: var(--text-white);
  font-size: 100px;
  line-height: 0.85;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}
.font-demo h2 {
  font-family: var(--font-H2);
  font-size: 32px;
  color: var(--text-white);
  margin: 0 0 10px 0;
}
.font-demo h3 {
  font-family: var(--font-H3);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-white);
}
.font-demo p {
  font-family: var(--font-H4);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-white);
  margin: 10px 0;
}
.text-small {
  font-family: var(--font-H5);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-color);
  opacity: 0.7;
  letter-spacing: 0.3px;
}


/* ==========================================================
   4. СТОРІНКА ТОВАРУ (PRODUCT DETAIL) - Нова та адаптивна
   ========================================================== */
.product-detail-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 100px;
  z-index: 10;
  overflow: hidden;
}
.hero-text-layer {
  position: absolute;
  top: 10%;
  left: 13%;
  width: 90%;
  z-index: 2;
  pointer-events: none;
}
.figma-main-title {
  font-family: var(--font-H1);
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.9;
  margin: 0;

  color: white;
  text-transform: uppercase;
}
.figma-store-tag {
  font-family: var(--font-H2);
  color: var(--light);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  margin-top: 10px;
  padding-left: 0%;
}

.figma-content-wrapper {
  position: relative;
  width: 75%;
  max-width: 1600px;
  margin: 0 auto;
min-height: 80vh;
  display: flex;
  align-items: center;
  z-index: 5;
  padding-top: 85px;
}
.product-interface-grid {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: stretch; /* <--- ОСЬ ЦЕ ЗРІВНЯЄ ЇХНЮ ВИСОТУ */
  pointer-events: none;
}

.side-panel {
  width: 22vw;
  min-width: 280px;
  max-width: 360px;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 30px;
  pointer-events: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.center-spacer {
  flex: 1;
}

.figma-product-avatar-layer {
  position: absolute;
  top: 60% ;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
}
.avatar-glow-effect {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(230, 0, 126, 0.2) 0%,
    transparent 60%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}
.figma-hero-img {
  height: 75vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.8));
  animation: floatHero 6s ease-in-out infinite;
}
@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Внутрішні елементи карток товару */
.figma-section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 15px;
}
.figma-sku {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
}
.figma-sub-title {
  font-size: 24px;
  font-family: var(--font-H3);
  margin: 5px 0;
  line-height: 1.2;
}
.figma-price-tag {
  font-size: 34px;
  font-family: var(--font-H2);
  font-weight: 900;
  color: var(--light);
  margin-bottom: 25px;
}
.figma-desc-text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.figma-mini-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.thumb-box {
  width: 65px;
  height: 65px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
}
.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.thumb-box.active,
.thumb-box:hover {
  border-color: var(--light);
  box-shadow: 0 0 10px rgba(230, 0, 126, 0.3);
}
.thumb-box.active img {
  opacity: 1;
}
/* ==========================================================
   TRACKING CONSEGNA (ТАЙМЛАЙН ДОСТАВКИ)
   ========================================================== */
.web3-timeline-container {
    width: 100%;
    margin-top: 25px;
    /* 1. РОБИМО ФОН ПРОЗОРИМ */
    background: transparent; 
    /* 2. ПРИБИРАЄМО ВНУТРІШНІ ВІДСТУПИ, щоб текст став в одну лінію з іншим контентом */
    padding: 0; 
    border-radius: 0;
    overflow: visible; 
}

.web3-timeline {
    display: flex;
    justify-content: space-between;
    /* 3. ВИРІВНЮЄМО ІДЕАЛЬНО ПО ГОРИЗОНТАЛІ */
    align-items: flex-start; 
    width: 100%;
    gap: 5px; 
    margin-top: 15px; /* Відсуваємо іконки трохи вниз від заголовка "TRACKING CONSEGNA" */
}
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1; 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.timeline-node:hover {
    transform: scale(1.15); 
}

.node-icon {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    transition: 0.3s;
}

.timeline-node.active .node-icon {
    color: var(--light); 
    filter: drop-shadow(0 0 8px rgba(230, 0, 126, 0.5)); 
}

.node-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.node-date {
    font-size: clamp(10px, 1.2vw, 13px); 
    font-weight: 800;
    color: white;
    white-space: nowrap; 
}

.node-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.figma-label-pink {
  color: var(--light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 10px;
  margin-top: 15px;
}
.figma-color-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.figma-color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}
.figma-color-circle.active-neon {
  border-color: white;
  box-shadow: 0 0 12px var(--light);
  transform: scale(1.1);
}
.figma-size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.figma-size-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  font-family: var(--font-H4);
  min-width: 40px;
}
.figma-size-btn.active {
  background: var(--light);
  border-color: var(--light);
  box-shadow: 0 0 10px rgba(230, 0, 126, 0.4);
}

.size-guide-table {

background: transparent !important; /* Прибрали фон */
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.size-guide-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.size-guide-table th {
  color: var(--light);
  font-weight: 800;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.size-guide-table td {
  color: white;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.figma-qty-selector {
  background: rgba(255, 255, 255, 0.08);
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 12px;
}
.figma-qty-selector button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}
.action-heart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* ТЕПЕР ВОНА КВАДРАТНА (ЗАКРУГЛЕНА), ЯК У ШОПІ */
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.action-heart-btn:hover {
    background: rgba(230, 0, 126, 0.1);
    border-color: var(--light);
    transform: translateY(-2px); /* Легкий підйом при наведенні */
}

/* Стилізація іконки всередині */
.action-heart-btn svg {
    transition: transform 0.3s ease;
}

.action-heart-btn:active {
    transform: scale(0.9); /* Ефект натискання */
}

/* ==========================================================
   АДАПТАЦІЯ ДЛЯ ПЛАНШЕТІВ (Нова логіка: Аватар зверху, Панелі знизу)
   ========================================================== */
@media (min-width: 769px) and (max-width: 1150px) {
    
    /* 1. ПОВЕРТАЄМО ТВІЙ ОРИГІНАЛЬНИЙ ЗАГОЛОВОК */
    .hero-text-layer.desktop-only {
        display: block !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        text-align: left !important;
        margin-bottom: 20px !important;
        pointer-events: auto !important;
        z-index: 10 !important;
    }

    .hero-text-layer .figma-main-title {
        text-align: center !important;
        font-size: clamp(50px, 7vw, 80px) !important;
        line-height: 1 !important;
    }
    .hero-text-layer .figma-store-tag {
        text-align: center !important;
        padding-left: 0 !important;
        margin-top: 10px !important;
    }

    .mobile-hero-header {
        display: none !important;
    }

    /* 2. ГОЛОВНА ОБГОРТКА */
    .figma-content-wrapper {
        flex-direction: column !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 40px 40px 40px !important;
        box-sizing: border-box !important;
    }

    /* 4. ГОЛОВНА СІТКА */
    .product-interface-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 25px !important; 
        width: 100% !important;
        max-width: 1000px !important; 
        box-sizing: border-box !important;
        align-items: stretch !important; 
    }

    .side-panel {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        position: static !important;
        box-sizing: border-box !important;
        height: 100% !important; 
        display: flex !important;
        flex-direction: column !important;
    }

    /* РЯД 1: ВЕЛИКИЙ АВАТАР */
    .mobile-avatar-section,
    .figma-product-avatar-layer {
        grid-column: 1 / 3 !important; 
        grid-row: 1 !important; 
        position: relative !important; 
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        height: 480px !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        pointer-events: auto !important;
        margin-bottom: 20px !important;
    }

    .figma-hero-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    /* РЯД 2: ОПИС (Зліва) + ПОКУПКА (Справа) */
    .left-panel {
        grid-column: 1 / 2 !important;
        grid-row: 2 !important;
    }

    .right-panel {
        grid-column: 2 / 3 !important;
        grid-row: 2 !important;
    }

    /* РЯД 3: РЕКОМЕНДАЦІЇ */
    .product-carousel-section {
        display: grid !important;
        grid-column: 1 / 3 !important; 
        grid-row: 3 !important; 
        grid-template-columns: 1fr 1fr !important; 
        gap: 25px !important; 
        width: 100% !important;
        margin-top: 20px !important;
        padding: 0 40px 40px 40px !important; 
        box-sizing: border-box !important; 
    }
} /* <--- ОСЬ ЦЯ ДУЖКА БУЛА ПРОПУЩЕНА! Вона закриває @media */
/* ==========================================================
   5. СХОЖІ ТОВАРИ (КАРУСЕЛЬ)
   ========================================================== */
.product-carousel-section {
  position: relative;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 100px 5%;
  background: transparent;
}
.product-card {
  background: rgba(15, 5, 17, 0.6);
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 25px;
  width: 260px;
  text-align: center;
  transition: 0.4s;
  position: relative;
}
.product-card:hover {
  border-color: var(--light);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}
.product-img-box {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-img-box img {
  max-height: 100%;
  max-width: 100%;
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.5));
  transition: 0.4s;
}
.product-card:hover .product-img-box img {
  transform: scale(1.05);
}
.store-name {
  color: var(--light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.product-title {
  font-family: var(--font-H3);
  font-size: 18px;
  margin: 10px 0;
  color: white;
}
.product-price {
  font-size: 24px;
  font-family: var(--font-H2);
  font-weight: 900;
  color: white;
  margin-bottom: 20px;
}
.is-bestseller-card {
  border: 2px solid var(--light);
  background: rgba(230, 0, 126, 0.05);
}
.bestseller-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--light);
  color: white;
  font-size: 10px;
  font-weight: 900;
  padding: 5px 15px;
  border-radius: 20px;
}
.buy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-H4);
  text-transform: uppercase;
  font-size: 12px;
  width: 100%;
}
.buy-btn:hover {
  background: var(--light);
  box-shadow: 0 0 15px rgba(230, 0, 126, 0.4);
}

/* ==========================================================
   6. КНОПКИ (NEON, IO, SHUTTER, PAY, ULTIMATE)
   ========================================================== */
.neon-buy-btn {
  --btn-width: 140px;
  --btn-height: 40px;
  --btn-radius: 15px;
  width: var(--btn-width);
  height: var(--btn-height);
  background: linear-gradient(45deg, #e6007e, #ff4d9c);
  position: relative;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.3);
}

.neon-btn-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--btn-radius);
}
.neon-btn-text,
.neon-btn-icon {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-H4);
  font-weight: 700;
  transition: top 0.4s ease;
}
.neon-btn-text {
  top: 0;
}
.neon-btn-icon {
  top: 100%;
}
.neon-buy-btn:hover {
  background: linear-gradient(45deg, #ff1a8c, #e6007e);
  box-shadow: 0 0 20px rgba(230, 0, 126, 0.6);
  transform: translateY(-2px);
}
.neon-buy-btn:hover .neon-btn-text {
  top: -100%;
}
.neon-buy-btn:hover .neon-btn-icon {
  top: 0;
}
.neon-buy-btn:hover::before {
  opacity: 1;
  visibility: visible;
  bottom: 55px;
}
.neon-buy-btn:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: 40px;
}

.modern-io-btn {
  background: var(--light);
  color: white;
  font-family: var(--font-H4);
  padding-left: 1.2rem;
  font-size: 15px;
  font-weight: 600;
  border-radius: 15px;
  border: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  position: relative;
  height: 40px;
  padding-right: 3.5rem;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.2);
}
.modern-io-btn .btn-icon-wrapper {
  background: white;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 11px;
  right: 4px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.modern-io-btn .btn-icon-wrapper svg {
  width: 18px;
  transition: transform 0.3s;
  fill: var(--light);
}
.modern-io-btn:hover .btn-icon-wrapper {
  width: calc(100% - 8px);
}
.modern-io-btn:hover .btn-icon-wrapper svg {
  transform: translateX(3px);
}
.modern-io-btn:hover {
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.4);
}

.pro-shutter-btn {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 25px;
  background-color: var(--light);
  font-family: var(--font-H4);
  font-size: 14px;
  font-weight: 700;
  color: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0px 0px 10px rgba(230, 0, 126, 0.3);
  transition: all 0.5s cubic-bezier(1, 0, 0, 1);
  z-index: 1;
}
.pro-shutter-btn .btn-text {
  position: relative;
  z-index: 10;
  text-transform: uppercase;
}
.pro-shutter-btn::before,
.pro-shutter-btn::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transition: all 0.4s ease-in-out;
  z-index: 2;
}
.pro-shutter-btn::before {
  left: 0;
  background-image: radial-gradient(
    circle at 0% 45%,
    #0a0a0a 25%,
    rgba(10, 10, 10, 0.3) 60%,
    transparent 100%
  );
}
.pro-shutter-btn::after {
  right: 0;
  background-image: radial-gradient(
    circle at 100% 45%,
    #0a0a0a 25%,
    rgba(10, 10, 10, 0.3) 60%,
    transparent 100%
  );
}
.pro-shutter-btn:hover {
  box-shadow: 0px 0px 25px rgba(230, 0, 126, 0.7);
  transform: scale(1.03);
}
.pro-shutter-btn:hover::before,
.pro-shutter-btn:hover::after {
  width: 0;
  opacity: 0;
}

.modern-pay-btn {
  width: 130px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light);
  border: none;
  border-radius: 15px;
  color: white;
  font-family: var(--font-H4);
  font-weight: 700;
  text-transform: uppercase;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 0, 126, 0.2);
  position: relative;
  overflow: hidden;
  transition-duration: 0.3s;
  z-index: 1;
}
.modern-pay-icon {
  width: 20px;
  height: auto;
  z-index: 3;
}
.modern-pay-icon path {
  fill: white;
}
.modern-pay-btn::before {
  width: 160px;
  height: 160px;
  position: absolute;
  content: "";
  background-color: white;
  border-radius: 50%;
  left: -130%;
  top: 0;
  transition-duration: 0.5s;
  mix-blend-mode: difference;
  z-index: 2;
}
.modern-pay-btn:hover::before {
  transform: translate(100%, -50%);
  border-radius: 0;
}
.modern-pay-btn:hover {
  box-shadow: 0 6px 20px rgba(230, 0, 126, 0.4);
}

.ultimate-cta-btn {
  background-image: linear-gradient(
    to right bottom,
    #e6007e,
    #ff00aa,
    #ff5956,
    #ffb900,
    #fffe00
  );
  border: none;
  font-family: var(--font-H4);
  font-size: 15px;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  display: inline-block;
  transition:
    border-radius 0.4s ease-in,
    padding 0.2s ease-in;
  position: relative;
  text-decoration: none;
}
.ultimate-cta-int {
  background-color: #0a0a0a;
  color: white;
  border-radius: 2px;
  height: 34px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease-in;
  position: relative;
  z-index: 1;
  box-shadow:
    -10px -5px 20px -5px rgba(230, 0, 126, 0.3),
    10px 5px 20px -5px rgba(255, 185, 0, 0.3);
}
.ultimate-cta-btn:hover {
  border-radius: 15px;
}
.ultimate-cta-btn:hover .ultimate-cta-int {
  border-radius: 12px;
  box-shadow:
    -20px -10px 30px -5px rgba(230, 0, 126, 0.8),
    20px -10px 30px -5px rgba(255, 0, 170, 0.8),
    20px 10px 30px -5px rgba(255, 185, 0, 0.8),
    -20px 10px 30px -5px rgba(255, 254, 0, 0.8);
}

/* ==========================================================
   7. СТОРІНКА ЧЕКАУТУ (CHECKOUT)
   ========================================================== */
.chk-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  height: 100vh;
  padding: 5vh 8vw;
  gap: 20px;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}
.chk-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: hidden;
}
.chk-island {
  background: rgba(15, 5, 17, 0.75);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 22px 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}
.fgo-label {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 900;
  color: var(--light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chk-cart-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}
.chk-cart-scroll::-webkit-scrollbar {
  display: none;
}
.chk-cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 0;
  width: 100%;
  box-sizing: border-box;
}
.chk-cart-item:last-child {
  border-bottom: none;
}
.chk-img-box {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.chk-img-box img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.chk-item-info {
  flex: 1;
}
.chk-item-title {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.chk-item-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}
.chk-qty-control {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 15px;
  border-radius: 12px;
}
.chk-qty-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.5;
  font-weight: 800;
}
.chk-price-tag {
  font-size: 19px;
  font-weight: 900;
  min-width: 85px;
  text-align: right;
}
.chk-remove-btn {
  background: rgba(241, 67, 54, 0.1);
  border: 1px solid rgba(241, 67, 54, 0.2);
  border-radius: 10px;
  color: #f14336;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s;
  margin-left: 10px;
}
.chk-remove-btn:hover {
  background: #f14336;
  color: white;
}
.chk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.chk-input {
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0 15px;
  color: white;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: 0.3s;
}
.chk-input:focus {
  border-color: var(--light);
  background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   8. АВТОРИЗАЦІЯ (LOGIN)
   ========================================================== */
.auth-section-isolated {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 10px;
}
.login-modal-compact {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 5, 17, 0.85);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 25px 30px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.login-title-main {
  font-size: 28px;
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: 4px;
}
.login-tagline-neon {
  color: var(--light);
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 20px;
}
.login-input-wrapper {
  position: relative;
  margin-bottom: 10px;
}
.input-icon-web3 {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  color: #fff;
  font-size: 14px;
}
.login-input-wrapper input {
  width: 100%;
  height: 45px;
  box-sizing: border-box;
  padding: 0 15px 0 38px;
  background: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.login-utils {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 15px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.forgot-link {
  color: var(--light);
  text-decoration: none;
}
.login-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 5px;
}
.login-btn-primary,
.login-btn-secondary {
  flex: 1;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  border: none;
}
.login-btn-primary {
  background: var(--light);
  color: white;
  box-shadow: 0 5px 15px rgba(230, 0, 126, 0.3);
}
.login-btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid var(--glass-border);
}
.login-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}
.login-divider {
  margin: 20px 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}
.login-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0f0511;
  padding: 0 10px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}
.social-login-row {
  display: flex;
  gap: 10px;
}
.btn-social-glass {
  flex: 1;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
}

/* Інший стиль форми з твого коду */
.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  padding: 30px;
  width: 450px;
  border-radius: 20px;
  font-family: var(--font-H4);
}
.flex-column > label {
  color: #151717;
  font-weight: 600;
}
.inputForm {
  border: 1.5px solid #ecedec;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
}
.input {
  margin-left: 10px;
  border-radius: 10px;
  border: none;
  width: 100%;
  height: 100%;
  outline: none;
}
.inputForm:focus-within {
  border: 1.5px solid #2d79f3;
}
.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.flex-row > div > label {
  font-size: 14px;
  color: black;
  font-weight: 400;
}
.span {
  font-size: 14px;
  margin-left: 5px;
  color: #2d79f3;
  font-weight: 500;
  cursor: pointer;
}
.button-submit {
  margin: 20px 0 10px 0;
  background-color: #151717;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  height: 50px;
  width: 100%;
  cursor: pointer;
}
.p {
  text-align: center;
  color: black;
  font-size: 14px;
  margin: 5px 0;
}
.btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid #ededef;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}
.btn:hover {
  border: 1px solid #2d79f3;
}

/* ==========================================================
   9. STYLEGUIDE & ІНТЕРАКТИВНІ ФОНИ
   ========================================================== */
.styleguide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 25px;
  padding: 50px 20px;
  max-width: 1080px;
  margin: auto;
  align-items: start;
}
.section-full {
  grid-column: 1 / -1;
}
.ui-section {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 35px;
  color: white;
}
.color-palette {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.color-box {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  margin-bottom: 5px;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.icon-box img {
  width: 32px;
  height: 32px;
  color: #000000;
}
.icon-box span {
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.6;
  color: #000000;
}

.test-section {
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.section-label {
  position: absolute;
  top: 40px;
  left: 40px;
  font-family: var(--font-H4);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--light);
  opacity: 0.6;
}
.code-copy-box {
  position: absolute;
  bottom: 40px;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  gap: 15px;
  align-items: center;
  backdrop-filter: blur(10px);
}
.code-copy-box code {
  color: #00ff88;
  font-family: monospace;
}
.code-copy-box button {
  background: var(--light);
  border: none;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
}

.main-grainient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: -1;
  overflow: hidden;
}
.grainient-blob {
  position: absolute;
  width: 1000px;
  height: 1000px;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.65;
  mix-blend-mode: screen;
  transition: transform 0.2s ease-out;
  pointer-events: none;
}
.blob-1 {
  background: radial-gradient(circle, #bf09d7 0%, transparent 70%);
  top: -10%;
  left: -10%;
}
.blob-2 {
  background: radial-gradient(circle, #7a0076 0%, transparent 70%);
  bottom: -10%;
  right: -10%;
}
.blob-3 {
  background: radial-gradient(
    circle,
    #a60666 0%,
    #92057c89 40%,
    transparent 70%
  );
  top: 25%;
  left: 25%;
  width: 900px;
  opacity: 0.6;
}

.bg-grainient-white {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}
.grainient-blob-white {
  position: absolute;
  width: 1100px;
  height: 1100px;
  filter: blur(130px);
  border-radius: 50%;
  opacity: 0.4;
  mix-blend-mode: multiply;
  transition: transform 0.2s ease-out;
  pointer-events: none;
}
.blob-white-1 {
  background: radial-gradient(circle, #b3e5fc 0%, transparent 70%);
  top: -20%;
  left: -10%;
}
.blob-white-2 {
  background: radial-gradient(circle, #f8bbd0 0%, transparent 70%);
  bottom: -20%;
  right: -10%;
}
.blob-white-3 {
  background: radial-gradient(circle, #e1bee7 0%, transparent 65%);
  top: 20%;
  left: 25%;
}

.bg-mixed-vignette {
  position: relative;
  width: 100%;
  height: 100vh;
  background: #ffffff;
  overflow: hidden;
}
.vignette-blob {
  position: absolute;
  width: 1200px;
  height: 800px;
  filter: blur(120px);
  opacity: 0.8;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease-out;
  z-index: 1;
}
.blob-edge-left {
  background: radial-gradient(circle at top left, #0a1128 0%, transparent 70%);
  top: -20%;
  left: -10%;
}
.blob-edge-right {
  background: radial-gradient(circle at top right, #2d052e 0%, transparent 70%);
  top: -20%;
  right: -10%;
}

.figma-specs {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1g;
}

.figma-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.figma-specs li::before {
    content: "•";
    color: #E6007E; /* Твій фірмовий колір */
    font-weight: bold;
    font-size: 18px;
}

.figma-specs li strong {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

/* Прибираємо фон з характеристик (матеріал тощо) */
.figma-description-block {
    background: transparent !important;
    padding: 0 !important;
}

.figma-specs {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* ==========================================================
   SHOP PAGE SPECIAL STYLES (FULL BLOCK)
   ========================================================== */

/* 1. Глобальна обгортка та заголовок */
.shop-page-wrapper {
    padding: 120px 5% 80px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.shop-header {
    text-align: left; /* Титл вліво */
    margin-bottom: 40px;
    padding-left: 20px;
}

/* 2. Контейнер фільтрів */
#filter-wrapper {
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Кнопки вліво */
    gap: 15px;
    padding-left: 20px;
}

.filter-group {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

/* 3. Кнопки фільтрів */
.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 2px;
}

.filter-btn.active {
    background: var(--light) !important;
    border-color: var(--light) !important;
    box-shadow: 0 0 15px rgba(230, 0, 126, 0.4);
}

/* 4. Сітка товарів */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* 5. Картка товару */
.shop-product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shop-product-card .figma-glass-panel {
    padding: 20px;
    border-radius: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
   
    border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 0, 115, 0.547); 
    backdrop-filter: blur(20px);    
    -webkit-backdrop-filter: blur(20px); 
    transition: 0.3s;
}

/* 6. Бокс зображення */
.card-image-box {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
    transition: 0.6s ease;
}

/* 7. Текст та інфо (ВСЕ ЗЛІВА) */
.card-info {
    flex-grow: 1;
    text-align: left; /* Текст вліво */
}

.card-title {
    font-family: var(--font-H3);
    color: white;
    font-size: 20px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.card-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    margin-bottom: 20px;
}

/* 8. Футер картки */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.card-price {
    font-size: 24px;
    font-weight: 900;
    color: white;
    font-family: var(--font-H2);
}

.scopri-btn {
    background: rgba(230, 0, 126, 0.1);
    border: 1px solid var(--light);
    color: var(--light);
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 11px;
    transition: 0.3s;
}

/* 9. Hover ефекти */
.shop-product-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.shop-product-card:hover .figma-glass-panel {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--light) !important;
    box-shadow: 0 20px 40px rgba(230, 0, 126, 0.2);
}

.shop-product-card:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

.shop-product-card:hover .scopri-btn {
    background: var(--light) !important;
    color: white !important;
}

/* ==========================================================
   CARDS DECORATIONS: BRAND BADGE & WISHLIST
   ========================================================== */

/* 1. БРЕНД (ПЛАШКА МАГАЗИНУ) - Зверху Зліва */
.card-brand-badge {
    position: absolute; /* Відносно .card-image-box */
    top: 15px;
    left: 15px;
    background: var(--light); /* Твій рожевий неон */
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(230, 0, 126, 0.3);
}

/* 2. WISHLIST КНОПКА (ЛАЙК) - Зверху Справа */
.wishlist-btn {
    position: absolute; /* Відносно .card-image-box */
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.4); /* Прозора темна підкладка */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px); /* Ефект скла */
    z-index: 20;
    transition: all 0.3s ease;
    padding: 0;
}

/* Hover ефект для кнопки лайка */
.wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Стилізація SVG іконки серця */
.wishlist-btn svg {
    transition: all 0.3s ease;
}

/* Коли товар додано в улюблені (JS додає колір) */
.wishlist-btn svg[fill="#E6007E"] {
    filter: drop-shadow(0 0 5px rgba(230, 0, 126, 0.6));
}

/* Секція каруселі під товаром */
.product-carousel-section {
    display: grid;
    /* Рівно 4 колонки однакової ширини */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Відступ між картками */
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}



/* Корекція ширини самої картки, щоб вона не була заширокою */
.product-carousel-section .shop-product-card {
    max-width: 100%; /* Картка займає всю ширину своєї колонки */
    margin: 0;
}
/* ==========================================================
   PRODUCT CARD (SHOP & CAROUSEL) - Pure Neon Edition
   ========================================================== */
.shop-product-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    border-radius: 20px; /* Apple Standard */
    margin: 2px; /* Мікро-відступ для ховеру */
}

/* Скляна панель всередині */
.shop-product-card .figma-glass-panel {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    
    /* СТАНДАРТНИЙ БОРДЕР (Тонка прозора лінія) */
    border: 1px solid rgba(255, 255, 255, 0.08); 
    
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-radius: 20px; 
}

/* Hover Ефекти */
.shop-product-card:hover {
    transform: translateY(-8px) scale(1.01);
}

.shop-product-card:hover .figma-glass-panel {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.15) !important; /* Трохи яскравіше */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   BESTSELLER DECORATION (BROKEN NEON BORDER)
   ========================================================== */
.shop-product-card.is-bestseller-card .figma-glass-panel {
    /* НЕОНОВА ОБВОДКА (Через чистий Border) */
    border: 1px solid var(--light); 
    
    /* Світіння */
    box-shadow: 0 0 10px rgba(230, 0, 126, 0.4);

    /* --- ЕФЕКТ РОЗРИВУ ЛІНІЇ (Секретний соус) --- */
    /* Ми використовуємо clip-path, щоб фізично вирізати шматочок лінії зверху */
    clip-path: polygon(
        0% 0%,       /* Точка 1: Верх-ліво */
        /* Починаємо виріз по центру */
        calc(50% - 65px) 0%, /* Точка 2: Початок розриву лінії */
        calc(50% - 65px) 15px, /* Точка 3: Опускаємо виріз (товщина розриву) */
        calc(50% + 65px) 15px, /* Точка 4: Кінець розриву */
        calc(50% + 65px) 0%,  /* Точка 5: Повертаємо на верхню лінію */
        
        100% 0%,      /* Точка 6: Верх-право */
        100% 100%,    /* Точка 7: Низ-право */
        0% 100%       /* Точка 8: Низ-ліво */
    );
}

/* Hover ефект для бестселера (підсилюємо світіння) */
.shop-product-card.is-bestseller-card:hover .figma-glass-panel {
    border-color: var(--light) !important;
    box-shadow: 0 0 20px rgba(230, 0, 126, 0.6), 
                0 15px 30px rgba(0, 0, 0, 0.4);
}

/* ==========================================================
   BESTSELLER TEXT TAG (W Web 3.0 Look)
   ========================================================== */
.best-seller-tag-wrapper {
    position: absolute;
    top: -10px; /* Центр по верхній лінії */
    left: 50%;
    border: 3px;
    transform: translateX(-50%);
    z-index: 10; /* Вище за все */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Щоб клік проходив крізь текст */
}

/* Неонова підкладка під текст (щоб він не зливався) */
.best-seller-tag-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 140px; /* Має бути на 10px менше ніж виріз clip-path */
    height: 22px;
    background: #080710; /* СЮДИ: Точний колір фону сторінки (не прозорий) */
    border-radius: 15px;
    border: 3px solid rgba(230, 0, 126, 0.1); /* Дуже тонка рожева лінія */
    z-index: -1;
    backdrop-filter: blur(5px);
}

.best-seller-text {
    font-family: var(--font-H3); /* Твій вузький шрифт */
    color: white;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); /* Біле світіння */
}

/* ==========================================================
   ФІНАЛЬНА МОБІЛЬНА АДАПТАЦІЯ (360x740 та Десктоп-фікси)
   ========================================================== */

/* 📱 СТИЛІ ДЛЯ ТЕЛЕФОНІВ (До 768px) */
@media (max-width: 768px) {
    /* 1. Глобальні налаштування (Layout) */
  .product-detail-page {
        padding-top: 100px !important; 
        min-height: auto;
    }
    
    /* 2. Змушуємо обгортку стати колонкою, щоб Титл 1 стояв рівно над картинкою */
    .figma-content-wrapper {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box;
        margin-top: 0;
        min-height: auto;
        display: flex !important;
        flex-direction: column !important;
    }

    .product-interface-grid {
        display: flex;
        flex-direction: column !important; /* Робимо вертикальний стек */
        gap: 20px;
        pointer-events: auto;
    }

    /* 2. Ховаємо десктопні блоки */
    .desktop-only, 
    .desktop-gallery-wrapper, 
    .desktop-size-guide {
        display: none !important;
    }

    /* 3. Показуємо мобільні блоки */
    .mobile-hero-header, 
    .mobile-gallery-wrapper, 
    .mobile-size-guide-target,
    .mobile-title-inside-panel {
        display: block !important;
    }

    
    /* --- ПОРЯДОК БЛОКІВ ЧЕРЕЗ ORDER --- */

    /* Блок 1: Хедер */
    .mobile-hero-header {
        order: 1;
        text-align: left;
        padding: 0 10px;
        margin-bottom: 5px;
    }
    .mobile-hero-header .figma-main-title {
        font-size: 45px;
        padding-left: 0;
    }
    .mobile-hero-header .figma-store-tag {
        font-size: 20px;
        padding-left: 0;
    }

    /* Блок 2: Аватар (Худі) */
.mobile-avatar-section {
        order: 2;
        position: relative;
        top: 0; left: 0;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center; /* Жорстко центруємо по вертикалі та горизонталі */
        margin: -25px 0 -30px 0;
        width: 100%;
        height: 380px; /* ФІКСОВАНА ВИСОТА ОБГОРТКИ (не дає верстці стрибати) */
    }
    .figma-hero-img {
        height: 460px !important; /* Оптимальна висота для 360px */
        width: auto;
    }

    /* Блок 3: Секція покупки (Права панель) */
    .right-panel {
        order: 3;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .mobile-gallery-wrapper {
        margin-bottom: 25px;
    }
    /* ФІКС: Всі кнопки в одну лінію на мобільному */
    .figma-action-row {
        flex-wrap: nowrap !important; /* Забороняємо перенесення на новий рядок */
        gap: 8px !important;
        width: 100%;
    }
    .figma-qty-selector {
        flex: 0 0 auto;
        padding: 0 12px !important;
        height: 45px !important;
    }
    .action-heart-btn {
        flex: 0 0 45px !important; /* Жорсткий квадрат 45x45 */
        height: 45px !important;
        position: static !important;
        margin: 0 !important;
    }
    .neon-buy-btn {
        flex: 1 1 auto !important; /* Тягнеться на весь залишок місця справа */
        margin-top: 0 !important;
        height: 45px !important;
        min-width: 0; /* Запобігає вилазенню за межі екрана */
    }

    /* Блок 4: Секція характеристик (Ліва панель) */
    .left-panel {
        order: 4;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    .mobile-title-inside-panel .figma-sub-title {
        font-size: 20px;
        color: white;
        margin-bottom: 15px;
    }

    /* Блок 5: Карусель рекомендацій */
    .product-carousel-section {
        order: 5;
        grid-template-columns: 1fr !important; /* 1 колонка */
        padding: 40px 10px !important;
    }
    .product-carousel-section .shop-product-card {
        width: 100%;
        max-width: 100%;
    }
    /* 1. БЛОК ГОЛОВНОГО ЗАГОЛОВКА */
    .mobile-hero-header {
        display: block !important; /* Примусово показуємо */
        order: -1 !important; /* Ставимо на САМЕ перше місце перед усім іншим */
        width: 100%;
        margin-top: 10px !important; /* Відштовхуємо вниз від навігаційного меню! */
        margin-bottom: 20px;
        padding: 0 10px;
        z-index: 10;
    }

    /* 2. САМ ТИТЛ (h1) */
    .mobile-hero-header .figma-main-title {
        font-size: 50px !important; /* Робимо трохи меншим, щоб влізло на 360px */
        line-height: 0.9;
        color: white;

        padding-left: 15px !important; /* Прибираємо десктопний відступ */
        margin: 0;
        text-align: left;
       
    }

    /* 3. ТЕГ МАГАЗИНУ (h2) під титлом */
    .mobile-hero-header .figma-store-tag {
        font-size: 22px !important;
        padding-left: 15px !important;
        margin-top: 5px;
        text-align: left;
    }

}

/* 💻 СТИЛІ ДЛЯ ДЕСКТОПІВ (Від 769px) */
@media (min-width: 769px) {
    /* Ховаємо мобільні дублікати, щоб не ламали вигляд */
    .mobile-hero-header, 
    .mobile-gallery-wrapper, 
    .mobile-size-guide-target,
    .mobile-title-inside-panel {
        display: none !important;
    }
    
    .desktop-only, 
    .desktop-gallery-wrapper, 
    .desktop-size-guide {
        display: block !important;
    }

    /* Повертаємо аватар на місце */
    .mobile-avatar-section {
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 3;
    }
}
/* ==========================================================
   ЕФЕКТ "МАДЖЕНТОВИЙ КРИСТАЛ" (MAGENTA CRYSTAL GLASS)
   Призначення: Змінює лише візуальний стиль (колір, тінь, скло), 
   не впливаючи на ширину, висоту чи розташування елементів.
   ========================================================== */
.magenta-crystal {
    /* 0. Захист розмірів: рамки не будуть збільшувати ширину/висоту картки */
    box-sizing: border-box !important;

    /* 1. Напівпрозорий 4-кольоровий градієнт (Маджента + Фіолетовий + Темний + Рожевий) */
    background: linear-gradient(
        135deg, 
        rgba(230, 0, 127, 0.449) 0%,   /* Твій фірмовий рожевий */
        #3404574a 35%,    /* Глибокий фіолетовий */
        rgba(10, 10, 10, 0.663) 70%,    /* Майже чорний для глибини */
        rgba(255, 51, 153, 0.163) 100% /* Світлий відблиск */
    ) !important;
    
    /* 2. Блюр фону (20px) - створює ефект матового скла */
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    
 /* 3. Кристалічні грані (Світлі рамки зверху і зліва для об'єму) */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
    /* 4. М'яке світіння (Тінь назовні + Внутрішнє світіння) */
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5), 
        inset 0 0 90px rgba(230, 0, 127, 0.093) !important;
        
    /* Технічні налаштування для правильного відображення шуму всередині */
    position: relative; /* Робить картку "якорем" для шару з шумом */
    overflow: hidden; /* Обрізає все, що виходить за краї картки (наприклад, кути шуму) */
    z-index: 1; /* Піднімає картку над загальним фоном сторінки */
}

/* 5. Текстура шуму (Зернистість, щоб виглядало як справжній матеріал) */
/* 5. Текстура шуму (Зернистість, щоб виглядало як справжній матеріал) */
.magenta-crystal::before {
    content: "";
    position: absolute; 
    top: 0; left: 0; right: 0; bottom: 0;
    
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    
    /* === МАГІЧНИЙ ФІКС ДЛЯ ВЕЛИКИХ БЛОКІВ === */
    opacity: 0.06; /* Знизили з 0.16 до 0.06. Для великих площ цього цілком достатньо! */
    mix-blend-mode: overlay; /* Змушує шум зливатися з кольором під ним, а не висіти сірим пилом */
    background-size: 250px 250px; /* Фіксуємо розмір "зерна", щоб воно завжди було акуратним */
    background-repeat: repeat;
    /* ======================================== */

    pointer-events: none; 
    z-index: -1; 
}
/* ==========================================================
   КЕРУВАННЯ ФОНАМИ (REACT BG) - FIXED ВЕРСІЯ (ІДЕАЛЬНО ДЛЯ МИШКІ)
   ========================================================== */
/* 1. Обгортки жорстко зафіксовані як екран кінотеатру позаду сайту */
.bg-layer-dark,
.bg-layer-light {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1;
    pointer-events: none; /* Пропускає кліки крізь себе на кнопки сайту */
    transition: opacity 0.5s ease;
}

/* 2. Змушуємо React заповнити ці фіксовані обгортки на 100% */
#dark-root,
#light-root,
.color-bends-container, 
.grainient-container,
canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

/* 3. Плавне перемикання тем (opacity) */
.bg-layer-light { opacity: 0; visibility: hidden; }
.bg-layer-dark { opacity: 1; visibility: visible; background: #0a0a0a; }

body.light-theme .bg-layer-dark { opacity: 0 !important; visibility: hidden !important; }
body.light-theme .bg-layer-light { opacity: 1 !important; visibility: visible !important; background: #f4f4f5; }
/* ==========================================================
   ГЛОБАЛЬНА СВІТЛА ТЕМА (LIGHT THEME OVERRIDES)
   ========================================================== */
/* 1. БАЗОВІ ФОНИ ТА ТЕКСТИ */
body.light-theme {
    background: #000000 !important;
    color: #111 !important;
}

body.light-theme .figma-glass-panel {
    background: rgba(0, 0, 0, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .figma-main-title,
body.light-theme .figma-sub-title,
body.light-theme .figma-desc-text,
body.light-theme .figma-sku, 
body.light-theme .figma-specs,
body.light-theme .figma-specs li strong,
body.light-theme .figma-size-list,
body.light-theme .figma-section-label {


    color: #111111 !important;
}
/* ==========================================================
   ТАБЛИЦЯ РОЗМІРІВ (GUIDA ALLE TAGLIE)
   ========================================================== */

/* 1. Робимо всі тексти та цифри в клітинках темними, а лінії - ніжно-сірими */
body.light-theme .size-guide-table table th,
body.light-theme .size-guide-table table td {
    color: #111111 !important;
    border-color: rgba(0, 0, 0, 0.1) !important; /* Темні напівпрозорі лінії замість білих */
}

/* 2. РОБИМО КРАСИВО: Заголовки рядків (Taglia, Altezza, Larghezza) робимо рожевими! */
body.light-theme .size-guide-table table th {
    color: #000000 !important;
    font-weight: 800 !important;
}

/* ==========================================================
   ТАЙМЛАЙН ДОСТАВКИ (TRACKING CONSEGNA) - ЧИСТИЙ СТИЛЬ
   ========================================================== */

/* 1. Робимо тексти (дати і підписи) темно-сірими */
body.light-theme .web3-timeline .node-date,
body.light-theme .web3-timeline .node-label {
    color: #111111 !important;
}

/* 2. Неактивні кроки: ПРИБИРАЄМО квадратний фон, робимо саму іконку сірою */
body.light-theme .web3-timeline .timeline-node:not(.active) .node-icon {
    background: transparent !important;   /* Забираємо сірий квадрат */
    color: rgba(0, 0, 0, 0.3) !important; /* Напівпрозорий сірий для іконки */
    border: none !important;              /* Забираємо рамки */
    box-shadow: none !important;
}

/* 3. Активний крок: ПРИБИРАЄМО квадрат, робимо іконку рожевою зі світінням */
body.light-theme .web3-timeline .timeline-node.active .node-icon {
    background: transparent !important; /* Забираємо рожевий квадрат */
    color: #E6007E !important;          /* Фарбуємо саму іконку */
    border: none !important;
    box-shadow: none !important; 
    
    /* МАГІЯ: drop-shadow робить світіння точно по формі візка, а не квадратом! */
    filter: drop-shadow(0 0 8px rgba(230, 0, 126, 0.6)) !important; 
}

/* 4. Лінії з'єднання між кроками */
body.light-theme .web3-timeline::before,
body.light-theme .timeline-node::before,
body.light-theme .timeline-node::after {
    background-color: rgba(0, 0, 0, 0.1) !important; 
}

/* Лінія, що йде до активного кроку */
body.light-theme .timeline-node.active::before {
    background-color: #E6007E !important; 
}

/* ==========================================================
   ВИБІР РОЗМІРУ (TAGLIA)
   ========================================================== */

/* 1. Напис "TAGLIA" (робимо фірмовим рожевим, щоб гарно виділявся) */
body.light-theme .figma-label-pink {
    color: #E6007E !important;
    font-weight: 800 !important;
}

/* 2. Неактивні кнопки розмірів (XS, S, M...) */
body.light-theme .figma-size-btn {
    background: rgba(0, 0, 0, 0.03) !important; /* Дуже легкий сірий фон */
    color: #111111 !important;                  /* Темний текст розміру */
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Ніжна темна рамочка */
    transition: all 0.3s ease !important;       /* Плавна анімація */
}

/* 3. Ефект при наведенні мишки (Hover) */
body.light-theme .figma-size-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* 4. ОБРАНИЙ розмір (коли юзер клікнув) 
   Твій JS, скоріш за все, додає клас .selected або .active. 
   Я прописав обидва варіанти для надійності! */
body.light-theme .figma-size-btn.selected,
body.light-theme .figma-size-btn.active {
    background: #E6007E !important;             /* Рожевий фон */
    color: #ffffff !important;                  /* Білий текст */
    border: 1px solid #E6007E !important;       /* Рожева рамка */
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3) !important; /* Легка рожева тінь для об'єму */
}

/* ==========================================================
   ВИБІР КІЛЬКОСТІ (QTY) ТА КНОПКА "ВИБРАНЕ" (HEART)
   ========================================================== */

/* 1. Загальний контейнер для кількості */
body.light-theme .figma-qty-selector {
    background: rgba(0, 0, 0, 0.03) !important; /* Легкий сірий фон */
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Ніжна рамочка */
}

/* 2. Кнопки "-" і "+" та цифра кількості */
body.light-theme .figma-qty-selector button,
body.light-theme .figma-qty-selector span {
    color: #111111 !important; /* Робимо мінус, плюс та цифру темними! */
}

/* Ефект наведення для кнопок "-" і "+" */
body.light-theme .figma-qty-selector button:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* 3. Кнопка "Сердечко" */
body.light-theme .action-heart-btn {
    background: rgba(0, 0, 0, 0.03) !important; 
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

body.light-theme .action-heart-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* 4. МАГІЯ: Фарбуємо сердечко в темний, ТІЛЬКИ якщо воно було білим (не в улюблених) */
body.light-theme .action-heart-btn svg[stroke="white"] {
    stroke: #111111 !important;
}

/* Також прибираємо попереднє глобальне правило для сердечка, якщо ти його додавав раніше,
   інакше воно може перебити цей магічний селектор. */

   /* ==========================================================
   КАРТКИ ТОВАРІВ (RELATED PRODUCTS / SHOP CARDS)
   ========================================================== */

/* 1. Робимо головні тексти темними: Заголовок, Опис, Ціна, Кнопка */
body.light-theme .card-title,
body.light-theme .card-desc,
body.light-theme .card-price,
body.light-theme .scopri-btn {
    color: #111111 !important;
}


/* 3. Кнопка "Сердечко" на картинці товару */
/* Фарбуємо в темний ТІЛЬКИ якщо воно не в улюблених (stroke="white") */
body.light-theme .wishlist-btn svg[stroke="white"] {
    stroke: #111111 !important;
}

/* 4. (Бонус) Робимо ціну фірмовим рожевим, якщо хочеш зробити на ній акцент!
   Якщо хочеш залишити чорною — просто видали цей пункт */
body.light-theme .card-price {
    color: #E6007E !important;
    font-weight: 900 !important;
}
/* ==========================================================
   КНОПКИ ФІЛЬТРІВ (SHOP CATEGORIES & BRANDS)
   ========================================================== */

/* 1. Неактивні кнопки фільтрів (Tutte le categorie, Felpe, тощо) */
body.light-theme .filter-btn {
    background: rgba(0, 0, 0, 0.03) !important; /* Легкий сірий фон */
    color: #111111 !important;                  /* Темний текст */
    border: 1px solid rgba(0, 0, 0, 0.1) !important; /* Ніжна темна рамочка */
    transition: all 0.3s ease !important;       /* Плавна анімація */
}

/* 2. Ефект при наведенні мишки (Hover) */
body.light-theme .filter-btn:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* 3. ОБРАНИЙ фільтр (Активна кнопка) */
body.light-theme .filter-btn.active {
    background: #E6007E !important;             /* Фірмовий рожевий фон */
    color: #ffffff !important;                  /* Білий текст */
    border: 1px solid #E6007E !important;       /* Рожева рамка */
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.3) !important; /* Легка рожева тінь */
}
/* 2. ПЕРЕТВОРЕННЯ "МАДЖЕНТИ" НА "МОЛОЧНИЙ КРИСТАЛ" */
body.light-theme .magenta-crystal {
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.7) 0%,   
        rgba(255, 255, 255, 0.4) 35%,  
        rgba(240, 240, 245, 0.5) 70%,  
        rgba(255, 255, 255, 0.8) 100%  
    ) !important;
    
    backdrop-filter: blur(35px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(150%) !important;
    
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-top: 1px solid rgba(255, 255, 255, 1) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.8) !important;
    
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.05), 
        inset 0 0 90px rgba(255, 255, 255, 0.6) !important;
}

body.light-theme .magenta-crystal::before {
    opacity: 0.06; 
    filter: invert(1); 
}

/* 3. ІНШІ ДРІБНИЦІ (Іконки, Футер, Аватар) */
body.light-theme .action-heart-btn svg {
    stroke: #111111;
}

body.light-theme .avatar-glow-effect {
    background: radial-gradient(circle, rgba(230,0,126,0.15) 0%, rgba(255,255,255,0) 70%) !important;
}
/* ==========================================================
   ЛОГІН ПЕЙДЖ (СВІТЛА ТЕМА)
   ========================================================== */

/* 1. Головний заголовок та дрібні тексти (Ricordami) */
body.light-theme .login-title-main,
body.light-theme .login-utils {
    color: #111111 !important;
}

/* 2. Кнопка "REGISTRATI" (робимо ніжно-сірою) */
body.light-theme .login-btn-secondary {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111111 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* 3. Лінія "OPPURE" (фон тексту має збігатися з молочним склом) */
body.light-theme .login-divider {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .login-divider span {
    background: #f4f4f5 !important; /* Колір світлої картки */
    color: rgba(0, 0, 0, 0.4) !important;
}

/* 4. Соціальні кнопки (Google, Apple) */
body.light-theme .btn-social-glass {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #111111 !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .btn-social-glass svg {
    fill: #111111 !important; /* Робимо іконки темними */
}
/* Світла тема: Статус "In elaborazione" */
body.light-theme .tracking-empty {
    color: rgba(0, 0, 0, 0.6) !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .tracking-empty svg {
    stroke: rgba(0, 0, 0, 0.7) !important;
}
/* ==========================================================
   DASHBOARD (СВІТЛА ТЕМА) - ПОВНИЙ ФІКС
   ========================================================== */

/* 1. Фарбуємо ВСІ тексти в темний, щоб нічого не зливалося */
body.light-theme .page-title,
body.light-theme .section-title,
body.light-theme .section-desc,
body.light-theme .breadcrumb-text,
body.light-theme .username-val,
body.light-theme .form-group label,
body.light-theme .fav-title,
body.light-theme .cart-title,
body.light-theme .cart-meta,
body.light-theme .cart-qty,
body.light-theme .cart-price,
body.light-theme .cart-total-text,
body.light-theme .glass-table td,
body.light-theme .order-date,
body.light-theme .returns-box p,
body.light-theme .returns-box ul,
body.light-theme .returns-box b,
body.light-theme .empty-state {
    color: #111111 !important;
}

/* 2. Бокове меню: неактивні кнопки робимо з рамочкою і темним текстом */
body.light-theme .menu-item:not(.active) {
    color: #111111 !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important; /* Темна рамочка */
    background: rgba(255, 255, 255, 0.4) !important; /* Трохи білого фону для читабельності */
}
body.light-theme .menu-item:not(.active) .icon {
    filter: brightness(0) opacity(0.8) !important; /* Темна іконка */
}
body.light-theme .menu-item:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* 3. Інпути на світлій темі */
body.light-theme .form-group input {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #111111 !important;
}

/* 4. Таблиця замовлень */
body.light-theme .glass-table th { 
    color: rgba(0, 0, 0, 0.6) !important; 
    border-bottom-color: rgba(0, 0, 0, 0.2) !important; 
}
body.light-theme .glass-table td { 
    border-bottom-color: rgba(0, 0, 0, 0.05) !important; 
}

/* 5. Статус "Очікує оплати" (IN ATTESA DI PAGAMENTO) */
body.light-theme .status-pending {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Фон для товарів у кошику (Світла тема) */
body.light-theme .cart-card {
    background: rgba(0, 0, 0, 0.04) !important; /* Легкий сірий фон */
    border-color: rgba(0, 0, 0, 0.08) !important; /* Темніша рамочка */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important; /* Ніжна тінь */
}

/* ==========================================================
   ФІКС ПОЛІВ ВВОДУ ТА USERNAME (СВІТЛА ТЕМА)
   ========================================================== */

/* 1. Робимо напис "Username (Non modificabile)" темно-сірим */
body.light-theme .username-display-box label {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* 2. Робимо поля вводу чистими (світле напівпрозоре скло) */
body.light-theme .form-group input {
    background: rgba(255, 255, 255, 0.6) !important; /* Білий напівпрозорий замість темного */
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #111111 !important;
}

/* 3. Колір підказки (placeholder) всередині поля */
body.light-theme .form-group input::placeholder {
    color: rgba(0, 0, 0, 0.4) !important;
}

/* 4. Ефект, коли юзер клікає в поле (Focus) */
body.light-theme .form-group input:focus {
    background: rgba(255, 255, 255, 0.9) !important; /* Стає майже білим */
    border-color: #E6007E !important;                /* Рожева рамочка */
    box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.1) !important;
}
/* ==========================================================
   СТОРІНКА ЛОГІНУ (AUTH PAGE) - БАЗОВІ СТИЛІ (ТЕМНА ТЕМА)
   ========================================================== */
.auth-section-isolated {
    width: 100%; min-height: 80vh; display: flex; justify-content: center; align-items: center;
    position: relative; z-index: 10; padding: 20px; box-sizing: border-box;
}

.login-modal-compact {
    width: 100%; max-width: 380px; padding: 40px 30px; text-align: center; border-radius: 20px;
    /* Фон і скло ми прибрали звідси, бо тепер цим керує клас .magenta-crystal! */
}

.login-title-main { font-size: 28px; font-weight: 900; color: white; margin: 0; letter-spacing: 4px; text-transform: uppercase;}
.login-tagline-neon { color: #E6007E; font-size: 9px; letter-spacing: 2px; font-weight: 700; margin-bottom: 25px; text-transform: uppercase;}

.messages-container { max-height: 70px; overflow-y: auto; margin-bottom: 15px; border-radius: 8px; }
.alert-message { background: rgba(230, 0, 126, 0.1); border: 1px solid #E6007E; color: #E6007E; font-size: 11px; padding: 8px; margin-bottom: 5px; border-radius: 6px; text-transform: uppercase; font-weight: bold; }

.login-input-wrapper { position: relative; margin-bottom: 15px; }
.input-icon-web3 { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; justify-content: center; opacity: 0.5; z-index: 5; }
.login-input-wrapper input {
    width: 100%; height: 48px; box-sizing: border-box; padding: 0 15px 0 45px;
    background: #ffffff; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; outline: none; color: #000; transition: 0.3s;
}
.login-input-wrapper input:focus { box-shadow: 0 0 0 3px rgba(230, 0, 126, 0.3); }

.login-utils { display: flex; justify-content: space-between; align-items: center; margin: 15px 0 20px; font-size: 11px; color: rgba(255, 255, 255, 0.5); }
.login-utils label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.login-utils input[type="checkbox"] { accent-color: #E6007E; cursor: pointer; }
.forgot-link { color: #E6007E; text-decoration: none; font-weight: 600; transition: 0.3s; }
.forgot-link:hover { color: white; }

.login-actions-row { display: flex; gap: 10px; margin-bottom: 5px; }
.login-btn-primary, .login-btn-secondary {
    flex: 1; height: 48px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; transition: 0.3s; cursor: pointer; border: none;
}
.login-btn-primary { background: #E6007E; color: white; box-shadow: 0 5px 15px rgba(230, 0, 126, 0.3); }
.login-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(230, 0, 126, 0.5); }
.login-btn-secondary { background: rgba(255, 255, 255, 0.05); color: white; border: 1px solid rgba(255, 255, 255, 0.1); }
.login-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.login-divider { margin: 25px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); position: relative; }
.login-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #0a0a0a; padding: 0 10px; font-size: 9px; color: rgba(255, 255, 255, 0.3); font-weight: bold; letter-spacing: 1px; }

.social-login-row { display: flex; gap: 10px; }
.btn-social-glass { 
    flex: 1; height: 48px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    color: white; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.3s;
}
.btn-social-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.btn-social-glass svg { width: 16px; height: 16px; fill: white; }

/* ==========================================================
   DASHBOARD / MY ACCOUNT - БАЗОВІ СТИЛІ
   ========================================================== */
.dashboard-layout { 
    display: flex; height: 85vh; width: 75%; max-width: 1400px; 
    margin: 110px auto 40px; gap: 30px; position: relative; z-index: 10; 
}

/* Сайдбар */
.sidebar { width: 240px; padding: 40px 20px; flex-shrink: 0; display: flex; flex-direction: column; border-radius: 32px; }
.sidebar-logo { font-size: 24px; font-weight: 900; letter-spacing: 2px; text-align: center; margin-bottom: 40px; color: white; }
.sidebar-menu { display: flex; flex-direction: column; gap: 10px; flex: 1; }

.menu-item {
    display: flex; align-items: center; gap: 15px; padding: 15px 20px; 
    color: rgba(255, 255, 255, 0.6); text-decoration: none; font-weight: 600; font-size: 15px;
    border-radius: 12px; transition: 0.3s; cursor: pointer; white-space: nowrap;
}
.menu-item .icon { width: 20px; height: 20px; filter: brightness(0) invert(1) opacity(0.6); transition: 0.3s; }
.menu-item:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.menu-item:hover .icon { filter: brightness(0) invert(1) opacity(1); }
.menu-item.active { background: #ffffff !important; color: #000000 !important; }
.menu-item.active .icon { filter: brightness(0) opacity(1) !important; }
.logout-btn { margin-top: auto; color: #E6007E; }

/* Контент - ОНОВЛЕНО ДЛЯ ФІКСУ СКЛА */
.main-content { 
    flex: 1; 
    overflow: hidden !important; /* Забороняємо склу скролитися */
    border-radius: 32px; 
    padding: 0 !important; /* Відступи забираємо звідси */
    position: relative;
}

.tab-content { 
    display: none; 
    animation: fadeIn 0.4s ease; 
    height: 100%; 
    overflow-y: auto; /* Скрол тепер тут! */
    padding: 50px; /* Відступи перенесли сюди */
    box-sizing: border-box;
    scrollbar-width: none; 
}
.tab-content::-webkit-scrollbar { display: none; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
/* Заголовки та Аватар */
.acc-header { display: flex; align-items: center; gap: 30px; margin-bottom: 40px; }
.avatar-container { position: relative; width: 110px; height: 110px; flex-shrink: 0; }
.avatar-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #E6007E; padding: 3px; background: #111; }
.avatar-edit-label { position: absolute; bottom: 0; right: 0; background: #E6007E; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid #000; }
.page-title { font-size: 32px; font-weight: 900; margin: 0; color: white; }
.section-title { font-size: 18px; font-weight: 800; margin-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; color: white;}
.breadcrumb-text { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 5px; }
.breadcrumb-text span { color: #E6007E; }
.section-desc { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }

/* Форми */
.username-display-box { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.username-display-box label { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.5); }
.username-val { font-size: 18px; font-weight: 900; color: white; margin-top: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: span 2; }
.form-group label { font-size: 13px; font-weight: 700; color: white; }
.highlight-label { color: #E6007E !important; }
.form-group input { height: 48px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 0 20px; color: white; font-size: 14px; outline: none; transition: 0.3s; box-sizing: border-box; }
.form-group input:focus { border-color: #E6007E; background: rgba(255,255,255,0.1); }
.btn-save { 
    background: #E6007E; 
    color: white; 
    border: none; 
    height: 50px; 
    padding: 0 35px; 
    border-radius: 12px; 
    font-weight: 800; 
    cursor: pointer; 
    transition: 0.3s; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none !important; 
    box-sizing: border-box !important; /* МАГІЯ: не дає кнопці вилізти за краї */
    max-width: 100%; /* Захист від розтягування */
}
.btn-save:hover { box-shadow: 0 10px 25px rgba(230,0,126,0.4); transform: translateY(-2px); }

/* Алетри */
.dashboard-alert { padding: 15px; margin-bottom: 20px; border-radius: 12px; font-weight: bold; font-size: 13px; }
.alert-error { background: rgba(241,67,54,0.1); color: #F14336; border: 1px solid #F14336; }
.alert-success { background: rgba(230,0,126,0.1); color: #E6007E; border: 1px solid #E6007E; }

/* Картки (Carrello / Preferiti) */
/* ==========================================================
   ВКЛАДКА "I MIEI PREFERITI" (Вирівнювання карток)
   ========================================================== */

/* 1. Відступ від навігації до сітки товарів */
.favorites-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); 
    gap: 20px; 
    margin-top: 30px; /* Додали відступ зверху */
}

/* 2. Лінки мають займати всю доступну висоту */
.fav-card-link { 
    text-decoration: none; 
    display: block; 
    height: 100%; /* Розтягуємо лінк */
}

/* 3. МАГІЯ FLEXBOX: Робимо картки однакової висоти */
.fav-card { 
    background: rgba(255,255,255,0.03); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 16px; 
    padding: 15px; 
    transition: 0.3s; 
    display: flex;             /* Вмикаємо флекс */
    flex-direction: column;    /* Елементи йдуть зверху вниз */
    height: 100%;              /* Картка займає 100% висоти ряду */
    box-sizing: border-box;
}

.fav-card:hover { background: rgba(255,255,255,0.08); }

.fav-img-box { 
    height: 200px; 
    border-radius: 12px; 
    overflow: hidden; 
    background: rgba(0,0,0,0.2); 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; /* Забороняємо картинці сплющуватись */
}

.fav-img-box img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* Текст заповнює вільний простір і штовхає ціну вниз */
.fav-title { 
    margin: 0 0 10px 0; 
    font-size: 14px; 
    color: white; 
    text-transform: uppercase; 
    flex-grow: 1; 
}

/* Ціна завжди притиснута до самого низу картки */
.fav-price {  
    font-size: 16px; 
    font-weight: 900; 
    color: #E6007E; 
    margin-top: auto; 
}
.cart-items-list { 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    margin-top: 30px; /* <--- ПОВЕРНУЛИ ВІДСТУП ЗВЕРХУ */
    margin-bottom: 30px; 
}.cart-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 20px; }
.cart-img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); }
.cart-details { flex: 1; }
.cart-title { margin: 0 0 5px 0; font-size: 16px; text-transform: uppercase; color: white;}
.cart-meta { margin: 0; font-size: 12px; color: rgba(255,255,255,0.5); }
.cart-qty { font-weight: bold; padding: 0 20px; color: white;}
.cart-price { font-size: 18px; font-weight: 900; width: 100px; text-align: right; color: white;}
.cart-remove-btn { background: rgba(241, 67, 54, 0.1); border: 1px solid rgba(241, 67, 54, 0.2); border-radius: 10px; color: #F14336; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }
.cart-total-text { font-size: 20px; color: rgba(255,255,255,0.7); }
.cart-total-text span { font-size: 32px; font-weight: 900; color: #E6007E; margin-left: 15px; }

/* Таблиця Замовлень */
.table-responsive { width: 100%; overflow-x: auto; }
.glass-table { width: 100%; border-collapse: collapse; margin-top: 20px; min-width: 600px; }
.glass-table th { text-align: left; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); font-size: 12px; text-transform: uppercase; }
.glass-table td { padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; color: white;}
.order-id { color: #E6007E !important; font-weight: 700; }
.order-total { font-weight: bold; font-size: 16px; }
.tracking-code { color: #E6007E; font-weight: bold; background: rgba(230,0,126,0.1); padding: 3px 8px; border-radius: 6px; font-size: 11px; display: inline-block; margin-bottom: 5px;}
.tracking-btn { display: inline-block; background: #E6007E; color: white; padding: 5px 10px; border-radius: 6px; text-decoration: none; font-size: 10px; font-weight: bold; transition: 0.3s; }
.tracking-empty { font-size: 11px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 5px; }
.empty-state { text-align: center; padding: 50px; opacity: 0.5; color: white; }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 15px; }

/* Статуси Замовлень */
.status-badge { padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 800; text-transform: uppercase; display: inline-block; }
.status-pending { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); }
.status-paid { background: rgba(230,0,126,0.1); color: #E6007E; border: 1px solid #E6007E; }
.status-processing { background: rgba(255,153,0,0.1); color: #FF9900; border: 1px solid #FF9900; }
.status-waiting_courier { background: rgba(138,43,226,0.1); color: #8A2BE2; border: 1px solid #8A2BE2; }
.status-shipped { background: rgba(0,229,255,0.1); color: #00E5FF; border: 1px solid #00E5FF; }
.status-delivered { background: rgba(40,180,70,0.1); color: #28B446; border: 1px solid #28B446; }
.status-cancelled { background: rgba(241,67,54,0.1); color: #F14336; border: 1px solid #F14336; }
/* ==========================================================
   ФІКС СТАТУСУ ДОСТАВКИ (TRACCIAMENTO - IN ELABORAZIONE)
   ========================================================== */

/* Робимо красиву плашку замість простого тексту */
.tracking-empty { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 11px; 
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6); 
    background: rgba(255, 255, 255, 0.05); /* Легкий сірий фон */
    padding: 6px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Приборкуємо гігантський годинник! */
.tracking-empty svg { 
    width: 14px !important; 
    height: 14px !important; 
    stroke: rgba(255, 255, 255, 0.8);
}
/* Resi Box */
.returns-box { background: rgba(230, 0, 126, 0.05); border: 1px solid #E6007E; border-radius: 20px; padding: 30px; margin-top: 30px;}
.returns-box h3 { color: #E6007E; margin-top: 0; font-size: 18px; }
.returns-box p { line-height: 1.6; opacity: 0.8; color: white;}
.returns-box ul { line-height: 2; opacity: 0.8; margin-top: 15px; color: white;}
.returns-box b { color: white; }


/* ==========================================================
   DASHBOARD - МОБІЛЬНА АДАПТАЦІЯ (Чудово працює на 360px і 560px)
   ========================================================== */
@media (max-width: 1024px) {
    .dashboard-layout { width: 95%; flex-direction: column; height: auto; margin: 90px auto 40px; gap: 20px; }
    
    /* Сайдбар стає контейнером для кнопок-таблеток */
    .sidebar { width: 100%; padding: 15px; border-radius: 20px; }
    .sidebar-logo { display: none; } /* Ховаємо лого на мобілці */
    
    /* МАГІЯ: Горизонтально, з переносом (wrap) і притиснуто ВЛІВО (flex-start) */
    .sidebar-menu { 
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: flex-start; /* Рівняння по лівому краю */
        gap: 10px; 
        padding-bottom: 5px; 
        overflow-x: visible; /* Вимикаємо скрол */
    }
    .sidebar-menu::-webkit-scrollbar { display: none; }
    
    /* Кнопки-таблетки: займають рівно стільки місця, скільки треба тексту */
    .menu-item { 
        flex: 0 0 auto; 
        padding: 10px 15px; 
        font-size: 13px; 
        border-radius: 10px; 
    }
    
    /* Кнопку виходу залишаємо як звичайну таблетку, щоб не ламала сітку */
    .logout-btn { margin-top: 0; } 

    /* Фікс для скла на мобілці (щоб не обрізалось) */
    .main-content { padding: 0 !important; border-radius: 20px; }
    .tab-content { padding: 25px 20px; }
    .page-title { font-size: 24px; }
    
    /* Форми в одну колонку */
    .form-grid { grid-template-columns: 1fr; gap: 15px; }
    .form-group.full { grid-column: span 1; }
    .btn-save { width: 100%; }

    /* Картки кошика на мобілці */
    .cart-card { flex-wrap: wrap; padding: 15px; gap: 15px; }
    .cart-img { width: 60px; height: 60px; }
    .cart-details { width: 100%; order: -1; } /* Назва наверх */
    .cart-qty, .cart-price { padding: 0; text-align: left; }
    .cart-summary { flex-direction: column; gap: 15px; align-items: flex-start; }
    .cart-summary .btn-save { width: 100%; }
}

/* ==========================================================
   CHECKOUT PAGE - БАЗОВІ СТИЛІ
   ========================================================== */
.chk-container { 
    display: grid; 
    grid-template-columns: 1.4fr 1fr; /* Ліва колонка ширша */
    gap: 30px; 
    max-width: 1200px; 
    margin: 110px auto 60px; /* Відступ від фіксованого хедера */
    padding: 0 20px; 
    position: relative; 
    z-index: 10; 
    align-items: start; 
}

.chk-column { display: flex; flex-direction: column; gap: 30px; }
.chk-island { padding: 40px; border-radius: 32px; }

/* Фірмові неонові заголовки кроків (Твій стиль!) */
.chk-step-title { 
    font-size: 18px; 
    font-weight: 800; 
    color: white; 
    margin: 0 0 30px 0; 
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}
.chk-step-title span { color: #E6007E; font-weight: 900; margin-right: 5px; }

/* Список товарів */
.chk-cart-list { display: flex; flex-direction: column; width: 100%; }
.chk-cart-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.chk-cart-item:last-child { border-bottom: none; }
.chk-item-img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0; }
.chk-item-info { flex: 2; min-width: 0; }
.chk-item-title { font-size: 16px; font-weight: 700; text-transform: uppercase; margin: 0 0 5px 0; color: white; }
.chk-item-meta { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0; }
.chk-qty-box { font-weight: 900; background: rgba(255, 255, 255, 0.05); padding: 5px 15px; border-radius: 10px; color: white;}
.chk-price { font-size: 18px; font-weight: 900; width: 85px; text-align: right; flex-shrink: 0; color: white;}
.chk-remove-btn { background: rgba(241, 67, 54, 0.1); border: 1px solid rgba(241, 67, 54, 0.2); border-radius: 10px; color: #F14336; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; flex-shrink: 0; }
.chk-empty-msg { color: rgba(255,255,255,0.5); text-align: center; padding: 20px; }

/* Форма доставки */
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chk-full { grid-column: span 2; }
.chk-input-group { display: flex; flex-direction: column; gap: 8px; }
.chk-input-group label { font-size: 12px; text-transform: uppercase; color: rgba(255,255,255,0.5); font-weight: 700; }
.chk-input { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; height: 48px; padding: 0 15px; color: white; outline: none; transition: 0.3s; }
.chk-input:focus { border-color: #E6007E; background: rgba(255,255,255,0.1); }

/* Методи доставки */
.shipping-option { display: block; cursor: pointer; margin-bottom: 15px; }
.shipping-option input[type="radio"] { display: none; }
.shipping-card { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 16px; padding: 20px; transition: 0.3s; }
.shipping-option input[type="radio"]:checked + .shipping-card { background: rgba(230, 0, 126, 0.1); border-color: #E6007E; }
.ship-title { font-size: 15px; font-weight: 800; color: white; margin-bottom: 5px; text-transform: uppercase;}
.ship-desc { font-size: 12px; color: rgba(255,255,255,0.5); }
.ship-price { font-size: 16px; font-weight: 900; color: white; }
.shipping-option input[type="radio"]:checked + .shipping-card .ship-price { color: #E6007E; }

/* Оплата (Підсумок) */
.chk-summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 14px; color: rgba(255,255,255,0.6); font-weight: 600;}
.chk-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 25px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); }
.chk-total-label { font-size: 24px; font-weight: 900; color: white; }
.chk-total-price { font-size: 32px; font-weight: 900; color: #E6007E; }
.chk-buttons-wrap { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
.chk-pay-btn { width: 100%; height: 54px; border: none; border-radius: 14px; font-weight: 900; text-transform: uppercase; cursor: pointer; transition: 0.3s; font-size: 15px; box-sizing: border-box; }
.chk-pay-btn.btn-magenta { background: #E6007E; color: white; box-shadow: 0 5px 20px rgba(230,0,126,0.3); }
.chk-pay-btn.btn-magenta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(230,0,126,0.5); }
.chk-pay-btn.btn-white { background: white; color: black; border: 1px solid rgba(0,0,0,0.1); }
.chk-pay-btn.btn-white:hover { background: #f0f0f0; }

/* ==========================================================
   CHECKOUT - МОБІЛЬНА АДАПТАЦІЯ
   ========================================================== */
@media (max-width: 1024px) {
    .chk-container { grid-template-columns: 1fr; margin-top: 90px; } /* В одну колонку! */
    .chk-island { padding: 25px 20px; }
    .chk-grid { grid-template-columns: 1fr; } /* Інпути один під одним */
    .chk-full { grid-column: span 1; }
    
    .chk-cart-item { flex-wrap: wrap; }
    .chk-item-info { width: 100%; order: -1; margin-bottom: 10px; } /* Назва зверху на мобілці */
    .chk-qty-box { margin-left: auto; }
}

/* ==========================================================
   CHECKOUT PAGE (СВІТЛА ТЕМА)
   ========================================================== */
/* Заголовки, тексти, лейбли */
body.light-theme .chk-step-title,
body.light-theme .chk-item-title,
body.light-theme .chk-price,
body.light-theme .chk-qty-box,
body.light-theme .ship-title,
body.light-theme .ship-price,
body.light-theme .chk-total-label,
body.light-theme .chk-input-group label,
body.light-theme .chk-summary-row span,
body.light-theme .chk-empty-msg {
    color: #111111 !important;
}

/* Лінії роздільників */
body.light-theme .chk-step-title,
body.light-theme .chk-cart-item,
body.light-theme .chk-total-row {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Поля вводу (Інпути) */
body.light-theme .chk-input {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #111111 !important;
}
body.light-theme .chk-input::placeholder { color: rgba(0, 0, 0, 0.4) !important; }
body.light-theme .chk-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: #E6007E !important;
}

/* Картки вибору доставки (Неактивні) */
body.light-theme .shipping-card {
    background: rgba(0, 0, 0, 0.03) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.chk-cart-item.card-style {
    display: flex;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.chk-item-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 15px;
}

.chk-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Відступ між рядками */
}

/* 1-й рядок */
.chk-item-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

/* 2-й рядок */
.chk-item-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 3-й рядок */
.chk-item-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.chk-qty-selector {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 2px 5px;
}

.chk-qty-value {
    margin: 0 10px;
    font-weight: bold;
    font-size: 0.9rem;
}

.chk-price-and-remove {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chk-price {
    font-weight: 700;
    font-size: 1rem;
}

.chk-action-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.chk-action-remove:hover {
    color: #ff4d4d;
}

/* Кнопки + - */
.qty-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 25px;
    cursor: pointer;
}