@import url('theme.css');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla:ital@0;1&display=swap');

/* ── CART, AUTH & CHECKOUT STYLES ── */

/* Bangla Typography */
.nav-logo span,
.brand-logo span,
.fbrand span,
.header-brand span,
.hero-bangla,
.fcopy span,
.bangla,
.bangla-text,
[lang="bn"],
#why::before {
  font-family: 'Tiro Bangla', Georgia, serif !important;
  font-style: italic !important;
}

/* Floating Buttons in Navigation */
.nav-cart-btn, .nav-auth-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  position: relative;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-cart-btn:hover, .nav-auth-btn:hover {
  color: var(--sage);
}

.cart-icon-svg, .auth-icon-svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.cart-badge {
  background: var(--sage);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -4px;
  right: -8px;
  animation: popScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popScale {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Backdrops & Overlays */
.cart-overlay, .checkout-overlay, .auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--dark-a45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.checkout-overlay, .auth-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.cart-overlay.active, .checkout-overlay.active, .auth-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--white);
  z-index: 201;
  box-shadow: -10px 0 40px var(--dark-a12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

/* Headers & Close Buttons */
.cart-header, .auth-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
}

.cart-header-title, .auth-header-title {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--dark);
  font-weight: 500;
}

.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  font-size: 1.5rem;
  line-height: 1;
  transition: color 0.3s;
}

.cart-close-btn:hover {
  color: var(--dark);
}

/* Cart Items & Empty States */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cart-empty-message {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cart-empty-message svg {
  stroke: var(--sage-light);
  opacity: 0.7;
}

/* Cart Item Cards */
.cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--sage-a12);
}

.cart-item-img {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--sage-pale), var(--cream-deep));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--sage-a10);
}

.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0.3rem;
}

.cart-item-details {
  flex: 1;
}

.cart-item-brand {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin-bottom: 0.2rem;
}

.cart-item-title {
  font-family: Georgia, serif;
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.88rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--cream-deep);
  background: var(--cream);
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--dark);
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--sage-a15);
}

.qty-val {
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
  font-weight: 500;
}

.cart-item-remove {
  background: none; border: none;
  cursor: pointer;
  color: #B22222;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0.2rem 0.5rem;
}

.cart-item-remove:hover {
  opacity: 1;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--cream-deep);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.cart-summary-line.total {
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 600;
  border-top: 1px solid var(--sage-a20);
  padding-top: 0.8rem;
  margin-top: 0.3rem;
}

.cart-checkout-btn {
  background: var(--dark);
  color: var(--cream);
  border: none; cursor: pointer;
  padding: 1rem; width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s;
  display: block; text-align: center;
}

.cart-checkout-btn:hover {
  background: var(--sage);
}

/* ── MODALS (Checkout & Auth) ── */
.checkout-box, .auth-box {
  background: var(--white);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem 2.2rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--sage-pale);
}

.checkout-overlay.active .checkout-box,
.auth-overlay.active .auth-box {
  transform: translateY(0);
}

.checkout-title {
  font-family: Georgia, serif;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
}

/* Checkout Itemized Receipt */
.checkout-receipt-box {
  background: var(--cream);
  border: 1.5px dashed var(--sage-a25, rgba(45, 78, 143, 0.25));
  border-radius: 8px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.6rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

#checkoutReceiptItemsList::-webkit-scrollbar {
  width: 4px;
}

#checkoutReceiptItemsList::-webkit-scrollbar-thumb {
  background: var(--sage-a25, rgba(45, 78, 143, 0.25));
  border-radius: 4px;
}

.receipt-item-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px dotted rgba(45, 78, 143, 0.18);
  font-size: 0.84rem;
  gap: 0.75rem;
}

.receipt-item-line:last-child {
  border-bottom: none;
}

/* Auth Modal Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--cream-deep);
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.auth-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.2rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.auth-tab.active {
  color: var(--dark);
  font-weight: 600;
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--sage);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

/* Forms layout */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--dark);
  transition: border-color 0.3s;
}

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

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.pay-opt-card {
  border: 1.5px solid var(--cream-deep);
  background: var(--white);
  padding: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
  cursor: pointer; transition: all 0.3s;
}

