/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   BLU PAPS JOURNEY - DESIGN SYSTEM & STYLING
   ========================================================================== */

:root {
  /* HSL Brand Color Palette */
  --primary-navy: 208, 42%, 17%;     /* #192a3d - Deep spiritual night sky */
  --slate-blue: 212, 28%, 31%;       /* #3A4F66 - Soft deep slate */
  --brand-blue: 219, 96%, 57%;       /* #2872fa - Vibrant azure accent */
  --rose-pink: 38, 65%, 62%;         /* #d49d55 - Beautiful warm spiritual gold/bronze */
  --warm-gold: 44, 100%, 49%;        /* #fcb900 - Warm celestial gold glow */
  --off-white: 210, 20%, 98%;        /* #FAFBFC - Background white */
  --white: 0, 0%, 100%;              /* #ffffff */
  
  /* Text and Borders HSL */
  --text-dark: 208, 40%, 10%;        /* Deep dark blue-gray text */
  --text-medium: 212, 20%, 40%;      /* Medium slate gray text */
  --text-light: 210, 15%, 85%;       /* Light gray text */
  --border-light: 210, 14%, 88%;     /* Soft gray borders */
  --border-dark: 208, 20%, 30%;      /* Dark slate borders */

  /* Fonts */
  --font-heading: 'Cormorant Garamond', serif;
  --font-cursive: 'Dancing Script', cursive;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--off-white));
  color: hsl(var(--text-dark));
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: hsl(var(--primary-navy));
  line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.3rem; }
h3 { font-size: 1.8rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: hsl(var(--off-white));
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--slate-blue), 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary-navy), 0.5);
}

/* ==========================================================================
   Utility Classes & Design Tokens
   ========================================================================== */

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.text-cursive {
  font-family: var(--font-cursive);
}

.text-brand-gradient {
  background: linear-gradient(135deg, hsl(var(--primary-navy)) 0%, hsl(var(--brand-blue)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.bg-dark-sky {
  background: linear-gradient(135deg, hsl(var(--primary-navy)) 0%, hsl(var(--slate-blue)) 100%);
  color: hsl(var(--white));
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: hsl(var(--primary-navy));
  color: hsl(var(--white));
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: hsl(var(--brand-blue));
  box-shadow: 0 10px 15px -3px rgba(40, 114, 250, 0.3), 0 4px 6px -2px rgba(40, 114, 250, 0.2);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background-color: transparent;
  color: hsl(var(--primary-navy));
  font-weight: 500;
  border-radius: 4px;
  border: 2px solid hsl(var(--primary-navy));
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: hsl(var(--primary-navy));
  color: hsl(var(--white));
  transform: translateY(-2px);
}

.btn-disabled {
  background-color: hsl(var(--text-light));
  color: hsl(var(--text-medium));
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* Float Label Form Styling */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border-light));
  background-color: hsl(var(--white));
  border-radius: 4px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: hsl(var(--brand-blue));
  box-shadow: 0 0 0 3px rgba(40, 114, 250, 0.1);
}

.form-group label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: hsl(var(--text-medium));
  pointer-events: none;
  transition: var(--transition-fast);
  transform-origin: 0 0;
  background-color: transparent;
  padding: 0 4px;
}

.form-group.focused label,
.form-group.has-value label {
  transform: translateY(-1.4rem) scale(0.8);
  color: hsl(var(--brand-blue));
  background-color: hsl(var(--white));
  font-weight: 600;
}

.form-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Testimonials Carousel */
.review-slider-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.review-track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card {
  flex: 0 0 calc(33.333% - 1.333rem);
  min-width: 280px;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 991px) {
  .review-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 680px) {
  .review-card {
    flex: 0 0 100%;
  }
}

/* Interactive Mockups */
.credit-card-mock {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 12px;
  background: linear-gradient(135deg, hsl(var(--primary-navy)) 0%, hsl(var(--slate-blue)) 100%);
  color: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.credit-card-mock::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(40, 114, 250, 0.2); }
  50% { box-shadow: 0 0 35px rgba(40, 114, 250, 0.45); }
}

