/* ═══════════════════════════════════════════════════
   GALI ART GALLERY — Shopping Cart Styles (cart.css)
   Header Cart Icon, Badge, Toast Notifications, and Full Cart Page
   ═══════════════════════════════════════════════════ */

/* ─── 1. Header Cart Icon & Interactive Badge ─── */
.main-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--text, #2c2523);
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 1201;
}

@media (max-width: 840px) {
  .main-header__cart {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
  }
  .main-header__cart svg {
    width: 26px;
    height: 26px;
  }
  .main-header__cart:hover,
  .main-header__cart:focus-visible {
    transform: translateY(-50%) scale(1.05) !important;
  }
}

.main-header__cart:hover,
.main-header__cart:focus-visible {
  background: rgba(99, 71, 7, 0.08);
  color: var(--accent, #a67c52);
  transform: scale(1.05);
  outline: none;
}

.main-header__cart svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.main-header__cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: var(--accent-dark, #634707);
  color: #fffdfa;
  font-family: var(--font-display, inherit);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.main-header__cart-badge.is-hidden {
  display: none !important;
}

/* ─── 2. Add-to-Cart Floating Toast ─── */
.cart-toast {
  position: fixed;
  top: 80px;
  left: 20px;
  z-index: 9999;
  background: var(--surface, #fffdfa);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(44, 37, 35, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
  max-width: 380px;
  width: calc(100% - 40px);
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s;
  pointer-events: none;
  direction: rtl;
}

.cart-toast.is-active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-toast__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-toast__thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt, #f7f3ee);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-toast__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-toast__details {
  flex-grow: 1;
  min-width: 0;
}

.cart-toast__status {
  display: block;
  font-size: 0.78rem;
  color: #15803d;
  font-weight: 600;
  margin-bottom: 2px;
}

.cart-toast__title {
  display: block;
  font-size: 0.88rem;
  color: var(--text, #2c2523);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-toast__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dark, #634707);
  color: #fffdfa;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.cart-toast__btn:hover {
  background: var(--accent, #a67c52);
}

.cart-toast__close {
  background: none;
  border: none;
  color: var(--muted, #7c7267);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  margin-right: -4px;
}

.cart-toast__close:hover {
  color: var(--text, #2c2523);
}

/* ─── 3. Full Cart Page Layout (`cart.html`) ─── */
.cart-page {
  padding-block: 40px 80px;
  min-height: calc(100vh - 250px);
}

.cart-page__header {
  margin-bottom: 32px;
  text-align: center;
}

.cart-page__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text, #2c2523);
  margin-bottom: 8px;
}

.cart-page__subtitle {
  font-size: 1rem;
  color: var(--muted, #7c7267);
  max-width: 540px;
  margin-inline: auto;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ─── Cart Items Section ─── */
.cart-items-wrapper {
  background: var(--surface, #fffdfa);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(44, 37, 35, 0.04);
}

.cart-items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line, #e6ded4);
  margin-bottom: 20px;
}

.cart-items-count {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text, #2c2523);
}

.cart-clear-btn {
  background: none;
  border: none;
  color: var(--muted, #7c7267);
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.cart-clear-btn:hover {
  color: #dc2626;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cart-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cart-item__image {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt, #f7f3ee);
  border: 1px solid var(--line, #e6ded4);
  flex-shrink: 0;
}

.cart-item__image-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-item__image-link:hover {
  opacity: 0.9;
  transform: scale(1.04);
}

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

.cart-item__details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin: 0;
}

.cart-item__title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cart-item__title-link:hover {
  color: var(--primary, #9c6342);
  text-decoration: underline;
}

.cart-item__meta {
  font-size: 0.85rem;
  color: var(--muted, #7c7267);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cart-item__meta-tag {
  background: var(--bg-alt, #f7f3ee);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-item__price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-dark, #634707);
  margin-top: 4px;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-item__total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  white-space: nowrap;
}

/* Quantity Adjuster */
.cart-qty-control {
  display: inline-flex;
  align-items: center;
  background: var(--bg, #fcfbf9);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #2c2523);
  cursor: pointer;
  transition: background-color 0.15s;
}

.cart-qty-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text, #2c2523);
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--muted, #7c7267);
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  padding: 0;
}

.cart-item__remove:hover {
  color: #dc2626;
}

/* ─── Cart Summary & Checkout Sidebar ─── */
.cart-summary {
  background: var(--surface, #fffdfa);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(44, 37, 35, 0.04);
  position: sticky;
  top: 90px;
}

.cart-summary__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #e6ded4);
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--muted, #7c7267);
  margin-bottom: 12px;
}

.cart-summary__row--total {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed var(--line, #e6ded4);
}

.cart-summary__shipping-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-block: 16px;
}

/* Terms Agreement in Cart (Task 529) */
.cart-terms-box {
  margin-block: 20px 16px;
  padding: 14px;
  background: var(--bg-alt, #f7f3ee);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 10px;
}

.cart-terms-box label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text, #2c2523);
  line-height: 1.4;
}

.cart-terms-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark, #634707);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.cart-terms-box a {
  color: var(--accent-dark, #634707);
  text-decoration: underline;
  font-weight: 600;
}

.cart-terms-warning {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  display: none;
}

.cart-terms-warning.is-active {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-dark, #634707);
  color: #fffdfa;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(99, 71, 7, 0.2);
}

.cart-checkout-btn:hover {
  background: var(--accent, #a67c52);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 71, 7, 0.28);
}

.cart-continue-link {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted, #7c7267);
  text-decoration: none;
  margin-top: 14px;
  transition: color 0.2s;
}

.cart-continue-link:hover {
  color: var(--text, #2c2523);
  text-decoration: underline;
}

/* ─── Cart Empty State ─── */
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface, #fffdfa);
  border: 1px solid var(--line, #e6ded4);
  border-radius: 16px;
}

.cart-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--line, #ded5c8);
}

.cart-empty__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin-bottom: 8px;
}

.cart-empty__desc {
  font-size: 0.98rem;
  color: var(--muted, #7c7267);
  max-width: 400px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.cart-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dark, #634707);
  color: #fffdfa;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s;
}

.cart-empty__btn:hover {
  background: var(--accent, #a67c52);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .cart-item {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
  .cart-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
    padding-top: 10px;
    margin-top: 4px;
  }
  .cart-items-wrapper,
  .cart-summary {
    padding: 16px;
  }
}

/* ─── 4. Floating Cart Drawer / Modal (Task 620) ─── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  visibility: hidden;
  transition: visibility 0.35s ease;
  direction: rtl;
}

.cart-drawer.is-open {
  visibility: visible;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 20, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: 440px;
  background: var(--surface, #fffdfa);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  overscroll-behavior: contain;
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__handle {
  display: none;
}

html.cart-drawer-open,
body.cart-drawer-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line, #e6ded4);
  background: var(--surface, #fffdfa);
}

.cart-drawer__header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text, #2c2523);
}

.cart-drawer__header-title svg {
  stroke: var(--accent, #a67c52);
}

.cart-drawer__title {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text, #2c2523);
}

.cart-drawer__count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent, #a67c52);
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted, #68625b);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cart-drawer__close:hover {
  color: var(--text, #2c2523);
  background: rgba(0, 0, 0, 0.05);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 50px 20px;
}

.cart-drawer__empty-icon {
  width: 52px;
  height: 52px;
  stroke: var(--muted, #a39c93);
  margin-bottom: 14px;
}

.cart-drawer__empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin-bottom: 6px;
}

.cart-drawer__empty-desc {
  font-size: 0.95rem;
  color: var(--muted, #68625b);
  margin-bottom: 20px;
}

.cart-drawer__item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line, #e6ded4);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.cart-drawer__item-thumb {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-alt, #f7f3ee);
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, box-shadow 0.2s ease;
}

.cart-drawer__item-thumb:hover {
  opacity: 0.92;
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.cart-drawer__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-drawer__item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.cart-drawer__item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-drawer__item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-drawer__item-title-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.cart-drawer__item-title-link:hover,
.cart-drawer__item-title-link:focus-visible {
  color: var(--accent, #b3533b);
  text-decoration: underline;
}

.cart-drawer__item-remove {
  background: none;
  border: none;
  color: var(--muted, #a39c93);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-drawer__item-remove:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.cart-drawer__item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 4px 0 8px;
}

.cart-drawer__meta-tag {
  font-size: 0.72rem;
  background: var(--bg-alt, #f7f3ee);
  color: var(--muted, #68625b);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line, #e6ded4);
}

.cart-drawer__item-edit {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--accent, #b3533b);
  background: rgba(179, 83, 59, 0.08);
  border: 1px solid rgba(179, 83, 59, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cart-drawer__item-edit:hover,
.cart-drawer__item-edit:focus-visible {
  background: var(--accent, #b3533b);
  color: #fff;
  border-color: var(--accent, #b3533b);
  text-decoration: none;
}

.cart-drawer__item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cart-drawer__item-total {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text, #2c2523);
}

.cart-drawer__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line, #e6ded4);
  background: var(--surface, #fffdfa);
}

.cart-drawer__subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 8px;
}

.cart-drawer__subtotal span {
  color: var(--muted, #68625b);
  font-weight: 500;
}

.cart-drawer__subtotal strong {
  color: var(--text, #2c2523);
  font-size: 1.25rem;
  font-weight: 800;
}

.cart-drawer__shipping-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #15803d;
  background: rgba(21, 128, 61, 0.06);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.cart-drawer__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-drawer__btn-checkout {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent, #a67c52);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(166, 124, 82, 0.25);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cart-drawer__btn-checkout:hover {
  background: var(--accent-dark, #634707);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(166, 124, 82, 0.35);
}

.cart-drawer__btn-continue {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line, #ded5c8);
  background: transparent;
  color: var(--text, #2c2523);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.cart-drawer__btn-continue:hover {
  border-color: var(--accent, #a67c52);
  color: var(--accent, #a67c52);
  background: #ffffff;
}

/* ─── 5. Mobile Floating Cart Bottom Sheet (Tasks 697, 699, 700, 701) ─── */
@media (max-width: 768px) {
  .cart-drawer__backdrop {
    background: rgba(18, 15, 14, 0.68);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .cart-drawer__panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 84vh;
    max-height: 84dvh;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.35);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .cart-drawer.is-open .cart-drawer__panel {
    transform: translateY(0);
  }

  .cart-drawer__handle {
    display: block;
    width: 44px;
    height: 4.5px;
    background: #d4cdc3;
    border-radius: 999px;
    margin: 10px auto 2px;
    flex-shrink: 0;
  }

  .cart-drawer__header {
    padding: 12px 20px 14px;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .cart-drawer__body {
    padding: 14px 18px;
    max-height: calc(84vh - 240px);
    max-height: calc(84dvh - 240px);
  }

  .cart-drawer__footer {
    padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ─── 7. What Happens Next Process Section (Task 680) ─── */
.cart-process {
  margin: 54px auto 32px;
  padding: 38px 28px;
  background: #ffffff;
  border: 1px solid var(--line, #e6ded4);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 6px 24px rgba(99, 71, 7, 0.04);
  direction: rtl;
  text-align: center;
  box-sizing: border-box;
}

.cart-process__header {
  margin-bottom: 32px;
}

.cart-process__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent, #a67c52);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.cart-process__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: var(--accent-dark, #634707);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.cart-process__subtitle {
  font-size: 0.94rem;
  color: var(--muted, #6d736d);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

.cart-process__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

.cart-process__step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: right;
  padding: 14px 16px;
  background: #faf8f5;
  border: 1px solid var(--line, #eae3d8);
  border-radius: var(--radius-md, 16px);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-process__step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 71, 7, 0.08);
}

.cart-process__icon-box {
  position: relative;
  width: 54px;
  height: 54px;
  background: #ffffff;
  border: 1.5px solid var(--line, #ded5c8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark, #634707);
  box-shadow: 0 2px 8px rgba(99, 71, 7, 0.06);
}

.cart-process__icon {
  width: 28px;
  height: 28px;
}

.cart-process__step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: var(--accent-dark, #634707);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cart-process__step-content {
  flex: 1;
  min-width: 0;
}

.cart-process__step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin: 0 0 4px;
  line-height: 1.3;
}

.cart-process__step-desc {
  font-size: 0.86rem;
  color: var(--muted, #6d736d);
  line-height: 1.5;
  margin: 0;
}

.cart-process__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #a67c52);
  opacity: 0.65;
  padding: 2px 0;
}

.cart-process__connector-icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent, #a67c52);
}

@media (min-width: 920px) {
  .cart-process {
    padding: 44px 36px;
  }

  .cart-process__flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    max-width: 100%;
    gap: 10px;
  }

  .cart-process__step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 16px;
    height: 100%;
  }

  .cart-process__step-content {
    text-align: center;
    margin-top: 10px;
  }

  .cart-process__step-title {
    font-size: 1.02rem;
  }

  .cart-process__step-desc {
    font-size: 0.84rem;
  }

  .cart-process__connector {
    align-self: center;
    padding: 0;
  }

  .cart-process__connector-icon {
    transform: rotate(90deg);
  }
}

/* ─── 8. Shipping & Returns Policy Section (Task 681) ─── */
.cart-policy {
  margin-top: 48px;
  background: #fffdfa;
  border: 1px solid var(--line, #e8dfd5);
  border-radius: var(--radius-lg, 16px);
  padding: 36px 22px;
  box-shadow: 0 4px 20px rgba(99, 71, 7, 0.05);
  box-sizing: border-box;
}

.cart-policy__header {
  text-align: center;
  margin-bottom: 30px;
}

.cart-policy__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent, #a67c52);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cart-policy__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  color: var(--text, #2c2523);
  margin: 0 0 8px;
  font-weight: 700;
}

.cart-policy__subtitle {
  font-size: 0.92rem;
  color: var(--muted, #6d736d);
  margin: 0 auto;
  max-width: 620px;
  line-height: 1.5;
}

.cart-policy__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.cart-policy__card {
  background: #ffffff;
  border: 1px solid var(--line, #eae2d8);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(99, 71, 7, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-policy__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(99, 71, 7, 0.08);
}

.cart-policy__card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(232, 223, 213, 0.7);
}

.cart-policy__icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(166, 124, 82, 0.1);
  color: var(--accent-dark, #634707);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-policy__icon-box svg {
  width: 24px;
  height: 24px;
}

.cart-policy__card-title-group {
  flex: 1;
  min-width: 0;
}

.cart-policy__card-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text, #2c2523);
  margin: 0 0 3px;
  line-height: 1.3;
}

.cart-policy__card-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-dark, #634707);
  background: rgba(99, 71, 7, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
}

.cart-policy__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.cart-policy__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text, #2c2523);
  line-height: 1.55;
}

.cart-policy__bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent, #a67c52);
  margin-top: 8px;
  flex-shrink: 0;
}

.cart-policy__item strong {
  color: var(--accent-dark, #634707);
  font-weight: 700;
  margin-left: 4px;
}

@media (min-width: 860px) {
  .cart-policy {
    padding: 44px 36px;
  }

  .cart-policy__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ─── 9. About Gali's Art Section (Task 681 - No Image) ─── */
.cart-about {
  margin-top: 48px;
  margin-bottom: 30px;
}

.cart-about__card {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fffdfa 0%, #fbf8f3 100%);
  border: 1px solid var(--line, #e8dfd5);
  border-radius: var(--radius-lg, 18px);
  padding: 36px 22px;
  box-shadow: 0 4px 22px rgba(99, 71, 7, 0.05);
  position: relative;
  box-sizing: border-box;
}

.cart-about__ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent, #a67c52);
  opacity: 0.85;
}

.cart-about__ornament-icon {
  width: 32px;
  height: 32px;
}

.cart-about__header {
  text-align: center;
  margin-bottom: 22px;
}

.cart-about__eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent, #a67c52);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cart-about__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.32rem, 3.2vw, 1.75rem);
  color: var(--text, #2c2523);
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.cart-about__quote {
  margin: 0 0 22px;
  padding: 16px 20px;
  background: rgba(166, 124, 82, 0.07);
  border-right: 3px solid var(--accent, #a67c52);
  border-radius: 0 10px 10px 0;
  text-align: right;
  box-sizing: border-box;
}

.cart-about__quote p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--accent-dark, #634707);
  margin: 0;
  line-height: 1.65;
  font-weight: 500;
}

.cart-about__body {
  text-align: right;
  color: var(--text, #3a3230);
  font-size: 0.94rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.cart-about__body p {
  margin: 0;
}

.cart-about__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(232, 223, 213, 0.8);
}

.cart-about__signature {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.cart-about__artist-name {
  font-family: var(--font-display, inherit);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-dark, #634707);
}

.cart-about__artist-tagline {
  font-size: 0.82rem;
  color: var(--muted, #7c746e);
}

.cart-about__back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-dark, #634707);
  text-decoration: none;
  padding: 10px 20px;
  background: #ffffff;
  border: 1.5px solid var(--line, #e2d7cb);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(99, 71, 7, 0.05);
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.cart-about__back-link:hover {
  background: var(--accent-dark, #634707);
  color: #ffffff;
  border-color: var(--accent-dark, #634707);
  transform: translateY(-1px);
}

@media (min-width: 680px) {
  .cart-about__card {
    padding: 46px 40px;
  }

  .cart-about__footer {
    flex-direction: row;
  }

  .cart-about__signature {
    width: auto;
  }

  .cart-about__back-link {
    width: auto;
  }
}