.pay-opt-card:hover {
  border-color: var(--sage-light);
  background: var(--cream);
}

.pay-opt-card.selected {
  border-color: var(--sage);
  background: var(--sage-pale);
}

.pay-opt-card input {
  display: none;
}

.pay-opt-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dark);
}

.checkout-actions, .auth-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.checkout-cancel-btn {
  background: transparent;
  color: var(--text-soft);
  border: 1.5px solid var(--cream-deep);
  cursor: pointer;
  padding: 0.9rem;
  flex: 1;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
  text-align: center;
}

.checkout-cancel-btn:hover {
  border-color: var(--dark);
  color: var(--dark);
}

.checkout-submit-btn, .auth-submit-btn {
  background: var(--dark);
  color: var(--cream);
  border: none; cursor: pointer;
  padding: 0.9rem; flex: 2;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.3s;
  text-align: center;
}

.checkout-submit-btn:hover, .auth-submit-btn:hover {
  background: var(--sage);
}

/* User Account Info box inside Auth Modal */
.user-account-info {
  text-align: center;
  padding: 1.5rem 0;
}

.user-avatar-large {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--sage);
  font-size: 1.6rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}

.user-name-title {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.user-phone-sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.user-details-card {
  background: var(--cream);
  padding: 1.2rem;
  border: 1px solid var(--cream-deep);
  text-align: left;
  margin-bottom: 2rem;
}

.ud-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.ud-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.ud-value:last-child {
  margin-bottom: 0;
}

/* Status screens */
.checkout-status-screen {
  position: absolute;
  inset: 0;
  background: var(--white);
  z-index: 252;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.checkout-status-screen.active {
  opacity: 1;
  pointer-events: all;
}

.status-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--sage-pale);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-title {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.status-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 32ch;
  margin-bottom: 1.5rem;
}

.success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--sage);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* ADDED TO BAG TOASTS (PC: BOTTOM-LEFT, OPPOSITE OF BAG CHECKOUT BAR) */
.toast-container {
  position: fixed !important;
  bottom: 2.5rem !important;
  left: 2.5rem !important;
  right: auto !important;
  top: auto !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.8rem !important;
  pointer-events: none !important;
  max-width: 440px !important;
}

.toast {
  background: var(--dark);
  color: var(--cream);
  padding: 1rem 1.4rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  pointer-events: auto;
  border: 1.5px solid var(--sage-light-a25);
  border-radius: 8px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

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

.toast-success-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .toast-container {
    bottom: 5.5rem !important;
    left: 1rem !important;
    right: 1rem !important;
    max-width: none !important;
  }
  .toast {
    font-size: 0.78rem;
    padding: 0.85rem 1.1rem;
    justify-content: center;
  }
}

/* ── PRODUCT CARD BUTTONS (DOCK AT BOTTOM) ── */
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-deep);
}

.card-btn-add, .card-btn-buy {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.35rem;
  text-align: center;
  transition: all 0.3s;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-btn-add {
  background: transparent;
  border: 1px solid var(--sage-light);
  color: var(--sage);
}

.card-btn-add:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.card-btn-buy {
  background: var(--dark);
  color: var(--cream);
}

.card-btn-buy:hover {
  background: var(--sage);
  color: var(--white);
}

/* Overriding links inside cards so buttons can be clicked safely */
.product-card a {
  pointer-events: auto;
}

/* Adjust card body to allow docked buttons */
.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-footer-card {
  margin-top: auto;
}

/* Responsive Cart drawer Adjustments */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }
  .toast-container {
    bottom: 5.5rem; right: 1rem; left: 1rem;
  }
  .toast {
    font-size: 0.76rem;
    padding: 0.8rem 1rem;
  }
  .checkout-box, .auth-box {
    padding: 1.8rem 1.4rem;
  }
  .product-card-actions {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}

