/* Google Fonts loaded inside HTML files for higher PageSpeed performance */
:root {
  --bg-color: #ffffff;
  --surface-color: #f8f9fa;
  --surface-hover: #f1f3f5;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --accent-color: #2563eb;
  --accent-hover: #1d4ed8;
  --danger-color: #EF4444;
  --border-color: #e5e7eb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans Bengali', 'Inter', sans-serif;
  scroll-behavior: smooth;
}

html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
}

/* Utilities */
.container {
  width: 100% !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box !important;
}
.section {
  padding: 60px 0;
}
.text-center {
  text-align: center;
}
.accent-text {
  color: var(--accent-color);
  transition: opacity 0.3s ease-in-out;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 35px;
  font-size: 1.1rem;
}



/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-action-item {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
}

.header-action-item:hover {
  background-color: var(--surface-hover);
  color: var(--accent-color);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 50px;
  width: auto;
}
.logo span {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}
.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* Hero Section */
.hero {
  padding: 120px 0 50px;
}
.hero-text {
  max-width: 800px;
  margin: 0 auto;
}
.hero-text h1 {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
  color: var(--text-primary);
}
.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 40px;
}
.cod-tag {
  font-size: 0.95rem;
  color: var(--accent-color);
  font-weight: 600;
}
/* Hero Slider Styles */
.hero-slider-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  margin-top: 30px;
  background: #fff;
  height: auto;
  min-height: 200px;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}

.hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 450px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent-color);
  width: 25px;
  border-radius: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .hero-slide img {
    max-height: 250px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }
}

/* Trust Section */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  background-color: var(--surface-color);
  padding: 40px 20px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.trust-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent-color);
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px;
  }
}
.product-card {
  background-color: var(--surface-color);
  border-radius: 12px;
  padding: 0;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
.product-card.featured {
  border: 2px solid var(--accent-color);
  position: relative;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.1);
}
.best-choice-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
  white-space: nowrap;
}

/* Premium Card Styling */
.product-card.premium {
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
}
.premium-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #111827;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .premium-tag {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: 8px;
    right: 8px;
  }
}

@media (max-width: 768px) {
  .best-choice-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    top: -12px;
  }
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 0;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}
.product-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--danger-color);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 15px 2px 15px;
  color: var(--text-primary);
  text-align: left;
}
.product-price-row {
  margin: 0 15px 12px 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}
.current-price {
  color: #2563eb;
  font-weight: 800;
  font-size: 1.3rem;
}
.regular-price {
  color: #94a3b8;
  font-size: 1rem;
  text-decoration: line-through;
}
.save-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.card-buttons {
  padding: 0 15px 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-order-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #2563eb;
  color: white;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #2563eb;
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn-order-now:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: transparent;
  color: #2563eb;
  text-align: center;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #2563eb;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-add-cart:hover {
  background-color: #eff6ff;
}

/* Reviews Section (Messenger Style) */
/* Reviews Screenshot Slider Styles */
.reviews-slider-wrapper {
  position: relative;
  max-width: 360px; /* Perfect width for vertical mobile screenshot mockups */
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.05);
  border: 4px solid var(--border-color); /* Premium phone case style border */
  background: #0f172a;
  aspect-ratio: 9 / 16; /* Standard mobile screen ratio */
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.reviews-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.review-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0f172a; /* Slate dark background to frame screenshots beautifully */
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Shows 100% of screenshot without any clipping */
  display: block;
}

/* Slide navigation buttons */
.review-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.review-nav-btn:hover {
  background: #ffffff;
  color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.review-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.prev-btn {
  left: -22px; /* Hangs slightly off the slider frame */
}

.next-btn {
  right: -22px;
}

/* Indicator dots */
.review-slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.review-dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 4px;
}

