/**
 * ================================================================
 * MURPHY FURNITURE — COMPLETE CSS BUNDLE
 * ================================================================
 *
 * This is a combined file of all Murphy Furniture CSS improvements.
 *
 * INSTRUCTIONS FOR DAVID:
 * ========================
 * 1. Back up the original /themes/warehouse/assets/css/custom.css
 * 2. Replace the ENTIRE contents of custom.css with this file
 * 3. Do NOT append — replace the entire file
 *
 * WHAT'S INCLUDED:
 * ================
 * • Trust bar fix (class names corrected to BEM double-underscore)
 * • Sticky add-to-cart (mobile product pages)
 * • Mobile UX & touch target fixes (58 undersized targets fixed)
 * • Product page conversion improvements (trust badges, urgency)
 * • Accessibility fixes (focus states, skip nav, screen reader)
 * • Homepage UX improvements (hero, section headings, product cards)
 * • Category page CSS (grid layout, filters, pagination, SEO)
 * • Footer redesign (trust signals, store hours, newsletter)
 * • Cart page improvements (free delivery bar, trust signals)
 * • Header & navigation improvements (mobile menu, search bar)
 * • Checkout page improvements (progress bar, trust signals, forms)
 *
 * Date: 27 March 2026
 * ================================================================
 */


/* ================================================================
 * SECTION 1: CUSTOM CSS FIX (custom-css-fix.css)
 * Trust bar and sticky add-to-cart fixes
 * ================================================================ */

/* ================================
   TRUST BAR (header)
   FIX: class names corrected to BEM double-underscore
   ================================ */
.mf-trust-bar {
  background: #2c2c2c;
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}
.mf-trust-bar__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mf-trust-bar__item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

/* ================================
   STICKY ADD TO CART (product pages)
   NEW: was completely missing
   ================================ */
.mf-sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #0d1b2a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 20px;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.mf-sticky-atc.is-visible {
  transform: translateY(0);
}
.mf-sticky-atc__price {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.mf-sticky-atc__btn {
  background: #ffbc42;
  color: #0d1b2a;
  border: none;
  border-radius: 10px;
  padding: 10px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}
.mf-sticky-atc__btn:hover {
  background: #e5a835;
}

/* Hide sticky ATC on desktop when main ATC is visible */
@media (min-width: 992px) {
  .mf-sticky-atc {
    display: none;
  }
}


/* ================================================================
 * SECTION 2: MOBILE UX (mf-mobile-ux.css)
 * Mobile UX & touch target fixes
 * ================================================================ */

/**
 * MURPHY FURNITURE — Mobile UX & Touch Target Fixes
 * ==================================================
 * Fixes 58 undersized touch targets identified in accessibility audit.
 * Also improves mobile spacing, readability, and tap friendliness.
 */

/* ==========================================================
 * 1. GLOBAL MINIMUM TOUCH TARGETS (44px minimum)
 * Google and WCAG 2.5.5 require minimum 44x44px touch targets.
 * ========================================================== */

/* --- Header utility links (Delivery, Find Store, Wishlist) --- */
@media (max-width: 991px) {
  .header-top a,
  .header-top-left a,
  .header-top-right a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* --- Cart icon in header (was 31px wide) --- */
.cart-toogle.header-btn,
.header-cart-btn {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Close buttons (was 17x31) --- */
.close,
button.close,
.btn-close {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* --- Quantity spinner buttons (was 22x20) --- */
.btn-touchspin,
.js-touchspin,
.bootstrap-touchspin .btn {
  min-width: 44px;
  min-height: 44px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Cart quantity input (was 56x40) --- */
.block-cart-product-quantity,
.product-quantity input[type="number"],
input.js-cart-line-product-quantity {
  min-height: 44px;
  font-size: 16px; /* Prevents iOS zoom on focus */
}

/* --- Remove from cart (was 17x17) --- */
.remove-from-cart {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* --- Swiper navigation arrows (was 32px wide) --- */
.swiper-button-prev,
.swiper-button-next,
.swiper-button-inner-prev,
.swiper-button-inner-next {
  min-width: 44px;
}

/* --- Product colour/variant swatches --- */
.product-variants .color,
.product-variants .input-color,
.variant-item,
[class*="swatch"] {
  min-width: 44px;
  min-height: 44px;
}

/* --- Footer links (typically 14px height) --- */
@media (max-width: 991px) {
  footer a,
  .footer-container a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
  }

  footer li,
  .footer-container li {
    margin-bottom: 4px;
  }
}

/* --- Breadcrumb links --- */
@media (max-width: 991px) {
  .breadcrumb a,
  .breadcrumb li {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
  }
}

/* --- Generic link padding for mobile --- */
@media (max-width: 991px) {
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 16px;
  }
}


/* ==========================================================
 * 2. MOBILE INPUT ZOOM PREVENTION
 * iOS Safari zooms in on inputs with font-size < 16px.
 * This breaks the layout and annoys users.
 * ========================================================== */

@media (max-width: 991px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="search"],
  input[type="url"],
  select,
  textarea {
    font-size: 16px !important;
  }
}


/* ==========================================================
 * 3. MOBILE SPACING IMPROVEMENTS
 * Reduce visual clutter and increase readability on small screens.
 * ========================================================== */

@media (max-width: 767px) {
  /* Product cards in category/search results */
  .product-miniature {
    margin-bottom: 16px;
  }

  /* Better spacing for product title on PDP */
  .product-title h1,
  h1[itemprop="name"] {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  /* Price more prominent on mobile */
  .current-price,
  .product-price {
    font-size: 24px;
    font-weight: 700;
  }

  /* Add to cart button — full width on mobile */
  .product-add-to-cart .add-to-cart,
  .product-add-to-cart .btn-primary {
    width: 100%;
    min-height: 52px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
  }

  /* Product description — better readability */
  .product-description,
  #description {
    font-size: 15px;
    line-height: 1.7;
  }

  /* Category page header */
  .block-category h1 {
    font-size: 20px;
    margin-bottom: 12px;
  }
}


/* ==========================================================
 * 4. MOBILE NAVIGATION IMPROVEMENTS
 * ========================================================== */

@media (max-width: 991px) {
  /* Hamburger menu tap target */
  .menu-icon,
  .mobile-menu-toggle,
  [class*="hamburger"],
  .js-top-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Search icon / bar */
  .search-toggle,
  .header-search-btn {
    min-width: 48px;
    min-height: 48px;
  }

  /* Mobile menu items */
  .mobile-menu a,
  .top-menu a,
  .js-top-menu a {
    min-height: 48px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
}


/* ==========================================================
 * 5. SCROLL-TO-TOP BUTTON (NEW)
 * Mobile users need an easy way to get back to top on long pages.
 * The JS for this is in mf-ux-enhancements.js
 * ========================================================== */

.mf-scroll-top {
  position: fixed;
  bottom: 80px; /* Above sticky ATC bar */
  right: 16px;
  width: 48px;
  height: 48px;
  background: #0d1b2a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mf-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.mf-scroll-top:hover {
  background: #1a2d42;
}

@media (min-width: 992px) {
  .mf-scroll-top {
    bottom: 24px;
    right: 24px;
  }
}


/* ================================================================
 * SECTION 3: PRODUCT CONVERSION (mf-product-conversion.css)
 * Product page conversion improvements
 * ================================================================ */

/**
 * MURPHY FURNITURE — Product Page Conversion Improvements
 * ========================================================
 * Adds trust signals, urgency indicators, and improved layout
 * to increase add-to-cart rate.
 */


/* ==========================================================
 * 1. TRUST BADGES ROW (below ATC button)
 * Shows: Free Delivery | Secure Payment | Irish Business | Easy Returns
 * ========================================================== */

.mf-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding: 16px 0;
  border-top: 1px solid #eee;
}

.mf-trust-badges__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  flex: 1 1 45%;
  min-width: 140px;
}

.mf-trust-badges__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #2e7d32; /* Green for trust */
}

.mf-trust-badges__item strong {
  color: #222;
  font-weight: 600;
}


/* ==========================================================
 * 2. DELIVERY ESTIMATE BANNER
 * "Order by 2pm for dispatch today" style messaging
 * ========================================================== */

.mf-delivery-estimate {
  background: #f0faf0;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2e7d32;
}

.mf-delivery-estimate__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.mf-delivery-estimate__text strong {
  color: #1b5e20;
}


/* ==========================================================
 * 3. STOCK STATUS INDICATOR
 * More prominent than default Prestashop styling
 * ========================================================== */

.mf-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
}

