/* assets/css/main.css */
:root {
  --gold: #d4af37;
  --gold-strong: #b88710;
  --bg: #fdfdfd;
  --muted: #777;
  --success: #28a745;
  --instagram: #E4405F;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: #222;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: none;
}

/* Header */
.header {
  background: #000;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1100;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}

.brand-title {
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 0.6px;
}

.icon-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  position: relative;
  transition: color 0.3s;
}

.icon-btn:hover {
  color: var(--gold);
}

.icon-btn .counter {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--gold);
  color: #000;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #000;
  color: #fff;
  z-index: 2000;
  padding: 20px;
  transition: .28s;
  box-shadow: 0 6px 30px rgba(0,0,0,.6);
  border-right: 5px solid var(--gold);
}

.sidebar.active {
  left: 0;
}

.sidebar h5 {
  color: var(--gold);
  margin-bottom: 12px;
}

.sidebar a {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 10px 8px;
  font-size: 15px;
  transition: .18s;
  border-radius: 8px;
}

.sidebar a i {
  width: 28px;
  text-align: center;
  color: var(--gold);
}

.sidebar a:hover {
  background: rgba(212,175,55,0.06);
  color: var(--gold);
  padding-left: 12px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  display: none;
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* Animations */
@keyframes floatUp {
  0% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.fade-in {
  animation: floatUp .6s ease both;
}

/* Top banners swiper */
.top-banner {
  margin: 12px 0;
}

.top-banner .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.banner-loader {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Today's Deals (BLACK BACKGROUND) */
.deals-container {
  background: #000;
  padding: 18px;
  border-radius: 12px;
  margin: 18px 0;
  border: 3px solid rgba(212,175,55,0.08);
}

.deals-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold);
  margin-bottom: 8px;
}

.deals-top h3 {
  margin: 0;
  font-weight: 800;
}

.deal-card {
  background: linear-gradient(180deg,#0b0b0b, #0f0f0f);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  transition: transform .28s, box-shadow .28s;
}

.deal-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
}

.deal-card img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.deal-card .name {
  font-weight: 700;
  color: #fff;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
}

.deal-card .price {
  color: var(--gold);
  font-weight: 800;
  margin-top: 6px;
}

.deal-card .mrp {
  text-decoration: line-through;
  color: #bbb;
  font-size: 13px;
  margin-left: 6px;
}

/* Browse categories - stylish */
.browse-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.browse-deco {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg,#fff,#f7f0d6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
}

.browse-deco i {
  color: var(--gold);
  font-size: 18px;
}

.browse-heading {
  font-weight: 800;
  font-size: 1.1rem;
}

.browse-sub {
  color: #666;
}

.browse-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px;
  margin-bottom: 12px;
}

.browse-item {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(212,175,55,0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #222;
  margin-right: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* Trending (auto slider like deals) */
.trending-section {
  background: #000;
  padding: 16px;
  border-radius: 12px;
  border: 3px solid rgba(212,175,55,0.08);
  margin-bottom: 18px;
}

.trending-section h3 {
  color: var(--gold);
  margin-bottom: 8px;
}

.trend-card {
  background: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
  transition: transform .28s;
}

.trend-card:hover {
  transform: scale(1.03);
}

.trend-card img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform .28s;
}

.trend-card .name {
  font-weight: 800;
  color: #fff;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.trend-card .price {
  color: var(--gold);
  font-weight: 800;
  margin-top: 6px;
}

/* Latest Collection */
.section-title {
  margin: 8px 0 12px;
  font-weight: 700;
  color: #222;
  text-align: left;
}

.latest-row .product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .28s, box-shadow .28s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.latest-row .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(212,175,55,0.14);
}

.latest-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.latest-row .name {
  font-weight: 700;
  color: #333;
  font-size: 15px;
  padding: 8px 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 6px rgba(212,175,55,0.18);
}

.latest-row .price {
  color: var(--gold);
  font-weight: 800;
}

.latest-row .mrp {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
  margin-left: 6px;
}

/* Product global fixed img to prevent overflow */
.product-card img, .deal-card img, .trend-card img, .latest-row img {
  width: 260px;
  height: 260px;
  object-fit: cover;
}

@media(max-width: 992px) {
  .product-card img, .deal-card img, .trend-card img, .latest-row img {
    width: 100%;
    height: 220px;
  }
}

@media(max-width: 576px) {
  .product-card img, .deal-card img, .trend-card img, .latest-row img {
    height: 160px;
  }
}

/* Category Products Section */
.category-products-section {
  margin: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.1rem;
}

.category-block {
  margin-bottom: 40px;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(212,175,55,0.2);
}

.category-header h3 {
  font-weight: 700;
  color: #222;
  margin: 0;
}

.view-all-btn {
  color: var(--gold);
  font-weight: 600;
  transition: all 0.3s;
}

.view-all-btn:hover {
  color: var(--gold-strong);
  transform: translateX(5px);
}

.category-swiper {
  position: relative;
  padding: 0 40px;
}

.category-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  height: 100%;
}

.category-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(212,175,55,0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Changed to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 72px; /* Increased height for 3 lines */
  line-height: 1.4;
}

.price-section {
  margin-bottom: 8px;
}

.price-section .price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
}

.price-section .mrp {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
  margin-left: 5px;
}

.rating {
  font-size: 0.8rem;
  color: #ffc107;
  margin-bottom: 10px;
}

/* Buy Now Button - Enhanced */
.buy-now-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  color: #000;
  border: none;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(212,175,55,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212,175,55,0.4);
}

.buy-now-btn:active {
  transform: translateY(0);
}

/* Instagram Button */
.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white !important;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(224, 58, 132, 0.3);
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 58, 132, 0.4);
  color: white !important;
  padding-left: 20px;
}

/* Bootstrap doesn't have col-lg-2-4, so we create a custom flex width for 5 columns */
@media (min-width: 992px) {
  .col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
  }
}

/* Footer */
.site-footer {
  background: #000;
  border-top: 5px solid var(--gold);
  padding: 34px 0;
  margin-top: 34px;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.footer-grid h6 {
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gold);
}

.footer-grid a {
  display: block;
  color: #ccc;
  margin-bottom: 6px;
  transition: .2s;
}

.footer-grid a:hover {
  color: var(--gold);
  padding-left: 6px;
}

.footer-brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
}

.footer-note {
  color: #ccc;
  font-size: 14px;
}

.footer-bottom {
  text-align: center;
  color: #888;
  margin-top: 20px;
  font-size: 14px;
}

/* WhatsApp */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  z-index: 1000;
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Swiper navigation for category products */
.category-swiper .swiper-button-next,
.category-swiper .swiper-button-prev {
  color: var(--gold);
  background: rgba(0,0,0,0.7);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: all 0.3s;
}

.category-swiper .swiper-button-next:after,
.category-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.category-swiper .swiper-button-next:hover,
.category-swiper .swiper-button-prev:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-swiper {
    padding: 0 20px;
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .product-image img {
    height: 160px;
  }
  
  .product-name {
    font-size: 0.9rem;
    height: 63px; /* Adjusted for 3 lines on mobile */
  }
  
  .brand-title {
    font-size: 1.3rem;
  }
  
  .logo-img {
    height: 32px;
  }
}

@media (max-width: 576px) {
  .category-swiper {
    padding: 0 10px;
  }
  
  .product-image img {
    height: 140px;
  }
  
  .product-name {
    height: 58px; /* Adjusted for 3 lines on small mobile */
  }
  
  .instagram-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
}