/* ==========================================================================
   Orthopedic Knee Cap - Modern Dropshipping E-Commerce Stylesheet
   Pure Vanilla CSS - 100% Static & Netlify Ready
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #2563eb;
  --success: #16a34a;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #38bdf8;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  
  --container-max: 1160px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile sticky action bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  text-align: center;
}

.announcement-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-trust-badges {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-trust-badges {
    display: flex;
  }
}

.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  background-color: #f1f5f9;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

.cart-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  transition: all 0.2s;
}

.cart-toggle-btn:hover {
  background-color: var(--primary-light);
  border-color: #bae6fd;
  color: var(--primary);
}

.cart-counter {
  background-color: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ==========================================================================
   Product Hero Section
   ========================================================================== */
.product-hero {
  padding: 2rem 0 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

/* Gallery */
.gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-card {
  position: relative;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  letter-spacing: 0.03em;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumb-btn {
  background-color: #f8fafc;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.35rem;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.thumb-btn:hover {
  border-color: #94a3b8;
}

.thumb-btn.active {
  border-color: var(--primary);
  background-color: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
}

.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .product-title {
    font-size: 1.75rem;
  }
}

.product-seller-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.25rem;
}

.seller-pill {
  font-weight: 700;
  color: #0f172a;
}

/* Pricing Card */
.pricing-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.current-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.price-subtext {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.cod-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table td {
  padding: 0.65rem 0;
}

.specs-table td:first-child {
  color: #64748b;
  width: 40%;
  font-weight: 600;
}

.specs-table td:last-child {
  color: #0f172a;
  font-weight: 700;
}

/* Highlights Checklist */
.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.highlights-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #334155;
}

.check-icon {
  color: #16a34a;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.3;
}

/* Quantity & Bundles */
.quantity-section {
  margin-bottom: 1.75rem;
}

.quantity-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.65rem;
}

.bundle-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.bundle-card {
  background-color: white;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.bundle-card:hover {
  border-color: #94a3b8;
}

.bundle-card.selected {
  border-color: var(--primary);
  background-color: #f0f9ff;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);
}

.bundle-pairs {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.bundle-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.bundle-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

.bundle-card.selected .bundle-tag {
  color: #0369a1;
}

.custom-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: white;
  overflow: hidden;
}

.qty-btn {
  width: 36px;
  height: 36px;
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

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

.qty-input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: none;
  font-weight: 800;
  color: #0f172a;
  background: white;
}

/* Action CTA Buttons */
.cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

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

.btn-buy-now {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
}

.btn-buy-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
  filter: brightness(1.05);
}

.btn-add-to-cart {
  background-color: white;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-add-to-cart:hover {
  background-color: #0f172a;
  color: white;
}

/* Trust Badges Grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-item-icon {
  font-size: 1.5rem;
}

.trust-item-text {
  display: flex;
  flex-direction: column;
}

.trust-item-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #0f172a;
}

.trust-item-desc {
  font-size: 0.725rem;
  color: #64748b;
}

/* ==========================================================================
   Product Description & Details Section
   ========================================================================== */
.product-details-section {
  padding: 3rem 0;
  background-color: #f8fafc;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #64748b;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ==========================================================================
   Mobile Sticky Action Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top: 1px solid var(--border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 80;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.mobile-price-col {
  display: flex;
  flex-direction: column;
}

.mobile-price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.mobile-price-subtext {
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
}

.mobile-buy-btn {
  flex: 1;
  max-width: 220px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Modal Backdrop
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Cart Drawer
   ========================================================================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background-color: white;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 25px rgba(0, 0, 0, 0.15);
}

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

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.close-btn {
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.close-btn:hover {
  color: #0f172a;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
}

.cart-item-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.cart-item-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-remove-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  text-decoration: underline;
  cursor: pointer;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background-color: #f8fafc;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.summary-row.total span:last-child {
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-checkout:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Checkout Modal Form
   ========================================================================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.checkout-modal.active {
  opacity: 1;
  visibility: visible;
}

.checkout-dialog {
  background-color: white;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  position: relative;
}

.checkout-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.checkout-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.checkout-body {
  padding: 1.5rem;
}

.checkout-order-summary-box {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-summary-left {
  display: flex;
  flex-direction: column;
}

.order-summary-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
}

.order-summary-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.order-summary-right {
  text-align: right;
}

.order-summary-total-label {
  font-size: 0.725rem;
  color: #64748b;
}

.order-summary-total-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.checkout-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: none;
}

.checkout-alert.error {
  background-color: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.form-label .required {
  color: var(--danger);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: white;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 60px;
}

.form-hint {
  font-size: 0.725rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.cod-notice-card {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}

.cod-notice-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cod-notice-card p {
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.45;
}

.btn-place-order {
  width: 100%;
  margin-top: 1rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-place-order:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-place-order:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Order Confirmation Popup (Modal)
   ========================================================================== */
.confirmation-popup-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.confirmation-popup-modal.active {
  opacity: 1;
  visibility: visible;
}

.confirmation-popup-dialog {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  padding: 2.25rem 2rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.06);
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirmation-popup-modal.active .confirmation-popup-dialog {
  transform: scale(1) translateY(0);
}

.confirmation-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.confirmation-popup-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.05);
}

/* Success Checkmark & Pulse Animation */
.success-icon-wrapper {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  background: #ecfdf5;
  border: 4px solid #a7f3d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popupSuccessPulse 1.8s infinite ease-in-out;
}

.success-icon-svg {
  width: 42px;
  height: 42px;
  stroke: #059669;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: popupCheckmark 0.6s 0.2s ease-in-out forwards;
}

@keyframes popupCheckmark {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes popupSuccessPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
}

.popup-title {
  font-size: 1.625rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.popup-message {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.popup-product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.popup-details-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.15rem;
  text-align: left;
  font-size: 0.875rem;
}

.popup-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
}

.popup-detail-row.divider {
  border-top: 1px dashed #cbd5e1;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
}

.popup-delivery-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.popup-delivery-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.popup-delivery-text {
  display: flex;
  flex-direction: column;
}

.popup-delivery-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e40af;
}

.popup-delivery-time {
  font-size: 1.125rem;
  font-weight: 800;
  color: #1d4ed8;
}

.popup-continue-btn {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.popup-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
  filter: brightness(1.05);
}

.popup-continue-btn:active {
  transform: translateY(0);
}

@media (max-width: 576px) {
  .confirmation-popup-dialog {
    padding: 1.75rem 1.25rem;
  }
  .popup-title {
    font-size: 1.35rem;
  }
  .popup-message {
    font-size: 0.875rem;
  }
  .popup-delivery-time {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 2rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h4 {
  color: white;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  line-height: 1.6;
}

.footer-col h5 {
  color: white;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
