/*
Theme Name: Modero Outfit Luxury E-Commerce
Theme URI: https://moderooutfit.com/
Author: Modero Atelier
Author URI: https://moderooutfit.com/
Description: Bespoke luxury e-commerce theme for Modero Outfit. Engineered for high-speed WooCommerce conversions across Pakistan with native Cash on Delivery, WooCommerce payment gateways, editable WordPress homepage architecture, slide-out mini-cart, dynamic variable size/color swatches, and frictionless WhatsApp ordering.
Version: 2.8.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: modero-outfit
Tags: e-commerce, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, woocommerce
*/

/* Base Font & Color Variables */
:root {
  --brand-black: #121214;
  --brand-surface: #FAF9F6;
  --brand-card: #FFFFFF;
  --brand-border: #E8E7E4;
  --brand-muted: #71717A;
  --brand-accent: #E6D5B8;
  --brand-wa: #25D366;
}

html,
body {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background-color: var(--brand-surface) !important;
  color: var(--brand-black) !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden !important;
}

header nav a,
#mobile-menu-drawer nav a {
  color: #404040 !important;
  text-decoration: none !important;
}

header nav a:hover,
#mobile-menu-drawer nav a:hover {
  color: #121214 !important;
}

.serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Luxury Smooth Animations */
.page-view {
  animation: fadeInView 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.lux-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.lux-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.07);
  border-color: #121214;
}

.lux-img-box {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.lux-img-box img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lux-card:hover .lux-img-box img {
  transform: scale(1.05);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #FAF9F6; }
::-webkit-scrollbar-thumb { background: #D4D4D8; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #A1A1AA; }

/* ========================================== */
/* 🏷️ LOGO RESTRICTIONS & BRAND FIX           */
/* ========================================== */
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  max-height: 44px !important;
  overflow: hidden !important;
}

.custom-logo,
header img.custom-logo,
header .custom-logo-link img,
header a img {
  max-height: 42px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ========================================== */
/* 📄 WOOCOMMERCE PAGINATION (FLEX ROW PILLS) */
/* ========================================== */
.woocommerce-pagination,
.page-numbers-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 2.5rem 0 1.5rem !important;
  width: 100% !important;
  clear: both !important;
}

.woocommerce-pagination ul,
ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-pagination ul li,
ul.page-numbers li {
  display: inline-flex !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
ul.page-numbers li a,
ul.page-numbers li span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.25rem !important;
  height: 2.25rem !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  font-family: monospace, sans-serif !important;
  border-radius: 0.75rem !important;
  border: 1px solid #E8E7E4 !important;
  background-color: #FFFFFF !important;
  color: #121214 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce-pagination ul li span.current,
ul.page-numbers li span.current {
  background-color: #121214 !important;
  color: #FFFFFF !important;
  border-color: #121214 !important;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.15) !important;
}

.woocommerce-pagination ul li a:hover,
ul.page-numbers li a:hover {
  border-color: #121214 !important;
  background-color: #F4F3F0 !important;
}

/* ========================================== */
/* 🛒 WOOCOMMERCE FORM & BUY BOX LUXURY STYLES*/
/* ========================================== */
.pdp-woocommerce-form-wrapper form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 1.25rem 0 !important;
}

/* Quantity Box */
.pdp-woocommerce-form-wrapper form.cart .quantity,
.woocommerce .quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid #E8E7E4 !important;
  border-radius: 0.75rem !important;
  background-color: #FAF9F6 !important;
  height: 3rem !important;
  overflow: hidden !important;
}

.pdp-woocommerce-form-wrapper form.cart .quantity input.qty,
.woocommerce .quantity input.qty {
  width: 3.5rem !important;
  height: 100% !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 0.875rem !important;
  border: none !important;
  background: transparent !important;
  color: #121214 !important;
  outline: none !important;
}

/* Add to Cart Luxury Black Button */
.pdp-woocommerce-form-wrapper form.cart .single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce button.button {
  flex: 1 !important;
  min-height: 3rem !important;
  background-color: #121214 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border-radius: 0.75rem !important;
  border: none !important;
  padding: 0.85rem 1.75rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
}

.pdp-woocommerce-form-wrapper form.cart .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.woocommerce button.button:hover {
  background-color: #27272A !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18) !important;
}

/* Variations Table */
table.variations {
  width: 100% !important;
  margin-bottom: 1.25rem !important;
  border-collapse: separate !important;
  border-spacing: 0 0.75rem !important;
}

table.variations th.label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #121214 !important;
  padding-right: 1rem !important;
  vertical-align: middle !important;
  width: 25% !important;
  text-align: left !important;
}

table.variations td.value {
  vertical-align: middle !important;
  position: relative !important;
}

