/* --- Styles from common/header --- */



/* ==========================================================================
     GLOBAL FIXES
     ========================================================================== */
  body {
    padding-top: 0;
    font-family: var(--font-body, 'Open Sans', sans-serif);
    /* Fluid standard text: 14px on mobile -> up to 17px on large monitors */
    font-size: clamp(14px, 1vw + 10px, 17px);
  }
  
  /* Fix Breadcrumbs blowing out the screen width on mobile */
  .breadcrumb {
      display: flex;
      flex-wrap: wrap;
      background: transparent;
      margin-bottom: 20px;
      padding: 8px 15px 8px 0; /* Right padding ensures items don't touch screen edge */
      list-style: none;
      width: 100%;
      max-width: 100%;
      overflow: hidden;
  }
  .breadcrumb li {
      white-space: normal;
      word-wrap: break-word;
      word-break: break-word;
      font-size: 12px; /* Slightly smaller to fit more on one line */
      display: flex;
      align-items: center;
  }
  .breadcrumb li a {
      display: inline-block;
  }

  /* ==========================================================================
     TOP BAR (Always Visible)
     ========================================================================== */
  #top-bar {
    background: var(--brand-blue, #184484); /* Matched to theme */
    padding: 8px 0;
    font-size: 13px;
    margin: 0 !important;
  }
  .top-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .top-bar-phone {
    flex: 0 0 auto;
    margin-right: auto; /* Forces phone to extreme left and pushes remaining links to extreme right on desktop */
  }
  .top-bar-links {
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }
  .top-bar-links > li > a {
    color: #fff; /* White text */
    text-decoration: none;
    transition: color 0.2s;
  }
  .top-bar-links > li > a:hover {
    color: var(--brand-pink, #d81b60);
  }
  .top-bar-links i {
    color: #fff; /* White icons */
    margin-right: 6px;
    font-size: 14px;
    opacity: 0.8; /* Subtly separate icons from text */
  }
  .top-bar-links .dropdown-menu a {
    color: #333; /* Reset dropdown text */
  }
  
  /* Prominent Phone Number Styles */
  .prominent-phone {
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    color: #fff !important; /* Force white text to override theme default blue */
    text-decoration: none !important;
  }
  .prominent-phone:hover {
    color: #fff !important;
  }
  .prominent-phone i {
    color: var(--brand-pink, #d81b60) !important;
    font-size: 18px !important;
    opacity: 1 !important;
    margin-right: 8px !important; /* Extra breathing room after the phone icon */
  }

  /* ==========================================================================
     STICKY HEADER WRAPPER (Native CSS)
     ========================================================================== */
  .sticky-header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  }

  /* ==========================================================================
     MAIN HEADER GRID
     ========================================================================== */
  #main-header {
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
  }
  #main-header .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  
  .header-grid {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    padding: 10px 0 !important; /* Very tight vertical padding */
    margin: 0 !important;
  }
  
  .grid-logo { 
    flex: 0 0 auto !important;
    margin: 0 auto 0 0 !important; /* Force right margin auto, top/bottom zero */
    padding: 0 !important;
  }
  .grid-logo img { 
    max-height: 60px !important; 
    width: auto !important;
    display: block !important;
    margin: 0 !important;
  }
  .grid-logo h1 { 
    margin: 0 !important; 
    font-size: 24px !important; 
    font-weight: bold !important; 
  }
  .grid-logo h1 a { 
    color: var(--brand-blue, #184484) !important; 
    text-decoration: none !important; 
  }
  
  /* Search Box Redesign - Pixel Perfect Match */
  .grid-search { 
    flex: 1 1 auto !important;
    max-width: 600px !important;
    margin: 0 40px !important; 
    padding: 0 !important;
  }
  #search {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  #search.input-group {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
    margin: 0 !important;
  }
  
  /* Aggressive overrides for Bootstrap's input classes */
  #search .form-control,
  #search .form-control.input-lg {
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: normal !important;
    border: 2px solid #ccc !important;
    border-right: none !important;
    box-shadow: none !important;
    border-radius: 6px 0 0 6px !important;
    font-size: 15px !important;
    padding: 0 15px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #fff !important;
    outline: none !important;
    z-index: 1 !important;
  }
  #search .form-control:focus,
  #search .form-control.input-lg:focus {
    border-color: var(--brand-blue, #184484) !important;
  }
  
  /* Make the search button's border color match the input focus */
  #search:focus-within .btn,
  #search:focus-within .btn.btn-lg {
    border-color: var(--brand-blue, #184484) !important;
  }
  
  #search .input-group-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2 !important;
  }
  
  #search .btn,
  #search .btn.btn-lg {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    line-height: normal !important;
    padding: 0 24px !important;
    background: #f4f4f4 !important;
    border: 2px solid #ccc !important;
    border-left: none !important;
    border-radius: 0 6px 6px 0 !important;
    color: #333 !important;
    font-size: 16px !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: background 0.2s !important;
    outline: none !important;
  }
  #search .btn:hover,
  #search .btn.btn-lg:hover {
    background: #e0e0e0 !important;
  }

  /* Actions */
  .grid-actions { 
    flex: 0 0 auto !important;
    margin: 0 0 0 auto !important; 
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .btn-checkout-desktop {
    background: var(--brand-pink, #d81b60) !important;
    color: #fff !important;
    border: none !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 24px !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    transition: background 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    margin: 0 !important;
  }
  .btn-checkout-desktop:hover, .btn-checkout-desktop:focus {
    background: #b0154e !important;
    color: #fff !important;
    text-decoration: none !important;
  }
  .btn-checkout-desktop i {
    font-size: 18px !important;
  }
  #desktop-cart-badge {
    color: #fff !important;
    font-weight: 800 !important;
  }

  /* ==========================================================================
     MENU BAR
     ========================================================================== */
  #menu-wrapper {
    background: var(--brand-blue, #184484);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .menu-flex {
    display: flex;
    align-items: stretch;
  }
  .menu-home-btn {
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    font-size: 20px;
    background: rgba(0,0,0,0.15);
    transition: background 0.2s;
    border-right: 1px solid rgba(255,255,255,0.1);
  }
  .menu-home-btn:hover {
    background: var(--brand-pink, #d81b60);
    color: #fff;
  }
  .menu-container-inner {
    flex: 1;
    /* FIX: Changed overflow hidden to visible to allow dropdowns to flow over content */
    overflow: visible !important; 
  }
  
  /* Reset OpenCart Default Menu Styles */
  #menu { 
    background: transparent !important; 
    background-image: none !important;
    border: none !important; 
    min-height: 0 !important; 
    margin: 0 !important; 
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    /* FIX: Ensure the menu container doesn't clip its children */
    overflow: visible !important;
  }

  /* Desktop Menu Constraints */
  @media (min-width: 992px) {
    #menu .nav {
      display: flex !important;
      flex-wrap: nowrap !important; /* Forces a single line */
      align-items: center;
      /* FIX: Changed overflow-x auto to visible so dropdowns aren't hidden */
      overflow: visible !important; 
    }
    #menu .nav > li {
      flex: 0 0 auto;
      /* FIX: Ensure parent li allows absolute children (dropdowns) to show */
      position: relative;
    }
    #menu .nav > li > a { 
      color: #fff !important; 
      text-shadow: none !important; 
      padding: 12px 18px !important; 
      font-weight: 600 !important; 
      font-size: 14px !important;
      white-space: nowrap !important;
      transition: background 0.2s !important; 
    }
    /* FIX: Unify hover, focus, and open states to prevent 'stuck pink' issue */
    #menu .nav > li > a:hover,
    #menu .nav > li > a:focus,
    #menu .nav > li.open > a { 
      background: rgba(0,0,0,0.2) !important; 
      color: #fff !important; 
    }
    /* FIX: Ensure OpenCart dropdown menus sit correctly and aren't hidden */
    #menu .dropdown-menu {
      z-index: 2000 !important;
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      visibility: visible !important;
      opacity: 1 !important;
    }
    #menu .dropdown:hover > .dropdown-menu {
      display: block;
    }
  }

  /* ==========================================================================
     BANNERS SECTION (Scrolls away)
     ========================================================================== */
  #banners-section {
    position: relative;
    z-index: 1030;
  }
  .delivery-banner-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
  }
  .delivery-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }
  .banner-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
  }
  .banner-item i {
    color: var(--brand-pink, #d81b60);
    font-size: 28px;
  }
  .banner-item .highlight {
    color: var(--brand-pink, #d81b60);
    font-weight: 700;
  }
  .banner-item .coupon-code {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #d81b60 0%, #e91e63 100%);
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 6px;
    white-space: nowrap;
  }
  .help-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    background: var(--brand-blue, #184484);
    color: #fff;
    padding: 10px 0;
  }
  .help-banner-content i { font-size: 18px; color: var(--brand-pink, #d81b60); }
  .help-banner-content strong {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
  }

  /* ==========================================================================
     MOBILE RESPONSIVE LAYOUT
     ========================================================================== */
  @media (max-width: 991px) {
    
    /* Breadcrumb Mobile Reset: Destroy theme graphics and use text separators */
    .breadcrumb {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 5px 15px !important;
    }
    .breadcrumb li {
        background: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .breadcrumb li:after, 
    .breadcrumb li:before {
        display: none !important; /* Hide theme chevrons/arrows */
    }
    .breadcrumb li a {
        background: none !important;
        border: none !important;
        padding: 0 !important;
    }
    /* Add our custom text-only separator back in for nested items */
    .breadcrumb li + li:before {
        display: inline-block !important;
        content: ">" !important;
        padding: 0 8px !important;
        color: #999 !important;
        font-weight: bold !important;
    }

    /* Strict Lock on Top Bar Height & Alignment */
    #top-bar {
        height: 54px !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: none !important;
    }
    .top-bar-container {
        padding: 0 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* Perfect Center Alignment for Phone */
    .mobile-menu-icon {
        font-size: 24px !important;
        color: #fff !important;
        cursor: pointer !important;
        width: 75px !important; /* Bump width to match the right actions block (75px) so the phone number remains perfectly centered */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        outline: none !important;
    }
    .top-bar-phone {
        flex: 1 1 auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-right: 0 !important; /* Reset desktop auto margin */
    }
    .prominent-phone {
        font-size: 16px !important;
    }
    .mobile-actions-group {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        width: 75px !important;
        gap: 15px !important;
    }
    .mobile-wishlist-icon,
    .mobile-checkout-icon {
        color: #fff !important;
        font-size: 22px !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        text-decoration: none !important;
        transition: color 0.2s;
    }
    
    #mobile-cart-badge {
        position: absolute;
        top: -6px;
        right: -2px;
        background: var(--brand-pink, #d81b60);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 2px 5px;
        border-radius: 12px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
    }

    /* Eradicate all rogue whitespace in main header */
    header, #main-header {
        padding: 0 !important;
        margin: 0 !important;
        min-height: 0 !important;
    }
    .header-grid {
        flex-direction: column !important;
        align-items: center !important;
        padding: 5px 15px 10px 15px !important; /* Brutally tight padding */
        gap: 10px !important; /* Minimal space between logo and search */
        margin: 0 !important;
    }
    
    /* Logo Configuration */
    .grid-logo { 
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .grid-logo img { 
        max-height: 48px !important; 
        margin: 0 auto !important;
    }
    
    /* Search Configuration */
    .grid-search { 
        width: 100% !important; 
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Fix Menu Opening Position - Anchor perfectly to bottom of the 54px top bar */
    #menu-wrapper {
        position: absolute !important;
        top: 54px !important; 
        left: 0 !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        z-index: 1050 !important;
    }
    #menu .navbar-collapse {
        background: var(--brand-blue, #184484) !important;
        max-height: calc(100vh - 54px) !important; 
        overflow-y: auto !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        box-shadow: 0 10px 15px rgba(0,0,0,0.2) !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Fix Bootstrap 3 Tablet Conflict (Forces menu open above 768px by default) */
    #menu .navbar-collapse.collapse {
        display: none !important;
        height: auto !important;
    }
    #menu .navbar-collapse.collapse.in {
        display: block !important;
    }
    
    /* Hide Desktop Elements Completely */
    .grid-actions {
        display: none !important;
    }
    #menu .navbar-header { 
        display: none !important; 
    }
    
    /* Dismantle horizontal nav logic for mobile dropdown */
    #menu .nav {
        display: block !important;
        flex-direction: column !important;
        white-space: normal !important;
        margin: 0 !important;
    }
    #menu .nav > li {
        display: block !important;
        width: 100% !important;
    }
    #menu .nav > li > a { 
        color: #fff !important; 
        padding: 14px 20px !important; 
        border-bottom: 1px solid rgba(255,255,255,0.1) !important; 
        white-space: normal !important;
        display: block !important;
    }
    /* FIX: Unify hover, focus, and open states for mobile as well */
    #menu .nav > li > a:hover,
    #menu .nav > li > a:focus,
    #menu .nav > li.open > a { 
        background: rgba(0,0,0,0.2) !important; 
        color: #fff !important; 
    }

    /* Mobile Auto-Rotating Banners */
    .delivery-banner-container {
        padding: 8px 0 !important;
    }
    .delivery-banner-content {
      display: block;
      margin: 0;
      position: relative;
      min-height: 55px;
    }
    .banner-item {
      display: none !important; /* Hidden by default */
      width: 100%;
      background: #fff;
      padding: 10px;
      border-radius: 6px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
      animation: bannerFadeIn 0.4s ease-out forwards;      justify-content: flex-start;
    }
    .banner-item.active-banner {
      display: flex !important;
    }
    @keyframes bannerFadeIn {
      from { opacity: 0; transform: translateY(2px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .banner-item i {
      font-size: 24px;
      min-width: 24px;
    }
    .help-banner-content {
      padding: 12px 10px;
      font-size: 14px;
    }
  }

  @media (max-width: 576px) {
    .banner-item { font-size: 12px; }
    .banner-item i { font-size: 22px; }
  }

/* --- Styles from common/footer --- */

footer h5 {
    font-size: clamp(14px, 1vw + 10px, 16px) !important;
    font-weight: 700;
    color: #ffffff; /* Contrast fix: White text for dark backgrounds */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

footer a,
footer p {
    font-size: clamp(12px, 1vw + 6px, 13px);
    color: #cccccc; /* Make links readable against a dark background */
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-pink, #d81b60);
    text-decoration: none;
}



.footer-details {
        text-align: center;
        font-size: 13px;
        line-height: 1.6;
      }
      .footer-details a {
        text-decoration: underline;
      }
      /* New CSS rule to assemble the email address visually */
      .email-obfuscate::before {
        content: attr(data-user) "@" attr(data-domain);
      }
      .footer-details .separator {
        margin: 0 5px;
      }
      .copyright-notice {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #e7e7e7;
        font-size: 12px;
      }

/* --- Styles from checkout/d_quickcheckout --- */

/* This is the new CSS for highlighting the zone dropdown when an error occurs. */
.qc-zone-error-parent {
  border: 1px solid #a94442;
  border-radius: 4px;
  padding: 5px;
  background-color: #f2dede;
}

.qc-zone-error-text {
  color: #a94442;
  font-size: 12px;
  padding-top: 5px;
}

/* --- Styles from product/noresult --- */

/* --- Import Fonts --- */
    @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@600;700&display=swap');

    .toner-content-section {
        font-family: 'Open Sans', sans-serif;
        background-color: #f4f7f6;
        color: #333;
        line-height: 1.6;
        padding: 40px 15px;
    }

    .toner-content-section .container {
        max-width: 100%; 
        width: 100%;
        margin: 0 auto;
        padding: 50px;
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.07);
        text-align: center;
    }

    .toner-content-section h1,
    .toner-content-section h2,
    .toner-content-section h3 {
        font-family: 'Poppins', sans-serif;
        color: #1a237e;
        font-weight: 700;
        margin-top: 0;
    }

    .toner-content-section h1 {
        font-size: 3rem;
        margin-bottom: 0.5em;
        color: #1C2D8A;
    }

    /* --- Scoped Styles for Search Not Found --- */
    
    .snf-icon-wrapper {
        margin-bottom: 25px;
    }
    
    .snf-icon-wrapper svg {
        width: 120px;
        height: 120px;
        fill: #FF69B4; /* Brand Pink */
    }

    .snf-message {
        font-size: 1.4rem;
        color: #555;
        max-width: 100%;
        margin: 0 auto 40px auto;
        line-height: 1.8;
    }

    .snf-phone-highlight {
        font-weight: 700;
        color: #1C2D8A;
        font-size: 1.6rem;
        display: inline-block;
        margin-top: 15px;
        padding: 10px 25px;
        background-color: #e8f0ff;
        border-radius: 6px;
    }

    /* Search Bar Area */
    .snf-search-area {
        max-width: 100%;
        margin: 0 auto 60px auto;
        padding: 40px;
        background: linear-gradient(135deg, #f4f7f6 0%, #e8f0ff 100%);
        border-radius: 10px;
        border-left: 5px solid #1C2D8A;
    }

    .snf-search-area h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
        color: #333;
    }

    .snf-search-input-group {
        display: flex;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        border-radius: 6px;
        overflow: hidden;
    }

    .snf-search-input {
        flex: 1;
        padding: 20px 25px;
        border: 1px solid #ddd;
        border-right: none;
        font-size: 1.2rem;
        font-family: 'Open Sans', sans-serif;
        outline: none;
        border-radius: 6px 0 0 6px;
        transition: border-color 0.3s;
    }

    .snf-search-input:focus {
        border-color: #1C2D8A;
    }

    .snf-search-btn {
        background-color: #1C2D8A;
        color: #ffffff;
        border: none;
        padding: 0 40px;
        font-size: 1.2rem;
        font-weight: 600;
        cursor: pointer;
        transition: background-color 0.3s, transform 0.1s;
        border-radius: 0 6px 6px 0;
    }

    .snf-search-btn:hover {
        background-color: #FF69B4;
    }
    
    .snf-search-btn:active {
        transform: scale(0.98);
    }

    /* Contact Form Area */
    .snf-contact-area {
        max-width: 100%;
        margin: 0 auto;
        text-align: left;
        border-top: 1px solid #eee;
        padding-top: 50px;
    }

    .snf-contact-area h2 {
        text-align: center;
        font-size: clamp(1.8rem, 3.5vw, 2.6rem);
        margin-bottom: 15px;
    }
    
    .snf-contact-area p.snf-contact-sub {
        text-align: center;
        color: #666;
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .snf-form-group {
        margin-bottom: 20px;
    }

    .snf-form-row {
        display: flex;
        gap: 20px;
        margin-bottom: 20px;
    }

    .snf-form-row .snf-form-group {
        flex: 1;
        margin-bottom: 0;
    }

    .snf-form-label {
        display: block;
        font-weight: 600;
        margin-bottom: 10px;
        font-size: 1.2rem;
        color: #333;
    }

    .snf-form-control {
        width: 100%;
        padding: 16px 20px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-family: 'Open Sans', sans-serif;
        font-size: 1.2rem;
        transition: all 0.3s;
        box-sizing: border-box;
    }

    .snf-form-control:focus {
        border-color: #FF69B4;
        box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
        outline: none;
    }

    textarea.snf-form-control {
        resize: vertical;
        min-height: 180px;
    }

    .snf-submit-btn {
        background-color: #FF69B4;
        color: #fff;
        border: none;
        padding: 18px 40px;
        font-size: 1.4rem;
        font-weight: 700;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s, box-shadow 0.3s;
        display: block;
        width: 100%;
        font-family: 'Poppins', sans-serif;
    }

    .snf-submit-btn:hover {
        background-color: #1C2D8A;
        box-shadow: 0 6px 15px rgba(28, 45, 138, 0.2);
    }

    /* --- Responsive Adjustments --- */
    @media (max-width: 767px) {
        .toner-content-section .container {
            padding: 25px 15px;
        }
        
        .snf-form-row {
            flex-direction: column;
            gap: 20px;
        }
        
        .snf-search-input-group {
            flex-direction: column;
        }
        
        .snf-search-input {
            border-radius: 6px;
            border: 1px solid #ddd;
            margin-bottom: 10px;
        }
        
        .snf-search-btn {
            border-radius: 6px;
            padding: 15px;
        }
    }

/* --- Styles from information/contact --- */

/* --- Import Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&family=Poppins:wght@600;700&display=swap');

.modern-contact-page {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    margin-bottom: 50px;
    font-size: 1.15rem; /* Increased base text size */
}

.modern-contact-page h1, 
.modern-contact-page h3, 
.modern-contact-page h4 {
    font-family: 'Poppins', sans-serif;
    color: #1C2D8A;
    font-weight: 700;
}

.modern-contact-page h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 30px; } /* Increased from 2.5rem */
.modern-contact-page h3 { font-size: 1.8rem; margin-bottom: 20px; margin-top: 30px;} /* Increased from 1.5rem */

/* --- Store Info Cards --- */
.modern-contact-page .panel-default {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    background: #ffffff;
    margin-bottom: 30px;
    overflow: hidden;
}

.modern-contact-page .panel-heading {
    background-color: #f4f7f6;
    border-bottom: 1px solid #eee;
    padding: 15px 30px;
}

.modern-contact-page .panel-title a {
    color: #1C2D8A;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.25rem; /* Increased from 1.1rem */
}

.modern-contact-page .panel-body { padding: 30px; }
.modern-contact-page .panel-body strong { color: #1C2D8A; font-family: 'Poppins', sans-serif; font-size: 1.25rem; display: block; margin-bottom: 5px;} /* Increased from 1.1rem */
.modern-contact-page address { color: #555; line-height: 1.6; font-size: 1.15rem; }
.modern-contact-page .btn-info { background-color: #FF69B4; border: none; font-weight: 600; border-radius: 6px; padding: 10px 18px; font-size: 1.1rem; }
.modern-contact-page .btn-info:hover { background-color: #1C2D8A; }

/* --- Custom Form Area --- */
.mc-form-wrapper {
    background: linear-gradient(135deg, #f4f7f6 0%, #e8f0ff 100%);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-left: 5px solid #1C2D8A;
    margin-top: 40px;
}

.mc-form-wrapper legend { 
    font-size: 2.2rem; /* Increased from 2rem */
    margin-bottom: 25px; 
    text-align: left; 
    border-bottom: none;
    color: #1C2D8A;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.mc-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mc-form-group { flex: 1; min-width: 250px; }
.mc-form-group.full-width { flex: 100%; }

.mc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.25rem; /* Increased from 1.1rem */
    color: #333;
}
.mc-label.required::after { content: " *"; color: #FF69B4; }

.mc-input, .mc-select, .mc-textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem; /* Increased from 1.1rem */
    transition: all 0.3s;
    background: #fff;
    box-sizing: border-box;
    color: #333;
}

.mc-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 40px;
}

.mc-input:focus, .mc-select:focus, .mc-textarea:focus {
    border-color: #FF69B4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
    outline: none;
}

.mc-textarea { resize: vertical; min-height: 180px; }

.mc-submit-btn {
    background-color: #FF69B4;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 1.4rem; /* Increased from 1.3rem */
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.1s;
    display: inline-block;
    width: 100%;
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
}

.mc-submit-btn:hover { 
    background-color: #1C2D8A; 
    box-shadow: 0 6px 15px rgba(28, 45, 138, 0.2); 
}
.mc-submit-btn:active {
    transform: scale(0.98);
}

.mc-error { 
    color: #d9534f; 
    font-size: 1.05rem; /* Increased from 0.95rem */
    margin-top: 8px; 
    display: block; 
    font-weight: 600;
}

.mc-captcha-box { margin-bottom: 20px; }

/* Responsive tweaks */
@media (max-width: 767px) {
    .mc-form-row { flex-direction: column; gap: 15px; }
    .modern-contact-page .panel-body .col-sm-3 { margin-bottom: 20px; }
}

/* --- Styles from product/product --- */

/* --- The styles below depend on your main external CSS file for brand colors. --- */
/* --- Informational Box --- */
.product-info-box {
  background-color: var(--brand-pink);    /* CHANGED: Pink background */
  border: 1px solid var(--brand-pink);    /* CHANGED: Border to match */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}
.product-info-box h2 {
  font-size: 1.2em;
  color: #FFFFFF;        /* CHANGED: White text for high contrast */
  margin: 0;
  font-weight: 600;      /* CHANGED: Bolder font to make it stand out */
  line-height: 1.5;
}

/* --- NEW: Additional Info Box (for pef.5) --- */
.additional-info-container {
  background-color: var(--brand-blue); /* Light grey background like the purchase box */
  border: 1px solid #e7e7e7;         /* Subtle border */
  border-radius: 8px;                /* Rounded corners */
  padding: 20px;                     /* Standard padding */
  margin-bottom: 25px;             /* Spacing below */
  text-align: center;                /* Center the content inside */
}
/* Styles for the inner div you mentioned */
.additional-info-container .additional-info-block {
  font-size: 1.3em;
  color: #FFF;
  line-height: 1.6;
  font-weight: 600;
  word-wrap: break-word;             /* Prevent long links from clipping */
}
/* Style for the link inside */
.additional-info-container .additional-info-block a {
  color: #b4c7ff;
  font-weight: 750;
  text-decoration: underline;
  word-break: break-all;
}
.additional-info-container .additional-info-block a:hover {
  color: var(--brand-pink);
}

/* --- Full Width Title --- */
.product-page-title h1 {
      /* Fluid Typography: Scales smoothly from 20px on mobile to 32px on desktop */
      font-size: clamp(20px, 3.5vw, 32px);
      font-weight: 600;
      color: var(--text-dark);
      margin-top: 10px;
      margin-bottom: 20px;
}

/* --- Main Layout --- */
.product-page-main-columns {
    margin-bottom: 40px;
}
.product-info-bottom {
    margin-top: 25px;
}

/* --- Image Gallery --- */
.image-gallery-container .main-image-wrapper {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fff;
    text-align: center;
}
.image-gallery-container .main-image-wrapper img {
    width: 100%;
    max-height: 400px; /* Prevents the image from becoming huge on large screens */
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.image-gallery-container .image-thumbnails {
    list-style: none;
    padding: 0;
    margin: 0 -5px;
    display: flex;
    flex-wrap: wrap;
}
.image-gallery-container .image-thumbnails li {
    flex: 0 0 70px;
    height: 70px;
    padding: 0 5px;
    margin-bottom: 10px;
}
.image-gallery-container .image-thumbnails .thumbnail-link {
    display: block;
    border: 2px solid #e7e7e7;
    border-radius: 6px;
    transition: border-color 0.2s;
    background: #fff;
    cursor: pointer;
    height: 100%;
    padding: 3px;
}
.image-gallery-container .image-thumbnails .thumbnail-link.active,
.image-gallery-container .image-thumbnails .thumbnail-link:hover {
    border-color: var(--brand-pink);
}
.image-gallery-container .image-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

/* --- Purchase Box --- */
.purchase-box {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 20px;
    background: var(--brand-grey);
    margin-bottom: 30px; 
}
.purchase-box .product-meta {
    margin-bottom: 15px;
}
.purchase-box .product-meta li { font-size: clamp(13px, 1vw + 10px, 16px);
    color: #555;
    margin-bottom: 5px;
    word-wrap: break-word;
}
.purchase-box .product-price {
    margin-bottom: 20px;
}
.purchase-box .product-price h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--brand-pink); margin: 0; }
.purchase-box .price-tax { font-size: clamp(13px, 1vw + 10px, 16px);
    color: #777;
    display: block;
}
.purchase-box .add-to-cart-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.purchase-box #input-quantity {
    width: 75px; 
    flex-shrink: 0;
}
.purchase-box #button-cart {
    flex-grow: 1;
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    font-weight: 600;
    background-image: none; 
}
.purchase-box #button-cart:hover {
    background-color: #141c6a; 
    border-color: #141c6a;
    background-image: none;
}
.jump-to-related {
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-weight: 600;
    flex-grow: 1;
    white-space: nowrap;
    text-align: center;
}
.jump-to-related:hover {
    background-color: #f4f4f4;
    color: var(--brand-pink);
}

/* --- Dynamic Meta Visibility (for Short Screens & Mobile) --- */
.dynamic-meta-block { display: none; }
.dynamic-pb-meta { display: block; }

@media (max-width: 767px) {
    .dynamic-meta-block { display: block !important; }
    .dynamic-pb-meta { display: none !important; }
}

@media (min-width: 768px) and (max-height: 900px) {
    .dynamic-meta-block { display: block !important; }
    .dynamic-pb-meta { display: none !important; }
    
    .purchase-box {
        padding: 10px 15px !important;
    }
    .purchase-box .product-price h2 {
        font-size: clamp(20px, 2.5vw, 24px) !important;
    }
    .flex-purchase-box {
        gap: 10px !important;
    }
    .purchase-box .control-label {
        font-size: 11px;
        margin-bottom: 2px !important;
    }
}

/* --- Flex Layout for Wide Purchase Box --- */
.flex-purchase-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.flex-purchase-box > div {
    flex: 1 1 25%;
}
.flex-purchase-box .product-meta {
    margin-bottom: 0;
}
.flex-purchase-box .product-price {
    margin-bottom: 0;
    text-align: center;
}
.flex-purchase-box .add-to-cart-section {
    margin-top: 0;
    justify-content: flex-end;
}
@media (max-width: 991px) {
    .flex-purchase-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .flex-purchase-box > div {
        width: 100%;
        flex: 1 1 100%;
    }
    .flex-purchase-box .product-price {
        text-align: left;
        margin: 15px 0;
        padding: 15px 0;
        border-top: 1px solid #dcdcdc;
        border-bottom: 1px solid #dcdcdc;
    }
    .flex-purchase-box .add-to-cart-section {
        justify-content: flex-start;
    }
}
@media (max-width: 767px) {
    .purchase-box .add-to-cart-section {
        flex-direction: column;
        align-items: stretch;
    }
    .purchase-box .add-to-cart-section > * {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 8px;
    }
    .purchase-box .add-to-cart-section label {
        text-align: left;
    }
}

/* --- Headings & Full-width Bottom Sections --- */
.right-hand-container h3,
.compatible-printers-container h3,
.specification-container h3,
.related-products-container h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brand-grey);
    font-weight: 600;
}

