:root {
  --primary: #800000;
  --gold: #d4af37;
  --text: #333;
  --white: #ffffff;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
  margin: 0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
body {
  background-color: #fdfbf7;
  color: var(--text);
  overflow-x: hidden;
}

/* Header & Navigation */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 120px; /* FIXED */
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center content */
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
}
.logo img {
  height: 75px;
}
.search-container {
  flex: 1;
  margin: 0 20px;
  position: relative;
}
.search-container input {
  width: 75%;
  padding: 10px 40px;
  border: 1px solid #ddd;
  border-radius: 25px;
  outline: none;
}
.search-container i {
  position: absolute;
  left: 15px;
  top: 12px;
  color: #aaa;
}
.category-nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 12px;
  background: var(--primary);
  color: white;
  overflow-x: hidden;
}
.category-nav span {
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 500;
  transition: 0.3s;
}
.category-nav span:hover {
  color: var(--gold);
}

/* Seamless Ticker Animation */
.ticker-wrapper {
  background: var(--gold);
  overflow: hidden;
  padding: 10px 0;
  border-bottom: 2px solid #b8932d;
  display: flex;
}
.ticker-scroll {
  display: flex;
  white-space: nowrap;
  animation: marquee 75s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 50px;
  font-weight: bold;
  color: var(--primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .ticker-item {
    padding: 0 15px;
  }
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Product Grid Sections */
.cat-section {
  padding: 20px 5%;
  border-bottom: 1px solid #eee;
}

@media (max-width: 768px) {
  .cat-section {
    padding: 15px 4% !important;
  }
}

.section-header h2 {
  margin-bottom: 8px;
  color: var(--primary);
  border-left: 5px solid var(--gold);
  padding-left: 10px;
  font-size: 1.3rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: pointer;
}
.card-info {
  padding: 15px;
  text-align: center;
}
.price {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.1rem;
  margin: 8px 0;
}
.view-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  right: -450px;
  top: 0;
  width: 400px;
  height: 100%;
  background: white;
  z-index: 4000;
  transition: 0.4s;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  right: 0;
}
.cart-header {
  padding: 20px;
  background: var(--primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-footer {
  padding: 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}
.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.grand-total {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--primary);
  border-top: 1px solid #ddd;
  padding-top: 10px;
}
.checkout-btn {
  width: 100%;
  padding: 15px;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* Variation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 20px;
}
.modal-content {
  background: white;
  width: 100%;
  max-width: 700px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  animation: popIn 0.3s;
}
.modal-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-details h3 {
  margin: 10px 0 5px 0 !important;
}
.selector {
  margin-bottom: 8px;
}
.selector select,
.selector input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 5px;
}
.add-to-cart-btn {
  width: 100%;
  margin-top: 10px;
  background: #25d366;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.9rem;
}

.add-to-cart-btn:hover {
  background: #189808;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    max-height: 90vh;
    overflow-y: auto;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
  .category-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    overflow-x: hidden !important;
    white-space: normal !important;
    gap: 8px !important;
  }

  .category-nav span {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ================= MOBILE VERSION ================= */

@media (max-width: 768px) {
  .social-floating {
    flex-direction: row;
    bottom: 58px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50px;
    overflow: hidden;
  }

  .social-floating a {
    width: 40px;
    height: 40px;
  }

  .top-bar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }

  .search-container {
    width: 100%;
    margin: 10px 0;
  }

  .search-container input {
    width: 100%;
  }

  .header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
  }
}

/* ================= LOGO WITH TEXT ================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.logo-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  white-space: normal;
  line-height: 1.2;
}

/* ================= HERO SLIDER ================= */

