@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');



/* 1. Override Bootstrap color variables */
:root {
  --bs-body-bg: hsl(40 33% 98%);          /* Warm cream */
  --bs-body-color: hsl(0 0% 8%);          /* Elegant black */
  --bs-primary: hsl(0 0% 8%);
  --bs-primary-rgb: 0,0,8;
  --bs-primary-hover: hsl(0 0% 10%);
  --bs-secondary: hsl(35 30% 92%);
  --bs-success: hsl(150 20% 60%);
  --bs-danger: hsl(0 72% 51%);
  --bs-warning: hsl(38 70% 50%);
  --bs-info: hsl(210 50% 60%);
  --bs-light: hsl(40 33% 98%);
  --bs-dark: hsl(0 0% 8%);
  --bs-link-color: hsl(38 70% 50%);

  --radius:0px;
}

*{
  border-radius: 0px !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Brand script text next to logo */
.brand-script {
  font-family: cursive !important;
}
.brand-line {
  font-size: 1.25rem;
  line-height: 1;
}
.brand-first {
  color: var(--bs-warning);
}
.brand-second {
  color: var(--bs-dark);
}
/* 2. Override Bootstrap buttons */
.btn-primary {
  background-color: var(--bs-primary);
  color: var(--bs-primary-foreground, hsl(40 33% 98%));
  border: none;
  font-weight: 500;
  text-transform: uppercase;
  border-radius: 0;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: hsl(0 0% 12%);
  border-radius: 0;
}

.btn-secondary {
  background-color: var(--bs-secondary);
  color: var(--bs-secondary-foreground, hsl(0 0% 8%));
  border-radius: 0;
}

/* 3. Override contextual text */
.text-primary { color: var(--bs-primary) !important; }
.text-secondary { color: var(--bs-secondary) !important; }
.text-success { color: var(--bs-success) !important; }
.text-danger { color: var(--bs-danger) !important; }
.text-warning { color: var(--bs-warning) !important; }
.text-info { color: var(--bs-info) !important; }
.text-light { color: var(--bs-light) !important; }
.text-dark { color: var(--bs-dark) !important; }

/* 4. Override backgrounds */
.bg-primary { background-color: var(--bs-primary) !important; }
.bg-secondary { background-color: var(--bs-secondary) !important; }
.bg-success { background-color: var(--bs-success) !important; }
.bg-danger { background-color: var(--bs-danger) !important; }
.bg-warning { background-color: var(--bs-warning) !important; }
.bg-info { background-color: var(--bs-info) !important; }
.bg-light { background-color: var(--bs-light) !important; }
.bg-dark { background-color: var(--bs-dark) !important; }

/* 5. Cards */
.card {
  background-color: var(--card);
  color: var(--card-foreground);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
}
.card:hover {
  box-shadow: var(--shadow-elegant);
}

/* 6. Alerts */
.alert-primary { background-color: var(--bs-primary); color: var(--bs-primary-foreground); }
.alert-secondary { background-color: var(--bs-secondary); color: var(--bs-secondary-foreground); }
.alert-success { background-color: var(--bs-success); color: var(--bs-success-foreground); }
.alert-danger { background-color: var(--bs-danger); color: var(--bs-danger-foreground); }

/* 7. Badges */
.badge-primary { background-color: var(--bs-primary); color: var(--bs-primary-foreground); }
.badge-secondary { background-color: var(--bs-secondary); color: var(--bs-secondary-foreground); }

/* 8. Form Controls */
.form-control {
  border-color: var(--input);
  background-color: var(--card);
  color: var(--foreground);
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem hsla(var(--accent) / 0.25);
}

/* 9. Navbar & links */

/* Mega Menu Styles */
.dropdown-static {
    position: static !important;
}

#desktopCategoriesCollapse {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: #ffffff;
    z-index: 1000;
}

#desktopCategoriesCollapse.collapsing {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden; /* Ensure it doesn't show overflow during height animation */
}

#desktopCategoriesCollapse.show {
    overflow: visible; /* Allow mega menus to show when expanded */
}

.js-category-toggle {
    transition: all 0.3s ease;
    padding: 0.35rem 0.85rem !important;
    border-radius: 999px !important;
}

.js-category-toggle.active {
    background-color: var(--bs-dark);
    color: #fff !important;
}

.js-category-toggle:hover:not(.active) {
    background-color: #f1f1f1;
}

.transition-transform {
    transition: transform 0.4s ease;
}

.mega-menu {
    position: absolute; /* Essential for absolute positioning within the toggled bar */
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
    display: none; /* Hide by default to prevent height calculation issues */
    opacity: 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    transform: translateY(10px);
    background-color: #ffffff;
    border-top: 1px solid #eee !important;
    z-index: 1100;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    max-height: 80vh;
    overflow-y: auto;
}