/* ── GLOBAL PRODUCT CARD LAYOUTS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--cream);
  border: 1px solid transparent;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--sage-light);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px var(--sage-a15);
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--sage-pale), var(--cream-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--dark);
  color: var(--cream);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}
.product-badge.authentic {
  background: var(--sage);
}
.product-badge.options-badge {
  background: var(--dark);
  border: 1px solid var(--cream-a20);
  color: var(--cream);
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.product-title-card {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.product-desc-card {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.product-footer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-deep);
  margin-top: auto;
}

.product-price {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
}

/* Spinning Logo Loader & Blooming Petal Animation */
.logo-loader {
  animation: logo-spin 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  width: 48px;
  height: 48px;
  color: var(--sage);
  display: block;
  margin: 2rem auto;
}

.logo-loader path {
  transform-origin: center;
  animation: petal-breath 3s ease-in-out infinite;
}

.logo-loader path:nth-child(1) { animation-delay: 0s; }
.logo-loader path:nth-child(2) { animation-delay: 0.15s; }
.logo-loader path:nth-child(3) { animation-delay: 0.3s; }
.logo-loader path:nth-child(4) { animation-delay: 0.45s; }
.logo-loader path:nth-child(5) { animation-delay: 0.6s; }

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

@keyframes petal-breath {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Purchase History Styles */
.purchase-history-section {
  text-align: left;
  margin-top: 2rem;
  border-top: 1px solid var(--cream-deep);
  padding-top: 1.5rem;
}

.history-title {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

.purchase-history-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding-right: 0.4rem;
}

/* Custom Scrollbar for history list */
.purchase-history-list::-webkit-scrollbar {
  width: 4px;
}
.purchase-history-list::-webkit-scrollbar-track {
  background: var(--cream);
}
.purchase-history-list::-webkit-scrollbar-thumb {
  background: var(--sage-light);
  border-radius: 2px;
}

.order-history-card {
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.3s;
}

.order-history-card:hover {
  border-color: var(--sage-light);
  background: var(--white);
}

.order-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-hist-id {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.82rem;
}

.order-hist-status {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  font-weight: 700;
}

/* Status colors */
.order-hist-status.processing {
  background: #FFF3CD;
  color: #856404;
}

.order-hist-status.shipped {
  background: #D1ECF1;
  color: #0c5460;
}

.order-hist-status.completed {
  background: #D4EDDA;
  color: #155724;
}

.order-hist-status.cancelled {
  background: #F8D7DA;
  color: #721c24;
}

.order-hist-items {
  font-size: 0.76rem;
  color: var(--text-soft);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

.order-hist-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-soft);
  border-top: 1px dashed var(--sage-a15);
  padding-top: 0.5rem;
  margin-top: 0.2rem;
}

.order-hist-price {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.82rem;
}

.history-empty {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.8rem;
  padding: 2rem 0;
  font-style: italic;
}

/* Prominent Instagram link styling */
.insta-prominent {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--cream) !important;
  background: var(--cream-a08);
  border: 1.5px solid var(--cream) !important;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  text-decoration: none;
  width: auto !important;
  height: auto !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.insta-prominent:hover {
  background: var(--cream) !important;
  color: var(--dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 10px var(--cream-a40);
}
.insta-prominent svg {
  stroke: var(--cream);
  width: 16px;
  height: 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.insta-prominent:hover svg {
  stroke: var(--dark);
  transform: scale(1.2) rotate(-10deg);
}

/* Payment pill COD styling */
.ppill.cod {
  border-color: var(--sage) !important;
  color: var(--sage) !important;
  background: var(--sage-a4) !important;
}

/* ── 4-LAYER CHECKOUT PROGRESS BAR STYLES ── */
.processing-bar-layers {
  width: 100%;
  max-width: 380px;
  margin: 1.5rem auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.layer-step {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0.35;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.layer-step.active {
  opacity: 1;
  transform: scale(1.02);
}

.layer-step.completed {
  opacity: 0.85;
}

.layer-step.failed {
  opacity: 1;
}

.layer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark);
}

.layer-step.active .layer-meta {
  color: var(--sage);
  font-weight: 600;
}

.layer-step.completed .layer-meta {
  color: var(--dark);
}

.layer-step.failed .layer-meta {
  color: #B22222;
  font-weight: 600;
}

.layer-name-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-flower-icon {
  width: 14px;
  height: 14px;
  color: var(--text-soft);
  transition: color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.layer-step.active .step-flower-icon {
  color: var(--sage);
  animation: logo-spin 4s linear infinite;
}

.layer-step.completed .step-flower-icon {
  color: var(--sage);
  transform: rotate(45deg);
}

.layer-step.failed .step-flower-icon {
  color: #B22222;
}

.layer-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--cream-deep);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--sage-a10);
}

