/* =======================================================
   REPLICA STYLESHEET (arunsbestcrackers.in reference)
   Tailored for Shine Crackers & Children Cracker World
   ======================================================= */

/* ── Typography & Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&family=Outfit:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --ref-blue: #0435a2;
  --ref-darkblue: #041d74;
  --ref-maroon: #92003A;
  --ref-purple: #321E48;
  --ref-yellow: #FFEB3B;
  --ref-green: #04AA6D;
  --ref-red: #f44336;
  --ref-gold: #ffd700;
  --ref-teal: #0a7070;
  --ref-font-main: 'Noto Sans', 'Poppins', sans-serif;
}

body {
  font-family: var(--ref-font-main) !important;
  background-color: #f7f9fc;
  color: #212529;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ── Top Ticker Bar ── */
.topbg {
  background: linear-gradient(90deg, #0435a2, #041d74) !important;
  color: #ffffff;
}

.topbg a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.topbg a:hover {
  color: var(--ref-yellow) !important;
}

.topbrd {
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.marquee55 {
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-block;
  animation: marqueeAnim 25s linear infinite;
}

@keyframes marqueeAnim {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── Header Branding Section ── */
.header-brand-wrap {
  background: #ffffff;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.store-address-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-address-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: #fff0f5;
  border: 1px solid #ffccd5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ref-maroon);
  font-size: 20px;
}

.store-address-text {
  font-size: 13px;
  line-height: 1.45;
  color: #333333;
  font-weight: 600;
}

.brand-center-logo {
  text-align: center;
}

.brand-center-logo img {
  max-height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-title-main {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0435a2, #92003A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.1;
}

.brand-subtitle-main {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #e65100;
  font-weight: 700;
}

/* Store Toggle Switcher Pill */
.store-switcher-pills {
  display: inline-flex;
  background: #edf2f7;
  padding: 4px;
  border-radius: 30px;
  border: 1px solid #cbd5e0;
  margin-top: 6px;
}

.store-pill-btn {
  border: none;
  background: transparent;
  padding: 5px 14px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.25s ease;
}

.store-pill-btn.active {
  background: var(--ref-maroon);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(146, 0, 58, 0.3);
}

.store-queries-box {
  text-align: right;
  float: right;
}

.query-title {
  font-size: 13px;
  font-weight: 800;
  color: #7b1fa2 !important;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.query-numbers {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
}

.query-numbers a {
  color: #111827;
  text-decoration: none;
}

.query-numbers a:hover {
  color: #0435a2;
}

/* ── Navigation Bar ── */
.navbg {
  background: linear-gradient(135deg, #0435a2 0%, #032779 100%) !important;
  box-shadow: 0 4px 15px rgba(4, 53, 162, 0.25);
  padding: 0 !important;
}

.nav-bar .navbar {
  padding: 0 !important;
}

.navbar-nav .nav-item {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar-nav .nav-item:last-child {
  border-right: none;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 18px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--ref-yellow) !important;
}

/* ── Blinking Highlight Text ── */
.blink_text {
  animation: blinker 1s linear infinite;
  background: var(--ref-yellow);
  color: #d32f2f !important;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 800;
  display: inline-block;
}

@keyframes blinker {
  0% { opacity: 1.0; }
  50% { opacity: 0.4; }
  100% { opacity: 1.0; }
}

.navbutton {
  background: #FFEB3B !important;
  padding: 10px 20px;
  color: #e31d1d !important;
  font-weight: 800;
  border-radius: 6px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── Hero Carousel & Banner ── */
.hero-replica-section {
  position: relative;
  background: #0a0e27;
  overflow: hidden;
}

.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  color: #ffffff;
}

.hero-badge-festive {
  display: inline-block;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid var(--ref-gold);
  color: var(--ref-gold);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-headline span.gold-text {
  color: var(--ref-yellow);
  text-shadow: 0 0 20px rgba(255, 235, 59, 0.4);
}

.hero-lead-text {
  font-size: 18px;
  color: #e2e8f0;
  max-width: 650px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000000;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 140, 0, 0.6);
  color: #000000;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ── Welcome Section ── */
.welcome-section {
  padding: 60px 0;
  background: #ffffff;
}

.welcome-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #0435a2;
  margin-bottom: 20px;
}

.welcome-text {
  font-size: 16px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 16px;
}

.welcome-feature-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #f8fafc;
  border-left: 4px solid #0435a2;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}

/* ── Category Cards Grid ── */
.categories-section {
  padding: 60px 0;
  background: #f1f5f9;
}

.section-head {
  text-align: center;
  margin-bottom: 45px;
}

.section-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.section-head p {
  color: #64748b;
  font-size: 16px;
}

.category-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  margin-bottom: 25px;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: block;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.category-card-header {
  padding: 14px;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.category-card-body {
  padding: 24px 16px;
  text-align: center;
}

.category-card-icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: inline-block;
}

.category-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.category-card-tamil {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.category-discount-pill {
  display: inline-block;
  background: #fee2e2;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 10px;
}

/* ── Why Choose Us ── */
.features-section {
  padding: 60px 0;
  background: #ffffff;
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  height: 100%;
}

.feature-box:hover {
  border-color: #0435a2;
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(4, 53, 162, 0.1);
}

.feature-box-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0435a2, #7b1fa2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.feature-box-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.feature-box-text {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ── Footer ── */
.footer-replica {
  background: #0a0e27;
  color: #cbd5e1;
  padding-top: 50px;
  padding-bottom: 25px;
}

.footer-brand-title {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 15px;
}

.footer-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link-list li {
  margin-bottom: 10px;
}

.footer-link-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-link-list a:hover {
  color: var(--ref-yellow);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
}

/* =======================================================
   ESTIMATE PAGE SPECIFIC STYLES (#order-table replica)
   ======================================================= */

/* Sticky Top Search */
.search-header-container {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 10px 15px;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.search-input {
  width: 100%;
  max-width: 650px;
  height: 50px;
  padding: 0 24px;
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  background: #fff7eb;
  border: 2px solid #ef88ad;
  border-radius: 50px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.search-input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 4px rgba(255, 152, 0, 0.2);
}

/* Category Quick Jump Badges */
.category-jump-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  white-space: nowrap;
}

.category-jump-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.category-jump-pill:hover {
  opacity: 0.85;
  color: #ffffff;
}

/* Table Design */
.order_cover_div {
  background: #ffffff;
  margin-bottom: 100px;
}

#order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0 !important;
  font-size: 15px;
}

#order-table thead tr {
  background-color: #0a7070 !important;
  color: #ffffff;
}

#order-table th {
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #ffffff !important;
  text-align: center;
  vertical-align: middle;
}

#order-table td {
  padding: 6px 8px !important;
  vertical-align: middle;
  text-align: center;
  border: 1px solid #e2e8f0;
}

/* Category Row */
.category-row-title {
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 800;
  text-align: center !important;
  padding: 10px !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-img-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  cursor: pointer;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  padding: 2px;
  background: #fff;
  transition: transform 0.2s;
}

.product-img-thumb:hover {
  transform: scale(1.15);
  border-color: #0435a2;
}

.product-name-col {
  text-align: left !important;
}

.product-main-name {
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
}

.product-tamil-name {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.strikeout-mrp {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
}

.offer-amount-box {
  font-size: 16px;
  font-weight: 800;
  color: #15803d;
}

/* Quantity Control */
.qty-control-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.qty-btn.minus {
  background-color: #f44336;
}

.qty-btn.minus:hover {
  background-color: #d32f2f;
}

.qty-btn.add {
  background-color: #04AA6D;
}

.qty-btn.add:hover {
  background-color: #038a58;
}

.attractive-qty-input {
  height: 34px;
  width: 54px;
  border-radius: 6px;
  border: 2px solid #b2054c !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  color: #000000;
  outline: none;
}

.attractive-qty-input:focus {
  border-color: #0435a2 !important;
  box-shadow: 0 0 6px rgba(4, 53, 162, 0.3);
}

.row-total-val {
  font-size: 16px;
  font-weight: 800;
  color: #92003a;
  min-width: 60px;
}

/* Highlighted search match row */
.search-matched-row {
  background-color: #fff7b3 !important;
}

/* ── Sticky Bottom Bar ── */
.sticky-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: #ffffff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  margin: 0;
}

.bottom-stat-box {
  flex: 1;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
}

.bottom-stat-items {
  background-color: #041d74;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-stat-amount {
  background-color: #92003A;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.bottom-stat-action {
  background-color: #321E48;
}

.estimate-btn {
  background: #007bff;
  color: #ffffff;
  border: none;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.estimate-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* ── Estimate / Order Modal ── */
.custom-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.custom-modal-dialog {
  background: #ffffff;
  max-width: 650px;
  margin: 30px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header-ref {
  background: linear-gradient(135deg, #0435a2, #92003A);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-ref h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
}

.modal-close-x {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-body-ref {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer-ref {
  padding: 14px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Estimate Summary Table in Modal */
.summary-order-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.summary-order-table th {
  background: #edf2f7;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 2px solid #cbd5e0;
}

.summary-order-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .store-address-box {
    margin-bottom: 15px;
  }
  .store-queries-box {
    text-align: center;
    float: none;
    margin-top: 15px;
  }
  .bottom-stat-box {
    font-size: 13px;
    height: 55px;
  }
  .estimate-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ── Out of Stock Visual Enhancements (Phase 2) ── */
.product-out-of-stock {
  background-color: #fff5f5 !important;
  opacity: 0.85;
}

.product-out-of-stock:hover {
  background-color: #fee2e2 !important;
}

.product-out-of-stock .product-main-name {
  color: #991b1b;
}

.product-out-of-stock .offer-amount-box {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}