table.variations select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border: 1.5px solid #E8E7E4 !important;
  border-radius: 0.75rem !important;
  background-color: #FFFFFF !important;
  color: #121214 !important;
  outline: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease !important;
}

table.variations select:focus {
  border-color: #121214 !important;
}

.reset_variations {
  display: inline-block !important;
  margin-top: 0.35rem !important;
  font-size: 0.7rem !important;
  color: #71717A !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

.single_variation_wrap {
  width: 100% !important;
  margin-top: 0.5rem !important;
}

.woocommerce-variation-price {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #121214 !important;
  margin-bottom: 0.75rem !important;
}

.woocommerce-variation-availability {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  margin-bottom: 0.5rem !important;
}

/* ========================================== */
/* 💳 WOOCOMMERCE CHECKOUT & CART STYLES      */
/* ========================================== */
.woocommerce-checkout .woocommerce-NoticeGroup,
.woocommerce-NoticeGroup {
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  padding: 1rem 1.25rem !important;
  border-radius: 1rem !important;
  font-size: 0.8rem !important;
  margin-bottom: 1.5rem !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
}

.woocommerce-error {
  background-color: #FEF2F2 !important;
  border: 1px solid #FCA5A5 !important;
  color: #991B1B !important;
}

.woocommerce-message {
  background-color: #ECFDF5 !important;
  border: 1px solid #6EE7B7 !important;
  color: #065F46 !important;
}

.woocommerce-info {
  background-color: #EFF6FF !important;
  border: 1px solid #93C5FD !important;
  color: #1E40AF !important;
}

/* Form Fields */
.woocommerce form .form-row {
  margin-bottom: 1.25rem !important;
}

.woocommerce form .form-row label {
  display: block !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #27272A !important;
  margin-bottom: 0.35rem !important;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.85rem !important;
  border: 1.5px solid #E8E7E4 !important;
  border-radius: 0.75rem !important;
  background-color: #FAF9F6 !important;
  color: #121214 !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: #121214 !important;
  background-color: #FFFFFF !important;
}

/* Checkout Review Table & Payment Box */
#order_review_heading {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #121214 !important;
  margin: 1.5rem 0 1rem !important;
}

table.woocommerce-checkout-review-order-table,
table.shop_table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 1.5rem !important;
  font-size: 0.8rem !important;
}

table.shop_table th {
  padding: 0.75rem 1rem !important;
  background-color: #FAF9F6 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #71717A !important;
  border-bottom: 1px solid #E8E7E4 !important;
  text-align: left !important;
}

table.shop_table td {
  padding: 1rem !important;
  border-bottom: 1px solid #E8E7E4 !important;
  vertical-align: middle !important;
}

/* Native WooCommerce Payment Gateways Compatibility (COD, BACS Bank Transfer, etc.) */
.woocommerce-checkout #payment input[type="radio"],
.wc-block-checkout input[type="radio"] {
  -webkit-appearance: radio !important;
  appearance: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 0.5rem 0 0 !important;
  cursor: pointer !important;
}

.woocommerce-checkout #payment input[type="checkbox"],
.wc-block-checkout input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  vertical-align: middle !important;
  cursor: pointer !important;
}

.woocommerce-checkout #payment ul.payment_methods li label {
  display: inline !important;
  cursor: pointer !important;
}

/* ========================================================= */
/* 🛡️ ULTRA-HIGH SPECIFICITY ADD TO CART & QUANTITY FIX      */
/* ========================================================= */
form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  margin: 1.25rem 0 !important;
  width: 100% !important;
}

/* Force Add to Cart button to always be a prominent black luxury button */
form.cart button.single_add_to_cart_button,
button.single_add_to_cart_button.button.alt,
button.single_add_to_cart_button,
.woocommerce button.button.alt,
.woocommerce button.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  flex: 1 !important;
  min-width: 180px !important;
  height: 3.25rem !important;
  background-color: #121214 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  border-radius: 0.75rem !important;
  border: 2px solid #121214 !important;
  padding: 0.75rem 1.75rem !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

form.cart button.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
  background-color: #27272A !important;
  border-color: #27272A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
  color: #FFFFFF !important;
}

