/* Electrozenshop Premium Modern E-Commerce Stylesystem */
:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #06b6d4;
  --dark-color: #0f172a;
  --accent-color: #f59e0b;
  --light-bg: #f8fafc;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: var(--light-bg);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

/* Top Header Bar */
.top-bar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar a:hover { color: #fff; }

/* Header Branding */
.navbar-brand img {
  max-height: 48px;
  object-fit: contain;
}

.search-input-group {
  position: relative;
  width: 100%;
}
.search-input-group .form-control {
  border-radius: 30px;
  padding-left: 20px;
  padding-right: 50px;
  border: 2px solid var(--border-color);
}
.search-input-group .btn-search {
  position: absolute;
  right: 5px;
  top: 5px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
}

/* Category Nav */
.main-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}
.nav-link {
  font-weight: 500;
  color: #334155 !important;
  padding: 12px 18px !important;
}
.nav-link:hover { color: var(--primary-color) !important; }

/* Hero Slider */
.hero-slider .carousel-item {
  height: 440px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 100%);
  display: flex;
  align-items: center;
  padding: 0 60px;
  color: #ffffff;
}

/* Product Cards */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 70, 229, 0.3);
}
.product-thumb {
  position: relative;
  overflow: hidden;
  padding-top: 130%; /* 4:3 fashion aspect ratio */
  background: #f1f5f9;
}
.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ef4444;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-brand {
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 4px 0 8px;
  line-height: 1.3;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.selling-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}
.mrp-price {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Color Swatches & Sizes */
.color-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s;
}
.color-swatch-btn.active {
  border-color: var(--primary-color);
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.3);
}

.size-btn {
  padding: 6px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.size-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Responsive Pagination for Shop Listing Page */
.pagination {
  flex-wrap: wrap !important;
  justify-content: center !important;
  margin-bottom: 0;
  gap: 4px;
}
.pagination .page-item .page-link {
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.pagination .page-item:not(.active) .page-link:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f1f5f9;
}
.pagination .page-item.active .page-link {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.pagination .page-item.disabled .page-link {
  background-color: #f8fafc;
  color: #94a3b8;
  border-color: #e2e8f0;
}
@media (max-width: 767.98px) {
  .pagination .page-item .page-link {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 34px;
    text-align: center;
  }
}

/* Cart & Checkout Floating Box */
.summary-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 24px;
}

/* Footer Styling */
footer {
  background: #0f172a;
  color: #e2e8f0;
  padding-top: 50px;
  padding-bottom: 20px;
}
footer h5 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
}
footer p, footer span, footer div {
  color: #e2e8f0;
}
footer .text-muted {
  color: #cbd5e1 !important;
}
footer a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   MOBILE & RESPONSIVE COMPREHENSIVE SUITE (TABLETS & SMARTPHONES)
   ========================================================================== */

/* Medium Devices (Tablets, max-width: 991px) */
@media (max-width: 991.98px) {
  .hero-slider .carousel-item {
    height: 340px;
  }
  .hero-overlay {
    padding: 0 35px;
  }
  .hero-overlay h1 {
    font-size: 1.75rem !important;
  }
  .hero-overlay p.lead {
    font-size: 1rem !important;
    margin-bottom: 1rem !important;
  }
  .navbar-brand img {
    max-height: 40px;
  }
  .summary-card {
    padding: 18px;
  }
}

/* Small Mobile Devices (Smartphones, max-width: 767.98px) */
@media (max-width: 767.98px) {
  .top-bar {
    font-size: 0.78rem;
    text-align: center;
  }
  .navbar-brand img {
    max-height: 36px;
  }

  /* Hero Carousel Mobile Scaling */
  .hero-slider .carousel-item {
    height: 260px;
    border-radius: 14px;
  }
  .hero-overlay {
    padding: 0 20px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  }
  .hero-overlay h1 {
    font-size: 1.35rem !important;
    margin-bottom: 8px !important;
  }
  .hero-overlay p.lead {
    display: none; /* Hide heavy lead text on small phones for clean layout */
  }
  .hero-overlay .btn-lg {
    font-size: 0.85rem !important;
    padding: 8px 18px !important;
  }

  /* 2-Column Product Grid */
  .product-body {
    padding: 10px 12px;
  }
  .product-title {
    font-size: 0.85rem;
    margin: 2px 0 6px;
  }
  .product-brand {
    font-size: 0.72rem;
  }
  .selling-price {
    font-size: 0.98rem;
  }
  .mrp-price {
    font-size: 0.78rem;
  }
  .badge-discount {
    top: 8px;
    left: 8px;
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  /* Product Details View Mobile Optimization */
  .size-btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
  .color-swatch-btn {
    width: 28px;
    height: 28px;
  }

  /* Cart & Checkout Responsive Spacing */
  .table-responsive {
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* UPI Modal Mobile Sizing */
  .modal-dialog {
    margin: 12px auto;
  }
  #upi-qr-image {
    max-width: 200px !important;
    height: auto !important;
  }

  /* Footer Mobile Spacing */
  footer {
    padding-top: 35px;
    text-align: center;
  }
  footer h5 {
    margin-top: 15px;
    margin-bottom: 12px;
  }
}

/* Extra Small Phones (max-width: 480px) */
@media (max-width: 480px) {
  .hero-slider .carousel-item {
    height: 220px;
  }
  .hero-overlay h1 {
    font-size: 1.15rem !important;
  }
  .selling-price {
    font-size: 0.9rem;
  }
  .btn-lg {
    font-size: 0.9rem !important;
    padding: 10px 16px !important;
  }
}