/* Responsiveness adjustments */
@media (max-width: 480px) {
  .reviews-slider-wrapper {
    max-width: 300px;
    border-width: 3px;
  }
  .review-nav-btn {
    width: 38px;
    height: 38px;
  }
  .prev-btn {
    left: -16px;
  }
  .next-btn {
    right: -16px;
  }
}
.message-bubble {
  max-width: 80%;
  padding: 15px 20px;
  border-radius: 20px;
  font-size: 1rem;
  position: relative;
}
.message-received {
  align-self: flex-start;
  background-color: var(--surface-color);
  border-bottom-left-radius: 5px;
}
.message-sent {
  align-self: flex-end;
  background-color: var(--accent-color);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-secondary);
}
.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 200px;
}

/* Order Form */
.order-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--surface-color);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 14px 15px;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
}
.cod-notice {
  margin-top: 20px;
  padding: 15px;
  background-color: rgba(37, 99, 235, 0.1);
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
  font-size: 0.95rem;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}
.floating-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Company Info Section */
.company-info-section {
  background-color: var(--surface-color);
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}
.company-info-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 24px;
}
.company-about h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-about h3 span {
  color: var(--accent-color);
}
.company-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.company-links h4,
.company-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.company-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.company-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.company-contact-list li svg {
  flex-shrink: 0;
  color: var(--accent-color);
  margin-top: 3px;
}
.company-contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.company-contact-list a:hover {
  color: var(--accent-color);
}
.phone-highlight {
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--accent-color) !important;
}
.whatsapp-highlight {
  font-size: 1rem !important;
  font-weight: 700;
  color: #25d366 !important;
}
.company-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.company-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.company-features-list li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: 900;
}