.hero-slider {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slider.loaded {
  opacity: 1;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 500px;
}

.slide-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slide-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.slide-content button {
  padding: 10px 20px;
  border: none;
  background: var(--gold);
  color: var(--primary);
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* arrows */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 25px;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.prev {
  left: 20px;
}
.next {
  right: 20px;
}

/* mobile */
@media (max-width: 768px) {
  .hero-slider {
    height: 170px;
  }

  .slide-content {
    left: 5%;
    bottom: 15%;
  }

  .slide-content h2 {
    font-size: 1.2rem;
  }

  .slide-content p {
    font-size: 0.8rem;
  }
}

/* ================= MOBILE STICKY CART ================= */

.mobile-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary);
  color: white;
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  z-index: 2000;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

.mobile-cart-bar button {
  background: var(--gold);
  border: none;
  padding: 8px 15px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .mobile-cart-bar {
    display: flex;
  }

  body {
    padding-bottom: 50px; /* prevent overlap */
  }
}

/* ================= TOAST NOTIFICATION ================= */

.toast-notification {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 3000;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .toast-notification {
    right: 50%;
    transform: translate(50%, 20px);
    bottom: 90px;
  }

  .toast-notification.show {
    transform: translate(50%, 0);
  }
}

/* ================= PRODUCT BADGE ================= */
/* ================= RIBBON BADGE STYLE ================= */

.product-card {
  position: relative;
  overflow: hidden;
}

/* Base Ribbon */
.product-badge {
  position: absolute;
  top: 18px;
  right: -54px;
  width: 170px;
  text-align: center;
  padding: 7px 0;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  transform: rotate(45deg);
  z-index: 5;
  letter-spacing: 0.6px;
  backdrop-filter: blur(2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  animation: strongPulse 1.8s infinite ease-in-out;
  transition: all 0.4s ease;
}

/* Shine Effect */
.product-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  transition: 0.7s;
}

.product-badge::before {
  left: 130%;
}

/* Luxury Gradients */

.badge-bestseller {
  background: linear-gradient(135deg, #ff6a00, #ff2e00);
}

.badge-new {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

.badge-offer {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* Soft Pulse Glow */

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 0 12px 4px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.25);
  }
}

@keyframes strongPulse {
  0% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.12);
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}

/* Subtle Hover Lift */
.product-badge {
  transform: rotate(45deg) scale(1.05);
}

/* ================= SAVINGS HIGHLIGHT ================= */

.savings-highlight {
  margin-top: 10px;
  padding: 8px 10px;
  background: #e6f7ec;
  color: #1e7e34;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 5px;
  text-align: center;
  animation: fadeInSavings 0.4s ease;
}

@keyframes fadeInSavings {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= PRODUCT IMAGE ZOOM ================= */

.product-card img {
  transition: transform 0.4s ease;
}

/* ================= IMAGE LIGHTBOX ================= */

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ================= SHRINK HEADER ON SCROLL ================= */

.main-header {
  transition: all 0.3s ease;
}

.logo img {
  transition: height 0.3s ease;
}

.logo-text {
  transition: font-size 0.3s ease;
}

/* Shrink state */

.main-header.shrink {
  padding-top: 5px;
  padding-bottom: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 120px;
}

.main-header.shrink .logo img {
  height: 50px;
}

.main-header.shrink .logo-text {
  font-size: 1.1rem;
}

.main-header.shrink .top-bar {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Optional: reduce nav padding slightly */

.main-header.shrink .category-nav {
  padding: 6px;
}

/* ================= SCROLL REVEAL ANIMATION ================= */

.reveal {
  opacity: 1;
  transform: translateY(25px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= CLEAN LUXURY PRODUCT CARD ================= */

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border 0.35s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid transparent;
}

/* Unified Hover */

.product-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

/* Image zoom */

.product-card img {
  transition: transform 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.08);
}

/* Badge hover scale */

.product-card:hover .product-badge {
  transform: rotate(45deg) scale(1.05);
}

/* Golden Accent Line */

.product-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: 0.4s ease;
  transform: translateX(-50%);
}

.product-card:hover::after {
  width: 70%;
}

.share-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: #000;
}

/* ================= BUTTON PRESS EFFECT ================= */

