/* ==========================================================================
   Warangal Weaves and Crafts — E-Commerce Stylesheet (ecom.css)
   Scoped specifically with .ecom-* to preserve existing site layout and styles.
   ========================================================================== */

/* ── Header Controls (Cart & Account) ── */
.ecom-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.ecom-btn-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1px solid #d9cfc0;
  border-radius: 2px;
  padding: 10px 14px;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s ease;
}

.ecom-btn-header:hover {
  background: #eee5d7;
  border-color: var(--wine);
  color: var(--wine);
}

.ecom-btn-header svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.ecom-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--wine);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}

.ecom-cart-badge.bump {
  transform: scale(1.3);
}

/* ── Shared Modal Backdrop & Container ── */
.ecom-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 37, 31, .65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}

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

.ecom-modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(.96);
  width: min(540px, 92vw);
  max-height: 88vh;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 3px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1001;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease, visibility .25s ease;
  overflow: hidden;
}

.ecom-modal-dialog.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ecom-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e7ded0;
  background: #fbf8f2;
}

.ecom-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--wine);
  margin: 0;
}

.ecom-modal-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 2px;
  transition: color .2s ease;
}

.ecom-modal-close:hover {
  color: var(--wine);
}

.ecom-modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── Side Cart Drawer ── */
.ecom-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 94vw);
  background: var(--paper);
  border-left: 1px solid var(--gold);
  box-shadow: -10px 0 35px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  z-index: 1002;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ecom-drawer-head {
  padding: 20px 24px;
  background: #fbf7f1;
  border-bottom: 1px solid #e7ded0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ecom-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ecom-cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e2d7c7;
}

.ecom-cart-item-img {
  width: 74px;
  height: 74px;
  border-radius: 2px;
  object-fit: cover;
  background: #ece4d7;
  border: 1px solid #d9cebe;
}

.ecom-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ecom-cart-item-title {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.ecom-cart-item-size {
  display: inline-block;
  font-size: 11px;
  color: var(--olive);
  font-weight: 600;
  background: #f2eee6;
  padding: 2px 7px;
  border-radius: 2px;
  width: max-content;
}

.ecom-cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
}

.ecom-cart-item-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5c8b6;
  border-radius: 2px;
  background: #fff;
  margin-top: 6px;
  width: max-content;
}

.ecom-qty-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: background .15s;
}

.ecom-qty-btn:hover:not(:disabled) {
  background: #f2eee6;
}

.ecom-qty-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.ecom-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.ecom-cart-item-remove {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color .2s;
}

.ecom-cart-item-remove:hover {
  color: var(--wine);
}

.ecom-drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid #e7ded0;
  background: #fdfbf7;
}

.ecom-drawer-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.ecom-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.ecom-summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding-top: 8px;
  border-top: 1px solid #e7ded0;
}

.ecom-summary-row.total .price {
  color: var(--wine);
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

.ecom-shipping-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #276738;
  background: #e8f5ec;
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 700;
}

.ecom-btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wine);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
}

.ecom-btn-block:hover {
  background: #501d25;
  transform: translateY(-1px);
}

.ecom-empty-cart {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}

.ecom-empty-cart svg {
  width: 52px;
  height: 52px;
  stroke: #c7bcac;
  margin-bottom: 14px;
}

/* ── Auth Modal Styling ── */
.ecom-auth-tabs {
  display: flex;
  border-bottom: 1px solid #e5dcce;
  margin-bottom: 20px;
}

.ecom-auth-tab {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.ecom-auth-tab.active {
  color: var(--wine);
  border-bottom-color: var(--wine);
  background: #fcfaf6;
}

.ecom-unverified-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fdf5e6;
  border: 1px solid #ebd4a8;
  border-radius: 2px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.45;
  color: #7d591b;
  margin-bottom: 18px;
}

.ecom-form-group {
  margin-bottom: 16px;
}

.ecom-form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.ecom-form-input,
.ecom-form-select,
.ecom-form-textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #dcd1c2;
  border-radius: 2px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.ecom-form-input:focus,
.ecom-form-select:focus,
.ecom-form-textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 2px rgba(168, 67, 42, .12);
}