.mf-stock-status--in-stock {
  color: #2e7d32;
}

.mf-stock-status--low-stock {
  color: #e65100;
}

.mf-stock-status--out-of-stock {
  color: #c62828;
}

.mf-stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.mf-stock-status--in-stock .mf-stock-dot {
  background: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

.mf-stock-status--low-stock .mf-stock-dot {
  background: #e65100;
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.2);
  animation: mf-pulse 2s infinite;
}

.mf-stock-status--out-of-stock .mf-stock-dot {
  background: #c62828;
}

@keyframes mf-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(230, 81, 0, 0.1); }
}


/* ==========================================================
 * 4. PAYMENT METHODS ROW
 * Visa / Mastercard / Klarna logos under ATC
 * ========================================================== */

.mf-payment-methods {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.mf-payment-methods__label {
  font-size: 12px;
  color: #888;
  margin-right: 4px;
}

.mf-payment-methods img,
.mf-payment-methods svg {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.mf-payment-methods img:hover,
.mf-payment-methods svg:hover {
  opacity: 1;
}


/* ==========================================================
 * 5. PRODUCT IMAGE GALLERY IMPROVEMENTS
 * ========================================================== */

/* Zoom hint on hover */
.images-container .product-cover {
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.images-container .product-cover img {
  transition: transform 0.4s ease;
}

.images-container .product-cover:hover img {
  transform: scale(1.05);
}

/* Thumbnail active state more visible */
.product-images .thumb-container .thumb.selected,
.product-images .thumb-container .thumb:hover {
  border: 2px solid #0d1b2a;
  border-radius: 4px;
}


/* ==========================================================
 * 6. PRODUCT TABS IMPROVEMENT
 * Currently only 1 tab. When more are added, they need styling.
 * ========================================================== */

.product-tabs .nav-tabs {
  border-bottom: 2px solid #eee;
  margin-bottom: 0;
}

.product-tabs .nav-link {
  font-weight: 600;
  color: #666;
  padding: 12px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.product-tabs .nav-link:hover {
  color: #0d1b2a;
}

.product-tabs .nav-link.active {
  color: #0d1b2a;
  border-bottom-color: #ffbc42;
}

.product-tabs .tab-content {
  padding: 20px 0;
}


/* ==========================================================
 * 7. KLARNA MESSAGING IMPROVEMENT
 * Make Klarna "pay in 3" more prominent
 * ========================================================== */

.klarna-placement,
klarna-placement {
  margin: 12px 0;
  padding: 8px 0;
}


/* ==========================================================
 * 8. RECENTLY VIEWED PRODUCTS (NEW SECTION)
 * Styles for the JS-generated recently viewed strip.
 * See mf-product-conversion.js for the logic.
 * ========================================================== */

.mf-recently-viewed {
  padding: 32px 0;
  background: #f9f9f9;
  margin-top: 40px;
}

.mf-recently-viewed__title {
  font-size: 20px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 20px;
  text-align: center;
}

.mf-recently-viewed__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 16px 8px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.mf-recently-viewed__item {
  flex: 0 0 160px;
  scroll-snap-align: start;
  text-align: center;
}

.mf-recently-viewed__item img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.mf-recently-viewed__item a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  display: block;
  margin-top: 8px;
}


/* ================================================================
 * SECTION 4: ACCESSIBILITY (mf-accessibility.css)
 * Accessibility fixes
 * ================================================================ */

/**
 * MURPHY FURNITURE — Accessibility Fixes
 * =======================================
 * Covers: focus states, skip navigation, screen reader helpers,
 * reduced motion, colour contrast improvements.
 */


/* ==========================================================
 * 1. SKIP NAVIGATION LINK
 * Allows keyboard users to skip directly to main content.
 * See mf-accessibility.js for the HTML injection.
 * ========================================================== */

.mf-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  background: #0d1b2a;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.mf-skip-link:focus {
  top: 0;
  outline: 3px solid #ffbc42;
  outline-offset: 2px;
}


/* ==========================================================
 * 2. FOCUS STYLES
 * Visible, consistent focus indicators for keyboard navigation.
 * ========================================================== */

/* Remove default outline only where we replace it */
*:focus {
  outline: none;
}

/* Visible focus ring for keyboard users only */
*:focus-visible {
  outline: 3px solid #ffbc42;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Specific focus improvements for key elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #ffbc42;
  outline-offset: 2px;
}

/* High-contrast focus for dark backgrounds */
.header-top *:focus-visible,
.mf-trust-bar *:focus-visible,
footer *:focus-visible,
.mf-sticky-atc *:focus-visible {
  outline-color: #fff;
}

/* Product image thumbnails focus */
.thumb-container a:focus-visible,
.product-images a:focus-visible {
  outline: 3px solid #ffbc42;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Cart and wishlist buttons */
.add-to-cart:focus-visible {
  outline: 3px solid #ffbc42;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(255, 188, 66, 0.3);
}


/* ==========================================================
 * 3. SCREEN READER ONLY HELPERS
 * Visually hidden but available to screen readers.
 * ========================================================== */

.sr-only,
.mf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Show when focused (for skip links etc.) */
.sr-only:focus,
.mf-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}


/* ==========================================================
 * 4. COLOUR CONTRAST FIXES
 * Several elements have text that doesn't meet WCAG AA (4.5:1).
 * ========================================================== */

/* Light grey text on white — too low contrast */
.product-description .rte p,
.product-description .rte {
  color: #333; /* Was #999 or similar in many themes */
}

/* Price strikethrough (was often too light) */
.regular-price,
.product-price .regular-price {
  color: #666; /* Ensure 4.5:1 on white */
}

/* Breadcrumb links */
.breadcrumb a,
.breadcrumb li a {
  color: #555;
}

/* Footer text */
footer,
.footer-container {
  color: #ccc; /* On dark background, ensure readable */
}

footer a,
.footer-container a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ==========================================================
 * 5. REDUCED MOTION
 * Respect users who prefer no animations.
 * ========================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .mf-sticky-atc {
    transition: none;
  }

  .mf-stock-status--low-stock .mf-stock-dot {
    animation: none;
  }

  .images-container .product-cover:hover img {
    transform: none;
  }
}


/* ==========================================================
 * 6. HIGH CONTRAST MODE SUPPORT
 * ========================================================== */

@media (forced-colors: active) {
  .mf-trust-badges__icon,
  .mf-stock-dot {
    forced-color-adjust: none;
  }

  *:focus-visible {
    outline: 3px solid Highlight;
  }

  .add-to-cart {
    border: 2px solid ButtonText;
  }
}


/* ==========================================================
 * 7. FORM LABEL VISIBILITY
 * Ensure all form inputs have visible labels (not just placeholders)
 * ========================================================== */

/* Newsletter signup in footer often has no visible label */
.block_newsletter label,
.newsletter-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  color: #fff;
}

