/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-color: #ff6b00;
  --primary-hover: #e85f00;
  --text-dark: #111;
  --text-gray: #555;
  --text-light: #888;
  --bg-body: #f5f7fa;
  --bg-white: #ffffff;
  --success: #0a8f3c;
  --border: #e4e4e4;
  --radius: 12px;
  --shadow-sm: 0 4px 10px rgba(0,0,0,0.03);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 30px rgba(0,0,0,0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-body);
  color: var(--text-dark);
  padding-bottom: 0;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* =========================================
   2. GLOBAL UTILITIES & BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary:hover { 
  background: var(--primary-hover); 
  transform: translateY(-2px); 
}

.btn-outline {
  background: #fff;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}
.btn-outline:hover { 
  background: var(--text-dark); 
  color: #fff; 
}

/* =========================================
   3. MARQUEE (Top Bar)
   ========================================= */
.top-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--text-dark);
  color: #fff;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeLR 40s linear infinite;
}

.marquee-track span {
  margin-right: 60px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes marqueeLR {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   4. HEADER & SEARCH
   ========================================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #000;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Desktop Search */
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  width: 400px;
  gap: 10px;
}

.search-box i { 
  color: #777; 
  font-size: 15px; 
}

.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Mobile Search Icon */
.mobile-search-icon {
  display: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

/* Authentication Links */
.auth-links { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}


.signin {
  background: var(--primary-color);
  color: #fff;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: .3s;
}
.signup:hover { 
  background: var(--primary-hover); 
}

/* Mobile Search Overlay */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
}

.mobile-search-container {
  background: #fff;
  padding: 16px;
  border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  position: relative;
  z-index: 10001;
}

.mobile-search-backdrop {
  flex: 1;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
}

.mobile-search-bar {
  display: flex;
  align-items: center;
  background: #f4f6f8;
  padding: 12px 14px;
  border-radius: 30px;
  gap: 10px;
}

.mobile-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================
   5. HOME PAGE COMPONENTS
   ========================================= */

/* Hero Slider */
.slider {
  width: 100%;
  margin: 15px 0;
  position: relative;
}

.slider img {
  width: calc(100% - 24px);
  margin: 0 12px;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  display: none;
  box-shadow: var(--shadow-sm);
}

.slider img.active { 
  display: block; 
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  transition: 0.3s;
}

.slider-dots span.active {
  background: var(--text-dark);
  width: 24px;
  border-radius: 10px;
}

/* Category Scroll (Circles) */
.category-section h2,
.category h2 {
  padding: 0 20px;
  font-size: 22px;
  font-weight: 700;
  margin: 20px 0 15px;
}

.cat-scroll {
  display: flex;
  gap: 20px;
  padding: 10px 20px 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  display: flex;
  justify-content: center;   /* 🔥 CENTER */
  align-items: flex-start;
}

.cat-scroll::-webkit-scrollbar { 
  display: none; 
}

.cat-item {
  flex: 0 0 auto;
  text-align: center;
  width: 80px;
  cursor: pointer;
}

.cat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}

.cat-circle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cat-item p {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.cat-item:hover .cat-circle {
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

.cat-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* =========================================
   6. PRODUCT GRID & CARDS
   ========================================= */
.products {
  padding: 20px;
  max-width: 1280px;
  margin: 20px auto;
}

.products h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

/* Grid Layout */
.product-grid {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* Universal Product Card */
.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.product-card .offer-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary-color);
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  z-index: 2;
}

.product-card .product-image {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: #fff;
}

.product-card .product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-card .card-info {
  padding: 20px;
  border-top: 1px solid var(--border);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .card-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.product-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
}

.product-card .price .current-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-card .price .original-price {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
}

/* =========================================
   7. PRODUCT DETAIL VIEW
   ========================================= */
.product-view-container {
  max-width: 1100px;
  margin: 30px auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gallery-wrapper {
  position: sticky;
  top: 90px;
}

.main-image {
  width: 100%;
  height: 480px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.main-image:hover img {
  transform: scale(1.05);
}

.product-details {
  padding: 10px;
}

.product-details h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--text-dark);
}

.product-desc {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.price-box {
  margin: 20px 0;
  padding: 18px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #eee;
}

.big-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
}

.big-mrp {
  text-decoration: line-through;
  color: var(--text-light);
  margin-left: 10px;
  font-size: 18px;
}

.big-off {
  color: var(--success);
  font-weight: 700;
  margin-left: 10px;
  font-size: 16px;
  background: #e6f4ea;
  padding: 4px 8px;
  border-radius: 6px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.action-buttons .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
}

.trust-badge {
  padding: 15px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: #fff;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #2e7d32;
  font-size: 14px;
  margin-bottom: 12px;
}

.payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-icons img {
  height: 24px;
  object-fit: contain;
  opacity: 0.8;
}

/* =========================================
   8. FOOTER & BOTTOM NAV
   ========================================= */
.site-footer {
  background: #111;
  color: #ccc;
  padding: 50px 20px 0;
  margin-top: 50px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;

}

.footer-col h3 { 
  color: #fff; 
  margin-bottom: 18px; 
  font-size: 18px; 
}

.footer-col ul li { 
  margin-bottom: 10px; 
}

.footer-col a { 
  font-size: 14px; 
  transition: 0.3s; 
}

.footer-col a:hover { 
  color: #fff; 
  padding-left: 5px; 
}

.social-icons { 
  display: flex; 
  gap: 12px; 
  margin-top: 15px; 
}

.social-icons i {
  width: 36px; 
  height: 36px;
  background: #222;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  transition: 0.3s; 
  cursor: pointer;
}

.social-icons i:hover { 
  background: #fff; 
  color: #000; 
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  background: #000;
  font-size: 13px;
  color: #777;
  border-top: 1px solid #222;
  margin: 0;
}

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #eee;
  padding: 10px 0;
  justify-content: space-around;
  z-index: 900;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: #777;
  gap: 4px;
}