.ecom-form-help {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.ecom-alert {
  padding: 10px 14px;
  border-radius: 2px;
  font-size: 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.ecom-alert.error {
  background: #fdf0f0;
  border: 1px solid #f2c7c7;
  color: #9c2727;
}

.ecom-alert.success {
  background: #edf7ed;
  border: 1px solid #c8e6c9;
  color: #1e4620;
}

/* ── Checkout Flow & Address Selection ── */
.ecom-address-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.ecom-address-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #ded5c7;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.ecom-address-card:hover {
  background: #fbf7f1;
}

.ecom-address-card.selected {
  border-color: var(--wine);
  background: #faf4ea;
}

.ecom-address-card input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--wine);
}

.ecom-address-card-body {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
}

.ecom-address-card-body strong {
  display: block;
  font-size: 13px;
  color: var(--wine);
}

.ecom-btn-text {
  background: transparent;
  border: none;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ecom-btn-text:hover {
  text-decoration: underline;
}

/* ── Payment & UPI Modal ── */
.ecom-payment-card {
  text-align: center;
  padding: 10px 0;
}

.ecom-order-badge {
  display: inline-block;
  background: #f4ecdf;
  border: 1px solid #e0d4c2;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--wine);
  margin-bottom: 14px;
}

.ecom-upi-qr-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  padding: 16px;
  border: 1px solid #ded5c7;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  margin: 10px auto 16px;
}

.ecom-upi-qr-wrap img,
.ecom-upi-qr-wrap canvas {
  width: 200px;
  height: 200px;
  display: block;
}

.ecom-upi-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f4efe6;
  border: 1px dashed #cbbda7;
  border-radius: 2px;
  padding: 8px 14px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--wine);
  margin: 10px auto 18px;
  width: max-content;
}

.ecom-btn-copy {
  background: var(--paper);
  border: 1px solid #c9bca9;
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 10px;
  font-family: "DM Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}

.ecom-btn-copy:hover {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.ecom-wa-handoff-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 2px;
  margin-top: 14px;
  transition: all .2s;
}

.ecom-wa-handoff-btn:hover {
  background: #1eb956;
  transform: translateY(-1px);
}

.ecom-wa-handoff-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── Order History Cards ── */
.ecom-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ecom-order-history-card {
  background: #fff;
  border: 1px solid #ded5c7;
  border-radius: 3px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ecom-order-history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee7db;
  padding-bottom: 8px;
}

.ecom-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
}