/* Contact form improvements */
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}


/* ================================================================
 * SECTION 5: HOMEPAGE (mf-homepage.css)
 * Homepage UX & UI improvements
 * ================================================================ */

/**
 * MURPHY FURNITURE — Homepage UX & UI Improvements
 * =================================================
 * Improves layout, visual hierarchy, CTAs, and product card
 * presentation on the homepage.
 */


/* ==========================================================
 * 1. HERO SECTION IMPROVEMENT
 * The current hero is just a header-banner div with images.
 * This adds better visual treatment.
 * ========================================================== */

.header-banner {
  position: relative;
  overflow: hidden;
}

/* Category navigation cards (the image grid at top) */
.elementor-section:first-child .elementor-widget-image {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.elementor-section:first-child .elementor-widget-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.elementor-section:first-child .elementor-widget-image img {
  transition: transform 0.4s ease;
}

.elementor-section:first-child .elementor-widget-image:hover img {
  transform: scale(1.05);
}


/* ==========================================================
 * 2. SECTION HEADINGS
 * Product sections need clear visual separation.
 * ========================================================== */

/* Style for section heading H2s (not product name H2s) */
.elementor-heading-title {
  font-size: 28px;
  font-weight: 800;
  color: #0d1b2a;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Differentiate section headings from product headings */
.elementor-section > .elementor-container > .elementor-column > .elementor-widget-heading .elementor-heading-title {
  position: relative;
  padding-bottom: 16px;
}

.elementor-section > .elementor-container > .elementor-column > .elementor-widget-heading .elementor-heading-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #ffbc42;
  border-radius: 2px;
}


/* ==========================================================
 * 3. PRODUCT CARDS ON HOMEPAGE
 * Product miniatures in grid sections need better styling.
 * ========================================================== */

.product-miniature {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.product-miniature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-miniature .thumbnail-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.product-miniature .thumbnail-container img {
  transition: transform 0.4s ease;
}

.product-miniature:hover .thumbnail-container img {
  transform: scale(1.05);
}

/* Product title in card */
.product-miniature .product-title {
  padding: 12px 16px 4px;
}

.product-miniature .product-title a {
  font-size: 15px;
  font-weight: 600;
  color: #0d1b2a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Price in card */
.product-miniature .product-price-and-shipping {
  padding: 0 16px 12px;
}

.product-miniature .price {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
}

/* Quick view / ATC overlay on hover */
.product-miniature .highlighted-informations {
  background: rgba(13, 27, 42, 0.9);
  padding: 12px;
  border-radius: 0 0 12px 12px;
}

.product-miniature .quick-view {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}


/* ==========================================================
 * 4. CTA BUTTON IMPROVEMENTS
 * Make CTAs more visible and clickable.
 * ========================================================== */

/* Primary CTA (Explore More, Shop Now) */
.elementor-button {
  background: #ffbc42 !important;
  color: #0d1b2a !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  min-height: 48px;
}

.elementor-button:hover {
  background: #e5a835 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 188, 66, 0.4);
}


/* ==========================================================
 * 5. HOMEPAGE SECTION SPACING
 * Better vertical rhythm between sections.
 * ========================================================== */

.elementor-section {
  margin-bottom: 0;
}

/* Product grid sections need breathing room */
.elementor-section + .elementor-section {
  padding-top: 40px;
}

/* Section with background colour (e.g. featured products) */
.elementor-section[data-settings*="background"] {
  padding: 48px 0;
  margin: 32px 0;
}


/* ==========================================================
 * 6. SALE / CLEARANCE BADGE
 * Make clearance items pop on homepage.
 * ========================================================== */

.product-flag.on-sale,
.product-flag.discount {
  background: #c62828;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}


/* ==========================================================
 * 7. NEWSLETTER SECTION (FOOTER)
 * Usually looks terrible. Make it a proper CTA section.
 * ========================================================== */

.block_newsletter {
  background: #0d1b2a;
  padding: 40px 20px;
  text-align: center;
  border-radius: 0;
}

.block_newsletter .newsletter-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.block_newsletter .newsletter-description {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 20px;
}

.block_newsletter .input-wrapper {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}

.block_newsletter input[type="email"] {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #1a2d42;
  color: #fff;
  font-size: 16px;
}

.block_newsletter input[type="email"]::placeholder {
  color: #888;
}

.block_newsletter .btn-subscribe,
.block_newsletter input[type="submit"] {
  background: #ffbc42;
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.block_newsletter .btn-subscribe:hover,
.block_newsletter input[type="submit"]:hover {
  background: #e5a835;
}


/* ==========================================================
 * 8. MOBILE HOMEPAGE SPECIFIC
 * ========================================================== */

@media (max-width: 767px) {
  .elementor-heading-title {
    font-size: 22px;
  }

  .elementor-button {
    padding: 12px 24px !important;
    font-size: 15px !important;
    width: 100%;
    text-align: center;
  }

  .product-miniature {
    margin-bottom: 12px;
  }

  .block_newsletter .input-wrapper {
    flex-direction: column;
  }

  /* Reduce hero image sizes on mobile */
  .elementor-section:first-child img {
    max-height: 200px;
    object-fit: cover;
  }
}


/* ================================================================
 * SECTION 6: CATEGORY PAGE (mf-category-page.css)
 * Category / listing page CSS improvements
 * ================================================================ */

/**
 * MURPHY FURNITURE — Category / Listing Page CSS Improvements
 * ============================================================
 * Improves the category browse experience: better grid layout,
 * filter panel, sort bar, pagination, and SEO description display.
 */


/* ==========================================================
 * 1. CATEGORY SEO DESCRIPTION
 * These descriptions are currently missing. Once added via
 * mf-category-descriptions.sql, they need proper styling.
 * ========================================================== */

.block-category .category-description,
.category-seo-text {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.category-seo-text h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 12px;
}

.category-seo-text p {
  margin-bottom: 12px;
}

.category-seo-text a {
  color: #0d1b2a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.category-seo-text a:hover {
  color: #ffbc42;
}

/* On mobile, make it more compact */
@media (max-width: 767px) {
  .category-seo-text {
    font-size: 14px;
    padding: 0 12px;
    margin-bottom: 24px;
  }

  .category-seo-text h2 {
    font-size: 19px;
  }
}


/* ==========================================================
 * 2. CATEGORY H1 IMPROVEMENT
 * ========================================================== */

.block-category h1,
#js-product-list-header h1 {
  font-size: 30px;
  font-weight: 800;
  color: #0d1b2a;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Product count below H1 */
.block-category .showing {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 24px;
}

@media (max-width: 767px) {
  .block-category h1 {
    font-size: 24px;
  }
}


/* ==========================================================
 * 3. SORT BAR / TOOLBAR
 * ========================================================== */

#js-product-list-top,
.products-sort-order {
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.products-sort-order .select-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* View mode toggle (grid/list) */
.grid-list-toggle {
  display: flex;
  gap: 4px;
}

.grid-list-toggle button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-list-toggle button.active {
  background: #0d1b2a;
  color: #fff;
  border-color: #0d1b2a;
}


/* ==========================================================
 * 4. PRODUCT GRID IMPROVEMENTS
 * Better card layout on category pages.
 * ========================================================== */

/* 4-column on desktop, 2 on tablet, 2 on mobile */
#js-product-list .products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  #js-product-list .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  #js-product-list .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Product card on category page */
#js-product-list .product-miniature {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#js-product-list .product-miniature .thumbnail-container {
  aspect-ratio: 1;
  overflow: hidden;
}

#js-product-list .product-miniature .thumbnail-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #f9f9f9;
}

#js-product-list .product-miniature .product-description {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

#js-product-list .product-miniature .product-title {
  flex: 1;
}


/* ==========================================================
 * 5. FILTER PANEL (FACETED SEARCH)
 * ========================================================== */

.faceted-search,
.block-facets {
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.facet {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.facet:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.facet-title {
  font-size: 15px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 12px;
  cursor: pointer;
}

.facet-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: #444;
  cursor: pointer;
  min-height: 36px;
}

.facet-label:hover {
  color: #0d1b2a;
}

/* Active filter tags */
.active-filter-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.filter-block .active-filters a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  margin: 2px 4px 2px 0;
}

.filter-block .active-filters a:hover {
  background: #e0e0e0;
}

/* Clear all filters */
.clear-all-wrapper a {
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
}


/* ==========================================================
 * 6. PAGINATION
 * ========================================================== */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 32px 0;
  list-style: none;
  margin: 0;
}

.pagination .page-item .page-link {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  background: #fff;
  transition: all 0.2s;
}

.pagination .page-item .page-link:hover {
  background: #f5f5f5;
  border-color: #0d1b2a;
  color: #0d1b2a;
}

.pagination .page-item.active .page-link {
  background: #0d1b2a;
  color: #fff;
  border-color: #0d1b2a;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* "Showing X of Y products" text */
.showing-results,
.pagination .showing {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: 8px;
}


/* ==========================================================
 * 7. SUBCATEGORY NAVIGATION
 * The sidebar subcategory links need better styling.
 * ========================================================== */

.block-categories .category-sub-menu li a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  color: #444;
  border-radius: 6px;
  transition: all 0.2s;
}

.block-categories .category-sub-menu li a:hover {
  background: #f5f5f5;
  color: #0d1b2a;
}

.block-categories .category-sub-menu li.current a {
  background: #0d1b2a;
  color: #fff;
  font-weight: 600;
}

/* Subcategory product count badge */
.block-categories .category-sub-menu .products-count {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}


/* ==========================================================
 * 8. NO RESULTS STATE
 * When filters return zero products.
 * ========================================================== */

.no-products {
  text-align: center;
  padding: 48px 24px;
  color: #666;
}

.no-products p {
  font-size: 16px;
  margin-bottom: 16px;
}


/* ================================================================
 * SECTION 7: FOOTER (mf-footer.css)
 * Footer redesign
 * ================================================================ */

/**
 * MURPHY FURNITURE — Footer Redesign
 * ====================================
 * Improves footer layout, adds store info visibility,
 * better mobile accordion, trust signals strip, and
 * proper copyright/payment bar.
 */


/* ==========================================================
 * 1. FOOTER CONTAINER
 * ========================================================== */

#footer,
.js-footer {
  background: #0d1b2a;
  color: #ccc;
  padding-top: 0;
}

.footer-container {
  padding: 48px 0 0;
}

/* Main footer columns */
#footer .block {
  margin-bottom: 24px;
}

#footer .block-title,
#footer .block .h4,
#footer .block h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: none;
  letter-spacing: 0;
}