button {
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease;
}

button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) inset;
}

/* ================= CART BOUNCE EFFECT ================= */

@keyframes cartBounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  60% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}

.cart-icon.bounce {
  animation: cartBounce 0.4s ease;
}

/* ================= BACK TO TOP ================= */

.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 3000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--gold);
  color: var(--primary);
}

/* ================= ACTIVE CATEGORY ================= */

.category-nav span.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.social-floating.hide {
  display: none !important;
}

/* ================= REMOVE ITEM BUTTON ================= */

.remove-item-btn {
  border: none;
  background: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.remove-item-btn:hover {
  color: #e74c3c;
  transform: scale(1.15);
}

.remove-item-btn:active {
  transform: scale(0.9);
}

/* ================= WHY CHOOSE US (ULTRA COMPACT) ================= */

.why-choose-us {
  padding: 20px 5%;
  background: #fff;
  text-align: center;
}

.why-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.why-item {
  padding: 8px;
  border-radius: 8px;
}

.why-item i {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 5px;
}

.why-item h4 {
  margin-bottom: 3px;
  font-size: 0.9rem;
  color: var(--primary);
}

.why-item p {
  font-size: 0.75rem;
  color: #555;
  margin: 0;
  line-height: 1.3;
}

/* Mobile */
@media (max-width: 768px) {
  .why-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .why-choose-us {
    padding: 15px 5%;
  }
}

/* ================= FOOTER ================= */

.site-footer {
  background: #111;
  color: #eee;
  padding: 30px 5% 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--gold);
}

.footer-col p,
.footer-col li {
  font-size: 0.85rem;
  color: #bbb;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: #bbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  margin-top: 25px;
  font-size: 0.75rem;
  color: #777;
  border-top: 1px solid #333;
  padding-top: 15px;
}

/* Mobile */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================= PREMIUM CART OVERLAY ================= */

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1800;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Smooth cart animation */
.cart-drawer {
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Lock body scroll */
body.cart-open {
  overflow: hidden;
} /* ================= SOCIAL INSIDE HERO ================= */

.hero-slider {
  position: relative;
}

.social-floating {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.social-floating a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

/* Individual Official Colors */
.social-instagram {
  background: #e1306c; /* Pink */
}

.social-facebook {
  background: #1877f2; /* Blue */
}

.social-whatsapp {
  background: #25d366; /* Green */
}

/* Hover effect */
.social-floating a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .social-floating {
    bottom: 15px;
    right: 15px;
    left: auto;
    transform: none;
    gap: 8px;
    max-width: calc(100% - 30px);
  }
}

.modal-thumbnails {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.modal-thumb:hover {
  border: 2px solid var(--primary);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .modal-thumb {
    width: 50px;
    height: 50px;
  }
}

/* Premium Color Badge */
.color-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold), #f7d774);
  color: var(--primary);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.color-badge {
  margin-bottom: 8px;
}

.size-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.size-row label {
  min-width: 90px;
  font-weight: 600;
}

.size-row select {
  flex: 1;
  padding: 8px 12px;
}

.modal-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.modal-btn-row button {
  flex: 1;
}

@media (max-width: 768px) {
  .size-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .modal-btn-row {
    gap: 8px;
  }

  .modal-btn-row button {
    font-size: 0.85rem;
    padding: 10px;
  }
}

.color-badge {
  margin-bottom: 8px;
}

.selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.selector label {
  min-width: 95px;
  font-weight: 600;
}

.selector select {
  flex: 1;
}

.price-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 15px 0;
  gap: 15px;
}

.price-left h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
}

.price-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-right p {
  margin: 0;
  font-size: 0.8rem;
  color: #555;
}

