/* ==========================================================================
   Sonamoni Outfit - Modern E-Commerce Stylesheet (Flat Modern - No Box Shadows)
   ========================================================================== */

:root {
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-extra: 800;
  
  /* Vibrant Crimson Red Color Palette */
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-light: #fef2f2;
  --primary-glow: rgba(220, 38, 38, 0.25);
  --secondary: #ffb800;
  --bg-color: #fff5f5;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #fecaca;
  --white: #ffffff;
  --success: #16a34a;
  --danger: #dc2626;
  --warning-bg: #fff9e6;
  --warning-border: #ffe699;
  --warning-text: #997300;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}

body {
  font-family: 'Anek Bangla', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: var(--fw-medium);
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Base Wrapper */
.main-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
}

/* ==========================================================================
   Header Component
   ========================================================================== */
.header {
  background: var(--primary);
  color: var(--white);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  width: 100%;
}

@media (min-width: 860px) {
  .header-container {
    padding: 12px 30px;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--white);
  object-fit: cover;
}

.header-brand {
  font-weight: var(--fw-bold);
  font-size: clamp(0.95rem, 1.8vw + 0.48rem, 1.25rem);
  line-height: 1.2;
}

.header-sub {
  font-size: clamp(0.68rem, 1.2vw + 0.34rem, 0.82rem);
  opacity: 0.92;
}

.btn-call {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  font-weight: var(--fw-semi);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.btn-call:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section & Gallery
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 16px;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 24px 30px;
    align-items: stretch;
  }
  .hero-image-container {
    height: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }
  .hero-main-image {
    height: 100%;
    flex: 1;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: top;
  }
}

.hero-image-container {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1e1b2e;
  border: 1px solid var(--border-color);
}

.hero-main-image {
  width: 100%;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  transition: opacity 0.3s ease-in-out;
}

.discount-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--white);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-bold);
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.price-badge {
  position: absolute;
  top: 52px;
  left: 14px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: var(--white);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: clamp(0.74rem, 1.4vw + 0.37rem, 0.90rem);
  font-weight: var(--fw-semi);
  z-index: 10;
}

.thumbnails {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}

.thumbnail {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
  object-fit: cover;
  object-position: top;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumbnail:hover, .thumbnail.active {
  border-color: var(--primary);
  transform: scale(1.08);
}

/* Right Column in Hero */
.product-info-col {
  padding: 16px 0 0;
}

@media (min-width: 860px) {
  .product-info-col {
    padding: 0;
  }
}

.title-card {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 16px;
}

.title-card-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.title-card-brand img {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
}

.title-card-brand span {
  font-size: clamp(0.72rem, 1.2vw + 0.36rem, 0.86rem);
  font-weight: var(--fw-semi);
  opacity: 0.95;
}

.product-title {
  font-size: clamp(1.12rem, 2.2vw + 0.56rem, 1.48rem);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-desc {
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 1.00rem);
  opacity: 0.94;
  margin-top: 6px;
  line-height: 1.45;
}

.stars {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 15px;
}

.stars span {
  color: var(--white);
  margin-left: 6px;
  font-size: clamp(0.74rem, 1.2vw + 0.37rem, 0.88rem);
  font-weight: var(--fw-semi);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-box {
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.stat-icon {
  font-size: 20px;
  color: var(--primary);
}

.stat-value {
  font-size: clamp(1.20rem, 2.5vw + 0.6rem, 1.55rem);
  font-weight: var(--fw-bold);
  color: var(--primary);
  line-height: 1.15;
}

.stat-label {
  font-size: clamp(0.70rem, 1.2vw + 0.35rem, 0.84rem);
  color: var(--text-light);
  font-weight: var(--fw-semi);
}

/* Stock Urgency & Combo Alert */
.stock-alert-right {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border: 1px solid #b91c1c;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
  color: var(--white);
}

.discount-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.discount-title {
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 1.00rem);
  font-weight: var(--fw-bold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discount-badge-sm {
  background: var(--white);
  color: var(--primary);
  font-size: clamp(0.66rem, 1.2vw + 0.33rem, 0.78rem);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-bold);
}

.discount-row {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.76rem, 1.4vw + 0.38rem, 0.92rem);
  font-weight: var(--fw-semi);
  padding: 3px 0;
}

/* Badges */
.badge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.badge-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

@media (min-width: 860px) {
  .badge-item {
    flex-direction: row;
    text-align: left;
    justify-content: flex-start;
    padding: 12px;
    gap: 12px;
  }
}

.badge-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.badge-title {
  font-weight: var(--fw-bold);
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  line-height: 1.25;
}

.badge-sub {
  font-size: clamp(0.66rem, 1.2vw + 0.33rem, 0.78rem);
  color: var(--text-light);
}

/* ==========================================================================
   Features & FAQ Grid
   ========================================================================== */
.features-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 16px;
  margin-bottom: 22px;
}

@media (min-width: 860px) {
  .features-faq-grid {
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    padding: 0 30px;
    margin-top: 8px;
    margin-bottom: 28px;
  }
}

.features-col, .faq-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  height: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(1.00rem, 2vw + 0.50rem, 1.28rem);
  font-weight: var(--fw-bold);
  color: var(--primary);
  margin-bottom: 14px;
}