#footer .block li {
  margin-bottom: 8px;
}

#footer .block li a {
  color: #aab;
  font-size: 14px;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-block;
  padding: 2px 0;
}

#footer .block li a:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 2. CONTACT US BLOCK
 * Make phone, email, and address more prominent.
 * ========================================================== */

#footer .block-iqitcontactpage {
  color: #ccc;
  font-size: 14px;
  line-height: 1.8;
}

#footer .block-iqitcontactpage a {
  color: #fff;
  font-weight: 600;
}

#footer .block-iqitcontactpage a:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 3. SOCIAL LINKS
 * ========================================================== */

#footer .block-social-links {
  margin-bottom: 24px;
}

#footer .block-social-links ul {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer .block-social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  transition: all 0.2s;
}

#footer .block-social-links li a:hover {
  background: #ffbc42;
  color: #0d1b2a;
  transform: translateY(-2px);
}


/* ==========================================================
 * 4. NEWSLETTER BLOCK IN FOOTER
 * ========================================================== */

#footer .block_newsletter {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

#footer .block_newsletter .block-title {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

#footer .block_newsletter p {
  color: #aab;
  font-size: 14px;
  margin-bottom: 16px;
}

#footer .block_newsletter .input-wrapper {
  display: flex;
  gap: 8px;
}