#livePrice {
  color: var(--primary);
  margin: 20px 0 5px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.shipping-line {
  color: #28a745;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.auth-line {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  #livePrice {
    margin: 0;
  }

  #livePrice,
  .shipping-line,
  .auth-line {
    display: inline-block;
  }

  /* Wrap price + lines in flex using parent */
  .modal-details {
    position: relative;
  }

  #livePrice {
    float: left;
    margin-right: 10px;
  }

  .shipping-line,
  .auth-line {
    display: block;
  }
}

@media (max-width: 768px) {
  #livePrice {
    float: left;
    margin-right: 15px;
  }

  .shipping-line,
  .auth-line {
    margin-left: 90px; /* adjust according to price width */
  }
}

.price-mobile-wrapper {
  margin: 20px 0 10px 0;
}

#livePrice {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.price-info p {
  margin: 0 0 6px 0;
}
@media (max-width: 768px) {
  .price-mobile-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
  }

  #livePrice {
    margin: 0;
    white-space: nowrap;
  }

  .price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
}

/* Wrapper */
.price-mobile-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 15px 0;
  gap: 15px;
}

/* Price */
#livePrice {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--primary);
}

/* Info section */
.price-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid #eee;
  padding-left: 10px;
}

/* Info lines */
.info-line {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Shipping green highlight */
.shipping {
  color: #1e7e34;
  font-weight: 600;
}

/* Secure subtle grey */
.secure {
  color: #666;
}

.ticker-wrapper {
  z-index: 1;
}

.main-header {
  top: 0;
  width: 100%;
  background: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

/* Ticker ko header ke niche natural flow mein rakhein */
.ticker-wrapper {
  background: var(--gold);
  overflow: hidden;
  padding: 10px 0;
  z-index: 999;
  border-bottom: 2px solid #b8932d;
}

/* Navbar buttons fix karne ke liye */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  background: var(--primary);
  color: white;
  flex-wrap: wrap; /* Mobile par items line change kar lenge */
}

@media (max-width: 768px) {
  .category-nav {
    gap: 10px;
    padding: 10px 5px;
  }
  .category-nav span {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* ================= FIXED HEADER V2 ================= */

.main-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

.ticker-wrapper {
  position: relative !important;
  top: 0 !important;
}

.main-header.shrink {
  min-height: 100px;
}

/* ===== FIX HEADER + TICKER ALIGNMENT ===== */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
}

/* Desktop header height */
.ticker-wrapper {
  margin-top: 130px;
}

/* Mobile header height (thoda zyada hota hai) */
@media (max-width: 768px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
  }
  .ticker-wrapper {
    margin-top: 170px;
  }
}

/* ================= AMAZON STYLE MOBILE CARDS ================= */

@media (max-width: 768px) {
  /* 2 fixed columns */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    padding-bottom: 8px;
  }

  /* Compact image */
  .product-card img {
    height: 140px;
    object-fit: cover;
  }

  .card-info {
    padding: 8px;
    text-align: left;
  }

  /* Title - max 2 lines */
  .card-info h4 {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
  }

  /* Price bold & Amazon style */
  .price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #b12704;
    margin: 2px 0 6px 0;
  }

  /* Compact button */
  .view-btn {
    padding: 6px;
    font-size: 0.75rem;
    border-radius: 4px;
  }
}

/* ================= AMAZON STYLE COMPACT PRODUCT MODAL ================= */

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 85vh;
    border-radius: 10px;
  }

  /* Image compact */
  #modalImage {
    height: 220px !important;
    object-fit: cover;
  }

  .modal-details {
    padding: 15px !important;
  }

  .modal-details h2 {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .modal-details p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  /* Color badge small */
  .color-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* Size selector compact */
  .selector label {
    font-size: 0.8rem;
  }

  .selector select {
    padding: 6px;
    font-size: 0.8rem;
  }

  /* Price smaller */
  #livePrice {
    font-size: 1.2rem !important;
  }

  .price-info p {
    font-size: 0.7rem !important;
  }

  /* Buttons compact */
  .modal-btn-row button {
    padding: 8px;
    font-size: 0.75rem;
  }

  /* Thumbnails smaller */
  .modal-thumb {
    width: 40px;
    height: 40px;
  }
}

