/* ==========================================================================
   CHOICEWOMEN REVERSE-ENGINEERED DESIGN SYSTEM
   - Exact Cards (4-col, portrait, image carousel, bold title, compare/sale price, active swatch underline)
   - Product Selection Section (marquee ticker, tabs, selection, see-all 'TOUT' button)
   - EasySell Cash-on-Delivery (COD) Checkout Modal
   ========================================================================== */

/* --- 1. Announcement Marquee Ticker --- */
.choice-ticker {
  background-color: #f7f7f7;
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;
  height: 38px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  user-select: none;
}

.choice-ticker__track {
  display: flex;
  white-space: nowrap;
  animation: choiceMarquee 28s linear infinite;
  will-change: transform;
}

.choice-ticker__track:hover {
  animation-play-state: paused;
}

.choice-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.choice-ticker__separator {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #999;
}

@keyframes choiceMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- 2. Product Selection Section --- */
.choice-product-section {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 40px 16px 70px 16px;
  box-sizing: border-box;
}

.choice-section-header {
  text-align: center;
  margin-bottom: 24px;
}

.choice-section-title {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
  margin: 0 0 6px 0;
}

.choice-section-subtitle {
  font-size: 13px;
  color: #666;
  margin: 0;
  font-weight: 400;
}

/* Filter / Selection Tabs */
.choice-tabs-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px auto 30px auto;
  max-width: 1100px;
}

.choice-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background-color: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 24px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #222222;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.choice-filter-tab:hover {
  border-color: #000;
  color: #000;
  background-color: #fafafa;
}

.choice-filter-tab.is-active {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.choice-filter-tab .tab-count {
  font-size: 10px;
  opacity: 0.75;
}

/* --- 3. Choice 4-Column Product Grid --- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 6px;
  width: 100%;
}

@media (min-width: 768px) {
  .choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 6px;
  }
}

@media (min-width: 1080px) {
  .choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 6px;
  }
}

/* --- 4. Choice Product Card --- */
.choice-card {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  background: #ffffff;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

.choice-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #f3f3f4;
}

.choice-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
  user-select: none;
}

.choice-card:hover .choice-card__img {
  transform: scale(1.02);
}

/* Left & Right Arrows on Hover */
.choice-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 38px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: #111;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  padding: 0;
}

.choice-card:hover .choice-card__nav,
.choice-card:focus-within .choice-card__nav {
  opacity: 1;
}

@media (hover: none), (max-width: 768px) {
  .choice-card__nav {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.95);
  }
}

.choice-card__nav:hover {
  background: #ffffff;
  color: #000;
}

.choice-card__nav--prev {
  left: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.choice-card__nav--next {
  right: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Quick Buy / Action Pill */
.choice-card__quick-add {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 7px 16px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  z-index: 6;
}

.choice-card:hover .choice-card__quick-add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.choice-card__quick-add:hover {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

/* Sale Badge */
.choice-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #b91c1c;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  z-index: 4;
}

/* Card Content Details */
.choice-card__info {
  padding: 8px 2px 10px 2px;
  text-align: left;
}

.choice-card__title {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #000000;
  margin: 0 0 3px 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.choice-card__title:hover {
  color: #444;
}

/* Price Row */
.choice-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.choice-card__price-compare {
  font-size: 12px;
  color: #777777;
  text-decoration: line-through;
  font-weight: 400;
}

.choice-card__price-sale {
  font-size: 13px;
  color: #b91c1c;
  font-weight: 700;
}

.choice-card__price-regular {
  font-size: 13px;
  color: #000000;
  font-weight: 700;
}

/* Color Swatches (Choice Exact Implementation) */
.choice-card__swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
  min-height: 20px;
}

.choice-swatch {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.2);
  display: inline-block;
  box-sizing: border-box;
  transition: transform 0.15s ease;
}

.choice-swatch:hover {
  transform: scale(1.15);
}

/* Exact Choice signature underline for active swatch */
.choice-swatch.is-active::after {
  content: "";
  width: 100%;
  height: 1.5px;
  background-color: #000000;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.choice-swatch-more {
  font-size: 11px;
  color: #666;
  font-weight: 600;
  margin-left: 2px;
  cursor: pointer;
}

/* --- 5. "TOUT" / See All Button --- */
.choice-tout-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.choice-tout-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 13px 44px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.choice-tout-btn:hover {
  background: #262626;
  transform: translateY(-1px);
}

/* --- 6. Choice EasySell COD Checkout Modal --- */
.choice-cod-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.choice-cod-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.choice-cod-modal {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.choice-cod-overlay.is-active .choice-cod-modal {
  transform: translateY(0) scale(1);
}

/* Header Notice Bar */
.choice-cod-header {
  padding: 16px 42px 14px 20px;
  background: #ffffff;
  border-bottom: 1px solid #ededed;
  position: sticky;
  top: 0;
  z-index: 10;
}

.choice-cod-header p {
  margin: 0;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
  text-align: left;
}

.choice-cod-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.choice-cod-close:hover {
  background: #e0e0e0;
  color: #000;
}

/* Modal Body */
.choice-cod-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Product Row in Checkout */
.choice-cod-product-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #efefef;
}

.choice-cod-thumb-wrap {
  position: relative;
  width: 52px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: visible;
}

.choice-cod-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.choice-cod-qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #555555;
  color: #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.choice-cod-product-details {
  flex: 1;
  min-width: 0;
}