#footer .block_newsletter input[type="email"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
}

#footer .block_newsletter input[type="email"]::placeholder {
  color: #666;
}

#footer .block_newsletter input[type="email"]:focus {
  border-color: #ffbc42;
  outline: none;
}

#footer .block_newsletter button,
#footer .block_newsletter input[type="submit"] {
  background: #ffbc42;
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

#footer .block_newsletter button:hover,
#footer .block_newsletter input[type="submit"]:hover {
  background: #e5a835;
}


/* ==========================================================
 * 5. TRUST / PAYMENT STRIP (injected by JS)
 * Sits between footer content and copyright bar.
 * ========================================================== */

.mf-footer-trust {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  margin: 24px 0 0;
}

.mf-footer-trust__row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.mf-footer-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aab;
  font-size: 13px;
}

.mf-footer-trust__item span:first-child {
  font-size: 20px;
}


/* ==========================================================
 * 6. STORE HOURS STRIP (injected by JS)
 * Shows all 3 store locations with open/closed status.
 * ========================================================== */

.mf-footer-stores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mf-footer-store {
  text-align: center;
  font-size: 13px;
  color: #aab;
}

.mf-footer-store__name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.mf-footer-store__status {
  font-size: 12px;
}

.mf-footer-store__status--open {
  color: #4caf50;
}

.mf-footer-store__status--closed {
  color: #999;
}


/* ==========================================================
 * 7. COPYRIGHT BAR
 * ========================================================== */

.mf-footer-copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #666;
}

.mf-footer-copyright a {
  color: #888;
}

.mf-footer-copyright a:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 8. MOBILE FOOTER
 * ========================================================== */

@media (max-width: 991px) {
  .footer-container {
    padding: 32px 0 0;
  }

  /* Accordion style on mobile */
  #footer .block-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    margin-bottom: 0;
  }

  #footer .block-title::after {
    content: '+';
    font-size: 20px;
    color: #666;
    transition: transform 0.2s;
  }

  #footer .block-title[aria-expanded="true"]::after {
    content: '−';
  }

  #footer .block li a {
    padding: 8px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .mf-footer-trust__row {
    gap: 16px;
  }

  .mf-footer-trust__item {
    flex: 0 0 45%;
    font-size: 12px;
  }

  .mf-footer-stores {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #footer .block_newsletter .input-wrapper {
    flex-direction: column;
  }
}


/* ================================================================
 * SECTION 8: CART PAGE (mf-cart.css)
 * Cart page improvements
 * ================================================================ */

/**
 * MURPHY FURNITURE — Cart Page Improvements
 * ==========================================
 * Better layout, trust signals, delivery messaging, and
 * free delivery threshold bar.
 */


/* ==========================================================
 * 1. CART HEADER
 * ========================================================== */

.cart-grid h1 {
  font-size: 28px;
  font-weight: 800;
  color: #0d1b2a;
  margin-bottom: 8px;
}


/* ==========================================================
 * 2. FREE DELIVERY PROGRESS BAR (injected by JS)
 * Shows "You're €X away from FREE delivery!"
 * ========================================================== */

