/**
 * ==============================================================================
 * NAKSHANA - MAIN CUSTOM CSS & DESIGN SYSTEM
 * ==============================================================================
 * Description: Core CSS variables, FOUC handling, preloader, sticky navigation,
 *              typography, animations, and shared component utility classes.
 * ==============================================================================
 */

/* ------------------------------------------------------------------------------
   1. DESIGN SYSTEM & ROOT VARIABLES
   ------------------------------------------------------------------------------ */
:root {
  --primary: #7E3C31;
  --dark: #371B17;
  --gold: #BA946B;
  --beige: #E0BB8D;
  --light: #F3E6D4;
  --sec-bg-color: rgba(186, 148, 107, 0.36);
  --royal-blue: #1A1ACC;
  --white: #ffffff;
  --black: #000000;
  --light-blue: #f5f7ff;
  --radius: 16px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* ------------------------------------------------------------------------------
   2. FOUC & GLOBAL PAGE STYLES
   ------------------------------------------------------------------------------ */
body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: #ffffff;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Hide Browser Number Input Spinners (+/- Stepper UI) */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

input[type=number] {
  -moz-appearance: textfield !important;
}

.text-primary-custom {
  color: var(--dark) !important;
}

.bg-light-custom {
  background-color: var(--light) !important;
}

/* FOUC Prevention & Section Visibility */
.hero-section,
.offer-section,
.bestseller-section,
.why-choose-modern,
.stone-collection,
.achievements-section,
.testimonial-carousel-section {
  visibility: visible;
}

.container {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

/* ------------------------------------------------------------------------------
   3. NAVIGATION & HEADER ENHANCEMENTS
   ------------------------------------------------------------------------------ */
.nav-nakshana {
  background: #ffffff;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  z-index: 1030;
}

.nav-nakshana.scrolled {
  box-shadow: 0 8px 30px rgba(55, 27, 23, 0.08);
}

.logo {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

@media (max-width: 991px) {
  .logo {
    max-height: 48px !important;
  }
  .nav-nakshana .navbar {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

@media (max-width: 576px) {
  .logo {
    max-height: 40px !important;
  }
  .ph-toggole-box {
    gap: 10px !important;
  }
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ------------------------------------------------------------------------------
   4. BUTTONS & UI UTILITIES
   ------------------------------------------------------------------------------ */
.btn-primary-custom {
  background-color: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-primary-custom:hover {
  background-color: var(--gold);
  color: var(--dark) !important;
  box-shadow: var(--shadow-soft);
}

.btn-theme {
  background-color: var(--royal-blue);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-theme:hover {
  background-color: var(--dark);
  color: var(--white);
}

.divider {
  width: 50px;
  height: 2px;
  background: var(--royal-blue);
  opacity: 0.3;
  margin: 0.5rem 0;
}

/* ------------------------------------------------------------------------------
   5. BACK TO TOP BUTTON
   ------------------------------------------------------------------------------ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
}

/* ------------------------------------------------------------------------------
   6. SWEETALERT THEME STYLING
   ------------------------------------------------------------------------------ */
.swal2-popup {
  border-radius: 24px !important;
  font-family: 'Poppins', sans-serif !important;
  padding: 2rem !important;
  background: #ffffff !important;
  box-shadow: 0 20px 50px rgba(55, 27, 23, 0.18) !important;
}

.swal2-title {
  color: var(--dark) !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
}

.swal2-html-container {
  color: #555555 !important;
  font-size: 0.95rem !important;
}

.swal2-styled.swal2-confirm {
  background-color: var(--dark) !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 10px 32px !important;
  font-weight: 600 !important;
  box-shadow: 0 6px 20px rgba(55, 27, 23, 0.2) !important;
  transition: all 0.3s ease !important;
}

.swal2-styled.swal2-confirm:hover {
  background-color: var(--gold) !important;
  color: var(--dark) !important;
}

.swal2-icon.swal2-warning {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
}

/* ------------------------------------------------------------------------------
   7. REUSABLE UI UTILITY CLASSES (NO INLINE STYLES)
   ------------------------------------------------------------------------------ */
.img-cover-250 { height: 250px; object-fit: cover; }
.img-sq-240 { width: 240px; height: 240px; }
.box-mw-280 { max-width: 280px; }
.box-mw-640 { max-width: 640px; margin: auto; }
.box-mw-1050 { max-width: 1050px; }
.checkout-sticky { top: 100px; }
.cart-qty-input { width: 50px; }
.cart-empty-icon { font-size: 60px; }
.badge-featured { z-index: 2; font-size: 0.75rem; }
.product-name-min-height { min-height: 40px; color: var(--dark); font-size: 0.95rem; }
.old-price-sm { font-size: 0.9rem; }
.new-price-lg { color: var(--primary); font-size: 1.15rem; }
.footer-brand-logo { max-height: 60px; }
.contact-textarea { height: 150px; }
.checkout-item-name { max-width: 160px; }
.qty-stepper-input { width: 55px; }
.subhead-text { margin: 0; color: #666666; }
.display-none { display: none !important; }

