/* ==========================================================================
   UPDATED site.css – Modern 2026 Premium Ecommerce (Apple/Nike style)
   White background, black text, purple accents (#8b5cf6)
   ========================================================================== */

:root {
  --accent:        #8b5cf6;
  --accent-dark:   #7c3aed;
  --accent-light:  #f3e8ff;
  --dark:          #0f172a;
  --gray:          #64748b;
  --light:         #f8fafc;
  --border:        #e2e8f0;
  --shadow-sm:     0 4px 20px rgba(139, 92, 246, 0.08);
  --shadow-md:     0 20px 40px rgba(139, 92, 246, 0.15);
}

/* Base */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* HERO BANNER */
.hero-banner {
  min-height: 100vh;
  background: linear-gradient(rgba(15,23,42,0.65), rgba(15,23,42,0.75)), 
              url('https://picsum.photos/id/1015/1920/1080') center/cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.4));
}

.hero-content h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  font-weight: 900;
}

.btn-xl {
  font-size: 1.25rem;
  padding: 1rem 3rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-xl:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* TRUST BAR */
.trust-item i {
  transition: transform 0.4s ease;
}

.trust-item:hover i {
  transform: scale(1.15);
}

/* PRODUCT CARD – Premium large */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-md);
}

.product-img {
  height: 340px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.06);
}

.sale-badge {
  background: #ef4444;
  color: white;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 9999px;
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  font-weight: 600;
}

/* ========== ИЗМЕНЕНИЕ ТОЛЬКО ЗДЕСЬ ========== */
.price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.35rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--gray);
  font-size: 1.1rem;
  font-weight: 400;
  margin-right: 10px;
}
/* ============================================ */

.stars {
  color: #fbbf24;
}

/* SCROLL CAROUSEL */
.product-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.product-scroll::-webkit-scrollbar {
  display: none;
}

.scroll-card {
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* CATEGORY CARDS */
.category-card {
  position: relative;
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  display: block;
}

.category-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 40%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: white;
  transition: all 0.3s ease;
}

.category-overlay h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.btn-outline-dark {
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: white;
}

/* GENERAL MODERN TOUCHES */
section {
  scroll-margin-top: 80px;
}

.display-5 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-banner {
    min-height: 85vh;
  }
  
  .product-img {
    height: 260px;
  }
  
  .category-card {
    height: 340px;
  }
}

/* ====================== New Header ====================== */
.navbar-main {
  padding: 18px 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.navbar-main .navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-main .navbar-brand:hover img {
  transform: scale(1.05);
}

.navbar-main .nav-link {
  color: #1e2937 !important;
  font-weight: 500;
  padding: 8px 18px !important;
  transition: all 0.2s;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link.text-accent {
  color: var(--accent) !important;
}

.navbar-main .search-form input {
  border-radius: 50px;
  padding: 10px 20px;
  border: 1px solid #e2e8f0;
  width: 240px;
}

.navbar-main .search-form input:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
  border-color: var(--accent);
}

/* Mobile */
@media (max-width: 992px) {
  .search-form input {
    width: 160px !important;
  }
}

/* Footer */
.footer h5 {
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer a {
  color: #64748b;
  text-decoration: none;
}

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



/* =============================================
   MOBILE CART - NO HORIZONTAL SCROLL
   ============================================= */

body {
    overflow-x: hidden !important;
}

/* Cart items container */
.cart-items {
    width: 100%;
    overflow: hidden;
}

/* Single cart item */
.cart-item {
    width: 100% !important;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 12px;
}

/* Product image */
.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

/* Mobile version - vertical layout */
@media (max-width: 767.98px) {
    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 0;
    }

    .qty-input {
        width: 100% !important;
        max-width: 160px;
    }

    .price {
        font-size: 1.3rem;
    }

    .cart-item .btn {
        margin-top: 8px;
    }
}

/* Extra protection */
.cart-summary,
.cart-items {
    max-width: 100%;
    overflow-x: hidden;
}



/* ====================== HORIZONTAL SCROLL WITH ARROWS ====================== */
.product-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 20px;
  scrollbar-width: none;           /* Firefox */
  -webkit-overflow-scrolling: touch;
}

.product-scroll::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari, Edge */
}

.scroll-card {
  min-width: 260px;
  flex-shrink: 0;
}

/* Arrows */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.95);
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #333;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.scroll-arrow:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(139,92,246,0.3);
  transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left  { left: -10px; }
.scroll-arrow-right { right: -10px; }

/* Mobile */
@media (max-width: 768px) {
  .scroll-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .product-scroll {
    gap: 16px;
  }
  .scroll-card {
    min-width: 220px;
  }
}