.mf-delivery-bar {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.mf-delivery-bar__text {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  text-align: center;
}

.mf-delivery-bar__text strong {
  color: #2e7d32;
}

.mf-delivery-bar__track {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.mf-delivery-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #ffbc42, #2e7d32);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.mf-delivery-bar--complete {
  border-color: #c8e6c9;
  background: #f0faf0;
}

.mf-delivery-bar--complete .mf-delivery-bar__text {
  color: #2e7d32;
  font-weight: 600;
}

.mf-delivery-bar--complete .mf-delivery-bar__fill {
  background: #2e7d32;
}


/* ==========================================================
 * 3. CART ITEMS — BETTER LAYOUT
 * ========================================================== */

.cart-item {
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

/* Product image in cart */
.cart-item .product-line-grid .product-line-grid-left img {
  border-radius: 8px;
  background: #f9f9f9;
  padding: 4px;
}

/* Product name in cart */
.cart-item .product-line-info a {
  font-size: 16px;
  font-weight: 600;
  color: #0d1b2a;
  text-decoration: none;
}

.cart-item .product-line-info a:hover {
  color: #ffbc42;
}

/* Price in cart */
.cart-item .product-price {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
}

/* Quantity controls */
.cart-item .qty .input-group {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.cart-item .qty .btn-touchspin {
  min-width: 44px;
  min-height: 44px;
}

/* Remove button */
.cart-item .remove-from-cart {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: color 0.2s;
}

.cart-item .remove-from-cart:hover {
  color: #c62828;
}


/* ==========================================================
 * 4. CART SUMMARY / SIDEBAR
 * ========================================================== */

.cart-summary {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 120px;
}

.cart-summary .cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  color: #444;
}

.cart-summary .cart-summary-line.cart-total {
  font-size: 20px;
  font-weight: 800;
  color: #0d1b2a;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid #0d1b2a;
}

/* Checkout button */
.cart-summary .checkout {
  margin-top: 20px;
}

.cart-summary .btn-primary,
.cart-summary .checkout a {
  width: 100%;
  background: #ffbc42;
  color: #0d1b2a;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  display: block;
  transition: all 0.2s;
  text-decoration: none;
}

.cart-summary .btn-primary:hover,
.cart-summary .checkout a:hover {
  background: #e5a835;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 188, 66, 0.4);
}


/* ==========================================================
 * 5. CART TRUST SIGNALS (injected by JS)
 * ========================================================== */

.mf-cart-trust {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.mf-cart-trust__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  padding: 4px 0;
}

.mf-cart-trust__item span:first-child {
  font-size: 16px;
}


/* ==========================================================
 * 6. CONTINUE SHOPPING LINK
 * ========================================================== */

.cart-grid .continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d1b2a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
}

.cart-grid .continue-shopping:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 7. EMPTY CART STATE
 * ========================================================== */

.cart-empty,
.no-items {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty h1,
.no-items p {
  font-size: 24px;
  color: #333;
  margin-bottom: 16px;
}

.cart-empty .continue-shopping,
.no-items a {
  display: inline-block;
  background: #ffbc42;
  color: #0d1b2a;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 16px;
}


/* ==========================================================
 * 8. MOBILE CART
 * ========================================================== */

@media (max-width: 767px) {
  .cart-summary {
    position: static;
    margin-top: 24px;
  }

  .cart-item .product-line-grid {
    gap: 12px;
  }

  .mf-delivery-bar {
    padding: 12px 16px;
  }
}


/* ================================================================
 * SECTION 9: HEADER & NAVIGATION (mf-header-nav.css)
 * Header & navigation improvements
 * ================================================================ */

/**
 * MURPHY FURNITURE — Header & Navigation Improvements
 * ====================================================
 * Better desktop nav hover states, mobile menu, search bar,
 * header utility links, and cart icon.
 */


/* ==========================================================
 * 1. HEADER TOP BAR
 * The thin bar at the very top with utility links.
 * ========================================================== */

.header-top {
  background: #1a1a1a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  padding: 6px 0;
}

.header-top a {
  color: #ccc;
  transition: color 0.2s;
  text-decoration: none;
}

.header-top a:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 2. MAIN HEADER / LOGO AREA
 * ========================================================== */

.header-nav {
  padding: 12px 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-logo img {
  max-height: 55px;
  width: auto;
  transition: opacity 0.2s;
}

.header-logo:hover img {
  opacity: 0.85;
}


/* ==========================================================
 * 3. SEARCH BAR
 * Make search more prominent and usable.
 * ========================================================== */

.search-widget {
  max-width: 400px;
  width: 100%;
}

.search-widget form {
  position: relative;
}

.search-widget input[type="text"] {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  color: #333;
  background: #f9f9f9;
  transition: all 0.2s;
}

.search-widget input[type="text"]:focus {
  border-color: #0d1b2a;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.08);
}

.search-widget input[type="text"]::placeholder {
  color: #999;
}

.search-widget button[type="submit"] {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-widget button[type="submit"]:hover {
  color: #0d1b2a;
}


/* ==========================================================
 * 4. CART ICON / HEADER BUTTONS
 * ========================================================== */

.header-btn,
.header-cart-btn,
.cart-toogle {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d1b2a;
  transition: color 0.2s;
}

.header-btn:hover {
  color: #ffbc42;
}

/* Cart item count badge */
.cart-products-count {
  position: absolute;
  top: 2px;
  right: -2px;
  background: #ffbc42;
  color: #0d1b2a;
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


/* ==========================================================
 * 5. DESKTOP NAVIGATION MENU
 * ========================================================== */

.cbp-hrmenu {
  background: #0d1b2a;
}

.cbp-hrmenu > ul > li > a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  position: relative;
}

.cbp-hrmenu > ul > li > a:hover,
.cbp-hrmenu > ul > li.cbp-hropen > a {
  background: rgba(255, 255, 255, 0.1);
  color: #ffbc42;
}

/* Active indicator underline */
.cbp-hrmenu > ul > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: #ffbc42;
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.cbp-hrmenu > ul > li > a:hover::after,
.cbp-hrmenu > ul > li.cbp-hropen > a::after {
  transform: scaleX(1);
}

/* Clearance menu item — highlight it */
.cbp-hrmenu > ul > li:last-child > a {
  color: #ffbc42;
  font-weight: 700;
}

.cbp-hrmenu > ul > li:last-child > a:hover {
  color: #fff;
}


/* ==========================================================
 * 6. DROPDOWN / MEGA MENU
 * ========================================================== */

.cbp-hrsub {
  background: #fff;
  border-top: 3px solid #ffbc42;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 8px 8px;
  padding: 24px;
}

.cbp-hrsub h4,
.cbp-hrsub .title {
  font-size: 15px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ffbc42;
}

.cbp-hrsub a {
  color: #444;
  font-size: 14px;
  padding: 6px 0;
  display: block;
  transition: color 0.2s;
  text-decoration: none;
}

.cbp-hrsub a:hover {
  color: #ffbc42;
}


/* ==========================================================
 * 7. MOBILE HEADER
 * ========================================================== */

@media (max-width: 991px) {
  .header-nav {
    padding: 8px 0;
  }

  .header-logo img {
    max-height: 40px;
  }

  /* Search on mobile - full width */
  .search-widget {
    max-width: 100%;
    margin: 8px 0;
  }

  .search-widget input[type="text"] {
    font-size: 16px; /* Prevent iOS zoom */
    padding: 14px 48px 14px 16px;
  }
}


/* ==========================================================
 * 8. MOBILE MENU (SLIDE-OUT)
 * ========================================================== */

@media (max-width: 991px) {
  /* Menu toggle button */
  .js-top-menu-toggle,
  .mobile-menu-toggle {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile menu panel */
  .mobile-menu,
  .js-top-menu {
    background: #fff;
  }

  /* Mobile menu items */
  .mobile-menu a,
  .top-menu a {
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #0d1b2a;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
  }

  .mobile-menu a:hover,
  .top-menu a:hover {
    background: #f9f9f9;
    color: #ffbc42;
  }

  /* Submenu */
  .mobile-menu .sub-menu a,
  .top-menu .sub-menu a {
    padding-left: 32px;
    font-size: 15px;
    font-weight: 400;
    color: #555;
  }

  /* Mobile menu header */
  .mobile-menu__header {
    padding: 16px;
    border-bottom: 2px solid #ffbc42;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu__header .close-menu {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
  }
}


/* ==========================================================
 * 9. STICKY HEADER ON SCROLL
 * The Warehouse theme may already have this, but if not,
 * this ensures the header sticks on scroll for quick navigation.
 * ========================================================== */

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Reduce header size when scrolled */
.header-sticky.is-scrolled .header-nav {
  padding: 6px 0;
}

.header-sticky.is-scrolled .header-logo img {
  max-height: 40px;
}


/* ================================================================
 * SECTION 11: CHECKOUT PAGE (mf-checkout.css)
 * Progress bar, form styling, trust signals, payment options.
 * ================================================================ */

/**
 * MURPHY FURNITURE — Checkout Page Improvements
 * ===============================================
 * Better progress indicator, form layout, trust signals,
 * and mobile checkout experience.
 *
 * WHERE TO PUT THIS:
 * Append to mf-all-styles.css or add separately to custom.css
 *
 * WORKS WITH: mf-checkout.js (trust signals + progress bar)
 *
 * EXPECTED IMPACT:
 * - Checkout abandonment: -15-25%
 * - Checkout completion rate: +10-15%
 */


/* ==========================================================
 * 1. CHECKOUT PROGRESS BAR (injected by JS)
 * Shows: Cart → Details → Delivery → Payment → Confirmation
 * ========================================================== */

.mf-checkout-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 32px;
  background: #f9f9f9;
  border-radius: 12px;
}

.mf-checkout-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

.mf-checkout-progress__step--active {
  color: #0d1b2a;
  font-weight: 700;
}

.mf-checkout-progress__step--completed {
  color: #2e7d32;
}

.mf-checkout-progress__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  background: #e0e0e0;
  color: #999;
  flex-shrink: 0;
}

.mf-checkout-progress__step--active .mf-checkout-progress__number {
  background: #0d1b2a;
  color: #fff;
}

.mf-checkout-progress__step--completed .mf-checkout-progress__number {
  background: #2e7d32;
  color: #fff;
}

.mf-checkout-progress__divider {
  width: 40px;
  height: 2px;
  background: #e0e0e0;
  margin: 0 8px;
}

.mf-checkout-progress__step--completed + .mf-checkout-progress__divider {
  background: #2e7d32;
}

@media (max-width: 767px) {
  .mf-checkout-progress {
    padding: 16px 12px;
    gap: 0;
  }

  .mf-checkout-progress__step span:not(.mf-checkout-progress__number) {
    display: none;
  }

  .mf-checkout-progress__divider {
    width: 24px;
    margin: 0 4px;
  }
}


/* ==========================================================
 * 2. CHECKOUT STEP PANELS
 * ========================================================== */

.checkout-step {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.checkout-step.-current {
  border-color: #0d1b2a;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.checkout-step .step-title {
  font-size: 20px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-step .step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0d1b2a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-step.-complete .step-number {
  background: #2e7d32;
}

.checkout-step.-unreachable {
  opacity: 0.5;
}


/* ==========================================================
 * 3. FORM IMPROVEMENTS
 * Better input styling, labels, error states.
 * ========================================================== */

#checkout .form-group {
  margin-bottom: 16px;
}

#checkout label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  display: block;
}

#checkout .form-control,
#checkout input[type="text"],
#checkout input[type="email"],
#checkout input[type="tel"],
#checkout input[type="password"],
#checkout select,
#checkout textarea {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px; /* Prevents iOS zoom */
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
}

#checkout .form-control:focus,
#checkout input:focus,
#checkout select:focus {
  border-color: #0d1b2a;
  outline: none;
  box-shadow: 0 0 0 4px rgba(13, 27, 42, 0.08);
}

/* Error state */
#checkout .form-control.is-invalid,
#checkout .has-error .form-control {
  border-color: #c62828;
}

