/**
 * Kitzobd E-Commerce Custom Stylesheet
 */

/* Material Symbols configuration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Base resets & scrollbars */
html, body {
  margin: 0;
  padding: 0;
}
body {
  background-color: #f8f9ff;
  color: #0b1c30;
  overflow-x: clip;
}

/* Hide scrollbars for clean carousel strips */
.no-scrollbar::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations */
@keyframes pulseFast {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}
.animate-pulse-fast {
  animation: pulseFast 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Line clamps */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* WooCommerce compatibility overrides */
.woocommerce .woocommerce-Price-amount {
  font-weight: 700;
  color: #0f172a;
}
.woocommerce div.product .price {
  color: #f97316 !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
}
.woocommerce span.onsale {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  padding: 4px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  min-height: auto !important;
  min-width: auto !important;
}
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt {
  background-color: #f97316 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
  padding: 12px 24px !important;
  transition: all 0.2s ease !important;
}
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce a.button.alt:hover {
  background-color: #ea580c !important;
}

/* Modern Google Stitch Notice & Error Styling */
.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-checkout .woocommerce-error {
  grid-column: 1 / -1 !important;
  grid-column: span 12 / span 12 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 1.5rem !important;
  box-sizing: border-box !important;
}

.woocommerce-error {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-left: 5px solid #ef4444 !important;
  color: #991b1b !important;
  border-radius: 1rem !important;
  padding: 1rem 1.25rem 1rem 2.5rem !important;
  margin-bottom: 1.5rem !important;
  list-style: disc !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
}

.woocommerce-error li {
  margin-bottom: 0.35rem !important;
  font-weight: 600 !important;
  white-space: normal !important;
}

/* Unified Google Stitch Notice Cards (Message, Info, Error) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  max-width: 80rem !important;
  margin: 1.25rem auto !important;
  width: calc(100% - 2rem) !important;
  box-sizing: border-box !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-left-width: 5px !important;
  border-left-style: solid !important;
  border-radius: 1rem !important;
  padding: 1.1rem 1.25rem 1.1rem 4rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  position: relative !important;
  box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.05) !important;
  list-style: none !important;
  line-height: 1.6 !important;
  clear: both !important;
  display: block !important;
}

/* Success Notice (.woocommerce-message) */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  background-color: #f0fdf4 !important; /* emerald-50 */
  border-left-color: #16a34a !important; /* emerald-600 */
  color: #14532d !important;
}
.woocommerce-message::before,
.woocommerce-notices-wrapper .woocommerce-message::before {
  color: #16a34a !important;
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
}
.woocommerce-message .button,
.woocommerce-message .button.wc-forward,
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward {
  float: right !important;
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-radius: 0.5rem !important;
  padding: 0.4rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  margin-top: -0.2rem !important;
  margin-left: 1rem !important;
  transition: all 0.2s ease !important;
}
.woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-message .button:hover {
  background-color: #f97316 !important;
  color: #ffffff !important;
}

/* Info Notice (.woocommerce-info) */
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info {
  background-color: #eff6ff !important; /* blue-50 */
  border-left-color: #2563eb !important; /* blue-600 */
  color: #1e3a8a !important;
}
.woocommerce-info::before,
.woocommerce-notices-wrapper .woocommerce-info::before {
  color: #2563eb !important;
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
}

/* Error Notice (.woocommerce-error) */
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
  background-color: #fef2f2 !important; /* red-50 */
  border-left-color: #dc2626 !important; /* red-600 */
  color: #991b1b !important;
}
.woocommerce-error::before,
.woocommerce-notices-wrapper .woocommerce-error::before {
  color: #dc2626 !important;
  position: absolute !important;
  left: 1.25rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
}
.woocommerce-error li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #991b1b !important;
  font-weight: 600 !important;
}

/* Override default WooCommerce floats on checkout page */
.woocommerce-checkout #order_review,
.woocommerce-checkout .col2-set {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

/* Mobile Safe Areas */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Universal Currency Symbol Bengali Glyph Enforcer (৳) */
.woocommerce-Price-currencySymbol,
.currency-symbol {
  font-family: 'Hind Siliguri', 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 700 !important;
  display: inline !important;
  white-space: nowrap !important;
}

.woocommerce-Price-amount {
  white-space: nowrap !important;
  display: inline-block !important;
}

.kitzobd-cart-total,
.text-price-card,
.font-price-card {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif !important;
}

/* Hide default top coupon toggle/form on checkout (rendered inline inside Order Review) */
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout form.checkout_coupon {
  display: none !important;
}

/* WooCommerce My Account Custom Portal Architecture */
.kitzobd-portal-layout {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  width: 100% !important;
}

.kitzobd-portal-aside {
  width: 100% !important;
}

.kitzobd-portal-main {
  width: 100% !important;
  min-width: 0 !important;
}

.kitzobd-myaccount-wrapper .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.kitzobd-myaccount-wrapper .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.kitzobd-myaccount-wrapper .woocommerce-notices-wrapper {
  width: 100% !important;
  margin-bottom: 1.5rem !important;
}

/* Desktop & Laptop layout (768px and up): Rock-solid side-by-side */
@media (min-width: 768px) {
  .kitzobd-portal-layout {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
  }
  .kitzobd-portal-aside {
    width: 270px !important;
    min-width: 250px !important;
    max-width: 290px !important;
    flex-shrink: 0 !important;
  }
  .kitzobd-portal-main {
    flex: 1 1 0% !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .kitzobd-myaccount-sidebar {
    display: block !important;
  }
  .kitzobd-myaccount-mobile-nav {
    display: none !important;
  }
}

/* Mobile layout (< 768px): Sleek touch pills */
@media (max-width: 767px) {
  .kitzobd-myaccount-sidebar {
    display: none !important;
  }
  .kitzobd-myaccount-mobile-nav {
    display: block !important;
  }
}

/* Suppress WooCommerce Customer Email Verification Prompt on My Account */
.woocommerce-notice.woocommerce-notice--info:has(a.wc-forward),
.woocommerce-info:has(a.wc-forward),
.woocommerce-message:has(a.wc-forward) {
  display: none !important;
}

/* Hide redundant Billing Address on View Order Page (Show Only Shipping/Delivery Address) */
.woocommerce-view-order .woocommerce-column--billing-address,
.woocommerce-view-order .woocommerce-customer-details .col-1,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--addresses .col-1 {
  display: none !important;
}

.woocommerce-view-order .woocommerce-column--shipping-address,
.woocommerce-view-order .woocommerce-customer-details .col-2,
.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns--addresses .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: 480px !important;
}

/* ==========================================================================
   Global Header Display Safeguards
   Guarantees homepage header appears identically on checkout & account pages
   ========================================================================== */
@media (min-width: 768px) {
  header .kitzobd-header-desktop {
    display: block !important;
  }
  header .kitzobd-header-categories {
    display: block !important;
  }
  header .kitzobd-header-mobile,
  header .kitzobd-header-mobile-search {
    display: none !important;
  }
}

@media (max-width: 767px) {
  header .kitzobd-header-desktop,
  header .kitzobd-header-categories {
    display: none !important;
  }
  header .kitzobd-header-mobile {
    display: flex !important;
  }
  header .kitzobd-header-mobile-search {
    display: block !important;
  }
}

/* ==========================================================================
   Product Review Star Rating Picker
   ========================================================================== */
.kitzobd-rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.kitzobd-rating-star:hover {
  transform: scale(1.22);
}
.kitzobd-rating-star:active {
  transform: scale(0.95);
}
.kitzobd-rating-star svg {
  transition: all 0.15s ease-in-out;
}