@media (max-width: 768px) {
  .company-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .company-info-section {
    padding: 24px 0;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Animations */
.urgency-badge {
  display: inline-block;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Order Page Layout */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.order-summary {
  background-color: var(--surface-color);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  height: fit-content;
  position: sticky;
  top: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -1px;
  }
  .hero-text p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .hero-cta {
    margin-bottom: 30px;
  }
  .hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .order-form-container {
    padding: 20px;
  }
  .order-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .order-summary {
    position: static;
    padding: 20px;
  }
  .section {
    padding: 40px 0;
  }
}

/* New Order Page Specific Styles */
.order-input-group {
  display: flex;
  background-color: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
.order-input-group:focus-within {
  border-color: var(--accent-color);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}
.order-input-icon {
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background-color: #e5e7eb;
}
.order-input-field {
  flex: 1;
  padding: 14px 15px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
}
.shipping-options {
  margin: 20px 0;
}
.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.shipping-option:hover {
  background-color: var(--surface-color);
}
.shipping-option.selected {
  border-color: var(--accent-color);
  background-color: rgba(5, 150, 105, 0.05);
}
.shipping-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: relative;
}
.shipping-option.selected .radio-circle {
  border-color: var(--accent-color);
}
.shipping-option.selected .radio-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-color);
}
.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}
.cart-item-details {
  flex: 1;
}
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}
.qty-btn:hover {
  background: var(--surface-color);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 1.05rem;
}
.summary-total {
  /* Order Section */
  border-top: 2px solid var(--border-color);
  margin-top: 20px;
  padding-top: 15px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.promo-code-box {
  margin: 14px 0 6px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.promo-code-box label {
  display: block;
  margin-bottom: 8px;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.promo-code-row input {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
  font-weight: 750;
  text-transform: uppercase;
  outline: none;
}

.promo-code-row input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.promo-code-row button {
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  background: #1e293b;
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.promo-code-row button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.promo-message {
  min-height: 18px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.promo-message.success {
  color: #059669;
}

.promo-message.error {
  color: #dc2626;
}

.discount-row {
  color: #059669;
}

.discount-row small {
  font-weight: 800;
  color: #059669;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  .section-subtitle {
    margin-bottom: 25px;
    font-size: 0.95rem;
  }
  .trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    padding: 25px 15px;
  }
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    font-size: 0.85rem;
    background: rgba(5, 150, 105, 0.04);
    padding: 20px 10px;
    border-radius: 16px;
    border: 1px solid rgba(5, 150, 105, 0.08);
    transition: all 0.3s ease;
  }
  .trust-item:hover {
    background: rgba(5, 150, 105, 0.08);
    transform: translateY(-3px);
  }
  .trust-item svg {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 10000 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .container {
    padding: 0 12px !important;
  }
  .logo {
    font-size: 1.35rem !important;
  }
  .logo-img {
    height: 38px !important;
  }
  .header-content {
    height: 60px !important;
  }
  .header-actions {
    gap: 8px !important;
  }
  .header-action-item {
    width: 36px !important;
    height: 36px !important;
  }
  .section {
    padding: 30px 0 !important;
  }
  .section-title {
    font-size: 1.6rem !important;
    margin-bottom: 6px !important;
  }
  .section-subtitle {
    margin-bottom: 20px !important;
    font-size: 0.85rem !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  .product-card {
    padding: 0;
    position: relative;
    min-height: auto;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .product-image-wrapper {
    padding: 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .product-image {
    height: 140px;
    object-fit: cover;
    width: 100% !important;
  }
  .product-discount-badge {
    font-size: 0.6rem;
    padding: 2px 5px;
    top: 5px;
    left: 5px;
  }
  .product-title {
    font-size: 0.8rem !important;
    margin: 8px 8px 0px 8px !important;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .product-price-row {
    margin: 4px 8px 8px 8px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    text-align: left;
    box-sizing: border-box !important;
  }
  .current-price {
    font-size: 0.9rem !important;
  }
  .regular-price {
    font-size: 0.75rem !important;
  }
  .save-badge {
    font-size: 0.6rem !important;
    padding: 1px 4px !important;
  }
  .card-buttons {
    padding: 0 8px 12px 8px !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .btn-order-now {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    gap: 4px !important;
    background-color: var(--accent-color);
    color: white;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  .btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 4px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    gap: 4px !important;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  .btn-order-now svg, .btn-add-cart svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
  }
  @media (max-width: 400px) {
    .btn-order-now svg, .btn-add-cart svg {
      display: none !important;
    }
    .btn-order-now, .btn-add-cart {
      font-size: 0.7rem !important;
      padding: 8px 2px !important;
    }
  }
}


/* Sales Notification */
.sales-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid var(--border-color);
  max-width: 300px;
}
.sales-notification.active {
  transform: translateY(0);
}
.sales-notification img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.sales-notification p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-secondary);
}
.sales-notification strong {
  color: var(--text-primary);
  display: block;
}

@media (max-width: 768px) {
  .sales-notification {
    left: 10px;
    right: auto;
    bottom: 20px; 
    max-width: calc(100% - 90px); /* Leaves space for the 60px Messenger icon + padding */
    padding: 10px 15px;
    gap: 10px;
  }
  .sales-notification img {
    width: 35px;
    height: 35px;
  }
  .sales-notification p, .sales-notification small {
    font-size: 0.75rem;
  }
}

/* Cart Drawer Styles (Reference Design) */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 200000 !important;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #f8fafc; /* Light background for the drawer */
  z-index: 200001 !important;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.5px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.close-cart:hover {
  color: var(--accent-color);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* Cart Item Card (Reference Style) */
.cart-item {
  background: white;
  border-radius: 12px;
  padding: 15px 45px 15px 15px; /* Safely reserve space for remove icon */
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
  align-items: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.cart-item img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 8px;
  padding: 5px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.3;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.qty-btn:hover {
  color: var(--accent-color);
}

.qty-val {
  min-width: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.cart-item-price-calc {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
  text-align: right;
}

.cart-item-price-calc b {
  color: #1e293b;
  font-weight: 700;
}

.remove-item-icon {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #94a3b8;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.remove-item-icon:hover {
  color: #ef4444;
}

.empty-cart-msg {
  text-align: center;
  padding: 50px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.cart-drawer-footer {
  padding: 20px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-total-row span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.cart-total-row #cart-drawer-total {
  font-size: 1.3rem;
  font-weight: 800;
  color: #2563eb;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-checkout:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

@media (max-width: 480px) {
  .cart-drawer {
    max-width: 100%;
  }
}

/* Premium Toast Notification Styles */
#toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: #1e293b;
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #2563eb;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: auto;
}

.toast svg {
  color: #2563eb;
  flex-shrink: 0;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  #toast-container {
    top: 75px !important;
    right: 20px;
    left: 20px;
    width: calc(100% - 40px);
    z-index: 100000 !important;
  }
  .toast {
    min-width: auto;
    width: 100%;
  }
}



/* Order Page Redesign Styles */
.checkout-header {
  text-align: center;
  margin-bottom: 40px;
}

.checkout-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1e293b;
}

.section-title-accent {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-accent::before {
  content: '';
  width: 5px;
  height: 24px;
  background: #f97316; /* Orange accent bar */
  border-radius: 10px;
  display: inline-block;
}

.order-review-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.order-item-card {
  background: white;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  position: relative;
}

.order-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 10px;
  padding: 5px;
}

.order-item-info {
  flex: 1;
}

.order-item-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.order-item-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.item-qty-selector {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
}

.item-qty-selector .qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.item-qty-selector span {
  padding: 0 12px;
  font-weight: 800;
  font-size: 0.95rem;
}

.order-item-price {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
}

.remove-btn {
  background: #fee2e2;
  color: #ef4444;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-btn:hover {
  background: #fecaca;
}

/* Address Section */
.address-section {
  background: white;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus {
  border-color: #2563eb;
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.form-group select:focus {
  border-color: #2563eb;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.delivery-option {
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.delivery-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.option-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  position: relative;
}

.delivery-option.selected .radio-dot {
  border-color: #2563eb;
}

.delivery-option.selected .radio-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
}

/* Sidebar Summary */
.summary-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 100px;
}

.btn-confirm-order {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn-confirm-order:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Sticky Mobile Bar */
/* Minimal & Floating Order Page Styles */
.checkout-header {
  display: none; /* Removed for a more minimal look as requested */
}

.section-title-accent {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.order-review-container {
  gap: 10px;
  margin-bottom: 25px;
}

.order-item-card {
  padding: 12px;
  border-radius: 12px;
}

.address-section {
  padding: 20px;
  border-radius: 15px;
}

/* Floating Sticky Mobile Bar */
.sticky-mobile-order {
  position: fixed;
  bottom: 20px; /* Floating from bottom */
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-radius: 20px; /* Capsule shape */
  border: 1px solid rgba(255, 255, 255, 0.5);
  width: auto;
}

.sticky-total-info strong {
  font-size: 1.15rem;
  color: #2563eb;
}

.sticky-mobile-order .btn-confirm-order {
  margin-top: 0;
  padding: 12px 20px;
  font-size: 0.95rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Ensure Floating bars don't hide behind sticky mobile order bar */
@media (max-width: 768px) {
  .floating-cta {
    bottom: 80px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 50px;
    height: 50px;
  }
  /* Shift up BOTH floating icons ONLY when a sticky mobile bar is present on the page */
  .sticky-mobile-order ~ .floating-whatsapp {
    bottom: 90px;
  }
  .sticky-mobile-order ~ .floating-cta {
    bottom: 150px;
  }
}

.show-mobile { display: none; }
.hide-mobile { display: block; }

@media (max-width: 768px) {
  .show-mobile { display: flex; }
  .hide-mobile { display: none; }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .delivery-options {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Premium Account Drawer & Authentication System Styles
   ========================================================================== */

.account-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 200000 !important;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.account-drawer-overlay.active {
  display: block;
  opacity: 1;
}

.account-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #f8fafc; /* Premium clean slate background */
  z-index: 200001 !important;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.account-drawer.active {
  transform: translateX(0);
}

.account-drawer-header {
  padding: 20px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.account-drawer-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1e293b;
}

.close-account {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}

.close-account:hover {
  color: #1e293b;
}

.account-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Auth Section Styles */
.auth-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 10px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.auth-tab-btn.active {
  color: #2563eb;
}

.auth-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2563eb;
}

.btn-auth-submit {
  width: 100%;
  background: #2563eb;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 15px;
}

.btn-auth-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* Profile Dashboard Styles */
.profile-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-header {
  background: white;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.profile-avatar {
  width: 54px;
  height: 54px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-meta h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.profile-meta p {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

.profile-orders-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.orders-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}

/* User Order Cards Styles */
.user-order-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed #f1f5f9;
  padding-bottom: 10px;
}

.user-order-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.user-order-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

/* Status Color Palette */
.status-new-order, .status-ordered, .status-order-placed {
  background: #f0f9ff;
  color: #0369a1;
}

.status-confirmed {
  background: #e0e7ff;
  color: #4338ca;
}

.status-packaging {
  background: #fef3c7;
  color: #b45309;
}

.status-delivered {
  background: #ecfdf5;
  color: #047857;
}

.status-cancelled {
  background: #fff1f2;
  color: #be123c;
}

.user-order-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-order-product {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.user-order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #64748b;
}

.user-order-total strong {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 700;
}

.btn-logout {
  width: 100%;
  background: white;
  color: #ef4444;
  border: 1px solid #fee2e2;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-logout:hover {
  background: #fef2f2;
}

.loading-orders, .empty-orders {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 500;
}

.btn-google-login:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Responsive fixes for profile names and email clipping on mobile */
.profile-meta {
  min-width: 0;
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding-bottom: 80px; /* Safe scroll boundary to prevent bottom cut-offs */
}

@media (max-width: 400px) {
  .account-drawer-content {
    padding: 16px !important;
  }
  .profile-header {
    padding: 12px !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }
  .profile-avatar {
    width: 46px !important;
    height: 46px !important;
    flex-shrink: 0 !important;
  }
  .profile-meta h4 {
    font-size: 0.95rem !important;
  }
  .profile-meta p {
    font-size: 0.78rem !important;
  }
  .orders-title {
    font-size: 0.92rem !important;
  }
  .user-order-card {
    padding: 12px !important;
    border-radius: 10px !important;
  }
}

/* ==========================================================================
   Ultra-Responsive Spacing & Mobile Viewport Polish
   ========================================================================== */

@media (max-width: 360px) {
  .logo {
    font-size: 1.45rem !important;
    gap: 6px !important;
  }
  .logo-img {
    height: 40px !important;
  }
  .header-actions {
    gap: 8px !important;
  }
  .header-action-item {
    width: 35px !important;
    height: 35px !important;
  }
  .cart-drawer-header h3, .account-drawer-header h3 {
    font-size: 0.95rem !important;
  }
  .close-cart, .close-account {
    font-size: 0.85rem !important;
  }
  .section-title {
    font-size: 1.7rem !important;
  }
  .hero-text h1 {
    font-size: 2.2rem !important;
    letter-spacing: -1px !important;
  }
  .hero-text p {
    font-size: 1rem !important;
  }
}

@media (max-width: 480px) {
  .address-section {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  .form-group {
    margin-bottom: 14px !important;
  }
  .form-group label {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
  }
  .form-group input, .form-group select {
    padding: 11px 14px !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
  }
  .delivery-option {
    padding: 12px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
  }
  .summary-card {
    padding: 16px !important;
    border-radius: 14px !important;
  }
  .btn-confirm-order {
    padding: 14px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }
  .sticky-mobile-order {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 8px 12px !important;
    border-radius: 16px !important;
  }
  .sticky-mobile-order .btn-confirm-order {
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    border-radius: 12px !important;
  }
  .floating-whatsapp {
    bottom: 16px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .floating-cta {
    bottom: 74px !important;
    right: 16px !important;
    width: 48px !important;
    height: 48px !important;
  }
  .sticky-mobile-order ~ .floating-whatsapp {
    bottom: 84px !important;
  }
  .sticky-mobile-order ~ .floating-cta {
    bottom: 142px !important;
  }
}