/* ===== MOBILE MODAL SPACE OPTIMIZATION ===== */

@media (max-width: 768px) {
  /* Remove extra margin above price section */
  .price-mobile-wrapper {
    margin: 8px 0 6px 0 !important;
  }

  /* Reduce price size spacing */
  #livePrice {
    margin: 0 !important;
    font-size: 1.3rem !important;
  }

  /* Reduce info spacing */
  .price-info {
    gap: 4px !important;
    padding-left: 8px !important;
  }

  .info-line p {
    margin-bottom: 4px !important;
  }

  /* Reduce modal detail padding */
  .modal-details {
    padding: 12px !important;
  }

  /* Reduce space above buttons */
  .modal-btn-row {
    margin-top: 8px !important;
  }

  /* Make buttons slightly tighter */
  .modal-btn-row button {
    padding: 8px !important;
  }
}

.price-block {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.selling-price {
  color: #b12704;
  font-weight: 700;
}

.mrp {
  text-decoration: line-through;
  color: #777;
  font-size: 0.8rem;
}

.discount {
  color: #388e3c;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-rating {
  font-size: 0.75rem;
  color: #ffa41c;
  margin: 2px 0;
}

.review-count {
  color: #555;
  font-size: 0.7rem;
}

/* ===== DESKTOP BUY BOX BEAUTIFY ===== */

@media (min-width: 769px) {
  .card-rating {
    font-size: 0.85rem;
    color: #ffa41c;
    margin: 6px 0 8px 0;
    font-weight: 500;
  }

  .review-count {
    color: #666;
    font-size: 0.8rem;
    margin-left: 4px;
  }

  .price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 12px 0;
  }

  .selling-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #b12704;
  }

  .mrp {
    text-decoration: line-through;
    color: #777;
    font-size: 0.95rem;
  }

  .discount {
    background: #e6f4ea;
    color: #137333;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
  }

  .view-btn {
    margin-top: 10px;
    font-size: 0.95rem;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}

/* ===== ULTRA PREMIUM BUY BOX ===== */

/* ===== ULTRA COMPACT BUYBOX ===== */

.premium-buybox {
  padding: 8px 10px; /* ↓ less padding */
  margin-top: 6px;
  border-radius: 8px;
  box-shadow: none; /* remove extra depth */
  background: #fafafa;
}

/* Rating tighter */
.card-rating {
  font-size: 0.75rem;
  margin-bottom: 4px; /* ↓ less gap */
  gap: 4px;
}

/* Price section tighter */
.price-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0; /* remove vertical margin */
}

/* Deal label smaller */
.deal-label {
  font-size: 0.6rem;
  margin-right: 4px;
}

/* Price compact */
.selling-price {
  font-size: 1.2rem;
  margin: 0;
}

.mrp {
  font-size: 0.75rem;
}

.discount-pill {
  font-size: 0.65rem;
  padding: 3px 7px;
}

/* Reduce spacing inside card-info */
.card-info {
  padding: 10px 12px; /* ↓ from 15px */
}

/* Button tighter */
.premium-btn {
  margin-top: 8px; /* ↓ less gap */
  padding: 10px;
  font-size: 0.9rem;
  border-radius: 8px;
}