.ecom-badge.status-pending { background: #fff4e5; color: #b76e00; }
.ecom-badge.status-processing { background: #e3f2fd; color: #0d47a1; }
.ecom-badge.status-shipped { background: #ede7f6; color: #4a148c; }
.ecom-badge.status-delivered { background: #e8f5e9; color: #1b5e20; }
.ecom-badge.status-cancelled { background: #ffebee; color: #b71c1c; }

.ecom-badge.pay-unpaid { background: #fff3e0; color: #e65100; }
.ecom-badge.pay-submitted { background: #e1f5fe; color: #0277bd; }
.ecom-badge.pay-verified { background: #e8f5e9; color: #2e7d32; }
.ecom-badge.pay-rejected { background: #ffebee; color: #c62828; }

/* ── Toast Notifications ── */
.ecom-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.ecom-toast {
  pointer-events: auto;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: ecomToastIn .28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ecom-toast.success {
  border-left: 4px solid #25d366;
}

.ecom-toast.error {
  border-left: 4px solid #d32f2f;
}

@keyframes ecomToastIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Design Modal Additions ── */
.ecom-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #ded5c7;
}

.ecom-size-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.ecom-size-pill {
  padding: 7px 12px;
  background: var(--cream);
  border: 1px solid #ded5c7;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
}

.ecom-size-pill:hover {
  border-color: var(--wine);
  background: #faf4eb;
}

.ecom-size-pill.active {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.ecom-add-to-cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 13px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}

.ecom-add-to-cart-btn:hover {
  background: #4f1e27;
  transform: translateY(-2px);
}

/* ── Highlighted "Shop Now" Header CTA ── */
.nav-cta.nav-shop-highlight {
  background: var(--wine);
  color: #fff !important;
  border: 1px solid var(--gold);
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: .14em;
  box-shadow: 0 4px 14px rgba(168, 67, 42, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s ease;
}

.nav-cta.nav-shop-highlight:hover {
  background: #87301a;
  border-color: #d8b274;
  box-shadow: 0 6px 20px rgba(168, 67, 42, .38);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .ecom-drawer {
    width: 100vw;
  }
  .ecom-drawer-foot {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 16px));
  }
  .ecom-modal-dialog {
    width: min(94vw, 440px);
    max-height: 90vh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .ecom-nav-actions {
    gap: 6px;
    align-items: center;
  }
  .ecom-btn-header span.ecom-btn-label {
    display: none;
  }
  .ecom-btn-header {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .ecom-btn-header .ecom-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    font-size: 9px;
    padding: 0 4px;
    border: 1.5px solid #f5f0e7;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  }
  .nav-cta.nav-shop-highlight {
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: .06em;
    gap: 4px;
    white-space: nowrap;
    border-radius: 3px;
  }
}

/* ── Mobile Navigation Drawer ── */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #d9cfc0;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--ink, #24251f);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  border-color: var(--wine, #a8432a);
  color: var(--wine, #a8432a);
  background: #eee5d7;
}
.mobile-menu-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

@media (max-width: 800px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 84vw);
  background: #fdfbf7;
  z-index: 10002;
  box-shadow: 8px 0 35px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: 1px solid #e3d8c8;
}

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

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 37, 31, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

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

.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #ede3d4;
  background: #f5f0e7;
}

.mobile-nav-brand {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wine, #a8432a);
}

.mobile-nav-close {
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #777;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.mobile-nav-close:hover {
  color: var(--wine, #a8432a);
  background: #ebe3d6;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: #38352f;
  text-decoration: none;
  border-bottom: 1px solid #f6f0e6;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: #f7efe4;
  color: var(--wine, #a8432a);
}

.mobile-nav-links a svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.75;
}

.mobile-nav-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 16px));
  border-top: 1px solid #ede3d4;
  background: #f7f2ea;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none;
}

/* ── Floating Mobile & Desktop Quick Cart Button ── */
.ecom-floating-cart-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--wine);
  color: #fff;
  border: 2px solid var(--gold);
  border-radius: 30px;
  padding: 12px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(168, 67, 42, .45);
  cursor: pointer;
  z-index: 998;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ecom-floating-cart-btn:hover {
  background: #87301a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(168, 67, 42, .55);
}

.ecom-floating-cart-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .ecom-floating-cart-btn {
    bottom: calc(18px + env(safe-area-inset-bottom, 16px));
    right: 14px;
    padding: 10px 16px;
    font-size: 12px;
    box-shadow: 0 6px 22px rgba(168, 67, 42, 0.42);
  }
}

/* ══════════════════════════════════════════════════════════════════
   PROMOTIONAL ADS & CAMPAIGNS (POP-UP MODAL & IN-SITE RECTANGLE BANNER)
   ══════════════════════════════════════════════════════════════════ */

/* ── Pop-up Advertisement Modal ── */
.site-ad-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 22, 19, 0.78);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.site-ad-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.site-ad-modal {
  position: relative;
  background: #fff;
  max-width: 480px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: scale(0.92) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-ad-backdrop.active .site-ad-modal {
  transform: scale(1) translateY(0);
}

.site-ad-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(36, 37, 31, 0.75);
  color: #fff8ed;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.site-ad-close:hover {
  background: var(--wine);
  transform: rotate(90deg);
}

.site-ad-media-link {
  display: block;
  width: 100%;
  max-height: 290px;
  overflow: hidden;
  background: #f4efe6;
}

.site-ad-media-link img {
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.site-ad-media-link:hover img {
  transform: scale(1.03);
}

.site-ad-info {
  padding: 22px 26px 20px;
  text-align: center;
  background: #fff;
}

.site-ad-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wine);
  background: #fbf7f1;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid #ebd4a8;
  margin-bottom: 8px;
}

.site-ad-headline {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--charcoal);
  margin: 0 0 6px;
  line-height: 1.25;
}

.site-ad-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 18px;
}

.site-ad-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.site-ad-cta {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  background: var(--wine);
  color: #fff8ed;
  border: none;
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex;
  transition: background 0.2s;
}