/* Force Quantity Box to be clearly visible */
.quantity.modero-qty-stepper,
.quantity {
  display: inline-flex !important;
  align-items: center !important;
  border: 2px solid #D4D4D8 !important;
  border-radius: 0.75rem !important;
  background-color: #FFFFFF !important;
  height: 3.25rem !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.quantity input.qty {
  width: 3.25rem !important;
  height: 100% !important;
  text-align: center !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  border: none !important;
  background-color: #FFFFFF !important;
  color: #121214 !important;
  outline: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modero-qty-btn {
  width: 2.5rem !important;
  height: 100% !important;
  background-color: #F4F4F5 !important;
  color: #121214 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

.modero-qty-btn:hover {
  background-color: #E4E4E7 !important;
}

/* ========================================================= */
/* 🛡️ PERMANENT CONTRAST FIX FOR PDP BUTTONS & SWATCHES       */
/* ========================================================= */
/* Add to Cart Button - ALWAYS Solid Deep Black with White Text */
#pdp-add-to-cart-btn,
button.single_add_to_cart_button,
.single_add_to_cart_button.button.alt,
.single_add_to_cart_button {
  background-color: #121214 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: 2px solid #121214 !important;
  border-radius: 0.75rem !important;
  font-weight: 800 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#pdp-add-to-cart-btn span,
button.single_add_to_cart_button span,
.single_add_to_cart_button span {
  color: #FFFFFF !important;
  opacity: 1 !important;
  display: inline-block !important;
}

#pdp-add-to-cart-btn svg,
button.single_add_to_cart_button svg,
.single_add_to_cart_button svg {
  stroke: #FFFFFF !important;
  color: #FFFFFF !important;
}

#pdp-add-to-cart-btn:hover,
button.single_add_to_cart_button:hover {
  background-color: #27272A !important;
  border-color: #27272A !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

/* Swatch Size Buttons - Inactive (White with Dark Border & Black Text) */
.pdp-swatch-btn {
  background-color: #FFFFFF !important;
  color: #121214 !important;
  border: 1.5px solid #D4D4D8 !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  transition: all 0.2s ease !important;
}

.pdp-swatch-btn:hover {
  border-color: #121214 !important;
  color: #121214 !important;
}

/* Swatch Size Button - ACTIVE (Solid Deep Black with Crisp White Text) */
.pdp-swatch-btn.active-swatch,
.pdp-swatch-btn[aria-pressed="true"],
.active-swatch {
  background-color: #121214 !important;
  color: #FFFFFF !important;
  border: 2px solid #121214 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   PROMOTIONAL SPLIT BANNERS (HOMEPAGE)
   Engineered for Pixel-Perfect Mobile & Desktop Display
   ========================================================================== */
.promo-banner-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-radius: 1.5rem !important;
  overflow: hidden !important;
  position: relative !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.promo-banner-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  z-index: 10 !important;
}

.promo-banner-content h3 {
  font-family: 'Playfair Display', serif !important;
  margin: 0.35rem 0 0.5rem 0 !important;
  color: #121214 !important;
}

.promo-banner-content a,
.promo-banner-content button {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Desktop Defaults */
@media (min-width: 640px) {
  .promo-banner-card {
    padding: 2rem !important;
  }
  .promo-banner-content h3 {
    font-size: 1.75rem !important;
    line-height: 1.25 !important;
  }
  .promo-banner-card img {
    width: 12rem !important;
    height: 14rem !important;
    object-fit: cover !important;
    border-radius: 1rem !important;
    flex-shrink: 0 !important;
  }
}

/* Mobile Devices (< 640px) - Fixes Text Squishing & Two-Line Button Wrap */
@media (max-width: 639px) {
  .promo-banner-card {
    padding: 1.15rem 1rem !important;
    min-height: 10rem !important;
    margin-bottom: 0.75rem !important;
  }
  .promo-banner-content {
    padding-right: 0.65rem !important;
    max-width: none !important;
  }
  .promo-banner-content span.uppercase,
  .promo-banner-content span {
    font-size: 0.65rem !important;
    letter-spacing: 0.15em !important;
    line-height: 1.2 !important;
  }
  .promo-banner-card h3 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em !important;
    margin: 0.25rem 0 0.5rem 0 !important;
  }
  .promo-banner-content a,
  .promo-banner-content button {
    padding: 0.5rem 0.95rem !important;
    font-size: 0.75rem !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
  }
  .promo-banner-card img {
    width: 7.25rem !important;
    height: 9.5rem !important;
    max-width: 42% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border-radius: 0.875rem !important;
  }
}

/* Extra Small Phones (< 380px) */
@media (max-width: 379px) {
  .promo-banner-card {
    padding: 0.85rem 0.75rem !important;
  }
  .promo-banner-content h3 {
    font-size: 1.05rem !important;
  }
  .promo-banner-content a,
  .promo-banner-content button {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.7rem !important;
  }
  .promo-banner-card img {
    width: 6.25rem !important;
    height: 8.5rem !important;
  }
}

/* Ensure WordPress wp_nav_menu <li> items and custom logo never break header layout */
header nav ul,
header nav li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.custom-logo-link {
  flex-shrink: 0 !important;
}