.verified-badge {
  background: #e6f4ea; /* light green background */
  color: #137333; /* Google green */
  font-size: 0.65rem;
  padding: 3px 7px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== MOBILE ULTRA COMPACT ===== */

@media (max-width: 768px) {
  .card-info {
    padding: 8px 10px !important; /* reduce internal spacing */
  }

  .premium-buybox {
    padding: 6px 8px !important; /* very tight */
    margin-top: 4px;
    background: #f7f7f7;
    border-radius: 6px;
    box-shadow: none;
  }

  /* rating tighter */
  .card-rating {
    font-size: 0.7rem;
    margin-bottom: 3px;
    gap: 3px;
  }

  .verified-badge {
    background: #e6f4ea; /* light green background */
    color: #137333; /* Google green */
    font-size: 0.65rem;
    padding: 3px 7px;
    border-radius: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  /* make price inline instead of stacked */
  .price-block {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0;
    flex-wrap: wrap;
  }

  .deal-label {
    display: none; /* remove DEAL PRICE text on mobile */
  }

  .selling-price {
    font-size: 1.1rem;
  }

  .mrp {
    font-size: 0.7rem;
  }

  .discount-pill {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .premium-btn {
    margin-top: 6px;
    padding: 9px;
    font-size: 0.85rem;
    border-radius: 6px;
  }
}

/* ===== MOBILE SPACE SURGERY ===== */

@media (max-width: 768px) {
  /* Product Name spacing reduce */
  .card-info h4 {
    margin: 6px 0 4px 0 !important; /* reduce top & bottom gap */
    font-size: 0.95rem;
  }

  /* Buybox top gap remove */
  .premium-buybox {
    margin-top: 2px !important;
    padding: 6px 8px !important;
  }

  /* Rating tighter */
  .card-rating {
    margin-bottom: 2px !important;
  }

  /* Price tighter */
  .price-block {
    margin: 2px 0 !important;
  }

  /* Button smaller */
  .premium-btn {
    margin-top: 6px !important;
    padding: 8px 10px !important; /* smaller */
    font-size: 0.85rem !important;
    border-radius: 6px !important;
  }
}

/* ===== REMOVE EXTRA GAP AFTER PRODUCT NAME ===== */

@media (max-width: 768px) {
  .card-info {
    padding-top: 6px !important;
    padding-bottom: 8px !important;
  }

  .card-info h4 {
    margin: 4px 0 2px 0 !important; /* reduce vertical gap */
    line-height: 1.2 !important; /* tighter text height */
    font-size: 0.95rem !important;
  }

  .premium-buybox {
    margin-top: 0px !important; /* remove extra space */
  }
}

/* ===== TRUE TIGHT MOBILE LAYOUT ===== */

@media (max-width: 768px) {
  .card-info {
    padding: 6px 10px 8px 10px !important;
  }

  .card-info h4 {
    margin: 2px 0 2px 0 !important;
    line-height: 1.1 !important;
  }

  /* Remove grey box effect */
  .premium-buybox {
    background: transparent !important;
    box-shadow: none !important;
    padding: 2px 0 !important;
    margin: 0 !important;
  }

  .card-rating {
    margin: 0 0 2px 0 !important;
  }

  .price-block {
    margin: 0 !important;
  }

  .premium-btn {
    margin-top: 6px !important;
    padding: 8px !important;
    font-size: 0.85rem !important;
  }
}

/* ===== REMOVE IMAGE BOTTOM GAP ===== */

.product-main-image {
  display: block; /* remove inline baseline gap */
  width: 100%;
}

.card-info {
  padding-top: 4px !important;
}

/* ===== FINAL H4 GAP FIX ===== */

@media (max-width: 768px) {
  .product-card {
    padding: 0 !important; /* remove card internal gap */
  }

  .card-info {
    padding: 4px 8px 6px 8px !important; /* tighter */
  }

  .card-info h4 {
    margin: 2px 0 2px 0 !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 768px) {
  .hero-slider .slide-content {
    bottom: 12%;
    left: 5%;
  }

  .hero-slider .slide-content h2 {
    font-size: 1.1rem;
  }

  .hero-slider .slide-content p {
    font-size: 0.75rem;
  }

  .hero-slider .slide-content button {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
}

.slide-content h2 {
  color: #ffffff;
  font-weight: 700;
}

.slide-content p {
  color: #f3f3f3;
}

.slide-content button {
  background: linear-gradient(135deg, #c9a227, #f7d774);
  color: #5a1e1e;
  border-radius: 25px;
  padding: 8px 18px;
  font-weight: 600;
}