.site-ad-cta:hover {
  background: #8b323f;
}

.site-ad-dismiss {
  background: transparent;
  border: none;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

.site-ad-dismiss:hover {
  color: var(--charcoal);
}

/* ── In-Site Rectangle Advertisement Banner ── */
.insite-banner-section {
  padding: 16px 0 34px;
}

.insite-ad-container {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e3d8c8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.insite-ad-anchor {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.insite-ad-image-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  background: #24251f;
  overflow: hidden;
}

@media (min-width: 768px) {
  .insite-ad-image-wrap {
    height: 280px;
  }
}

.insite-ad-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: brightness(0.88);
}

.insite-ad-anchor:hover .insite-ad-image-wrap img {
  transform: scale(1.025);
  filter: brightness(0.95);
}

.insite-ad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 37, 31, 0.88) 0%, rgba(36, 37, 31, 0.55) 60%, rgba(36, 37, 31, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 36px;
  color: #fff8ed;
  max-width: 650px;
}

@media (max-width: 600px) {
  .insite-ad-overlay {
    padding: 20px;
    background: rgba(36, 37, 31, 0.75);
  }
}

.insite-ad-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #dfcaa7;
  margin-bottom: 6px;
  display: inline-block;
}

.insite-ad-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3.2vw, 32px);
  color: #fff8ed;
  margin: 0 0 8px;
  line-height: 1.2;
  font-weight: 500;
}

.insite-ad-sub {
  font-size: 13px;
  color: #ded5c7;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: 520px;
}

.insite-ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wine);
  color: #fff8ed;
  padding: 9px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 2px;
  width: max-content;
  transition: background 0.2s, transform 0.2s;
}

.insite-ad-anchor:hover .insite-ad-btn {
  background: #8e313e;
  transform: translateX(4px);
}

/* ── Photo-Only Mode for In-Site Banner (Clean image + prominent Shop Collection button) ── */
.insite-ad-container.photo-only .insite-ad-image-wrap {
  height: auto;
  min-height: 200px;
  max-height: 460px;
  background: transparent;
}

@media (min-width: 768px) {
  .insite-ad-container.photo-only .insite-ad-image-wrap {
    min-height: 240px;
    max-height: 520px;
  }
}

.insite-ad-container.photo-only .insite-ad-image-wrap img {
  height: auto;
  max-height: 520px;
  object-fit: cover;
  filter: brightness(1) !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.insite-ad-container.photo-only .insite-ad-anchor:hover .insite-ad-image-wrap img {
  transform: scale(1.015);
  filter: brightness(1.02) !important;
}

.insite-ad-container.photo-only .insite-ad-overlay {
  background: transparent !important;
  max-width: 100%;
  width: 100%;
  padding: 24px 32px;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}

.insite-ad-container.photo-only .insite-ad-tag,
.insite-ad-container.photo-only .insite-ad-title,
.insite-ad-container.photo-only .insite-ad-sub {
  display: none !important;
}

.insite-ad-container.photo-only .insite-ad-btn {
  pointer-events: auto;
  background: var(--wine);
  color: #fff8ed;
  padding: 12px 26px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.insite-ad-container.photo-only .insite-ad-anchor:hover .insite-ad-btn {
  background: #4f1e27;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (max-width: 600px) {
  .insite-ad-container.photo-only .insite-ad-image-wrap {
    min-height: 150px;
  }
  .insite-ad-container.photo-only .insite-ad-overlay {
    padding: 16px;
    justify-content: flex-end;
    align-items: flex-end;
  }
  .insite-ad-container.photo-only .insite-ad-btn {
    padding: 9px 18px;
    font-size: 11px;
    letter-spacing: 0.03em;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   PROMO CODES & DISCOUNTS STYLES
   ══════════════════════════════════════════════════════════════════════════════ */
.ecom-promo-box {
  background: #fdfbf7;
  border: 1px dashed #ebd4a8;
  border-radius: 4px;
  padding: 12px;
}

.ecom-promo-remove {
  background: transparent;
  border: none;
  color: #c62828;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: opacity .15s;
}

.ecom-promo-remove:hover {
  opacity: 0.75;
}


html:not([data-customer-auth-ready]) .footer-staff-link { visibility: hidden !important; }