.title-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.feature-list {
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 0.98rem);
  line-height: 1.45;
}

.feature-icon {
  font-size: 16px;
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 10px;
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 4px;
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 0.98rem);
}

.faq-diamond {
  width: 7px;
  height: 7px;
  background: var(--primary);
  transform: rotate(45deg);
  border: 1px solid var(--primary-dark);
  flex-shrink: 0;
}

.faq-answer {
  font-size: clamp(0.76rem, 1.4vw + 0.38rem, 0.92rem);
  color: var(--text-light);
  padding-left: 16px;
  line-height: 1.4;
}

/* ==========================================================================
   Size Chart Section
   ========================================================================== */
.full-section {
  padding: 0 16px;
  margin-bottom: 22px;
}

@media (min-width: 860px) {
  .full-section {
    padding: 0 30px;
  }
}

.size-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 10px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #fee2e2;
}

.size-table-container::-webkit-scrollbar {
  height: 6px;
  display: block;
}

.size-table-container::-webkit-scrollbar-track {
  background: #fee2e2;
  border-radius: 10px;
}

.size-table-container::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.size-table-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  text-align: center;
}

.size-table th {
  padding: 10px 12px;
  border-bottom: 2px solid var(--border-color);
  font-weight: var(--fw-bold);
  color: var(--primary);
  white-space: nowrap;
}

.size-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.size-table tr:last-child td {
  border-bottom: none;
}

.size-table tr:nth-child(even) {
  background: #fafafa;
}

.size-age {
  font-weight: var(--fw-bold);
  color: var(--primary);
  white-space: nowrap;
}

/* ==========================================================================
   Checkout Section & Panel
   ========================================================================== */
.checkout-section {
  padding: 0 16px 26px;
}

@media (min-width: 860px) {
  .checkout-section {
    padding: 0 30px 32px;
  }
}

.checkout-panel {
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checkout-top-bar {
  background: var(--primary);
  color: var(--white);
  padding: 14px 18px;
  text-align: center;
}

.checkout-top-title {
  font-size: clamp(1.05rem, 2vw + 0.52rem, 1.35rem);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-top-sub {
  font-size: clamp(0.72rem, 1.3vw + 0.36rem, 0.86rem);
  opacity: 0.95;
  margin-top: 3px;
}

.checkout-body {
  padding: 18px;
}

@media (min-width: 860px) {
  .checkout-body {
    padding: 24px;
  }
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

/* Left Column: Product Selection */
.color-label {
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-badge {
  background: var(--primary);
  color: var(--white);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: clamp(0.68rem, 1.2vw + 0.34rem, 0.80rem);
}

.package-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.package-item {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: all 0.2s ease;
  overflow: hidden;
  user-select: none;
}

.package-item.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.package-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  cursor: pointer;
}

.checkbox-box {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
  flex-shrink: 0;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--white);
}

.checkbox-box.active {
  border-color: var(--primary);
  background: var(--primary);
}

.pkg-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-color);
}

.pkg-info {
  flex: 1;
}

.pkg-name {
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 0.98rem);
  font-weight: var(--fw-bold);
}

.pkg-qty {
  font-size: clamp(0.68rem, 1.2vw + 0.34rem, 0.80rem);
  color: var(--text-light);
}

.pkg-price {
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 0.98rem);
  font-weight: var(--fw-bold);
  color: var(--text-light);
  margin-top: 2px;
}
.package-item.selected .pkg-price {
  color: var(--primary);
}

