/* ==========================================================================
   1. CORE VARIABLES & COLOR PALETTE
   ========================================================================== */
:root {
  --primary: #f85606;
  --primary-dark: #d84802;
  --primary-light: #fff5ee;
  --primary-border: #ffd8bf;
  --text: #212121;
  --muted: #757575;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --soft: #fafafa;
  --white: #ffffff;
  --green: #009688;
  --danger: #d32f2f;
  --background: #eff0f5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   2. BASE RESET & GLOBAL ELEMENTS
   ========================================================================== */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border-radius: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   3. HEADER & NAVIGATION BAR (header.php)
   ========================================================================== */
.topbar {
  height: 54px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.topbar-inner {
  max-width: 1180px;
  height: 100%;
  margin: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-icon {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #424242;
  background: none;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.top-action:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.top-action svg {
  width: 18px;
  height: 18px;
}

.topbar .seller-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: var(--soft);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.topbar .seller-profile img,
.topbar .seller-profile .profile-fallback {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar .seller-profile .profile-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}

/* ==========================================================================
   4. COMMON LAYOUTS & CARDS
   ========================================================================== */
.page {
  max-width: 1180px;
  margin: 16px auto;
  padding: 0 16px 40px;
}

.form-page {
  max-width: 860px;
}

.form-card,
.card,
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.form-card {
  padding: 24px 28px;
}

.form-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.page-intro {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.section-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ==========================================================================
   5. FORM INPUTS & SHARED CONTROLS
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: #424242;
  font-size: 13px;
  font-weight: 600;
}

.required {
  color: var(--danger);
  margin-left: 2px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  outline: none;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input,
.select {
  height: 40px;
  padding: 0 12px;
}

.textarea {
  min-height: 100px;
  padding: 10px 12px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(248, 86, 6, 0.12);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(248, 86, 6, 0.3);
}

/* ==========================================================================
   6. PRODUCT CREATION UI (add_product.php)
   ========================================================================== */
.image-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.image-box {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px dashed #d0d0d0;
  border-radius: 4px;
  background: var(--soft);
  transition: border-color 0.2s;
}

.image-box:hover {
  border-color: var(--primary);
}

.image-input {
  display: none;
}

.image-upload {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  color: var(--muted);
}

.image-upload-icon {
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}

.image-upload-text {
  font-size: 11px;
}

.image-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.image-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.image-picker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--primary-border);
  border-radius: 3px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.image-picker-label:hover {
  background: #ffe8d9;
}

.variant-list,
.area-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant-card,
.area-row {
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}

.variant-header,
.area-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  background: var(--soft);
}

.variant-title,
.area-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #424242;
}

.variant-body {
  padding: 12px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: end;
}

.variant-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.variant-remove,
.option-remove,
.feature-remove {
  border: 1px solid #fed7d7;
  border-radius: 3px;
  background: #fff5f5;
  color: var(--danger);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.add-option-btn,
.add-btn {
  padding: 8px 14px;
  border: 1px dashed var(--primary);
  border-radius: 3px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.add-option-btn:hover,
.add-btn:hover {
  background: #ffede0;
}

.add-option-btn {
  margin-top: 8px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-label {
  position: relative;
  cursor: pointer;
}

.choice-input {
  position: absolute;
  opacity: 0;
}

.choice-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  transition: all 0.2s ease;
}

.choice-check {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  position: relative;
}

.choice-input:checked + .choice-box {
  border-color: var(--primary);
  background: var(--primary-light);
}

.choice-input:checked + .choice-box .choice-check {
  border-color: var(--primary);
  background: var(--primary);
}

.choice-input:checked + .choice-box .choice-check:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.choice-content strong {
  display: block;
  font-size: 13px;
  color: var(--text);
}

.choice-content span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

/* ==========================================================================
   7. PRODUCT DETAIL & GALLERY (product-view.php)
   ========================================================================== */
.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  padding: 24px;
}

.gallery,
.product-info {
  min-width: 0;
}

.main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.main-image.is-changing {
  opacity: 0.25;
  transform: scale(0.985);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: #333;
  z-index: 2;
  transition: background 0.2s;
}

.gallery-arrow:hover {
  background: #fff;
  color: var(--primary);
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.thumbnail-list {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnail-list::-webkit-scrollbar {
  display: none;
}

.thumbnail {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.thumbnail.active {
  border: 2px solid var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.thumbnail:hover img {
  transform: scale(1.05);
}

.brand {
  margin-bottom: 6px;
  color: #0088cc;
  font-size: 13px;
  font-weight: 500;
}

.product-title {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.price-box {
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fafafa;
  border-radius: 4px;
}

.price-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.price {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.stock {
  margin-top: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.empty-stock {
  color: var(--danger);
}

.variant-section {
  margin-bottom: 14px;
}

.variant-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.variant-label-value {
  color: var(--muted);
  font-weight: 400;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-option {
  min-width: 50px;
  height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.variant-option:hover,
.variant-option.active {
  border-color: var(--primary);
  color: var(--primary);
}

.variant-option.active {
  background: var(--primary-light);
  font-weight: 600;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
}

.quantity-label {
  font-size: 13px;
  font-weight: 600;
  color: #424242;
}

.quantity-control {
  height: 34px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.quantity-btn {
  width: 32px;
  border: 0;
  background: #f5f5f5;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.quantity-btn:hover:not(:disabled) {
  background: #e8e8e8;
}

.quantity-value {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.action-btn {
  height: 44px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.action-btn svg {
  width: 18px;
  height: 18px;
}

.cart-btn {
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
}

.cart-btn:hover:not(:disabled) {
  background: #ffe6d6;
}

.buy-btn {
  color: #fff;
  background: var(--primary);
}

.buy-btn:hover:not(:disabled) {
  background: var(--primary-dark);
}

.details {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.detail-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

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

.feature-item {
  position: relative;
  padding: 4px 0 4px 16px;
  color: #555;
  font-size: 13px;
}

.feature-item:before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.description {
  color: #444;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}

.muted {
  color: var(--muted);
}

.small-note {
  font-size: 11px;
  line-height: 1.5;
  margin-top: 8px;
}

/* ==========================================================================
   8. CHECKOUT PAGE (checkout.php)
   ========================================================================== */
.checkout-page {
  max-width: 1100px;
  margin: 16px auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.checkout-aside {
  position: sticky;
  top: 70px;
  min-width: 0;
}

.checkout-product {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.checkout-product > img,
.checkout-product > .product-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  background: var(--soft);
}

.checkout-product h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

.checkout-variant {
  font-size: 12px;
  color: #555;
}

.delivery-area-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.delivery-area-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.delivery-area-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}

.delivery-area-option input {
  accent-color: var(--primary);
  flex-shrink: 0;
  margin: 0;
}

.delivery-area-option-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.delivery-area-option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.delivery-area-option-charge {
  color: var(--muted);
  font-size: 12px;
}

.summary-card {
  padding: 18px 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.summary-total {
  margin-top: 6px;
  padding-top: 14px;
  border-bottom: 0;
  font-size: 15px;
}

.summary-total strong {
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.summary-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  height: 28px;
}

.summary-qty button {
  width: 28px;
  height: 100%;
  border: 0;
  background: #f7f7f7;
  font-size: 14px;
}

.summary-qty span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
}

/* ==========================================================================
   9. ORDER STATUS & FEEDBACK
   ========================================================================== */
.order-success {
  max-width: 580px;
  margin: 32px auto;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.order-success h1 {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--text);
}

.order-success p {
  font-size: 13px;
  color: #555;
  margin: 6px 0;
}

.link-button {
  margin-top: 14px;
}

.notice {
  padding: 12px 14px;
  margin: 0 0 16px;
  border-radius: 4px;
  font-size: 13px;
}

.notice ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

.error,
.form-error {
  background: #fdf2f2;
  color: var(--danger);
  border: 1px solid #f8b4b4;
}

.form-error {
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 3px;
}

.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
}

/* ==========================================================================
   10. ORDER TRACKING VIEW (tracking.php)
   ========================================================================== */
.tracking-card {
  max-width: 780px;
  margin: 24px auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
}

.tracking-head h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text);
}

.tracking-status {
  border-radius: 20px;
  padding: 5px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}

.tracking-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
}

.tracking-product img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--soft);
  border: 1px solid var(--border-light);
  border-radius: 4px;
}

.tracking-product h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

.tracking-product p {
  margin: 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tracking-cell {
  background: #f9f9fa;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 12px 14px;
}

.tracking-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.tracking-cell strong {
  font-size: 13px;
  color: var(--text);
}

.tracking-total {
  color: var(--primary) !important;
  font-size: 18px !important;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 860px) {
  .product-main {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  
  .checkout-aside {
    position: static;
  }
}

@media (max-width: 600px) {
  .topbar {
    height: 48px;
  }
  
  .topbar-inner {
    padding: 0 10px;
  }
  
  .top-action span,
  .seller-profile > span:last-child {
    display: none;
  }
  
  .page {
    margin: 8px auto;
    padding: 0 10px 24px;
  }
  
  .form-card {
    padding: 16px 14px;
  }
  
  
  .choice-grid,
  .delivery-area-options,
  .tracking-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  
  .option-row {
    grid-template-columns: 110px minmax(0, 1fr) 34px;
  }
  
  .variant-footer {
    grid-template-columns: 1fr 1fr;
  }
  
  .add-option-btn {
    grid-column: 1 / -1;
  }
  
  .checkout-product {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  
  .checkout-product > img {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 420px) {
  .actions {
    grid-template-columns: 1fr;
  }
  
  .variant-footer {
    grid-template-columns: 1fr;
  }
  
  .option-row {
    grid-template-columns: 1fr;
  }
  
  .option-remove {
    width: 100%;
  }
}