.success-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Utility Animations */
.fade-in {
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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


/* Testimonials Review Slider styles */
.review-slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.review-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.review-slide-item {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 1rem;
}
.dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: hsl(var(--border-light));
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}
.dot-indicator.active {
  background-color: hsl(var(--brand-blue));
  transform: scale(1.2);
}

/* Custom WooCommerce Product Page Styling Injection */
/* 
 * Custom WooCommerce Product Page Styling
 * Add this CSS to WordPress: Appearance > Customize > Additional CSS
 * Or add to your child theme's style.css
 */

/* ============================================
   GLOBAL TYPOGRAPHY & COLORS
   ============================================ */
:root {
  --bp-navy: #192a3d;
  --bp-blue: #2d6a9f;
  --bp-gold: #d49d55;
  --bp-off-white: #faf9f7;
  --bp-border: #e8e4df;
  --bp-text: #4a5568;
  --bp-radius: 10px;
}

/* Product page body */
.single-product .site-content {
  background-color: var(--bp-off-white) !important;
}

/* ============================================
   PRODUCT TITLE
   ============================================ */
.single-product .product_title,
.single-product h1.product_title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  color: var(--bp-navy) !important;
  letter-spacing: -0.5px;
  line-height: 1.2 !important;
  margin-bottom: 1rem !important;
}

/* ============================================
   PRODUCT PRICE
   ============================================ */
.single-product .price,
.single-product p.price {
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  color: var(--bp-blue) !important;
  margin-bottom: 1.5rem !important;
}

.single-product .price del {
  color: #999 !important;
  font-size: 1.2rem !important;
}

.single-product .price ins {
  text-decoration: none !important;
  color: var(--bp-blue) !important;
}

.single-product .woocommerce-price-suffix {
  font-size: 0.85rem !important;
  color: var(--bp-text) !important;
  font-weight: 400 !important;
}

/* ============================================
   PRODUCT IMAGE / GALLERY
   ============================================ */
.single-product .woocommerce-product-gallery {
  background: #fff !important;
  border-radius: var(--bp-radius) !important;
  border: 1px solid var(--bp-border) !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(25, 42, 61, 0.06) !important;
  padding: 1.5rem !important;
}

.single-product .woocommerce-product-gallery img {
  border-radius: 6px !important;
}

/* ============================================
   PRODUCT SUMMARY / INFO
   ============================================ */
.single-product .summary.entry-summary {
  padding: 1rem 0 !important;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-product-details__short-description p {
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: var(--bp-text) !important;
  margin-bottom: 1.5rem !important;
}

/* ============================================
   ADD TO CART BUTTON
   ============================================ */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button {
  background: var(--bp-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.9rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
  text-transform: none !important;
  box-shadow: 0 4px 12px rgba(25, 42, 61, 0.15) !important;
}

.single-product .single_add_to_cart_button:hover {
  background: var(--bp-blue) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(45, 106, 159, 0.25) !important;
}

/* Quantity input */
.single-product .quantity .qty,
.single-product input.qty {
  border: 1px solid var(--bp-border) !important;
  border-radius: 6px !important;
  padding: 0.7rem 0.5rem !important;
  font-size: 1rem !important;
  width: 70px !important;
  text-align: center !important;
  color: var(--bp-navy) !important;
  font-weight: 600 !important;
}

/* ============================================
   PRODUCT TABS (Description, Reviews, etc.)
   ============================================ */
.single-product .woocommerce-tabs {
  margin-top: 3rem !important;
}

.single-product .woocommerce-tabs ul.tabs {
  border-bottom: 2px solid var(--bp-border) !important;
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  list-style: none !important;
}

.single-product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  color: var(--bp-text) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  border-bottom: 3px solid transparent !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
  color: var(--bp-navy) !important;
  border-bottom-color: var(--bp-gold) !important;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
  color: var(--bp-navy) !important;
}

.single-product .woocommerce-tabs .panel {
  padding: 1.5rem !important;
  background: #fff !important;
  border-radius: var(--bp-radius) !important;
  border: 1px solid var(--bp-border) !important;
}

.single-product .woocommerce-tabs .panel h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.5rem !important;
  color: var(--bp-navy) !important;
  font-weight: 700 !important;
  margin-bottom: 1rem !important;
}

.single-product .woocommerce-tabs .panel p {
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
  color: var(--bp-text) !important;
}