.discount-tip-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: clamp(0.76rem, 1.4vw + 0.38rem, 0.92rem);
  font-weight: var(--fw-semi);
  color: var(--warning-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Right Column: Checkout Form */
.form-group {
  margin-bottom: 13px;
}

.form-label {
  display: block;
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  font-weight: var(--fw-bold);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: clamp(0.82rem, 1.5vw + 0.41rem, 0.98rem);
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-section-label {
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  font-weight: var(--fw-bold);
  color: var(--text-dark);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 13px;
}

.delivery-option {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 4px;
  cursor: pointer;
  font-size: clamp(0.72rem, 1.2vw + 0.36rem, 0.90rem);
  font-weight: var(--fw-semi);
  transition: all 0.2s ease;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  user-select: none;
  white-space: nowrap;
}

.delivery-option i {
  font-size: 0.95em;
  flex-shrink: 0;
}

.delivery-option span {
  white-space: nowrap;
}

.delivery-option:hover {
  border-color: var(--primary);
}

.delivery-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.size-option {
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: clamp(0.76rem, 1.4vw + 0.38rem, 0.92rem);
  cursor: pointer;
  background: var(--white);
  font-weight: var(--fw-semi);
  transition: all 0.2s ease;
  user-select: none;
}

.size-option:hover {
  border-color: var(--primary);
}

.size-option.selected {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Order Summary */
.order-summary {
  margin: 14px 0;
  background: #fafafa;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: clamp(0.80rem, 1.4vw + 0.40rem, 0.96rem);
  color: var(--text-light);
}

.summary-row.discount-row-calc {
  color: var(--primary);
  font-weight: var(--fw-semi);
}

.summary-row.total {
  font-weight: var(--fw-bold);
  font-size: clamp(0.96rem, 2vw + 0.48rem, 1.25rem);
  border-top: 1px dashed #ccc;
  padding-top: 9px;
  margin-top: 6px;
  color: var(--primary);
}

.btn-confirm {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 9px;
  padding: 14px;
  font-size: clamp(0.95rem, 2vw + 0.48rem, 1.22rem);
  font-weight: var(--fw-bold);
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.btn-confirm:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-confirm:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.order-guarantee-text {
  text-align: center;
  font-size: clamp(0.68rem, 1.2vw + 0.34rem, 0.80rem);
  color: var(--text-light);
  margin-top: 8px;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Toast Notification System (Smooth Slide-Up & Slide-Down - Soft Shadow)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: 90%;
  max-width: 440px;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-family: 'Anek Bangla', sans-serif;
  font-size: clamp(0.82rem, 1.4vw + 0.41rem, 0.98rem);
  font-weight: var(--fw-semi);
  line-height: 1.4;
  border: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
  animation: toastSlideUp 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-item.toast-hiding {
  animation: toastSlideDown 0.35s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

.toast-item.toast-success .toast-icon {
  color: var(--success);
}

.toast-item.toast-error .toast-icon {
  color: var(--danger);
}

.toast-item.toast-info .toast-icon {
  color: #d97706;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.toast-close:hover {
  color: #334155;
}

@keyframes toastSlideUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideDown {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
  }
}

/* ==========================================================================
   Order Confirmation / Success View
   ========================================================================== */
.order-success-wrapper {
  min-height: 68vh;
  background: #fcfcfc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 18px;
}

.success-icon-badge {
  background: #e6ffe6;
  color: var(--success);
  padding: 20px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.success-title {
  color: var(--text-dark);
  font-size: clamp(1.40rem, 2.8vw + 0.70rem, 2.00rem);
  margin-bottom: 6px;
  font-weight: var(--fw-bold);
  text-align: center;
}

.order-id-badge {
  background: #f1f5f9;
  padding: 5px 16px;
  border-radius: 20px;
  color: #334155;
  font-weight: var(--fw-semi);
  font-size: clamp(0.78rem, 1.8vw + 0.39rem, 1.00rem);
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
}

.success-desc {
  color: var(--text-light);
  font-size: clamp(0.84rem, 1.8vw + 0.42rem, 1.05rem);
  max-width: 560px;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.5;
}

.success-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 100%;
  max-width: 620px;
  margin-bottom: 26px;
}

.success-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--border-color);
}

.info-title {
  font-size: clamp(0.84rem, 1.8vw + 0.42rem, 1.05rem);
  color: #333;
  margin-bottom: 8px;
  font-weight: var(--fw-bold);
}

.info-content {
  font-size: clamp(0.78rem, 1.4vw + 0.39rem, 0.94rem);
  color: #555;
  line-height: 1.55;
}

.summary-box-inner {
  background: #fafafa;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid #f0f0f0;
}

.cod-warning-box {
  margin-top: 16px;
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 11px;
  border-radius: var(--radius-sm);
  font-size: clamp(0.76rem, 1.4vw + 0.38rem, 0.92rem);
  text-align: center;
  font-weight: var(--fw-semi);
  border: 1px solid var(--warning-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  text-align: center;
  padding: 34px 18px;
  color: var(--text-light);
  font-size: clamp(0.70rem, 1.4vw + 0.35rem, 0.85rem);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-light);
  margin-bottom: 6px;
  object-fit: cover;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: var(--white);
  border-radius: var(--radius-full);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease;
  text-decoration: none;
}

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

.whatsapp-float i {
  font-size: 30px;
}