.bottom-nav-item i { 
  font-size: 20px; 
  color: #333; 
}

.bottom-nav-item.active i { 
  color: var(--primary-color); 
}

/* Floating Contact */
.floating-contact {
  position: fixed;
  left: 15px;
  bottom: 90px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 800;
}

.float-btn {
  width: 45px; 
  height: 45px;
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow-md);
}

.float-whatsapp { 
  background: #25D366; 
}

.float-call { 
  background: #007bff; 
}

/* =========================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================= */

@media (max-width: 1024px) {
  .product-view-container { 
    grid-template-columns: 1fr; 
    gap: 20px; 
  }
  
  .main-image { 
    height: 380px; 
  }
  
  .gallery-wrapper {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Header */
  body {
    /*padding-bottom: 10px;*/
  }
  
  .header {
    padding: 12px 15px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .search-box, 
  .auth-links { 
    display: none; 
  }
  
  .mobile-search-icon { 
    display: block; 
  }
  
  /* Marquee */
  .top-marquee {
    height: 32px;
  }
  
  .marquee-track span {
    font-size: 12px;
    margin-right: 40px;
  }

  /* Slider */
  .slider {
    margin: 10px 0;
  }
  
  .slider img { 
    height: 200px;
    margin: 0 10px;
    width: calc(100% - 20px);
  }
  
  /* Categories */
  .category-section h2,
  .category h2 {
    font-size: 20px;
    padding: 0 15px;
    margin: 15px 0 10px;
  }
  
.cat-scroll {
  padding: 10px 15px 20px;
  gap: 15px;

  display: flex;
  justify-content: center;   /* 🔥 CENTER */
  align-items: flex-start;
}
  .cat-item {
    width: 70px;
  }
  
  .cat-circle {
    width: 70px;
    height: 70px;
  }
  
  .cat-circle img {
    width: 35px;
    height: 35px;
  }
  
  .cat-item p {
    font-size: 12px;
  }

  /* Products Section */
  .products {
    padding: 15px;
    margin: 10px 0;
  }
  
  .products h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  /* Product Grid - 2 columns on mobile */
  .product-grid { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; 
  }
  
  .product-card .product-image {
    height: 180px;
    padding: 10px;
  }
  
  .product-card .card-info {
    padding: 12px;
  }
  
  .product-card .card-info h3 { 
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .product-card .price .current-price {
    font-size: 16px;
  }
  
  .product-card .price .original-price {
    font-size: 12px;
  }
  
  .product-card .offer-badge {
    top: 8px;
    right: 8px;
    padding: 3px 6px;
    font-size: 10px;
  }
  
  /* Product View */
  .product-view-container {
    padding: 15px;
    margin: 10px;
    gap: 20px;
  }
  
  .main-image { 
    height: 300px;
    padding: 15px;
  }
  
  .product-details {
    padding: 5px;
  }
  
  .product-details h1 { 
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .product-desc {
    font-size: 14px;
    margin-bottom: 15px;
  }
  
  .price-box {
    padding: 15px;
    margin: 15px 0;
  }
  
  .big-price {
    font-size: 26px;
  }
  
  .big-mrp {
    font-size: 14px;
  }
  
  .big-off {
    font-size: 12px;
  }
  
  .action-buttons { 
    flex-direction: column; 
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
  }
  
  .action-buttons .btn {
    width: 100%;
    padding: 12px;
  }
  
  .trust-badge {
    padding: 12px;
  }
  
  .trust-row {
    font-size: 12px;
  }
  
  .payment-icons img {
    height: 20px;
  }
  
  /* Footer */
  .site-footer {
    padding: 30px 15px 80px;
    margin-top: 30px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .footer-col h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .footer-col a {
    font-size: 13px;
  }
  
  .footer-bottom {
    padding: 15px;
    font-size: 12px;
    margin-bottom: 0;
  }
  
  /* Bottom Nav */
  .bottom-nav { 
    display: flex; 
  }
  
  /* Floating Contact - Adjust for bottom nav */
  .floating-contact {
    bottom: 75px;
    left: 10px;
  }
  
  .float-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  /* Even smaller phones */
  .logo {
    font-size: 16px;
  }
  
  .slider img { 
    height: 160px;
  }
  
  .cat-item {
    width: 65px;
  }
  
  .cat-circle { 
    width: 65px; 
    height: 65px; 
  }
  
  .cat-circle img { 
    width: 30px;
    height: 30px;
  }
  
  .cat-item p {
    font-size: 11px;
  }
  
  .products {
    padding: 10px;
  }
  
  .products h2 {
    font-size: 18px;
  }
  
  .product-grid {
    gap: 10px;
  }
  
  .product-card .product-image {
    height: 150px;
  }
  
  .product-card .card-info {
    padding: 10px;
  }
  
  .product-card .card-info h3 {
    font-size: 13px;
  }
  
  .product-card .price .current-price {
    font-size: 15px;
  }
  
  .product-view-container {
    margin: 5px;
    padding: 10px;
  }
  
  .main-image {
    height: 250px;
    padding: 10px;
  }
  
  .product-details h1 {
    font-size: 18px;
  }
  
  .big-price {
    font-size: 24px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .slider img {
    height: 250px;
  }
  
  .main-image {
    height: 280px;
  }
}

.slide-link {
  display:block;
  cursor:pointer;
}
.slide-link img {
  transition: transform .3s ease;
}
.slide-link:hover img {
  transform: scale(1.02);
}