/* --- Specification Table & Compatible Printers List --- */
.specification-container {
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.specification-container h3 {
    text-align: center;
}
.specification-container .table-bordered,
.compatible-printers-container .table {
    margin-bottom: 0;
}
.compatible-printers-container {
    margin-top: 30px;
    margin-bottom: 30px;
}
.compatible-printers-container a {
    color: var(--brand-blue);
    font-weight: 600;
}
.compatible-printers-container a:hover {
    color: var(--brand-pink);
}

/* --- Enhanced Compatible Printers Table (Responsive) --- */
.product-grouped-hierarchical-categories {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    background: #fff;
    overflow-x: auto; /* Allows horizontal scrolling on narrow screens */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 0;
}
.product-grouped-hierarchical-categories .table {
    border: none;
    margin-bottom: 0;
    min-width: 500px; /* Forces scrolling on small devices instead of clipping the page */
}
.printer-cat-level-1 td {
    background-color: #f8f9fa;
    color: #333;
    font-size: 16px;
    padding: 12px 20px !important;
    border-bottom: 2px solid #e7e7e7;
    border-top: none !important;
}
.printer-cat-level-2 td {
    background-color: #ffffff;
    color: #555;
    font-size: 15px;
    padding: 10px 20px 10px 35px !important;
    border-bottom: 1px dashed #e7e7e7;
}
.printer-cat-level-3 td {
    background-color: #ffffff;
    color: #666;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
}
.printer-cat-level-1 a, .printer-cat-level-2 a, .printer-cat-level-3 a {
    color: inherit;
}
.printer-cat-level-1 a:hover, .printer-cat-level-2 a:hover, .printer-cat-level-3 a:hover {
    color: var(--brand-pink);
    text-decoration: none;
}
.product-grouped-hierarchical-categories .category-leaf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 15px 20px 20px 35px;
    background: #fff;
    border-bottom: 1px solid #e7e7e7;
}
@media (max-width: 767px) {
    .product-grouped-hierarchical-categories .category-leaf-grid {
        padding-left: 15px !important; /* Overrides inline padding on very small screens to save space */
    }
}
.category-leaf-item a {
    display: block;    padding: 8px 12px;
    background-color: #f4f7f9;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    color: var(--brand-blue);
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    word-wrap: break-word;
}
.category-leaf-item a:hover {
    background-color: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.price-tax-label {
  font-size: 0.4em;        /* Set to 90% of the parent's size. Adjust if needed. */
  font-weight: 500;        /* Makes it a normal or medium weight, not bold */
  color: #666;            /* A muted grey color */
  margin-left: 2px;        /* Adds a little space after the price */
  vertical-align: middle; /* Helps align it nicely with the main price */
}

/* --- Description Redesign --- */
.product-description-container {
    margin-bottom: 30px;
}
.product-description {
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-family: var(--font-body, 'Open Sans', sans-serif);
    font-size: clamp(14px, 1.2vw + 10px, 18px);
    line-height: 1.6; /* Much more breathable space */
    color: #444;      /* High readability deep grey */
}
.product-description p {
    margin-bottom: 15px; /* Clean gap between paragraphs */
}
.product-description h2 { font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 600;
  }
.product-description ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.product-description li {
    margin-bottom: 8px; /* Clean gap between bullet points */
}

/* --- Related Products --- */
.related-products-container {
    margin-top: 30px;
    margin-bottom: 40px;
}

/* Custom Grid for Scrolling Layout */
.related-products-grid {
    display: grid;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px; /* Spacing for the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--brand-pink) #f0f0f0;
    
    /* Desktop default: 1 row, 6 items across */
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    grid-auto-columns: calc(16.666% - 12.5px); /* 100/6% minus proportionate gap */
}

/* Webkit Scrollbar Styling */
.related-products-grid::-webkit-scrollbar {
    height: 8px;
}
.related-products-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
.related-products-grid::-webkit-scrollbar-thumb {
    background: var(--brand-pink);
    border-radius: 4px;
}

/* Responsive breakpoints */
@media (max-width: 1199px) {
    .related-products-grid {
        grid-auto-columns: calc(20% - 12px); /* 5 across on medium screens */
    }
}
@media (max-width: 991px) {
    .related-products-grid {
        grid-auto-columns: calc(25% - 11.25px); /* 4 across on tablets */
    }
}
@media (max-width: 767px) {
    .related-products-grid {
        grid-template-rows: 1fr 1fr; /* Stack into 2 rows on mobile */
        grid-auto-columns: calc(50% - 7.5px); /* 2 items across */
    }
}

.related-product-item {
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.related-product-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.related-product-item .image img {
    margin: 0 auto;
}
.related-product-item .caption {
    margin-top: 15px;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
}
.related-product-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    word-wrap: break-word;
}
.related-product-item h4 a {
    color: var(--text-dark);
}
.related-product-item .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-pink);
    margin-bottom: 10px;
    margin-top: auto !important;
}
.related-product-item .price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin-left: 5px;
}
.related-product-item .price-tax {
    display: block;
    font-size: 12px;
    color: #777;
    font-weight: 400;
    margin-top: 3px;
}
.related-product-item .button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}
.related-product-item .button-group .btn-primary {
    background-image: none !important;
    background-color: var(--brand-pink, #d81b60) !important;
    border-color: var(--brand-pink, #d81b60) !important;
    padding: 6px 12px;
    flex-grow: 1;
    color: #fff !important;
    font-weight: 700;
}
.related-product-item .button-group .btn-primary:hover {
    background-image: none !important;
    background-color: #184484 !important;
    border-color: #184484 !important;
}

/* --- Product List Quantity & Add to Cart --- */
.product-thumb .button-group.list-qty-group {
    display: flex !important;
    align-items: center;
    justify-content: stretch;
    gap: 5px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    background: #fdfdfd;
    clear: both;
    overflow: visible;
}
.product-thumb .button-group.list-qty-group > * {
    float: none !important; /* Eradicate OpenCart float layout */
    margin: 0 !important;
    border: none !important;
}
/* Input element */
.product-thumb .button-group.list-qty-group .list-qty-input {
    width: 50px !important;
    flex: 0 0 50px !important;
    height: 38px !important;
    text-align: center;
    padding: 0;
    border: 1px solid #dcdcdc !important;
    border-radius: 6px;
    font-weight: 600;
}
/* Main ADD TO CART Button */
.product-thumb .button-group.list-qty-group .btn-list-cart {
    flex-grow: 1 !important;
    width: auto !important; /* Eradicate OpenCart 60% layout */
    height: 38px !important;
    line-height: normal !important;
    background-image: none !important;
    background-color: #d81b60 !important;
    border-color: #d81b60 !important;
    color: #fff !important;
    border-radius: 6px !important;
    transition: 0.2s all;
    font-weight: 700;
    font-size: 13px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-thumb .button-group.list-qty-group .btn-list-cart i {
    font-size: 16px;
}
.product-thumb .button-group.list-qty-group .btn-list-cart:hover {
    background-image: none !important;
    background-color: #184484 !important;
    border-color: #184484 !important;
}

/* ==========================================================================
   SEO & SEMANTIC STRUCTURAL UPDATES
   ========================================================================== */
.category-heading {
    /* Categories should be H1, not H2, for SEO compliance */
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--brand-blue, #184484);
}
.category-description-box {
    margin-bottom: 20px;
}
.product-thumb .caption h2.product-title {
    /* Product lists should use H2 instead of H4 to pass semantic outlining tools! */
    font-size: 15px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-thumb .caption h2.product-title a {
    color: var(--brand-blue, #184484);
    text-decoration: none;
    transition: color 0.2s;
}
.product-thumb .caption h2.product-title a:hover {
    color: var(--brand-pink, #d81b60);
}
.product-teaser {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
/* Wishlist & Compare Buttons */
.product-thumb .button-group.list-qty-group button[data-toggle="tooltip"] {
    width: 38px !important; /* Eradicate OpenCart 20% layout */
    flex: 0 0 38px !important;
    height: 38px !important;
    line-height: normal !important;
    background: #fff !important;
    color: var(--brand-blue, #184484) !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 6px !important;
    transition: 0.2s all;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.product-thumb .button-group.list-qty-group button[data-toggle="tooltip"]:hover {
    color: var(--brand-pink, #d81b60) !important;
    border-color: var(--brand-pink, #d81b60) !important;
}

/* --- Floating Cart Notification --- */
#floating-cart-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brand-blue, #141c6a);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
    z-index: 99999;
    font-size: 16px;
    font-weight: 600;
    display: none;
    text-align: center;
    border: 2px solid #fff;
    
    /* MOBILE FIXES: Ensures long names wrap and don't blow out the screen width */
    width: 90%;
    max-width: 450px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}
#floating-cart-toast i {
    margin-right: 8px;
    font-size: 1.2em;
    vertical-align: middle;
}
/* Cart Dropdown Hover for Desktop */
@media (min-width: 992px) {
  #cart:hover .dropdown-menu {
    display: block;
  }
}

/* Modifying standard cart to look like the pink checkout button */
#cart {
  margin: 0 !important; width: auto !important;
}
#cart > .btn {
  background: var(--brand-pink, #d81b60) !important;
  color: #fff !important;
  border: none !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 24px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  transition: background 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  margin: 0 !important;
}
#cart > .btn:hover, #cart > .btn:focus {
  background: #b0154e !important;
  color: #fff !important;
  text-decoration: none !important;
}
#cart > .btn i {
  font-size: 18px !important;
}
#cart .dropdown-menu {
  z-index: 2001 !important;
}



/* ==========================================================================
   MOBILE STICKY PURCHASE BAR
   ========================================================================== */
@media (max-width: 767px) {
  body {
    padding-bottom: 90px;
  }
  .purchase-box {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    margin: 0 !important;
    padding: 12px 15px !important;
    z-index: 1040;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15) !important;
    border: none !important;
    border-top: 1px solid #e7e7e7 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  .purchase-box .pb-meta {
    display: none !important;
  }
  .purchase-box .pb-price {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    text-align: left !important;
  }
  .purchase-box .product-price {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }
  .purchase-box .product-price h2 {
    font-size: 22px !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    line-height: 1;
  }
  .purchase-box .price-tax-label {
    font-size: 11px !important;
    margin: 2px 0 0 0 !important;
    font-weight: 600;
  }
  .purchase-box .price-tax, .purchase-box .price-old {
    display: none !important;
  }
  .purchase-box .pb-action {
    flex: 1 1 auto !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .purchase-box #product {
    margin: 0 !important;
  }
  .purchase-box .add-to-cart-section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .purchase-box .add-to-cart-section label {
    display: none !important;
  }
  .purchase-box #input-quantity {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 48px !important;
    margin: 0 !important;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px !important;
  }
  .purchase-box #button-cart {
    flex: 1 1 auto !important;
    height: 48px !important;
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    background-color: #28a745 !important; /* Standout conversion green */
    border-color: #28a745 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 8px !important;
    padding: 0 20px !important;
    transition: background-color 0.2s;
  }
  .purchase-box #button-cart:hover {
    background-color: #218838 !important;
    border-color: #218838 !important;
  }
  .purchase-box .jump-to-related,
  .purchase-box .alert {
    display: none !important;
  }
}

