:root {
  --primary-color: #0b4d3c;
  --primary-dark: #073a2d;
  --primary-light: #e8f5f1;
  --accent-color: #e65100;
  --accent-hover: #cf4300;
  --text-dark: #222222;
  --text-muted: #555555;
  --text-light: #777777;
  --bg-page: #f4f6f8;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --font-main: 'Hind Siliguri', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 15px;
}

.page-wrapper {
  max-width: 520px;
  margin: 0 auto;
  background-color: var(--bg-card);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.07);
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  padding: 0 16px;
}

/* Top Banner */
.top-banner {
  background: linear-gradient(135deg, #093b2e, #0e5b46);
  color: #ffffff;
  padding: 16px 18px;
  margin: 12px 14px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(11, 77, 60, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.top-banner h2 {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
}

.top-banner .price-container {
  font-size: 16px;
  font-weight: 600;
}

.top-banner .price-highlight {
  font-size: 22px;
  font-weight: 800;
  color: #ffde59;
}

.top-banner .old-price {
  font-size: 17px;
  color: #ff9999;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 600;
}

/* Product Headline */
.product-headline {
  text-align: center;
  padding: 16px 16px 10px;
}

.product-headline h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.4;
  margin-bottom: 6px;
}

.product-headline p {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Product Slider */
.slider-section {
  padding: 10px 16px 16px;
}

.slider-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f8fafc;
  border: 1px solid #eef2f6;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
  transition: all 0.2s ease;
}

.slider-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.slider-btn.prev {
  left: 12px;
}

.slider-btn.next {
  right: 12px;
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Features List */
.features-section {
  padding: 10px 16px 20px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.feature-item {
  display: flex;
  align-items: center;
  background-color: #f7faf9;
  border-left: 4px solid var(--primary-color);
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.feature-item .check-icon {
  color: var(--primary-color);
  font-size: 18px;
  margin-right: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

.diamond-highlights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 6px;
}

.diamond-item {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}

.diamond-item span.icon {
  margin-right: 8px;
  font-size: 16px;
}

/* Size Chart Section */
.size-chart-section {
  padding: 10px 16px 24px;
}

.section-title-center {
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 14px;
}

.size-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #d1e3dd;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background-color: #ffffff;
}

.size-table th {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 700;
}

.size-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf2f7;
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
}

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

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

/* Urgency Card & CTA */
.urgency-card {
  background-color: #fffdf5;
  border: 1.5px dashed #fbd38d;
  border-radius: 14px;
  padding: 18px 16px;
  margin: 10px 16px 26px;
  text-align: center;
}

.urgency-card p {
  color: #c05621;
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.order-btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 77, 60, 0.35);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  width: 90%;
  max-width: 320px;
}

.order-btn-green:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Section Header */
.section-title {
  font-size: 19px;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 16px;
}

/* Product Selection Section */
.products-section {
  padding: 10px 16px 24px;
}

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

.product-select-card {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.product-select-card:hover {
  border-color: #94d3c1;
}

.product-select-card.selected {
  border-color: var(--primary-color);
  background-color: #f6fbf9;
  box-shadow: 0 2px 8px rgba(11, 77, 60, 0.08);
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
  background: #ffffff;
  transition: all 0.2s ease;
}

.product-select-card.selected .custom-checkbox {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

.custom-checkbox svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.product-select-card.selected .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.product-info {
  flex-grow: 1;
  min-width: 0;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-info .product-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-color);
}

/* Quantity Controls (+ / -) */
.qty-control {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: #f8fafc;
  border: none;
  color: #334155;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

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

.qty-btn:active {
  background: #cbd5e1;
}

.qty-input {
  width: 30px;
  height: 28px;
  text-align: center;
  border: none;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  font-family: inherit;
  padding: 0;
}

/* Billing & Shipping Section */
.billing-section {
  padding: 10px 16px 20px;
}

/* Size Selection */
.size-selector-group {
  margin-bottom: 22px;
}

.size-selector-group label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.size-selector-group label span.required {
  color: #e53e3e;
}

.size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 10px;
}

.size-btn {
  background: #ffffff;
  border: 1.5px solid #1a202c;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 700;
  color: #1a202c;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.size-btn.active {
  background: #1a202c;
  color: #ffffff;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 6px;
}

.form-group label span.required {
  color: #e53e3e;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 77, 60, 0.1);
}

.form-control::placeholder {
  color: #94a3b8;
}

/* Shipping Section */
.shipping-section {
  padding: 10px 16px 20px;
}

.shipping-box {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.shipping-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
}

.shipping-option:last-child {
  border-bottom: none;
}

.shipping-option:hover {
  background-color: #f8fafc;
}

.shipping-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.shipping-option.selected .radio-circle {
  border-color: var(--accent-color);
}

.radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.shipping-option.selected .radio-circle::after {
  transform: scale(1);
}

.shipping-cost {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

/* Order Summary Section */
.order-summary-section {
  padding: 10px 16px 28px;
}

.order-summary-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  margin-bottom: 18px;
}

.order-table-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: 15px;
  color: #1e293b;
}

.order-items-list {
  padding: 8px 16px;
}

.order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  gap: 12px;
}

.order-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.order-item-img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.order-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.order-item-price {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.order-summary-totals {
  padding: 12px 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
  color: #475569;
  font-weight: 600;
}

.summary-row.total-row {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 4px;
}

/* Payment Method Box */
.payment-method-box {
  background: #f8fafc;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.payment-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.payment-bubble {
  position: relative;
  background: #f1f5f9;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}

.payment-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
  border-color: transparent transparent #f1f5f9 transparent;
}

/* Confirm Order Button */
.btn-confirm-order {
  width: 100%;
  background: linear-gradient(135deg, #f05a28, #e65100);
  color: #ffffff;
  border: none;
  padding: 15px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-confirm-order:hover {
  background: linear-gradient(135deg, #e65100, #d34500);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.45);
}

.btn-confirm-order:active {
  transform: translateY(1px);
}

/* Floating Notification */
.order-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.order-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.order-toast .toast-icon {
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.3);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 16px;
}

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

.modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.success-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #e8f5f1;
  color: var(--primary-color);
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-content h3 {
  font-size: 21px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.modal-content p {
  color: #64748b;
  font-size: 14.5px;
  margin-bottom: 20px;
}

.modal-order-details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  margin-bottom: 20px;
  font-size: 14px;
  border: 1px solid #e2e8f0;
}

.modal-order-details div {
  margin-bottom: 6px;
}

.modal-order-details div:last-child {
  margin-bottom: 0;
}

.modal-close-btn {
  width: 100%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--primary-dark);
}

/* Responsive tweaks */
@media (max-width: 400px) {
  .top-banner h2 {
    font-size: 17px;
  }
  .product-headline h1 {
    font-size: 18px;
  }
  .btn-confirm-order {
    font-size: 17px;
  }
}