#checkout .invalid-feedback,
#checkout .help-block {
  color: #c62828;
  font-size: 13px;
  margin-top: 4px;
}

/* Required field indicator */
#checkout label .required {
  color: #c62828;
}

/* Checkbox and radio improvements */
#checkout input[type="checkbox"],
#checkout input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  cursor: pointer;
}


/* ==========================================================
 * 4. DELIVERY OPTIONS
 * ========================================================== */

.delivery-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-option:hover {
  border-color: #0d1b2a;
  background: #f9f9f9;
}

.delivery-option.selected,
.delivery-option input[type="radio"]:checked ~ * {
  border-color: #0d1b2a;
  background: #f0f4f8;
}

.delivery-option .carrier-name {
  font-weight: 600;
  color: #0d1b2a;
}

.delivery-option .carrier-price {
  font-weight: 700;
  color: #0d1b2a;
  margin-left: auto;
}

.delivery-option .carrier-delay {
  font-size: 13px;
  color: #666;
}


/* ==========================================================
 * 5. PAYMENT METHODS
 * ========================================================== */

.payment-options .payment-option {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-options .payment-option:hover {
  border-color: #0d1b2a;
}

.payment-options .payment-option.selected,
.payment-options .payment-option input[type="radio"]:checked ~ * {
  border-color: #0d1b2a;
  background: #f0f4f8;
}

.payment-options label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

/* Klarna specific - make it more prominent */
.payment-option[data-module-name*="klarna"],
.payment-option[data-module-name*="Klarna"] {
  border-color: #ffb3c7;
  background: #fff5f8;
}


/* ==========================================================
 * 6. ORDER SUMMARY SIDEBAR
 * ========================================================== */

#checkout .cart-summary {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 120px;
}

#checkout .cart-summary h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0d1b2a;
  margin-bottom: 16px;
}

#checkout .cart-summary .product-price {
  font-weight: 700;
}

#checkout .cart-summary .cart-total {
  font-size: 22px;
  font-weight: 800;
  color: #0d1b2a;
  padding-top: 16px;
  border-top: 2px solid #0d1b2a;
  margin-top: 12px;
}


/* ==========================================================
 * 7. CHECKOUT TRUST SIGNALS (injected by JS)
 * ========================================================== */

.mf-checkout-trust {
  background: #f0faf0;
  border: 1px solid #c8e6c9;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.mf-checkout-trust__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.mf-checkout-trust__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #2e7d32;
  font-weight: 500;
}