.choice-cod-product-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.choice-cod-product-variant {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.choice-cod-product-price {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  text-align: right;
  white-space: nowrap;
}

/* Bundle Offers (Choice EasySell Multi-Pack Discounts) */
.choice-cod-bundle-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-cod-bundle-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.choice-bundle-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-bundle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1.5px solid #dcdcdc;
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-bundle-card:hover {
  border-color: #999;
}

.choice-bundle-card.is-active {
  border-color: #000000;
  background: #f7f7f7;
}

.choice-bundle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice-bundle-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #999;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.choice-bundle-card.is-active .choice-bundle-radio {
  border-color: #000;
}

.choice-bundle-card.is-active .choice-bundle-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
}

.choice-bundle-name {
  font-size: 13px;
  font-weight: 700;
  color: #111;
}

.choice-bundle-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #ffffff;
  background: linear-gradient(270deg, #ff9f50 0%, #ff0844 100%);
  margin-left: 6px;
}

.choice-bundle-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #111;
  white-space: nowrap;
}

/* Order Summary Box */
.choice-cod-summary-box {
  background: #f9f9fa;
  border-radius: 6px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.choice-cod-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #444;
}

.choice-cod-summary-row.total-row {
  border-top: 1px solid #e5e5e5;
  padding-top: 8px;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: #000;
}

/* Coupon Row */
.choice-cod-coupon-wrap {
  display: flex;
  gap: 8px;
}

.choice-cod-coupon-input {
  flex: 1;
  padding: 9px 12px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.choice-cod-coupon-input:focus {
  border-color: #111;
}

.choice-cod-coupon-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.choice-cod-coupon-btn:hover {
  background: #333;
}

/* Marketing opt-in */
.choice-cod-optin {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.choice-cod-optin input {
  margin-top: 2px;
  accent-color: #000;
}

/* Form Fields with Icons */
.choice-cod-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-cod-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.choice-cod-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #333;
}

.choice-cod-field-label span.req {
  color: #e02424;
}

.choice-cod-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.choice-cod-input-icon {
  position: absolute;
  left: 12px;
  color: #777;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-cod-input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13.5px;
  color: #111;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.choice-cod-input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.choice-cod-input::placeholder {
  color: #999;
}

select.choice-cod-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

/* The Green CTA Button */
.choice-cod-submit-btn {
  width: 100%;
  background: #2ea804;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 15px 20px;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(46, 168, 4, 0.3);
}

.choice-cod-submit-btn:hover {
  background: #268f03;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 168, 4, 0.4);
}

.choice-cod-submit-btn:active {
  transform: translateY(0);
}

/* Guarantees & Trust Badges */
.choice-cod-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
}

.choice-cod-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  font-size: 11px;
  color: #555;
  line-height: 1.25;
}

.choice-cod-badge-item svg {
  color: #2ea804;
}

/* Success View in Modal */
.choice-cod-success {
  padding: 36px 20px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.choice-cod-success.is-visible {
  display: flex;
}

.choice-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f7e5;
  color: #2ea804;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.choice-success-title {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.choice-success-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  max-width: 420px;
  margin: 0;
}

.choice-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.choice-whatsapp-btn:hover {
  background: #1ebc59;
}

/* Responsive adjust */
@media (max-width: 600px) {
  .choice-product-section {
    padding: 24px 8px 50px 8px;
  }
  .choice-card__title {
    font-size: 12px;
  }
  .choice-card__price-row {
    font-size: 12px;
  }
  .choice-cod-modal {
    max-height: 96vh;
    border-radius: 8px;
  }
  .choice-cod-header p {
    font-size: 13px;
  }
  .choice-cod-badges {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: left;
  }
  .choice-cod-badge-item {
    flex-direction: row;
    text-align: left;
  }
}