/* ============================================
   PRODUCT META (SKU, Categories, Tags)
   ============================================ */
.single-product .product_meta {
  border-top: 1px solid var(--bp-border) !important;
  padding-top: 1.25rem !important;
  margin-top: 1.5rem !important;
  font-size: 0.85rem !important;
  color: var(--bp-text) !important;
}

.single-product .product_meta a {
  color: var(--bp-blue) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.single-product .product_meta a:hover {
  color: var(--bp-gold) !important;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.single-product .related.products > h2,
.single-product section.related > h2 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.8rem !important;
  color: var(--bp-navy) !important;
  font-weight: 700 !important;
  margin-bottom: 1.5rem !important;
}

.single-product .related .product,
.single-product .related ul.products li.product {
  background: #fff !important;
  border-radius: var(--bp-radius) !important;
  border: 1px solid var(--bp-border) !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(25, 42, 61, 0.04) !important;
}

.single-product .related .product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(25, 42, 61, 0.1) !important;
}

.single-product .related .product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  color: var(--bp-navy) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem 0.25rem !important;
}

.single-product .related .product .price {
  font-size: 1.1rem !important;
  padding: 0 1rem 0.75rem !important;
}

.single-product .related .product .button,
.single-product .related .product a.add_to_cart_button {
  background: var(--bp-navy) !important;
  color: #fff !important;
  border-radius: 0 0 var(--bp-radius) var(--bp-radius) !important;
  padding: 0.7rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  border: none !important;
  width: 100% !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
}