.layer-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--sage);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.layer-step.completed .layer-bar-fill {
  background: var(--sage) !important;
  width: 100% !important;
}

.layer-step.active .layer-bar-fill {
  background: linear-gradient(90deg, var(--sage) 0%, var(--gold, #B8975A) 100%);
}

.layer-step.failed .layer-bar-fill {
  background: #B22222 !important;
}

/* ── PURCHASE HISTORY ORDER TRACKING GRAPHIC ── */
.order-tracking-bar {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  position: relative;
  padding: 0 0.5rem;
}

.track-line {
  position: absolute;
  top: 6px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--cream-deep);
  z-index: 1;
}

.track-line-fill {
  height: 100%;
  background: var(--sage);
  transition: width 0.4s ease;
}

.track-line.failed {
  background: #B22222;
}

.track-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.track-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: var(--text-soft);
  width: 25%;
  text-align: center;
}

.track-step.active {
  color: var(--sage);
  font-weight: 600;
}

.track-step.completed {
  color: var(--dark);
}

.track-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 2px solid var(--white);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.track-step.active .track-dot {
  background: var(--white);
  border-color: var(--sage);
  box-shadow: 0 0 0 2px var(--sage-a20);
}

.track-step.completed .track-dot {
  background: var(--sage);
  border-color: var(--sage);
}

.track-step.failed .track-dot {
  background: #B22222;
  border-color: #B22222;
}

.track-step.failed {
  color: #B22222;
  width: 100%;
  font-weight: 600;
}

.track-label {
  font-size: 0.65rem;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 480px) {
  .track-label {
    font-size: 0.55rem;
    word-break: break-word;
  }
  .track-step {
    gap: 0.2rem !important;
  }
}

/* ── PROMINENT ORDER HISTORY STYLES ── */
.order-hist-items-prominent {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  flex: 1;
  padding-right: 0.8rem;
}

.order-hist-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.order-hist-id-secondary {
  font-family: monospace;
  opacity: 0.85;
}

.order-hist-footer-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-soft);
  border-top: 1px dashed var(--sage-a15);
  padding-top: 0.5rem;
  margin-top: 0.6rem;
}

/* ── NAVIGATION DROPDOWN MENU ── */
.nav-links li {
  position: relative;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--dark-a98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cream-a15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  list-style: none;
  padding: 0.8rem 0;
  min-width: 180px;
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--dark-a98);
  border-left: 1px solid var(--cream-a15);
  border-top: 1px solid var(--cream-a15);
}

.dropdown-menu li {
  width: 100%;
  border-bottom: none !important;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-a70) !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
}

.dropdown-menu a:hover {
  color: var(--white) !important;
  background: var(--sage-a15);
  padding-left: 1.4rem !important;
}

/* Hover/Focus states to show menu */
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Mobile responsive menu overrides */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    box-shadow: none;
    padding: 0.4rem 0;
    margin: 0;
    width: 100%;
    display: none;
    flex-direction: column;
  }
  
  .nav-dropdown.active .dropdown-menu {
    display: flex;
  }

  .dropdown-menu::before {
    display: none;
  }

  .dropdown-menu a {
    text-align: center;
    padding: 0.6rem 0;
    font-size: 0.76rem !important;
  }
  
  .dropdown-menu a:hover {
    padding-left: 0 !important;
    background: transparent;
    color: var(--white) !important;
  }
}








/* ── STICKY MOBILE CHECKOUT BAR ── */
.sticky-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 95;
  background: var(--dark-a96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--cream-a15);
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  animation: slideUpSticky 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpSticky {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sticky-checkout-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--cream);
  user-select: none;
}

