/* ═══════════════════════════════════════════════════════════
   SOBIASE MAIN STYLESHEET
   Premium E-commerce Design
════════════════════════════════════════════════════════════ */

/* ──── CSS Variables ──── */
:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-darker: #ad1457;
  --primary-light: #fce4ec;
  --secondary: #3f51b5;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-muted: #888;
  --border-color: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──── Base ──── */
*,*::before,*::after { box-sizing: border-box; }

body {
  font-family: 'Hind Siliguri', 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* ──── Hero Slider ──── */
.hero-section {
  background: linear-gradient(135deg, #fff5f8 0%, #fce4ec 100%);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
  animation: slideUp 1s ease-out;
}

/* ──── Animations ──── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.6); }
  70%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(233, 30, 99, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(233, 30, 99, 0); }
}

/* ──── Custom Cards ──── */
.custom-card {
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: #fff;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.custom-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(233, 30, 99, 0.14);
  border-color: rgba(233, 30, 99, 0.25);
}

/* ──── Discount Badge ──── */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 3px 10px;
  z-index: 10;
  animation: pulse 2s infinite;
}

/* ──── Product Titles ──── */
.product-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  line-height: 1.4;
  transition: color 0.2s;
}
.custom-card:hover .product-title { color: var(--primary); }

/* ──── Ratings ──── */
.rating {
  color: #ffc107;
  font-size: 12px;
}

/* ──── Prices ──── */
.current-price {
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
}
.old-price {
  text-decoration: line-through;
  color: #bbb;
  font-size: 13px;
  margin-left: 5px;
  font-weight: 400;
}

/* ──── Buttons ──── */
.btn-order-now {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 9px 14px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(233, 30, 99, 0.2);
  font-family: 'Hind Siliguri', sans-serif;
}
.btn-order-now:hover {
  background: linear-gradient(135deg, #c2185b, #ad1457);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 30, 99, 0.3);
}

.btn-add-cart {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: white;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 14px;
  padding: 9px 14px;
  transition: var(--transition);
  font-family: 'Hind Siliguri', sans-serif;
}
.btn-add-cart:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-pink {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-outline-pink:hover {
  background: var(--primary);
  color: white;
}

/* ──── Section Header (old style kept for fallback) ──── */
.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: 24px;
  font-weight: 800;
  display: inline-block;
  background: var(--bg-light);
  padding: 0 20px;
  position: relative;
  z-index: 2;
  color: #111;
}
.section-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e91e63, transparent);
  z-index: 1;
}

/* ──── Img Wrapper ──── */
.img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
}
.img-wrapper img { transition: transform 0.5s ease; }
.custom-card:hover .img-wrapper img { transform: scale(1.07); }
.img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: var(--radius-sm);
  pointer-events: none;
}
.custom-card:hover .img-wrapper::after { opacity: 1; }

/* ──── Action Buttons on Cards ──── */
.product-action-links {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
  z-index: 20;
}
.custom-card:hover .product-action-links { opacity: 1; }

/* ──── Slider ──── */
.trending-slide-item {
  flex-shrink: 0;
  width: calc(20% - 12px);
}
@media (max-width: 1199px) { .trending-slide-item { width: calc(25% - 12px); } }
@media (max-width: 991.98px) { .trending-slide-item { width: calc(33.333% - 12px); } }
@media (max-width: 767.98px) { .trending-slide-item { width: calc(50% - 10px); } }

/* ──── Scrollbar Hide ──── */
#trendingSlider::-webkit-scrollbar,
#categorySlider::-webkit-scrollbar,
#flashSlider::-webkit-scrollbar,
#bestsellingSlider::-webkit-scrollbar { display: none; }

/* ──── Pagination ──── */
.custom-pagination .page-link {
  color: var(--primary);
  border-radius: 50%;
  margin: 0 4px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}
.custom-pagination .page-item.active .page-link {
  background: var(--primary);
  color: #fff;
}

/* ──── Features section ──── */
.feature-card { position: relative; }
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #ff7eb3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(233,30,99,0.12) !important; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--primary), #ff7eb3) !important;
  color: #fff !important;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 24px rgba(233,30,99,0.35);
}

/* ──── Footer ──── */
footer {
  margin-top: auto;
  background-color: #1a1a2e;
  color: #e0e0e0;
  padding: 40px 0 20px;
}
.footer-heading::after {
  content: '';
  position: absolute;
  left: 0; bottom: -10px;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 5px;
}
.footer-links li { margin-bottom: 11px; }
.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-size: 14px;
}
.footer-links a:hover { color: #ff7eb3; transform: translateX(4px); }
.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(233,30,99,0.4);
}
.newsletter-form input:focus {
  outline: none;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 0 0 2px rgba(233,30,99,0.5) !important;
  background-color: rgba(255,255,255,0.08) !important;
}

/* ──── Product Page ──── */
.add-to-cart-btn { flex-grow: 1; min-width: 0; }
@media (max-width: 575px) {
  .product-action-row { gap: 10px !important; }
  .qty-input-group { width: 130px !important; height: 46px !important; }
  .add-to-cart-btn { flex: 1 1 auto !important; height: 46px !important; font-size: 14px !important; padding: 0 12px !important; }
  .cart-en-text { display: none; }
}
@media (max-width: 400px) {
  .product-action-row { flex-direction: column !important; align-items: stretch !important; }
  .qty-input-group { width: 100% !important; }
  .add-to-cart-btn { width: 100% !important; text-align: center !important; }
}

/* ──── Pills Tab ──── */
#pills-tab .nav-link { color: var(--primary); }
#pills-tab .nav-link.active { background-color: var(--primary) !important; color: #fff !important; }