.single-product .related .product .button:hover {
  background: var(--bp-blue) !important;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.single-product .woocommerce-breadcrumb {
  font-size: 0.8rem !important;
  color: var(--bp-text) !important;
  margin-bottom: 1.5rem !important;
}

.single-product .woocommerce-breadcrumb a {
  color: var(--bp-blue) !important;
  text-decoration: none !important;
}

/* ============================================
   VARIATION / OPTIONS SELECTS
   ============================================ */
.single-product .variations td select,
.single-product table.variations select {
  border: 1px solid var(--bp-border) !important;
  border-radius: 6px !important;
  padding: 0.65rem 0.75rem !important;
  font-size: 0.9rem !important;
  color: var(--bp-navy) !important;
  background-color: #fff !important;
  cursor: pointer !important;
}

.single-product .variations td label,
.single-product table.variations label {
  font-weight: 600 !important;
  color: var(--bp-navy) !important;
  font-size: 0.9rem !important;
}

/* ============================================
   ON SALE BADGE
   ============================================ */
.single-product .onsale {
  background: #ef4444 !important;
  color: #fff !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 0.3rem 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* ============================================
   SHOP / ARCHIVE PAGES
   ============================================ */
.woocommerce ul.products li.product {
  background: #fff !important;
  border-radius: var(--bp-radius) !important;
  border: 1px solid var(--bp-border) !important;
  overflow: hidden !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(25, 42, 61, 0.04) !important;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 30px rgba(25, 42, 61, 0.1) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.1rem !important;
  color: var(--bp-navy) !important;
  font-weight: 600 !important;
  padding: 0.75rem 1rem 0.25rem !important;
}

.woocommerce ul.products li.product .price {
  color: var(--bp-blue) !important;
  font-weight: 700 !important;
  padding: 0 1rem 0.75rem !important;
}

.woocommerce ul.products li.product .button {
  background: var(--bp-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 0.6rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: none !important;
  margin: 0.5rem 1rem 1rem !important;
  transition: all 0.25s ease !important;
}

.woocommerce ul.products li.product .button:hover {
  background: var(--bp-blue) !important;
}

/* ============================================
   PREMIUM CART & CHECKOUT STYLING (Gutenberg & Classic)
   ============================================ */

/* Main Layout & Spacing */
.entry-content .wc-block-cart,
.entry-content .wc-block-checkout,
.wc-block-cart,
.wc-block-checkout {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem !important;
}

/* Framed Cart & Checkout Cards */
.wc-block-cart-items,
.woocommerce-cart-form,
.wc-block-components-checkout-step,
.woocommerce-checkout-review-order {
  background: #ffffff !important;
  border: 1px solid var(--bp-border, #e8e4df) !important;
  border-radius: 12px !important;
  padding: 2.5rem !important;
  box-shadow: 0 10px 30px rgba(25, 42, 61, 0.05) !important;
  margin-bottom: 2.5rem !important;
}

/* Align quantity selector and trash bin side-by-side */
.wc-block-cart-item__quantity,
.wc-block-cart-item__actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25rem !important;
  margin-top: 0.75rem !important;
  flex-wrap: nowrap !important;
}

/* Quantity input styling adjustments */
.wc-block-components-quantity-selector {
  border: 1px solid var(--bp-border, #e8e4df) !important;
  border-radius: 6px !important;
  padding: 0.15rem 0.5rem !important;
  background: #fff !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-block-components-quantity-selector__input {
  width: 50px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: var(--bp-navy, #192a3d) !important;
}

/* Trash remove button */
.wc-block-cart-item__remove-link {
  margin: 0 !important;
  padding: 0.5rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #e11d48 !important; /* Rose Red */
  border-radius: 50% !important;
  background-color: rgba(225, 29, 72, 0.05) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.wc-block-cart-item__remove-link:hover {
  color: #ffffff !important;
  background-color: #e11d48 !important;
  transform: scale(1.1) !important;
}

/* Order Summary Sidebar styling */
.wc-block-components-sidebar {
  background-color: #faf9f7 !important;
  border: 1px solid var(--bp-border, #e8e4df) !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 30px rgba(25, 42, 61, 0.03) !important;
}

/* Fix product title sizes in summaries */
.wc-block-components-product-summary__name,
.wc-block-components-order-summary-item__title,
.woocommerce-checkout-review-order-table .product-name {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: var(--bp-navy, #192a3d) !important;
}

/* Classic WooCommerce Shop Table styling */
.woocommerce table.shop_table {
  border: 1px solid var(--bp-border, #e8e4df) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(25, 42, 61, 0.05) !important;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  padding: 1.25rem !important;
  border-top: 1px solid var(--bp-border, #e8e4df) !important;
  vertical-align: middle !important;
}

.woocommerce table.shop_table th {
  background-color: #faf9f7 !important;
  border-top: none !important;
  font-weight: 600 !important;
  color: var(--bp-navy, #192a3d) !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px !important;
}

/* ============================================
   DYNAMIC FADE-IN MOUNTING ANIMATIONS
   ============================================ */
.single-product div.product,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-cart-form,
.wc-block-cart,
.wc-block-checkout {
  animation: bpThemeFadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

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

/* ============================================
   TWENTY TWENTY-FOUR WOOCOMMERCE WIDTH OVERRIDES
   ============================================ */
/* Force WooCommerce containers to be wide (1200px) instead of Twenty Twenty-Four default narrow 620px content width */
.woocommerce-cart .wp-block-post-content,
.woocommerce-checkout .wp-block-post-content,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-cart main,
.woocommerce-checkout main {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}

.woocommerce-cart .wp-block-post-content > *,
.woocommerce-checkout .wp-block-post-content > * {
  max-width: 1200px !important;
  width: 100% !important;
}

/* Fix stacked quantity and actions row in Gutenberg Block Cart */
.wc-block-cart-item__quantity,
.wc-block-cart-item__actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.25rem !important;
  margin-top: 0.75rem !important;
  flex-wrap: nowrap !important;
}

/* Category List desktop wrap & responsive scroll */
.category-list-scrollable {
  display: flex !important;
  gap: 0.5rem !important;
  overflow-x: auto !important;
  padding: 0.25rem 0 !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}
.category-list-scrollable::-webkit-scrollbar {
  display: none !important;
}

@media (min-width: 1024px) {
  .category-list-scrollable {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
  }
}


/* ============================================
   PREMIUM MOBILE HEADER OPTIMIZATION (Prevent overflow)
   ============================================ */
@media (max-width: 480px) {
  /* Reduce logo image and text sizes */
  .site-header .brand {
    gap: 0.35rem !important;
  }
  
  .site-header .brand img.logo-img {
    width: 32px !important;
    height: 32px !important;
    border-width: 1px !important;
  }
  
  .site-header .brand span.text-brand-gradient {
    font-size: 1.05rem !important;
    letter-spacing: -0.3px !important;
  }
  
  /* Compact action items and icons spacing */
  .site-header div[style*="display: flex; align-items: center; gap: 1.2rem;"] {
    gap: 0.5rem !important; /* Reduce space between search, cart and hamburger menu */
  }
  
  .site-header div[style*="display: flex; align-items: center; gap: 1.2rem;"] button {
    padding: 0.1rem !important;
  }
  
  .site-header div[style*="display: flex; align-items: center; gap: 1.2rem;"] svg {
    width: 17px !important;
    height: 17px !important;
  }
}

/* ============================================
   ULTIMATIVE WOOCOMMERCE BLOCKS CHECKOUT FIX
   ============================================ */

/* Force checkout and cart to be wide (1200px max) */
.woocommerce-checkout .col-full,
.woocommerce-cart .col-full,
.woocommerce-checkout #content,
.woocommerce-cart #content,
.woocommerce-checkout #primary,
.woocommerce-cart #primary {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
  box-sizing: border-box !important;
}

/* Force layout grid for Checkout Blocks */
.wp-block-woocommerce-checkout,
.wc-block-checkout {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Main Checkout layout grid - 2 columns on desktop */
.wc-block-checkout__main,
.wp-block-woocommerce-checkout-main {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 2.5rem !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1200px !important;
  box-sizing: border-box !important;
}

/* Force Checkout Sidebar (Sažetak narudžbe) to be wide and readable */
.wc-block-checkout__sidebar,
.wp-block-woocommerce-checkout-totals-block,
.wc-block-components-sidebar {
  width: 380px !important;
  min-width: 340px !important;
  max-width: 380px !important;
  box-sizing: border-box !important;
  background-color: #faf9f7 !important;
  border: 1px solid #e8e4df !important;
  border-radius: 12px !important;
  padding: 1.75rem !important;
  box-shadow: 0 10px 30px rgba(25, 42, 61, 0.04) !important;
  margin: 0 !important;
  display: block !important;
}

/* Fix "Sažetak narudžbe" heading wrapping and letters splitting */
.wc-block-components-sidebar .wc-block-components-order-summary__heading,
.wc-block-components-sidebar h2,
.wc-block-components-sidebar h3 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #192a3d !important;
  white-space: nowrap !important;
  overflow: visible !important;
  display: block !important;
  letter-spacing: normal !important;
  margin-bottom: 1.25rem !important;
  width: 100% !important;
  text-transform: none !important;
}

/* Checkout left form block (Podaci za kontakt, dostava) */
.wc-block-checkout__form,
.wc-block-components-checkout-step {
  background: #ffffff !important;
  border: 1px solid #e8e4df !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 30px rgba(25, 42, 61, 0.04) !important;
  margin-bottom: 2rem !important;
  box-sizing: border-box !important;
}

/* Checkout Product List - Row alignment */
.wc-block-components-order-summary-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem 0 !important;
  border-bottom: 1px solid #e8e4df !important;
  width: 100% !important;
}

.wc-block-components-order-summary-item__image {
  width: 52px !important;
  height: 68px !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

.wc-block-components-order-summary-item__image img {
  width: 52px !important;
  height: 68px !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid #e8e4df !important;
}

/* Quantity badge on image overlay */
.wc-block-components-order-summary-item__quantity {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background-color: #2d6a9f !important;
  color: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  min-width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #ffffff !important;
  z-index: 10 !important;
}

/* Product title in summary */
.wc-block-components-order-summary-item__description {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-block-components-order-summary-item__description .wc-block-components-product-name {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #192a3d !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
  display: block !important;
}

/* Price in summary */
.wc-block-components-order-summary-item__total-price {
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #192a3d !important;
  text-align: right !important;
  margin-left: auto !important;
}

/* ============================================
   MOBILE OPTIMIZATION (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Stack checkout to single column */
  .wc-block-checkout__main,
  .wp-block-woocommerce-checkout-main {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  .wc-block-checkout__sidebar,
  .wp-block-woocommerce-checkout-totals-block,
  .wc-block-components-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 1.25rem !important;
  }
  
  .wc-block-checkout__form,
  .wc-block-components-checkout-step {
    padding: 1.25rem !important;
  }
}