.sticky-checkout-bag-icon {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-a10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.sticky-checkout-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--sage);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sticky-checkout-details {
  display: flex;
  flex-direction: column;
}

.sticky-checkout-count {
  font-size: 0.7rem;
  color: var(--cream-a75);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.sticky-checkout-total {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.sticky-checkout-btn {
  background: var(--cream);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.3rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sticky-checkout-btn:hover {
  background: var(--white);
  transform: translateY(-1px);
}

.sticky-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}

.sticky-checkout-btn:hover .sticky-arrow {
  transform: translateX(3px);
}

@media (min-width: 901px) {
  .sticky-checkout-bar {
    max-width: 440px;
    left: auto;
    right: 2rem;
    bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--cream-a20);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  }
}


/* ── STOREFRONT TOOLBAR & ACTIVE FILTER CHIPS ── */
.storefront-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-popout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--sage-pale);
  border-radius: 20px;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.filter-popout-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
  transform: translateY(-1px);
}

.toolbar-filter-badge {
  background: var(--sage);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  line-height: 1;
}

.active-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--cream-deep);
  border: 1px solid var(--sage-pale);
  color: var(--dark);
  font-size: 0.72rem;
  border-radius: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.filter-chip:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

.filter-chip-remove {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--text-soft);
}

.clear-all-chips-btn {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-family: inherit;
  transition: color 0.2s;
}

.clear-all-chips-btn:hover {
  color: var(--dark);
}

.toolbar-products-count {
  font-size: 0.78rem;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}

/* ── VERTICAL FILTER POPOUT DRAWER & OVERLAY ── */
.filter-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 24, 38, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filter-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.filter-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100%;
  max-width: 390px;
  background: var(--cream);
  z-index: 251;
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

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

.filter-drawer-header {
  padding: 1.4rem 1.6rem;
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-drawer-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.filter-drawer-title-count {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--sage);
  color: var(--white);
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
}

.filter-drawer-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  width: 34px;
  height: 34px;
}

.filter-drawer-close-btn:hover {
  background: var(--cream-deep);
}

.filter-drawer-body {
  padding: 1.5rem 1.6rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.filter-drawer-body::-webkit-scrollbar {
  width: 5px;
}

.filter-drawer-body::-webkit-scrollbar-thumb {
  background: var(--sage-pale);
  border-radius: 4px;
}

.filter-section-title {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

/* Inside the vertical drawer, filter bars are organized in a 2-column grid */
.filter-drawer .filter-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
  max-width: 100%;
  margin: 0 !important;
}

.filter-drawer .filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.62rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 6px;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 38px;
}

.filter-drawer .filter-btn:hover {
  background: var(--cream-deep);
  border-color: var(--sage-pale);
}

.filter-drawer .filter-btn.active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
  font-weight: 600;
}

.filter-drawer .filter-btn.active::after {
  content: "✓";
  font-size: 0.78rem;
  color: var(--sage-light);
  font-weight: 700;
  margin-left: 0.4rem;
}

.filter-drawer .filter-bar .filter-btn:first-child {
  grid-column: 1 / -1;
  text-align: center;
  justify-content: center;
}

.filter-drawer .filter-bar .filter-btn:first-child.active::after {
  margin-left: 0.5rem;
}

.filter-drawer-footer {
  padding: 1.2rem 1.6rem;
  background: var(--cream);
  border-top: 1px solid var(--cream-deep);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.filter-drawer-clear-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--cream-deep);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}

.filter-drawer-clear-btn:hover {
  background: var(--cream-deep);
  color: var(--dark);
}

.filter-drawer-apply-btn {
  flex: 2;
  padding: 0.85rem 1.2rem;
  background: var(--dark);
  border: 1px solid var(--dark);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
}

.filter-drawer-apply-btn:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
}

@media (max-width: 600px) {
  .storefront-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .toolbar-left {
    width: 100%;
  }
  .filter-popout-btn {
    width: 100%;
    justify-content: center;
  }
  .filter-drawer {
    max-width: 100%;
  }
}