/* ==========================================================================
   DESKTOP STICKY PURCHASE BOX (Always Visible Add To Cart)
   ========================================================================== */
@media (min-width: 768px) {
  .right-hand-container {
    /* Ensures the container height naturally stretches without breaking columns */
    display: block;
    position: relative;
    min-height: 100%;
  }

  .purchase-box {
    position: -webkit-sticky;
    position: sticky;
    bottom: 20px;
    z-index: 1020;
    
    /* Strong visual styling so it looks intentionally floating over the long text */
    background: #ffffff !important;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15) !important;
    border: 2px solid var(--brand-pink, #d81b60) !important;
    transform: translateZ(0); /* Hardware acceleration for buttery smooth scrolling */
  }
}

/* ==========================================================================
   LEFT SIDEBAR REFINEMENTS
   ========================================================================== */
#column-left .list-group-item {
  font-size: 14px !important; /* Locks side-navigation size preventing fluid typography inheritance */
  padding: 10px 15px;
  color: #444;
  border-color: #f0f0f0;
  transition: all 0.2s;
}
#column-left .list-group-item.active,
#column-left .list-group-item.active:hover,
#column-left .list-group-item.active:focus {
  background-color: var(--brand-blue, #184484);
  border-color: var(--brand-blue, #184484);
  color: #fff;
  font-weight: 600;
  text-shadow: none !important;
}
#column-left .list-group-item:hover {
  background-color: #fdfdfd;
  color: var(--brand-pink, #d81b60);
  border-left: 2px solid var(--brand-pink, #d81b60);
}
#column-left h2,
#column-left h3 {
  font-size: 18px !important;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

/* ==========================================================================
   PRODUCT GRID UNIFORM SIZING (Equal Heights)
   ========================================================================== */
/* Make rows display as flex so columns stretch to the height of the tallest item */
.product-layout.product-grid {
    display: flex;
}
/* Ensure the thumb container takes up the full height of the column */
.product-thumb {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin-bottom: 20px;
}
/* Push the button group down to the bottom by expanding the middle section */
.product-thumb .image {
    flex: 0 0 auto;
}
.product-thumb > div:not(.image) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.product-thumb .caption {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
/* Keep price at the bottom of the caption area before the buttons */
.product-thumb .caption .price {
    margin-top: auto;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-pink, #d81b60);
}
.product-thumb .caption .price-new {
    font-weight: 700;
}
.product-thumb .caption .price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 5px;
    font-weight: normal;
}
.product-thumb .caption .price-tax {
    color: #777;
    font-size: 12px;
    display: block;
    font-weight: normal;
    margin-top: 4px;
}




















/* ============================================================
   CWV FIXES: CLS Reduction + Consistent Theming + 90vh Fill
   Append this to the END of custom_theme.css
   ============================================================ */

/* --- 1. Load Google Fonts Once (display=swap prevents FOIT/FOUT shift) --- */
/* NOTE: The actual <link> tags go in header.twig - see header_fixes.txt */

/* --- 2. Ensure fonts use swap to prevent layout shift --- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Open Sans Regular'), local('OpenSans-Regular');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Open Sans SemiBold'), local('OpenSans-SemiBold');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Open Sans Bold'), local('OpenSans-Bold');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Poppins SemiBold'), local('Poppins-SemiBold');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Poppins Bold'), local('Poppins-Bold');
}

/* --- 3. All pages must fill at least 90% of viewport --- */
#information-information,
#common-home,
#product-product,
#category-category {
  min-height: 90vh;
}

/* Ensure content area grows to fill space */
#content {
  min-height: 70vh;
}