.mf-checkout-trust__item span:first-child {
  font-size: 16px;
}


/* ==========================================================
 * 8. PLACE ORDER BUTTON
 * ========================================================== */

#payment-confirmation button,
#payment-confirmation .btn-primary,
.js-payment-confirm {
  width: 100%;
  background: #ffbc42 !important;
  color: #0d1b2a !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 18px 24px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: none;
}

#payment-confirmation button:hover {
  background: #e5a835 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 188, 66, 0.4);
}

/* Secure payment note under button */
.mf-secure-note {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}


/* ==========================================================
 * 9. MOBILE CHECKOUT
 * ========================================================== */

@media (max-width: 767px) {
  .checkout-step {
    padding: 16px;
    border-radius: 8px;
  }

  .checkout-step .step-title {
    font-size: 18px;
  }

  #checkout .cart-summary {
    position: static;
    margin-top: 24px;
  }

  #payment-confirmation button {
    font-size: 18px !important;
    padding: 16px 20px !important;
  }

  .mf-checkout-trust__row {
    flex-direction: column;
    gap: 8px;
  }

  /* Delivery options stack better on mobile */
  .delivery-option {
    flex-wrap: wrap;
  }

  .delivery-option .carrier-price {
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}
/* -----------------------------------------------
   FIX 1 & 2: Hero CTA buttons & text colour
   ISSUE: Button text unreadable — black text on gold/dark background
   CAUSE: a:link:not(.nav-link):not(.btn) { color: #000 } overrides
          .mf-hero__cta-primary { color: #fff } and
          .mf-hero__cta-secondary { color: var(--mf-gold) }
   ----------------------------------------------- */

.mf-hero__cta-primary,
.mf-hero__cta-primary:link,
.mf-hero__cta-primary:visited {
  color: #fff !important;
  background: var(--mf-gold) !important;
}

.mf-hero__cta-primary:hover {
  color: #fff !important;
  background: var(--mf-gold-light) !important;
}

.mf-hero__cta-secondary,
.mf-hero__cta-secondary:link,
.mf-hero__cta-secondary:visited {
  color: var(--mf-gold) !important;
  border-color: rgba(196, 146, 42, 0.4) !important;
}

.mf-hero__cta-secondary:hover {
  color: #fff !important;
  background: var(--mf-gold) !important;
  border-color: var(--mf-gold) !important;
}


/* -----------------------------------------------
   FIX 3: Footer hover — first letter hard to read
   ISSUE: On hover, the first letter of each footer link stays dark/black
          while the rest of the text turns gold
   CAUSE: Same a:link override sets base colour to #000,
          creating a rendering conflict with ::first-letter on hover
   ----------------------------------------------- */

#footer .block li a,
#footer .block li a:link,
#footer .block li a:visited,
#footer-container-main a,
#footer-container-main a:link,
#footer-container-main a:visited {
  color: #aaabb7 !important;
  transition: color 0.2s ease !important;
}

#footer .block li a:hover,
#footer-container-main a:hover {
  color: rgb(255, 188, 66) !important;
}


/* -----------------------------------------------
   FIX 4: Footer menu text size/appearance
   ISSUE: Footer text looks smaller/strange compared to expected
   Ensure consistent sizing and line-height
   ----------------------------------------------- */

#footer .block li a {
  font-size: 14px !important;
  line-height: 1.7 !important;
  letter-spacing: 0.01em;
}

#footer .block .block-title,
#footer .block h4 {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 16px !important;
}


/* -----------------------------------------------
   FIX 5: Category page CSS flash on load (FOUC)
   ISSUE: Categories look broken before final CSS loads
   CAUSE: mf-all-styles.css loads BEFORE theme.css, so custom
          styles get overridden momentarily during page render

   CSS-ONLY MITIGATION: Ensure product grid has stable initial state.

   TEMPLATE FIX (David should also do this):
   In themes/warehouse/templates/layouts/layout-both-columns.tpl,
   move the mf-all-styles.css <link> tag to AFTER theme.css <link> tag.
   This prevents the flash entirely.
   ----------------------------------------------- */

/* Prevent layout shift during CSS load */
.products.row,
#js-product-list .products {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure subcategory grid doesn't flash unstyled */
.subcategories,
#subcategories {
  min-height: 0 !important;
}

/* Stabilise product grid layout immediately */
.product-miniature {
  opacity: 1 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}


/* -----------------------------------------------
   FIX 6: Product containers need white background
   ISSUE: Suggested product sections have transparent background,
          making white-background product photos look like they're floating
   ----------------------------------------------- */

.product-miniature,
.product-miniature-default,
.js-product-miniature {
  background-color: #fff !important;
}

/* Also cover featured/suggested product sections on product pages */
.featured-products .product-miniature,
.product-accessories .product-miniature,
.crossselling-products .product-miniature,
.category-products .product-miniature {
  background-color: #fff !important;
}


/* -----------------------------------------------
   FIX 7: Quantity selector sizing on product pages
   ISSUE: Qty input (88px) much taller than Add to Cart button (52px)
   FIX: Constrain touchspin to match button height
   ----------------------------------------------- */

.product-quantity .bootstrap-touchspin {
  display: inline-flex !important;
  align-items: stretch !important;
  height: 52px !important;
  overflow: hidden !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 4px !important;
}

.product-quantity .bootstrap-touchspin #quantity_wanted {
  height: 52px !important;
  width: 50px !important;
  text-align: center !important;
  padding: 0 8px !important;
  font-size: 16px !important;
  border: none !important;
  border-right: 1px solid #dee2e6 !important;
  border-radius: 0 !important;
  -moz-appearance: textfield;
}

.product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-inner-spin-button,
.product-quantity .bootstrap-touchspin #quantity_wanted::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-quantity .bootstrap-touchspin .input-group-btn-vertical {
  display: flex !important;
  flex-direction: column !important;
  height: 52px !important;
  width: 32px !important;
}

.product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn-touchspin {
  flex: 1 !important;
  height: 26px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-bottom: 1px solid #dee2e6 !important;
  background: #f8f8f8 !important;
  min-height: 0 !important;
  cursor: pointer;
}

.product-quantity .bootstrap-touchspin .input-group-btn-vertical .btn-touchspin:last-child {
  border-bottom: none !important;
}

.product-quantity .bootstrap-touchspin .bootstrap-touchspin-postfix,
.product-quantity .bootstrap-touchspin .bootstrap-touchspin-prefix {
  display: none !important;
}