.nav-item.dropdown:hover .mega-menu,
.nav-item.dropdown.show .mega-menu {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-column {
    border-right: 1px solid #f1f1f1;
}
.mega-menu-column:last-child {
    border-right: none;
}

.mega-menu-title a {
    transition: color 0.2s;
    display: inline-block;
}

.mega-menu-title a:hover {
    color: var(--bs-primary) !important;
}

.mega-menu-link {
    transition: all 0.2s;
    display: block;
    padding: 2px 0;
    color: var(--muted-foreground);
    text-decoration: none;
}

.mega-menu-link:hover {
    color: var(--bs-dark) !important;
    transform: translateX(5px);
}

.mega-menu-featured {
    background: #fcfcfc;
    padding: 15px;
    height: 100%;
}

.mega-menu-featured img {
    transition: transform 0.5s ease;
}

.nav-item.dropdown:hover .mega-menu-featured img {
    transform: scale(1.05);
}

/* 10. Utility overrides */
.text-muted { color: var(--muted-foreground) !important; }




/* ======== */

/* Carousel captions */
.carousel-caption {
   
    color: var(--foreground);
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: hsla(0, 0%, 100%, 0.45);
    border: none;
    margin: 0 4px;
}

.carousel-indicators .active {
    width: 26px;
    background-color: #ffffff;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
}

.hero-carousel-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background-color: hsla(0, 0%, 0%, 0.25);
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

 .modal-content {
    background-color: var(--card);
    color: var(--card-foreground);
    border-radius: var(--radius);
}

.dropdown-menu {
    background-color: #ffffff;
    color: var(--bs-body-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    border-radius: 4px;
}

.navbar .dropdown-menu {
    min-width: 14rem;
    max-width: calc(100vw - 1.5rem);
    padding: 0.75rem 1rem;
}

/* Hover-open dropdown (scoped for cart) */
.dropdown-hover:hover > .dropdown-menu,
.dropdown-hover:focus-within > .dropdown-menu {
    display: block !important;
}



.navbar .dropdown-menu.dropdown-menu-collections {
    min-width: 18rem;
    width: min(100vw - 1.5rem, 980px);
    max-width: calc(100vw - 1.5rem);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem 1.25rem;
    padding: 0.5rem 0.25rem;
}

.dropdown-grid-item {
    min-width: 0;
}

.navbar .dropdown-item {
    font-size: 0.95rem;
    padding: 0.35rem 0;
    line-height: 1.5;
    color: var(--bs-body-color);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: transparent;
    color: var(--bs-link-color);
}

.navbar .dropdown-header {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.navbar-nav .nav-link {
    padding: 0.4rem 0.85rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar .nav-link i,
.navbar .btn i {
    line-height: 1;
    vertical-align: middle;
}

.offcanvas {
    background-color: #ffffff;
}

.offcanvas .offcanvas-title {
    letter-spacing: 0.08em;
}

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 999px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 1050;
}
.whatsapp-fab:hover,
.whatsapp-fab:focus {
    background-color: #20bd59;
    color: #ffffff;
}
.whatsapp-fab i {
    font-size: 1.5rem;
    line-height: 1;
}
.offcanvas-start {
    max-width: 320px;
}

/* Tables */
.table {
    color: var(--foreground);
}
.table thead {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

.social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: transparent;
  border: 1px solid rgba(0,0,0,0.075);
}
.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product page specific social icons */
.product-social-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-social-icon {
  width: 24px !important;
  height: 24px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px !important;
  background-color: #ffffff;
  flex: 0 0 auto;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product-social-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.product-social-icon:hover,
.product-social-icon:focus {
  border-color: #25D366;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.btn-add-to-bag {
  min-width: 200px;
}

@media (max-width: 576px) {
  .btn-add-to-bag {
    min-width: 0;
  }
}
.table tbody tr:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.product-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.product-card-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.product-card-image-main,
.product-card-image-secondary {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card-image-secondary {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.product-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover .product-card-image-main {
    opacity: 0;
    transform: scale(1.03);
}

.tutorial-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-sec{
  padding: 10px 15px;
  background: rgb(250, 248, 248);
}

/* WhatsApp support pill */
.whatsapp-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 64px;
  border-radius: 999px !important;
  background-color: #25D366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  overflow: visible;
  width: auto;
  max-width: 360px;
}
.whatsapp-pill:hover,
.whatsapp-pill:focus {
  background-color: #20bd59;
  color: #ffffff;
}
.whatsapp-pill-avatar {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px !important;
  border: 3px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  background-color: #ffffff;
}
.whatsapp-pill-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.whatsapp-pill-body {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}
.whatsapp-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.whatsapp-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.whatsapp-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px !important;
  background-color: #00e676;
  border: 1px solid rgba(255,255,255,0.8);
}
.whatsapp-pill-sub {
  font-size: 12px;
  opacity: 0.95;
}

@media (max-width: 576px) {
  .whatsapp-pill {
    max-width: 100%;
  }
}

.product-main-img-wrapper {
  position: relative;
}
.product-whatsapp-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #25D366;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px !important;
  padding: 6px 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  text-decoration: none;
}
.product-whatsapp-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px !important;
  background-color: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-online-badge {
  background-color: #ffffff;
  color: #25D366;
  border: 1px solid #25D366;
  border-radius: 999px !important;
  font-size: 11px;
  padding: 2px 6px;
}

.stock-gallery {
  display: flex;
  flex-wrap: wrap;
}

.stock-gallery-item {
  height: 40vh;
  flex-grow: 1;
  margin: 3px;
}

.stock-gallery-item:last-child {
  flex-grow: 10;
}

.stock-gallery-img {
  max-height: 100%;
  min-width: 100%;
  object-fit: cover;
  vertical-align: bottom;
}

.stock-gallery-item:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
  transition: transform 0.15s linear;
}

@media (max-aspect-ratio: 1/1) {
  .stock-gallery-item {
    height: 30vh;
  }
}

@media (max-height: 480px) {
  .stock-gallery-item {
    height: 80vh;
  }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
  .stock-gallery {
    flex-direction: row;
  }

  .stock-gallery-item {
    height: auto;
    width: 100%;
  }

  .stock-gallery-img {
    width: 100%;
    max-height: 75vh;
    min-width: 0;
  }
}

.color-filter-item {
  position: relative;
}

.color-filter-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.color-swatch-all {
  background: #ffffff;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.color-filter-input:checked + .color-swatch {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgba(0, 0, 0, 0.5);
  transform: scale(1.03);
  border-color: transparent;
}

.filter-pill-item {
  position: relative;
}

.filter-pill-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  background-color: #ffffff;
  color: var(--bs-body-color);
  transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}

.filter-pill:hover {
  border-color: rgba(0, 0, 0, 0.3);
}

.filter-pill-input:checked + .filter-pill {
  background-color: #000;
  color: #ffffff;
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
  transform: translateY(-1px);
}

.payment-option {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.payment-option:hover {
    border-color: rgba(15, 23, 42, 0.4);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.payment-option-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.payment-option-text {
    font-size: 0.8rem;
}

.btn-check:checked + .payment-option {
    border-color: var(--bs-dark);
    background-color: hsl(40 33% 98%);
    box-shadow: 0 0 0 1px var(--bs-dark);
}

.bank-card {
    background-color: #ffffff;
    border-radius: 4px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.bank-card-logo img {
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
}

.bank-card-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.bank-card-title {
    font-size: 0.8rem;
}

.bank-card-value {
    font-family: monospace;
    font-size: 0.8rem;
}

.product-card:hover .product-card-image-secondary {
    opacity: 1;
    transform: scale(1.03);
}

.product-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.55)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-overlay-actions {
    display: flex;
    gap: 0.5rem;
}

.product-card-overlay-actions .btn {
    padding: 0.25rem 0.7rem;
}

.product-card-quick-add {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
}

.quantity-control {
    border: 1px solid var(--input);
    border-radius: 999px;
    overflow: hidden;
    background-color: var(--card);
}

.quantity-control-sm {
    border-radius: 999px;
}

.quantity-control input[type="number"] {
    border: 0;
    box-shadow: none;
}

.bank-card-name {
    line-height: 1.25;
}

.bank-card-title {
    line-height: 1.25;
}

.bank-card-value {
    line-height: 1.25;
}

.bank-copy-icon {
    font-size: 0.7rem;
    margin-right: 0.25rem;
}

.bank-copy-label {
    font-size: 0.75rem;
}

.bank-copy-copied {
    opacity: 0.9;
}

.quantity-control input[type="number"]:focus {
    outline: none;
    box-shadow: none;
}

.quantity-btn {
    border: 0;
    background: transparent;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-body-color);
}

.quantity-btn-sm {
    width: 1.75rem;
    height: 1.75rem;
}

.variant-color-swatch {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.variant-color-swatch.active {
    border-width: 2px;
    border-color: #000;
}

.variant-size-box {
    min-width: 2.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #ffffff;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
}

.variant-size-box.active {
    background-color: #000;
    color: #ffffff;
    border-color: #000;
}