/* Information pages specific: remove default padding that causes gaps */
#information-information #content {
  padding-bottom: 40px;
}

/* --- 4. Stabilise sticky header height to prevent CLS --- */
/* Reserve space so the page doesn't jump when header loads */
.sticky-header-wrapper {
  min-height: 120px; /* Approximate combined height of top-bar + header + menu */
}

/* On desktop, the header is more compact */
@media (min-width: 768px) {
  .sticky-header-wrapper {
    min-height: 130px;
  }
}

/* --- 5. Banner section: reserve space before content loads --- */
#banners-section {
  min-height: 80px; /* Reserve space for delivery banner + help banner */
}

/* --- 6. Image aspect-ratio to prevent image loading shifts --- */
/* Apply to all content images that don't have explicit dimensions */
#information-information img,
#common-home img,
#product-product img {
  max-width: 100%;
  height: auto;
}

/* For images inside the homepage gallery */
.toner-content-section .image-gallery img {
  aspect-ratio: 4 / 3;
  height: auto;
}

/* --- 7. Information pages: shared base styling (removed from inline) --- */
/* These replace the inline styles that were duplicated across every page */
.terms-page-container,
.privacy-policy-container,
.dymo-labels-page,
#brother-labels-guide-container,
.toner-content-section {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.8;
}

.terms-page-container h2,
.privacy-policy-container h2,
.dymo-labels-page h2,
#brother-labels-guide-container h1,
#brother-labels-guide-container h2,
.toner-content-section h1,
.toner-content-section h2,
.toner-content-section h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #1a237e;
}

/* --- 8. Reduce layout shift from Font Awesome icon loading --- */
.fa, .fas, .far, .fal, .fab {
  display: inline-block;
  width: 1em;
  height: 1em;
  text-align: center;
}
