/*
Theme Name: Direct Security
Theme URI: http://direct-security.local
Author: Your Name
Description: Custom theme for Direct Security
Version: 1.0
*/

:root {
    --brand-pink: #eb0c8c;
    --mobile-header-actual-height: 72px; 
}

body { 
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: clip; 
    box-sizing: border-box;
}

/* =================================
   Scroll Lock & Content Jump Fix
   ================================= */
/* When the primary menu is active, this locks the body scroll and adds padding. */
body:has(.primary-menu.active) {
    overflow: hidden;
    height: 100vh;
    /* This padding is the crucial part that prevents the content jump. */
    padding-top: var(--mobile-header-actual-height);
}

/* When the menu is active on mobile, the header switches to fixed positioning. */
@media (max-width: 768px) {
    body:has(.primary-menu.active) .site-header {
        position: fixed;
    }
}


/* =================================
   Site Header & Navigation
   ================================= */

.site-header {
    position: sticky; 
    top: 0;
    background: #fff;
    border-bottom: 3px solid var(--brand-pink);
    z-index: 9999;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem; /* Desktop padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; 
}


.logo-icon {
    height: 45px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem; 
    flex-grow: 1;
    justify-content: flex-end;
}

.primary-menu {
    list-style: none;
    display: flex; 
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    order: 0; 
    width: 100%;
    max-width: 600px;
}

.primary-menu li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    font-size: 1rem;
    padding: 0.25rem 0; 
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a {
    color: var(--brand-pink);
}

.cart-icon {
    font-weight: bold; 
    position: relative;
    margin: 0;
    order: 1; 
    visibility: hidden;
    -webkit-tap-highlight-color: transparent;
}

.cart-icon a {
    text-decoration: none;
    color: var(--brand-pink); 
    display: flex;
    align-items: center;
    position: relative;
    font-size: 1.3rem; 
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cart-icon a:hover {
    color: #c2185b; 
}

.cart-icon .cart-count {
    display: flex;
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--brand-pink); 
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    pointer-events: none; 
}

/* --- Menu Toggle (Hamburger/X) --- */
.menu-toggle {
    display: none; 
    width: 25px;
    height: 20px;
    position: relative; 
    cursor: pointer;
    z-index: 10001; 
    order: 1; 
    background: transparent;
    border: none;
    padding: 0;
    margin: 0; 
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    position: absolute; 
    height: 3px;          
    width: 100%;          
    background: var(--brand-pink); 
    border-radius: 2px; 
    opacity: 1;
    left: 0;              
    transform: rotate(0deg); 
    transform-origin: left center; 
    transition: transform 0.25s cubic-bezier(0.645, 0.045, 0.355, 1), 
                opacity 0.25s ease-in-out,
                top 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                left 0.25s cubic-bezier(0.645, 0.045, 0.355, 1),
                width 0.25s ease-in-out;
}

.menu-toggle span:nth-child(1) { top: 0px; }
.menu-toggle span:nth-child(2) { top: 8.5px; }
.menu-toggle span:nth-child(3) { top: 17px; }

.menu-toggle.active span:nth-child(1) {
    top: 0.2px;
    left: 3px;
    transform: rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
    width: 0%; 
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    top: 18.5px;
    left: 3px;
    transform: rotate(-45deg);
}
/* --- End of Menu Toggle --- */


/* =================================
   DESKTOP NAVIGATION ENHANCEMENTS
   ================================= */
@media (min-width: 769px) {
    .primary-menu li {
        flex-grow: 1;
        text-align: center;
    }

    .primary-menu li a {
        display: block;
    }

    .primary-menu li a::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--brand-pink);
        bottom: -5px;
        left: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .primary-menu li a:hover::after {
        transform: scaleX(1);
    }

    .primary-menu li.current-menu-item a::after {
        transform: scaleX(1);
        transform-origin: center;
    }
}


/* =================================
   Mobile Navigation Styles
   ================================= */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .logo {
        order: 1;
        margin-left: -15px;
    }
    
    .nav-right {
        gap: 1rem; 
        flex-grow: 0;
    }

    .cart-icon {
        order: 0; 
        font-size: 1.4rem; 
    }
    
    .menu-toggle { 
        display: block; 
        order: 1;       
    }

    .primary-menu {
        display: flex;
        flex-direction: column; 
        gap: 0px;
        position: fixed; 
        top: var(--mobile-header-actual-height);
        right: 0;
        width: 100vw; 
        max-width: 100vw;
        height: calc(100vh - var(--mobile-header-actual-height)); 
        margin-top: 0;
        background: #ffffff; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 0.5rem; 
        padding-bottom: 1rem; 
        z-index: 10000; 
        border-top: 1px solid #e0e0e0; 
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease-in-out, visibility 0.3s;
    }

    .primary-menu.active {
        transform: translateX(0);
        visibility: visible;
    }

    .primary-menu li {
        width: 100%;      
        margin: 0;        
    }

    .primary-menu li a {
        padding: 1rem 1.5rem;
        display: flex;        
        align-items: center;    
        justify-content: center;
        font-size: 1.1rem;
        color: #2c3e50;        
        font-weight: 500;       
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        width: 100%; 
        box-sizing: border-box;
        min-height: 0; 
        line-height: 1.3;  
        border-bottom: 1px solid #e8e8e8;
    }
    
    .primary-menu li:not(.primary-menu-supplemental-item):last-of-type a {
        border-bottom: none;
    }

    .primary-menu li a:hover,
    .primary-menu li a:focus { 
        background-color: #f5f5f5; 
        color: var(--brand-pink); 
        outline: none; 
    }
    
    .cart-icon .cart-count {
        top: -5px;
        right: -5px;
        width: 16px;
        height: 16px;
        font-size: 0.65rem;
    }
}



/* =================================
   Site Footer & Navigation
   ================================= */
.site-footer {
  background: #222;
  color: #eee;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 180px;
}

.footer-column h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.footer-column ul li a:hover {
  color: var(--brand-pink, var(--brand-pink));
}

.contact-column p {
  margin: 0.5rem 0;
}

.contact-column a {
  color: #ccc;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.contact-column a:hover {
  color: var(--brand-pink, var(--brand-pink));
}

.social-icons img {
  width: 24px;
  height: 24px;
  margin-top: 0.5rem;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.payment-section {
  text-align: center;
}

.payment-section p {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.payment-logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-logos img {
  height: 30px;
  object-fit: contain;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
}

@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    flex: 1 1 100%;
  }

  .social-icons img {
    margin: 0 auto;
  }
}

/* ===================
   Home Page
   =================== */

.hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .btn-primary {
    background: var(--brand-pink);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.hero .btn-primary:hover {
    background: var(--brand-pink-dark, #c2185b);
}

.home-services {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
    color: #333;
}

.home-services h2,
.testimonials h2,
.cta h2,
.cta-products h2,
.cta-final h2 {
    font-size: 1.7rem;
    text-align: center;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 270px);
    justify-content: center;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.home-service {
    background: #fff;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;  
}

.home-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.home-service h3 {
    font-size: 1.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--brand-pink);
}

.home-service p {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.home-service img {
    max-width: 100%;
    width: 100%;
    height: 180px;
    max-height: 300px;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.view-more-wrapper {
    text-align: center;
    margin-top: 2rem;
}

.view-more-wrapper .btn-secondary {
    background: var(--brand-pink);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.view-more-wrapper .btn-secondary:hover {
    background: var(--brand-pink-dark, #c2185b);
}

.testimonials,
.cta-products,
.cta-final {
    padding: 80px 0;
    text-align: center;
    color: #333;
}

.cta .btn-secondary,
.cta-products .btn-secondary,
.cta-final .btn-secondary {
    background: var(--brand-pink);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cta .btn-secondary:hover,
.cta-products .btn-secondary:hover,
.cta-final .btn-secondary:hover {
    background: var(--brand-pink-dark, #c2185b);
}

/* --- Styles for CTA with Background Image --- */
.cta-final.cta-with-bg {
    position: relative;
    background-size: cover;
    background-position: center center;
    color: #fff;
    padding: 100px 0;
}

.cta-final.cta-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.cta-final.cta-with-bg .container {
    position: relative;
    z-index: 2;
}

.cta-final.cta-with-bg h2 {
    color: #fff;
}


/* =================================
   NEW: On-Load Animations
   ================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.load-in-child {
    /* Set initial state */
    opacity: 0; 
    
    /* Apply the animation */
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Create a staggered delay for the on-load animation */
.load-in .load-in-child:nth-child(1) { animation-delay: 0.1s; }
.load-in .load-in-child:nth-child(2) { animation-delay: 0.25s; }
.load-in .load-in-child:nth-child(3) { animation-delay: 0.4s; }


/* =================================
   Scroll-Triggered Animations (Universal Final Version)
   ================================= */

/* This is the parent container that the JavaScript will observe. */
.anim-group {
    /* This class is just a hook for JS and requires no styles. */
}

/* This is the initial, hidden state for any element that will animate. */
.anim-child {
    opacity: 0;
}

/* This sets the starting position for elements that slide up. */
.anim-child.anim-fade-up {
    transform: translateY(40px);
}

/* This is a universal rule that will work on ANY page. */
.anim-group.is-visible .anim-child {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: calc(var(--animation-order, 0) * 150ms);
}


/* ===================
   Testimonials Carousel
   =================== */

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto 0;
    overflow: hidden;
}

.testimonial-carousel {
    position: relative;
    min-height: 150px;
}

.testimonial-slide {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 20px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.7s ease-in-out, visibility 0s linear 0.7s;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transition: opacity 0.7s ease-in-out;
}

.testimonial-slide blockquote {
    margin-bottom: 1rem;
    font-size: 1.1em;
    font-style: italic;
    color: #4A5568;
    line-height: 1.6;
}

.testimonial-slide blockquote p {
    margin-bottom: 0.5rem;
}

.testimonial-slide footer {
    font-size: 1em;
    font-weight: bold;
    color: var(--brand-pink);
}

.testimonial-navigation-dots {
    text-align: center;
    margin-top: 25px;
    padding-bottom: 10px;
}

.testimonial-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #CBD5E0;
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.testimonial-dot.active {
    background-color: var(--brand-pink);
    transform: scale(1.2);
}

/* ===================
   Responsive Styles
   =================== */

@media (max-width: 768px) {
  .hero {
    padding: 60px 1rem;
  }

  .hero .btn-primary {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .home-services {
    padding: 60px 0;
  }

  .home-services h2,
  .testimonials h2,
  .cta h2,
  .cta-products h2,
  .cta-final h2 {
    margin: 0 1rem 1.5rem;
  }

  /* --- Service Grid Mobile --- */
  .home-service-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
    scroll-behavior: smooth;
    grid-template-columns: none;
    justify-content: flex-start;
  }

  .home-service-grid::-webkit-scrollbar {
    display: none;
  }

  a.service-card-link {
    flex: 0 0 90%;
    scroll-snap-align: center;
    box-sizing: border-box;
    display: block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }

  .home-service {
    height: auto;
    min-height: 420px;
  }

  .home-service img {
    height: 210px;
  }

  .home-service p {
    text-align: center;
  }

  .home-service:hover {
    transform: none;
  }

  .testimonials,
  .cta-products,
  .cta-final {
    padding: 60px 1rem;
  }

  .cta-final.cta-with-bg {
    padding: 80px 1rem;
  }

  .testimonial-carousel-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .testimonial-slide blockquote {
    font-size: 1em;
  }

  .testimonial-slide footer {
    font-size: 0.95em;
  }

  .cta .btn-secondary,
  .cta-products .btn-secondary,
  .cta-final .btn-secondary {
    font-size: 1rem;
    padding: 10px 20px;
  }

  .home-service-grid-wrapper {
    position: relative;
  }

  .dot-navigation {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 8px;
  }

  .dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .dot.active {
    background: var(--brand-pink);
    transform: scale(1.2);
  }
}


/* ===================
   About Us Page
   =================== */

.about-us {
    padding: 80px 1rem;
    background: #f8fafc;
    color: #333;
    text-align: center;
}

.about-us .container {
    max-width: 900px;
    margin: 0 auto;
}

.about-us h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-us .intro {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #555;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand-pink);
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1 1 300px;
    text-align: center;
}

/* --- FIX: IMAGE STYLING --- */
.about-image img {
    width: 100%; /* Ensure image takes full width of its container */
    /* REMOVED fixed height to allow natural proportions */
    object-fit: contain; /* UPDATED: This fits the entire image within the container */
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}


/* ===================
   Responsive Styles
   =================== */

@media (max-width: 768px) {
    .hero {
        padding: 60px 1rem;
    }

    .hero .btn-primary {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .home-services {
        padding: 60px 0;
    }

    .home-services h2,
    .testimonials h2,
    .cta h2,
    .cta-products h2,
    .cta-final h2 {
        margin: 0 1rem 1.5rem;
    }

    /* --- Service Grid Mobile --- */
    .home-service-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding: 0 1rem;
        box-sizing: border-box;
        scroll-behavior: smooth;
        grid-template-columns: none;
        justify-content: flex-start;
    }

    .home-service-grid::-webkit-scrollbar {
        display: none;
    }

    a.service-card-link {
        flex: 0 0 90%;
        scroll-snap-align: center;
        box-sizing: border-box;
        display: block;
    }

    .home-service {
        height: auto;
        min-height: 420px;
    }

    .home-service img {
        height: 210px;
    }

    .home-service p {
        text-align: center;
    }

    .testimonials,
    .cta-products,
    .cta-final {
        padding: 60px 1rem;
    }

    .cta-final.cta-with-bg {
        padding: 80px 1rem;
    }

    .testimonial-carousel-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .testimonial-slide blockquote {
        font-size: 1em;
    }

    .testimonial-slide footer {
        font-size: 0.95em;
    }

    .cta .btn-secondary,
    .cta-products .btn-secondary,
    .cta-final .btn-secondary {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .home-service-grid-wrapper {
        position: relative;
    }

    .dot-navigation {
        display: flex;
        justify-content: center;
        margin-top: 1.5rem;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
        background: #ccc;
        border-radius: 50%;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .dot.active {
        background: var(--brand-pink);
        transform: scale(1.2);
    }

    /* About Us Responsive */
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text,
    .about-image {
        flex: unset;
    }

    .about-text {
        margin-bottom: 2rem;
    }
    
    /* --- FIX: IMAGE STYLING FOR MOBILE --- */
    .about-image img {
        height: auto; /* UPDATED: Removed fixed height for mobile as well */
        max-height: 350px; /* Optional: Constrain the height on mobile if desired */
    }
}


/* =================================
   Services Page (services.php - Listing Page)
   ================================= */

.service-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    height: 100%;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.service-card-link:hover .service-page-service {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.services-page {
    padding: 80px 0;
    background: #f8fafc;
    text-align: center;
}

.services-page .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services-page-header {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #333;
}

.callout-fee {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #444;
}

.service-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 260px);
    justify-content: center;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.service-page-service {
    background: #fff;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-page-service img {
    max-width: 100%;
    width: 100%;
    height: 180px;
    max-height: 300px;
    margin-bottom: 0.5rem;
}

.service-page-service h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--brand-pink);
    flex-shrink: 0;
    line-height: 1.3;
}

.service-page-service p {
    font-size: 1rem;
    line-height: 1.4;
    color: #555;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}


@media (max-width: 768px) {
    .service-page-grid {
        grid-template-columns: 1fr;
    }

    .service-page-service {
        height: 400px;
    }

    .service-page-service img {
        height: 200px;
    }
    .service-page-service p {
      text-align: center;
    }
}

/* =================================
   Breadcrumbs Styles (FINAL)
   ================================= */
.breadcrumbs {
    position: absolute; /* ADD: Lifts the breadcrumbs out of the document flow */
    top: 10px;             /* ADD: Pins them to the top of the container */
    left: 0;            /* ADD: Pins them to the left of the container */
    text-align: left;
    margin-left: 10px;   /* CHANGED: No longer needed for spacing */
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;

}

.breadcrumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5em;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .breadcrumbs {
        top: -40px;         
        left: -10px;            
    }
}


/* =================================
   Service Detail Page (single-service.php) - HERO BANNER STYLES (Updated)
   ================================= */

.service-detail-page { /* Main wrapper for the entire service detail page content, if used */
    padding: 0; /* Remove padding if hero is full-width and sections below handle their own */
    background: #fff;
    color: #333;
}

.service-detail-page-main .container { /* General container for content below hero */
    max-width: 1280px; /* Wider layout for content sections */
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Banner Section */
.service-hero-banner {
    position: relative;
    height: 650px;
    min-height: 650px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    background-color: #2d3748;
}

.service-hero-banner::before { /* Dark overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55); /* Adjust opacity for desired darkness */
    z-index: 1;
}

.service-hero-banner .container.service-hero-content {
    position: relative;
    z-index: 2;
    width: 100%; /* ADDED: Ensure it takes full width */
    max-width: 100%; /* Max width of content within hero */
    height: 100%;
    max-height: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.service-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    margin-top: 180px; /* CHANGED: Let the breadcrumb margin handle spacing */
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* Styling for the Short Description in Hero */
.service-hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-top: 0;
    margin-bottom: 2rem; /* Space before the new button */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-description p {
    margin-bottom: 0.5em;
}
.service-hero-description p:last-child {
    margin-bottom: 0;
}

/* Styles for the Quote CTA button inside the hero */
.service-quote-cta {
    margin-top: 1rem; /* Adjust as needed */
}

/* The .btn-primary class styles are now defined here to match the site's branding */
.service-quote-cta .btn-primary {
    background: var(--brand-pink);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
    display: inline-block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.service-quote-cta .btn-primary:hover {
    background: var(--brand-pink-dark, #c2185b);
}

/* Content Below Hero */
.page-content-below-hero {
    padding-top: 50px;
    padding-bottom: 60px;
}

.service-detail-content-body {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Full Description Section */
.service-detail-full-description-section {
    margin-top: 0;
    padding: 2.5rem 0;
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    max-width: 1600px;
}

.service-detail-full-description-section .description-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: left;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}
.service-detail-full-description-section .description-content p { margin-bottom: 1.4em; }
.service-detail-full-description-section .description-content ul,
.service-detail-full-description-section .description-content ol {
    margin-bottom: 1.4em;
    padding-left: 25px;
    list-style-position: outside;
}
.service-detail-full-description-section .description-content ul li,
.service-detail-full-description-section .description-content ol li {
    padding-left: 0.5em;
    margin-bottom: 0.6em;
}
.service-detail-full-description-section .description-content strong { color: #1a202c; }
.service-detail-full-description-section .description-content img {
    max-width: 100%; height: auto; margin: 1.5em auto; display: block;
    border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Additional Images Gallery Section */
.service-detail-additional-images-section {
    margin-top: 3rem;
    padding: 2.5rem 0;
    background-color: #f8f9fa;
}
.service-detail-additional-images-section .container {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}

.service-detail-additional-images-section h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-top: 0;
    margin-bottom: 2rem;
    text-align: center;
}

.service-gallery.additional-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.service-gallery.additional-gallery .gallery-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 6px;
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease-in-out;
    overflow: hidden;
}
.service-gallery.additional-gallery .gallery-image:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.service-gallery.additional-gallery .gallery-image img {
    display: block; height: 100%; width: auto; max-width: none;
    object-fit: contain; border-radius: 0; border: none;
    transition: transform 0.2s ease-in-out;
}
.service-gallery.additional-gallery .gallery-image:hover img {
    transform: scale(1.05);
}


/* Responsive adjustments */
@media (max-width: 992px) {
    .service-hero-title {
        font-size: 2.6rem;
    }
    .service-hero-description {
        font-size: 1.1rem;
        max-width: 650px;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        text-align: left; /* Keep it left-aligned on mobile too */
        margin-bottom: 1.5rem;
    }

    .service-hero-banner {
        padding: 40px 15px; /* Adjusted padding for mobile */
        min-height: 320px;
    }
    .service-hero-banner .container.service-hero-content {
        padding: 0 1rem;
    }
    .service-hero-title {
        font-size: 2.2rem;
    }
    .service-hero-description {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .page-content-below-hero {
        padding-top: 40px;
    }
    .service-detail-page-main .container,
    .service-detail-additional-images-section .container {
        padding: 0 1rem;
    }

    .service-detail-full-description-section {
        padding: 2rem 1rem;
    }
    .service-detail-full-description-section .description-content {
        font-size: 1rem;
    }

    .service-detail-additional-images-section {
        padding: 2rem 0;
    }
    .service-detail-additional-images-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .service-gallery.additional-gallery .gallery-image {
        height: 120px;
    }
}


/* ===================
    Products Page
    =================== */

:root {
  --brand-secondary: #555;
  --input-border-color: #ccc;
  --input-focus-border-color: var(--brand-pink);
  --text-color-dark: #333;
  --text-color-light: #555;
  --sale-price-color: var(--brand-pink);
  --instock-color: #28a745;
  --outofstock-color: #dc3545;
  --clear-button-bg: #6c757d;
  --clear-button-hover-bg: #5a6268;
}


.products-archive {
  padding: 20px 0 40px;
  background: #f8fafc;
  text-align: center;
}

.products-archive.scroll-enabled {
}

.products-archive .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.products-archive h1 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  color: var(--text-color-dark);
  text-align: center;
}

.products-options-bar {
  display: flex;
  align-items: center;
  padding: 1rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.mobile-filter-bar-toggle-button {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #f0f0f0;
  color: var(--text-color-dark, #333);
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  justify-content: space-between;
  align-items: center;
}

.mobile-filter-bar-toggle-button .chevron-icon {
  stroke: currentColor;
  transition: transform 0.2s ease-in-out;
}

.mobile-filter-bar-toggle-button[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.product-filters-collapsible-content {
  display: flex;
  flex-grow: 1;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}


.options-bar-left,
.options-bar-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.options-bar-center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.price-slider-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-color-dark);
  flex-wrap: nowrap;
  width: 100%;
  justify-content: center;
}

.price-slider-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-slider-label {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--text-color-light);
  white-space: nowrap;
}

.price-input {
  width: 80px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--input-border-color);
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: right;
  color: var(--text-color-dark);
  background-color: #f0f0f0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-input:focus {
  outline: none;
  border-color: var(--input-focus-border-color);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
  background-color: #fff;
}


input[type="range"].price-slider {
  width: 90px;
  accent-color: var(--brand-pink);
  background: transparent;
  cursor: pointer;
  height: 10px;
}

input[type="range"].price-slider::-webkit-slider-runnable-track {
  width: 100%; height: 6px; cursor: pointer; background: #e0e0e0; border-radius: 3px;
}
input[type="range"].price-slider::-moz-range-track {
  width: 100%; height: 6px; cursor: pointer; background: #e0e0e0; border-radius: 3px;
}

input[type="range"].price-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; background: var(--brand-pink); border-radius: 50%; cursor: pointer; margin-top: -5px; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input[type="range"].price-slider::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--brand-pink); border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}


.price-slider-separator {
  font-size: 1.2rem;
  font-weight: 400;
  color: #999;
  align-self: center;
}

.apply-filters-button,
.clear-filters-button {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.1s ease;
}

.apply-filters-button:active,
.clear-filters-button:active {
  transform: translateY(1px);
}

.apply-filters-button {
  background-color: #fff;
  color: var(--brand-pink);
  border: 2px solid var(--brand-pink);
}
.apply-filters-button:hover,
.apply-filters-button:focus {
  background-color: var(--brand-pink);
  color: #fff;
}

.clear-filters-button {
  background-color: var(--clear-button-bg);
  color: #fff;
  border: 2px solid var(--clear-button-bg);
}
.clear-filters-button:hover,
.clear-filters-button:focus {
  background-color: var(--clear-button-hover-bg);
  border-color: var(--clear-button-hover-bg);
}

.products-options-bar .apply-filters-button {
  margin-left: 0.25rem;
}

.product-actions-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.product-filter-trigger-button {
  background-color: var(--brand-pink);
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.product-filter-trigger-button:hover,
.product-filter-trigger-button:focus {
  background-color: var(--brand-pink-darker);
}
.product-filter-trigger-button:active {
  transform: translateY(1px);
}
.product-filter-trigger-button svg {
  width: 20px;
  height: 20px;
}

.side-nav-panel { position: fixed; top: 0; right: -300px; width: 300px; max-width: 85vw; height: 100%; background-color: #fff; box-shadow: -2px 0 15px rgba(0,0,0,0.15); z-index: 10002; transition: right 0.3s ease-in-out; overflow-y: auto; display: flex; flex-direction: column; }
.side-nav-panel.active { right: 0; }
.side-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid #eee; background-color: #f8f9fa; }
.side-nav-header h2 { margin: 0; font-size: 1.2rem; color: var(--text-color-dark); }
.side-nav-panel .close-button { background: transparent; border: none; padding: 0.5rem; cursor: pointer; color: var(--text-color-light); }
.side-nav-panel .close-button:hover svg, .side-nav-panel .close-button:focus svg { color: var(--brand-pink); }
.side-nav-panel .close-button svg { width: 24px; height: 24px; stroke-width: 2.5; }
.side-nav-content { padding: 1rem 1.5rem; flex-grow: 1; }
.side-nav-section { margin-bottom: 1.5rem; }

.side-nav-section .apply-filters-button,
.side-nav-section .clear-filters-button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
  font-size: 0.9rem;
}

.side-nav-section h3 { font-size: 1rem; color: var(--brand-pink); margin-top: 0; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #f0f0f0; }
.options-list { list-style: none; padding: 0; margin: 0; }
.options-list li { margin-bottom: 0.1rem; }
.options-list li a { display: block; padding: 0.6rem 0.8rem; text-decoration: none; color: var(--text-color-dark); border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; font-size: 0.95rem; }
.options-list li a:hover, .options-list li a:focus { background-color: #f0f0f0; color: #000; }
.options-list li a.active { background-color: var(--brand-pink); color: #fff; font-weight: 500; }
.options-list.category-filter-list li label { display: flex; align-items: center; padding: 0.6rem 0.8rem; text-decoration: none; color: var(--text-color-dark); border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; font-size: 0.95rem; cursor: pointer; width: 100%; }
.options-list.category-filter-list li label:hover { background-color: #f0f0f0; }
.options-list.category-filter-list li input[type="checkbox"] { margin-right: 0.75rem; accent-color: var(--brand-pink); width: 16px; height: 16px; flex-shrink: 0; }
.side-nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 10001; opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out; }
.side-nav-overlay.active { opacity: 1; visibility: visible; }
body.side-nav-open { overflow: hidden; }

.category-header { font-size: 1.5rem; color: var(--brand-pink); margin-top: 2rem; margin-bottom: 1.2rem; text-align: center; border-bottom: 1px solid var(--brand-pink); padding-bottom: 0.2em; }
.category-section { margin-bottom: 3rem; }
.no-products-in-category { padding: 1rem; text-align: center; color: var(--text-color-light); font-style: italic; }
.product-grid { display: grid; grid-template-columns: repeat(4, 300px); gap: 1rem; justify-content: center; }

.product-card {
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  position: relative;
  width: 300px;
  height: 400px;
  margin: 0;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); }

.product-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.product-card img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: 160px;
  object-fit: contain;
  object-position: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.product-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  color: var(--brand-pink);
}

.product-card .product-description {
  font-size: 0.9rem;
  color: var(--text-color-light);
  line-height: 1.35;
  margin-top: 0.2rem;
  margin-bottom: 0.3rem;
  flex-grow: 1;
}

.product-card > p {
  margin-top: 0.2rem;
}


.product-meta {
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 0.3rem;
  margin-top: auto;
  flex-shrink: 0;
}
.product-meta .product-price { font-size: 1.05rem; margin-bottom: 0.3rem; line-height: 1.3; }

.product-meta .product-price .original-price {
  text-decoration: line-through;
  color: #888;
  margin-right: 0.5em;
  font-weight: normal;
}
.product-meta .product-price .sale-price {
  color: var(--sale-price-color);
  font-weight: bold;
}
.product-meta .product-price .regular-price {
  color: var(--text-color-dark);
  font-weight: bold;
}

.product-meta .product-stock { font-size: 0.9rem; color: var(--text-color-light); margin-bottom: 0; }
.product-meta .product-stock.instock {
  color: var(--instock-color);
}
.product-meta .product-stock.outofstock {
  color: var(--outofstock-color);
}


.products-archive.scroll-enabled .product-grid-wrapper { position: relative; }
.product-dot-navigation { display: none; }

.recently-viewed-products-section { padding: 40px 0; background-color: #e9eef2; }
.recently-viewed-products-section h2 { text-align: center; font-size: 1.8rem; color: var(--text-color-dark); margin-bottom: 1.5rem; border-bottom: 1px solid var(--brand-pink); display: inline-block; padding-bottom: 0.3em; }
.loading-spinner { display: flex; justify-content: center; align-items: center; padding: 40px 20px; min-height: 200px; width: 100%; }
.loading-spinner span { font-size: 1.1em; color: var(--text-color-light); padding: 15px 25px; background-color: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }


.products-archive:not(.scroll-enabled) .product-grid .product-card img,
.products-archive .single-category .product-grid .product-card img {
  height: 160px;
}


@media (max-width: 768px) {
  .products-archive .container { max-width: 100vw; }

  .products-options-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem;
  }

  .mobile-filter-bar-toggle-button {
      display: flex;
  }

  .product-filters-collapsible-content {
      flex-direction: column;
      align-items: stretch;
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      visibility: hidden;
      margin-top: 0;
      box-sizing: border-box;
      transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                  opacity 0.3s ease-out,
                  margin-top 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                  visibility 0s linear 0.4s;
  }

  .product-filters-collapsible-content.open {
      max-height: 70rem;
      opacity: 1;
      visibility: visible;
      margin-top: 1rem;
      transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                  opacity 0.3s ease-in 0.1s,
                  margin-top 0.4s cubic-bezier(0.65, 0, 0.35, 1),
                  visibility 0s linear 0s;
  }

  .options-bar-center { order: 1; }
  .options-bar-left { order: 2; }
  .options-bar-right { order: 3; }

  .price-slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .price-slider-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.25rem;
    padding: 0;
  }
  .price-slider-label {
    display: block;
    text-align: left;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
  }
  .price-input {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
    background-color: #f0f0f0;
  }
  .price-input:focus {
      background-color: #fff;
  }
  input[type="range"].price-slider {
    width: 100%;
    height: 10px;
    margin-left: 0;
  }

  .price-slider-separator { display: none; }

  .products-options-bar .apply-filters-button {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .options-bar-left .product-filter-trigger-button,
  .options-bar-right .clear-filters-button {
    width: 100%;
    margin-top: 0;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .category-section { margin-bottom: 2.5rem; }
  .category-header { margin-bottom: 1rem; text-align: center; }
  .product-grid { grid-template-columns: 1fr; gap: 1.5rem; justify-content: initial; padding-left: 1rem; padding-right: 1rem; }

  .product-card {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    height: auto;
    min-height: 380px;
  }
  .product-card:hover { transform: none; }

  .products-archive.scroll-enabled .category-section .product-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: 1rem;
    padding-left: 0; padding-right: 0; scroll-padding-inline-start: 0;
    scroll-padding-inline-end: 0; box-sizing: border-box; scroll-behavior: smooth;
    justify-content: flex-start; scrollbar-width: none; -ms-overflow-style: none;
  }
  .products-archive.scroll-enabled .category-section .product-grid::-webkit-scrollbar { display: none; }

  .products-archive.scroll-enabled .category-section .product-card {
    flex: 0 0 90%; margin-left: 20px; margin-right: 20px; scroll-snap-align: center;
    box-sizing: border-box; width: auto; max-width: none; height: auto;
    min-height: 380px;
  }
  .products-archive.scroll-enabled .category-section .product-card img {
    width: 80%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
  }

  .products-archive.scroll-enabled .category-section .product-dot-navigation {
    display: flex;
    justify-content: center;
    width: 70%;
    margin: 1rem auto 0.75rem auto;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    gap: 0;
  }

  .products-archive.scroll-enabled .category-section .dot {
    flex: 1 1 0;
    height: 100%;
    background: transparent;
    border-radius: 0;
    transition: background-color 0.3s ease;
  }

  .products-archive.scroll-enabled .category-section .dot.active {
    background: var(--brand-pink);
  }

  .products-archive.scroll-enabled .category-section .product-grid::after {
    content: ""; position: absolute; top: 0; right: 0; bottom: 0;
    width: 3rem; height: 100%; pointer-events: none;
    background: linear-gradient(to left, rgba(248,250,252,1), rgba(248,250,252,0));
    z-index: 2; opacity: 1; transition: opacity 0.3s ease;
  }
  .products-archive.scroll-enabled .category-section .product-grid.scrolled-end::after { opacity: 0; }

  .recently-viewed-products-section .product-grid { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  .recently-viewed-products-section .product-card { max-width: 340px; margin: 0 auto 1.5rem auto; }
}

/* ===================
    Item Page
    =================== */

.single-product .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.header-spacer {
  height: 4rem;
}

.product-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.product-images {
  flex: 1 1 40%;
}

.product-images .main-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid #eee;
}

.no-image-placeholder {
  width: 100%;
  height: 300px;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 1rem;
}

.thumbnail-images {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.thumbnail-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.thumbnail-images img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.product-info {
  flex: 1 1 55%;
}

.product-number {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--brand-pink);
  line-height: 1.2;
}

.full-description {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
  line-height: 1.6;
  color: #333;
}

.full-description::-webkit-scrollbar {
  width: 6px;
}

.full-description::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.price {
  font-weight: bold;
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.stock {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #333;
}

.dependencies-section {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.dependencies-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--brand-pink, var(--brand-pink));
}

.category-group {
    margin-bottom: 1.5rem;
}
.category-group:last-child {
    margin-bottom: 0.5rem;
}

.category-group h4 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.category-group h4 span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  margin-left: 1rem;
  white-space: nowrap;
}

.dependency-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0 0 0 / 0.04);
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dependency-item:last-child {
  margin-bottom: 0;
}

.dependency-item label {
  flex: 1 1 60%;
  margin: 0;
  font-weight: 400;
  color: #1f2937;
  font-size: 0.95rem;
}

.dependency-item input[type="number"] {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.dependency-item input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-pink, #e91e63);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.quantity-and-cart {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.quantity-and-cart label {
  margin-right: 0.5em;
  font-weight: 600;
  font-size: 1rem;
}

.quantity-and-cart input[type="number"] {
  width: 70px;
  padding: 0.5em 0.6em;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.quantity-and-cart input[type="number"]:focus {
  outline: none;
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}


.add-to-cart-button {
  background-color: var(--brand-pink);
  color: white;
  border: none;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart-button:hover {
  background-color: #d81b60;
  transform: translateY(-1px);
}
.add-to-cart-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#user-message-area {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    display: none;
}
#user-message-area[style*="color: red"] {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c !important;
}
#user-message-area[style*="color: green"] {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534 !important;
}

.product-manuals-section {
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background-color: #f9fafb;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.product-manuals-section h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: var(--brand-pink, var(--brand-pink));
}

.product-manuals-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.product-manuals-list li {
  margin-bottom: 0.5rem;
}

.product-manuals-list li:last-child {
  margin-bottom: 0;
}

.product-manual-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #337ab7;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}

.product-manual-link:hover,
.product-manual-link:focus {
  color: var(--brand-pink, #e91e63);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .product-wrapper {
    flex-direction: column;
  }

  .product-images,
  .product-info {
    flex: 1 1 100%;
  }

  .thumbnail-images {
    justify-content: center;
  }

  .quantity-and-cart {
    flex-direction: column;
    align-items: stretch;
  }
  .quantity-and-cart input[type="number"] {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .add-to-cart-button {
    margin-top: 0;
    margin-left: 0;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .product-info h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .dependency-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .dependency-item label {
    margin-bottom: 0.5rem;
  }
  .dependency-item input[type="number"] {
    width: 100%;
  }
}


/* =================================
    Contact Page Enhancements (Loader & Modal)
    ================================= */

/* --- Honeypot Field for Spam Prevention --- */
.honeypot-field {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    /* Ensures the content stays on one line */
}

/* Ensure the label within the honeypot is also hidden */
.honeypot-field label {
    display: none;
    /* Hide the label for the honeypot */
}


/* Loader Styles */
.contact-loader-overlay {
    position: fixed;
    /* Cover the whole screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    /* Semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    /* Ensure it's on top */
}

.contact-loader-spinner {
    border: 6px solid #f3f3f3;
    /* Light grey */
    border-top: 6px solid var(--brand-pink);
    /* Your brand pink */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: contactSpinner 1s linear infinite;
}

@keyframes contactSpinner {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal Styles - General Structure & Visibility */
.contact-modal {
    position: fixed;
    z-index: 9999;
    /* High z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5);
    /* Black with opacity - overlay */
    display: flex;
    /* Used to center the modal content */
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* Initially hidden for animation */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.contact-modal.contact-modal-visible {
    opacity: 1;
    visibility: visible;
}

/* Redesigned Modal Content & Icon Styles */
.contact-modal-content {
    background-color: #fff;
    padding: 30px 30px 25px 30px;
    width: 90%;
    /* This width applies to larger screens too, up to max-width */
    max-width: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    /* Removed default border from previous version */
}

.contact-modal.contact-modal-visible .contact-modal-content {
    transform: scale(1);
}

.contact-modal-icon-wrapper {
    margin-bottom: 15px;
}

.contact-modal-tick-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #ffffff;
    /* Green for the tick */
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: contactTickFill .4s ease-in-out .4s forwards, contactTickScale .3s ease-in-out .9s both;
}

.contact-modal-tick-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: rgba(76, 175, 80, 0.08);
    /* Very light green fill for the circle background */
    animation: contactTickStroke .6s cubic-bezier(0.65, 0, .45, 1) forwards;
}

.contact-modal-tick-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    /* Thicker check mark */
    animation: contactTickStroke .3s cubic-bezier(0.65, 0, .45, 1) .8s forwards;
}

@keyframes contactTickStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes contactTickScale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes contactTickFill {

    /* Animates the circle background fill */
    100% {
        box-shadow: inset 0px 0px 0px 35px #4CAF50;
        /* Fill the circle with green */
    }
}

.contact-modal-title {
    /* For "Message Sent!" */
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    /* Reset margin if icon wrapper provides enough space */
    margin-bottom: 10px;
}

.contact-modal-text {
    /* For "You will hear back from us soon." */
    font-size: 1rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-modal-button {
    /* For "OK" button */
    background-color: var(--brand-pink);
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.contact-modal-button:hover,
.contact-modal-button:focus {
    background-color: #eb0c8c;
    /* Darker pink from your existing button hover */
    outline: none;
    transform: translateY(-1px);
    /* Slight lift on hover */
}


/* ===================
    Contact Us Page (Existing Styles from User)
    =================== */

.contact-info {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #444;
}

.contact-info a {
    color: var(--brand-pink);
    text-decoration: none;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-page {
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 40px 20px;
    background: #f8fafc;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-page h1 {
    color: var(--brand-pink);
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.4rem;
    text-align: center;
}

.contact-page form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #444;
}

.contact-page form input[type="text"],
.contact-page form input[type="email"],
.contact-page form select,
.contact-page form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 400;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    color: #222;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
}

.contact-page form input[type="text"]:focus,
.contact-page form input[type="email"]:focus,
.contact-page form select:focus,
.contact-page form textarea:focus {
    outline: none;
    border-color: var(--brand-pink);
    box-shadow: 0 0 8px rgba(216, 30, 91, 0.3);
    /* Assuming D81E5B is your --brand-pink */
    background-color: #fff;
}

.contact-page form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    resize: none;
}

.contact-page form button[type="submit"] {
    display: block;
    width: 100%;
    background: var(--brand-pink);
    color: white;
    border: none;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 6px 10px rgba(216, 30, 91, 0.35);
    /* Assuming D81E5B is your --brand-pink */
    transition: background 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.contact-page form button[type="submit"]:hover,
.contact-page form button[type="submit"]:focus {
    background: #eb0c8c;
    /* Darker pink */
    box-shadow: 0 8px 14px rgba(216, 30, 91, 0.55);
    /* Assuming D81E5B is your --brand-pink */
    outline: none;
}

.form-errors,
.form-success {
    /* For inline error messages */
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-sizing: border-box;
    max-width: 100%;
}

.form-errors {
    background: #ffe5e5;
    border: 1.5px solid #f5c6cb;
    color: var(--brand-pink);
    /* Your brand pink for error text */
    box-shadow: inset 0 0 8px rgba(169, 68, 66, 0.2);
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.form-success {
    /* For inline success message (if ever used as fallback) */
    background: #e7f7e7;
    border: 1.5px solid #a3d3a3;
    color: #2d662d;
    box-shadow: inset 0 0 8px rgba(45, 102, 45, 0.2);
    text-align: center;
}

@media (max-width: 480px) {
    .contact-page {
        padding: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .contact-page h1 {
        font-size: 1.8rem;
    }

    .contact-page form input[type="text"],
    .contact-page form input[type="email"],
    .contact-page form select,
    .contact-page form textarea {
        font-size: 1rem;
        padding: 0.6rem 0.8rem;
    }

    .contact-page form button[type="submit"] {
        font-size: 1.1rem;
        padding: 0.9rem 0;
    }

    /* Responsive modal content */
    .contact-modal-content {
        padding: 25px 20px 20px 20px;
        /* Slightly adjusted padding for smaller screens */
        /* Changed width to max-width to allow margin to create spacing */
        max-width: calc(100% - 40px);
        /* 100% minus 20px on each side */
        margin: 0 20px;
        /* Add 20px margin on left and right */
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-radius: 12px;
        text-align: center;
        transform: scale(0.9);
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: none;
    }

    .contact-modal-title {
        font-size: 1.5rem;
        /* Adjust title size for smaller screens */
    }

    .contact-modal-text {
        font-size: 0.9rem;
        /* Adjust text size */
        margin-bottom: 25px;
    }

    .contact-modal-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .contact-modal-tick-icon {
        width: 60px;
        /* Slightly smaller icon on small screens */
        height: 60px;
    }

    @keyframes contactTickFill {

        /* Adjust fill for smaller icon */
        100% {
            box-shadow: inset 0px 0px 0px 30px #4CAF50;
        }
    }
}

/* ===================
    Cart Page General
    =================== */
.cart-page {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #0f172a;
}

.cart-page h1 {
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #111827;
  text-align: center;
}

/* ===================
    Cart Items
    =================== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  padding: 1rem;
  border-radius: 10px;
  background: #f9fafb;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.05);
  transition: box-shadow 0.3s ease;
}

.cart-item:hover {
  box-shadow: 0 6px 20px rgb(15 23 42 / 0.1);
}

.item-inner {
  width: 100%;
}

.item-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  position: relative;
}

.dependencies-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-top: 0.5rem;
  width: 100%;
}

.toggle-deps {
  background: none;
  border: 1px solid transparent;
  color: var(--brand-pink);
  cursor: pointer;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  border-radius: 4px;
}
.toggle-deps:hover,
.toggle-deps:focus {
  background-color: rgba(233, 30, 99, 0.05);
  border-color: rgba(233, 30, 99, 0.3);
  outline: none;
}

.toggle-deps .chevron {
  width: 0.5em;
  height: 0.5em;
  border-style: solid;
  border-width: 0.15em 0.15em 0 0;
  border-color: currentColor;
  transform: rotate(135deg);
  transition: transform 0.3s ease-in-out;
  display: block;
}

.toggle-deps:not(.active) .chevron {
  transform: rotate(45deg);
}

.item-info {
  flex-grow: 1;
  width: 100%;
}

.item-info h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
}

.item-info p {
  margin: 0.1rem 0;
  font-size: 0.85rem;
  color: #374151;
}

.item-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.5rem;
}

.item-controls label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.item-controls .subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  font-size: 0.95rem;
}

.item-controls .subtotal .label {
  font-weight: 500;
  color: #374151;
}

.item-controls .subtotal .amount {
  font-weight: bold;
  color: #111827;
}

.qty-input {
  width: 60px;
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.qty-input:focus {
  outline: none;
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.subtotal {
  font-weight: 700;
  font-size: 1rem;
  color: #111827;
  text-align: right;
}

button.remove-item {
  background-color: var(--brand-pink);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
  width: 100%;
  text-align: center;
}

button.remove-item:hover {
  background-color: #c2185b;
}

.dependencies {
  border-top: 1px dashed #e2e8f0;
  margin-top: 0;
  padding-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    margin-top 0.3s ease-in-out,
    padding-top 0.3s ease-in-out,
    visibility 0s linear 0.3s;
}

.dependencies.show {
  margin-top: 1rem;
  padding-top: 1rem;
  max-height: 1000px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.3s ease-in-out,
    opacity 0.3s ease-in-out,
    margin-top 0.3s ease-in-out,
    padding-top 0.3s ease-in-out,
    visibility 0s linear 0s;
}

.dependency-item {
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.dependency-item:last-child {
  border-bottom: none;
}
.dep-left {
  flex-grow: 1;
}
.dep-left .dep-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.dependency-item .dep-left .price {
  font-size: 0.8rem;
  color: #374151;
  margin-top: 0.1rem;
}

.dep-right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}
.dep-right .qty-input {
  width: 60px;
}
.dep-right .subtotal {
  font-size: 0.9rem;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
}
.dep-right .subtotal .label {
  font-weight: normal;
}
.dep-right .subtotal .amount {
  font-weight: bold;
}

@keyframes pulseErrorHighlight {
  0% {
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
  20% {
    border-color: red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
  30%, 50%, 70% {
    border-color: red;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
  }
  40%, 60% {
    border-color: red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
  80% {
    border-color: red;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  }
  100% {
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
}

.installation-option-box.animate-error-highlight {
  animation: pulseErrorHighlight 1.5s ease-in-out;
}

.installation-option-box {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f9fafb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.installation-option-box p {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
}

.installation-choices {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.installation-btn {
  padding: 0.6rem 1.75rem;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  color: #0f172a;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.installation-btn:hover {
  border-color: var(--brand-pink);
  background-color: #fdf2f5;
}

.installation-btn.selected {
  background-color: var(--brand-pink);
  color: white;
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

.installation-option-box + .cart-summary {
    margin-top: 0;
}

.cart-summary {
  margin-top: 2rem;
  padding: 1.25rem;
  border-top: 3px solid var(--brand-pink);
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  background: #f3f4f6;
  border-radius: 10px;
}

.cart-summary p {
  margin-bottom: 1rem;
}

#cart-summary #checkout-min-total-message,
#cart-summary #installation-required-message {
    text-align: right;
    margin-bottom: 0.5rem;
    font-size: 0.9em;
    color: red;
    font-weight: normal;
}
#cart-summary #checkout-min-total-message:last-of-type,
#cart-summary #installation-required-message:last-of-type {
    margin-bottom: 1rem;
}


.cart-summary button.cart-proceed-btn {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  background-color: var(--brand-pink);
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  text-align: center;
}

.cart-summary button.cart-proceed-btn:hover:not(:disabled) {
  background-color: #c2185b;
}

.cart-summary button.cart-proceed-btn:disabled {
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.cart-empty-message {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background-color: #f9fafb;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgb(15 23 42 / 0.05);
}

.cart-empty-message h2 {
  font-size: 1.7em;
  color: #111827;
  margin-bottom: 15px;
  font-weight: 700;
}

.cart-empty-message p {
  font-size: 1.05em;
  color: #374151;
  margin-bottom: 25px;
  line-height: 1.6;
}

.cart-empty-message .button.button-primary,
.cart-empty-message a.button {
  text-decoration: none;
  padding: 10px 20px;
  background-color: var(--brand-pink);
  color: white;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease;
  display: inline-block;
  border: none;
}

.cart-empty-message .button.button-primary:hover,
.cart-empty-message a.button:hover {
  background-color: #c2185b;
}

@media (min-width: 640px) {
  .cart-page {
    padding: 3rem 1.5rem;
  }
  .cart-page h1 {
    font-size: 2rem;
  }
  .item-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .item-info {
    width: auto;
    flex-grow: 1;
  }
  .item-controls {
    align-items: flex-end;
    width: auto;
    min-width: 220px;
    margin-top: 0;
    flex-shrink: 0;
  }
  .item-controls label {
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .item-controls .subtotal {
    justify-content: flex-end;
    width: 100%;
  }
  .item-controls .subtotal .label {
    margin-right: 0.5em;
  }

  button.remove-item {
    width: auto;
    align-self: flex-end;
  }
  .dependency-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
  }
  .dep-right {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .cart-summary button.cart-proceed-btn {
    display: inline-block;
    width: auto;
  }
}

@media (min-width: 768px) {
  .item-controls {
    min-width: 240px;
  }
  .dependencies-header {
  }
}


/* =================================
   General Page Loader (can be shared with contact page)
   ================================= */

.contact-loader-spinner { /* Can also be renamed for generic use */
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--brand-pink); /* Using your checkout primary color */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: contactSpinner 1s linear infinite;
}

@keyframes contactSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ===================
   Checkout Page General Styles (User's Existing)
   =================== */

.checkout-page {
    max-width: 700px;
    margin: 2rem auto 4rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #0f172a;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgb(15 23 42 / 0.1);
    padding: 2rem 2.5rem 3rem;
}

.checkout-page h1 {
    font-weight: 700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.collapsible {
    background-color: var(--brand-pink);
    color: white;
    cursor: pointer;
    padding: 1rem 1.5rem;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #c2185b;
}

.collapsible .chevron {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-style: solid;
    border-width: 2px 2px 0 0;
    border-color: white;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.collapsible.active .chevron {
    transform: rotate(135deg);
}

.content {
    padding: 0 1.5rem;
    border: 1px solid #ddd;
    border-top: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #f9fafb;
    border-radius: 0 0 8px 8px;
    margin-bottom: 1rem;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    /* Padding will be handled by .content parent if it's open */
}
.content.checkout-items-padding-when-open { /* Add this class to content div if needed */
    padding-top: 20px;
    padding-bottom: 20px;
}


.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    background: #ffffff; /* Changed from #f9fafb for item differentiation */
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.05);
    transition: box-shadow 0.3s ease;
}

.checkout-item:hover {
    box-shadow: 0 6px 20px rgb(15 23 42 / 0.10); /* Slightly reduced hover shadow */
}

.item-info h3 {
    margin-top:0; /* Added */
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: #111827;
}

.item-info p {
    margin: 0.15rem 0;
    font-size: 0.9rem;
    color: #374151;
}
.item-dependencies-summary {
    font-style: italic;
    font-size: 0.85em !important; /* Make it smaller */
    color: #555 !important;
}


.item-subtotal {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    text-align: right;
    min-width: 110px;
}
.item-subtotal span {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    color: #6b7280;
}


.next-section-wrapper {
    margin-top: 1.5rem;
    /* padding-top: 0.5rem; -- removed as content has padding now */
    /* margin-bottom: 2rem; -- removed as content has padding now */
    display: flex;
    justify-content: flex-end;
}

.stripe-element-wrapper {
    background: white;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.input-text {
    background: white;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
    margin-bottom: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.stripe-element-wrapper.input-focused, /* Applied to Stripe wrapper */
.input-text:focus {
    border-color: var(--brand-pink) !important; /* Ensure it overrides Stripe's inline styles if any */
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.3) !important;
    outline: none;
}

#card-errors {
    min-height: 1.5em;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: red;
}

.checkout-page-payment-buttons {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 1rem;             /* This will now be vertical spacing between buttons */
  /* flex-wrap: wrap; /* Not strictly needed for single column */
  /* justify-content: flex-end; /* No longer needed for stacking */
}

.checkout-page-btn-primary,
.checkout-page-btn-secondary {
  padding: 0.85rem 1rem; /* You might want to adjust horizontal padding if they are full width */
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.1s ease; /* Removed width transition */
  text-align: center;
  user-select: none;
  line-height: 1.5;
  position: relative;
  min-height: calc(1.1rem * 1.5 + 0.85rem * 2);
  display: inline-flex; /* Keep inline-flex for loader centering if needed, or change to block */
  align-items: center;
  justify-content: center;
  width: 100%; /* Make buttons take full width */
  box-sizing: border-box; /* Important for 100% width with padding/border */
  /* flex-grow, flex-shrink, flex-basis are not needed if width is 100% in a column flex container */
}

.checkout-page-btn-primary:disabled,
.checkout-page-btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.checkout-page-btn-primary:active,
.checkout-page-btn-secondary:active {
    transform: translateY(1px);
}

.checkout-page-btn-primary {
    background-color: var(--brand-pink);
}

.checkout-page-btn-primary:hover:not(:disabled) {
    background-color: #c2185b;
}

.checkout-page-btn-secondary {
    background-color: #6b7280;
}

.checkout-page-btn-secondary:hover:not(:disabled) {
    background-color: #4b5563;
}

.btn-loader {
    display: none; /* Hidden by default */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    /* margin: 0 auto; /* If button text is hidden, loader centers */
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Styles for when the button is in loading state */
.checkout-page-btn-primary.loading .btn-text {
    display: none; /* Hide text */
}

.checkout-page-btn-primary.loading .btn-loader {
    display: block; /* Show loader */
}

.checkout-page-btn-primary.loading {
    /* Optional: Adjust padding or width if loader makes button too small */
}


.total-section {
    margin-top: 3rem;
    background-color: #f3f4f6;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    text-align: right;
    box-shadow: 0 2px 6px rgb(15 23 42 / 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #374151;
}

.form-row-split {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row-split .form-group {
    flex: 1 1 calc(50% - 0.5rem);
}

.input-error-message { /* For postcode/state errors */
    display: block; /* Will be toggled by JS */
    margin-top: 4px;
    /* color:red; font-size:0.9em; are inline, but can be moved here */
}


/* ===================
   Checkout Modal Styles (User's Existing Base + New Success Modal Content)
   =================== */

/* User's existing general modal styles */
.modal {
    display: flex; /* Changed from none to flex for new animation approach */
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* User's existing overlay color */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Adjusted for new visibility handling */
}

.modal.active { /* This class will be toggled by JS to show/hide */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s; /* Keep visibility instant on show */
}

.modal-content { /* User's existing general modal content style */
    background-color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #0f172a;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0; /* Content also fades/scales in */
}

.modal.active .modal-content { /* Animation for when modal is active */
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content h2 { /* User's existing style for modal titles (e.g., "Payment Failed") */
    font-weight: 700;
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #111827;
}

.modal-content p { /* User's existing style for modal paragraphs */
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-close-button { /* User's existing close button (for failure modal) */
    position: absolute;
    top: 10px;
    right: 15px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: #0f172a;
    text-decoration: none;
}

.modal-buttons-wrapper { /* User's existing wrapper for modal buttons */
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem; /* User had 1.75rem on p, this looks better */
    flex-wrap: wrap;
}

/* This will style buttons within the wrapper, e.g. "Try Again" in failure modal */
.modal-buttons-wrapper .checkout-page-btn-primary,
.modal-buttons-wrapper .checkout-page-btn-secondary {
    flex-grow: 1;
    flex-basis: 120px;
    min-width: 120px;
}


/* NEW Styles specific to the Redesigned Success Modal's content */
/* This targets the modal that has the #payment-success-modal ID (which has .styled-success-modal class) */
.styled-success-modal .modal-content {
    padding: 30px 30px 25px 30px; /* Override general modal padding if needed */
}

.checkout-modal-icon-wrapper {
    margin-bottom: 15px;
}

.checkout-modal-tick-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #ffffff; /* Green for the tick */
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px #4CAF50;
    animation: checkoutTickFill .4s ease-in-out .4s forwards, checkoutTickScale .3s ease-in-out .9s both;
}

.checkout-modal-tick-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4CAF50;
    fill: rgba(76, 175, 80, 0.08);
    animation: checkoutTickStroke .6s cubic-bezier(0.65,0,.45,1) forwards;
}

.checkout-modal-tick-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 4;
    animation: checkoutTickStroke .3s cubic-bezier(0.65,0,.45,1) .8s forwards;
}

/* Keyframes for SVG animation (re-declared for checkout or make global) */
@keyframes checkoutTickStroke { 100% { stroke-dashoffset: 0; } }
@keyframes checkoutTickScale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes checkoutTickFill { 100% { box-shadow: inset 0px 0px 0px 35px #4CAF50; } }


.checkout-modal-title { /* For "Order Placed!" */
    font-size: 1.8rem;
    font-weight: 600;
    color: #111827; /* Match existing modal h2 */
    margin-top: 0;
    margin-bottom: 10px;
}

.checkout-modal-text { /* For detailed message like "Your order #... " */
    font-size: 1rem;
    color: #374151; /* Match existing modal p */
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.checkout-modal-button { /* For the new "OK" button */
    background-color: var(--brand-pink); /* Your primary button color */
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-modal-button:hover,
.checkout-modal-button:focus {
    background-color: #c2185b;
    outline: none;
    transform: translateY(-1px);
}

/* Input Error Animation (User's Existing) */
.input-error-animate {
    animation: pulseErrorInputHighlight 1.5s ease-in-out;
}

@keyframes pulseErrorInputHighlight {
    0% { border-color: #cbd5e1; box-shadow: none; }
    20% { border-color: red !important; box-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important; }
    30%, 50%, 70% { border-color: red !important; box-shadow: 0 0 12px rgba(255, 0, 0, 0.7) !important; }
    40%, 60% { border-color: red !important; box-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important; }
    80% { border-color: red !important; box-shadow: 0 0 8px rgba(255, 0, 0, 0.5) !important; }
    100% { border-color: #cbd5e1 !important; box-shadow: none !important; }
}


/* Responsive Styles (User's Existing + additions for new modal elements) */
@media (max-width: 600px) {
    .checkout-page {
        padding: 1.5rem 1.5rem 3rem;
        border-radius: 0;
        margin: 0 auto 2rem;
    }

    .checkout-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-subtotal {
        min-width: auto;
        margin-top: 0.5rem;
        align-self: flex-end;
    }

    .next-section-wrapper {
        justify-content: center;
    }

    .next-section-wrapper .checkout-page-btn-primary { /* This seems fine */
        flex-basis: 100%;
    }

    .form-row-split .form-group {
        flex: 1 1 100%;
    }

    /* Responsive styles for ALL modals */
    .modal-content {
        padding: 1.5rem; /* User's existing responsive modal padding */
    }
    .modal-buttons-wrapper .checkout-page-btn-primary,
    .modal-buttons-wrapper .checkout-page-btn-secondary {
        flex-basis: 100%;
        margin-bottom: 0.5rem;
    }
    .modal-buttons-wrapper .checkout-page-btn-primary:last-child,
    .modal-buttons-wrapper .checkout-page-btn-secondary:last-child {
        margin-bottom: 0;
    }

    /* Specific Responsive for Styled Success Modal */
    .styled-success-modal .modal-content {
        padding: 25px 20px 20px 20px;
    }
    .checkout-modal-title {
        font-size: 1.5rem;
    }
    .checkout-modal-text {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    .checkout-modal-button { /* New OK button responsive */
        padding: 10px 25px;
        font-size: 0.9rem;
        width: auto; /* Allow it to size to content or use flex settings */
        flex-grow: 0; /* Don't let it grow excessively if in a flex container */
    }
    .checkout-modal-tick-icon {
        width: 60px;
        height: 60px;
    }
    /* Adjust keyframe for smaller icon fill, or make it percentage based if possible (box-shadow trick might not be) */
    @keyframes checkoutTickFill { 
        100% { box-shadow: inset 0px 0px 0px 30px #4CAF50; }
    }
}

/* ==========================================================================
    Privacy Policy Page Styles
    ========================================================================== */

.site-privacy-policy {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.6;
}

.site-privacy-policy__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.site-privacy-policy__header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #1a202c;
}

.site-privacy-policy__content-area {
}

.site-privacy-policy__no-sections,
.site-privacy-policy__not-found {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
    Privacy Policy Accordion Styles
    ========================================================================== */

.privacy-policy-accordion {
  border-top: 2px solid var(--brand-pink, #e53e3e);
  margin-top: 1.5rem;
}

.privacy-policy-accordion__item {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease;
}

.privacy-policy-accordion__item:first-of-type {
}

.privacy-policy-accordion__item:last-of-type {
}

.privacy-policy-accordion__item.open {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.privacy-policy-accordion__trigger {
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-pink, #c53030);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s ease;
}

.privacy-policy-accordion__trigger:hover,
.privacy-policy-accordion__trigger:focus {
  background-color: #f0f4f8;
  outline: none;
}

.privacy-policy-accordion__title {
  flex-grow: 1;
  margin-right: 1rem;
}

.privacy-policy-accordion__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-policy-accordion__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  color: var(--brand-pink, #c53030);
}

.privacy-policy-accordion__content {
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  transition: max-height 0.4s ease-in-out;
}

.privacy-policy-accordion__content-inner {
  padding-top: 1rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.privacy-policy-accordion__content-inner h2,
.privacy-policy-accordion__content-inner h3,
.privacy-policy-accordion__content-inner h4 {
  color: #2d3748;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
}
.privacy-policy-accordion__content-inner h2 { font-size: 1.25rem; color: var(--brand-pink, #c53030); font-weight: 700;}
.privacy-policy-accordion__content-inner h3 { font-size: 1.1rem; }


.privacy-policy-accordion__content-inner p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.privacy-policy-accordion__content-inner p:last-child {
  margin-bottom: 0;
}

.privacy-policy-accordion__content-inner ul,
.privacy-policy-accordion__content-inner ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5em;
}

.privacy-policy-accordion__content-inner li {
  margin-bottom: 0.5em;
}

.privacy-policy-accordion__content-inner a {
  color: var(--brand-pink-dark, #9b2c2c);
  text-decoration: underline;
}

.privacy-policy-accordion__content-inner a:hover {
  text-decoration: none;
}


/* ==========================================================================
    Responsive Adjustments
    ========================================================================== */
@media (max-width: 768px) {
  .site-privacy-policy {
    margin: 1.5rem auto;
    padding: 1rem;
  }

  .site-privacy-policy__header h1 {
    font-size: 2rem;
  }

  .privacy-policy-accordion__trigger {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
  }

  .privacy-policy-accordion__content-inner {
    padding-top: 0.75rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  .site-privacy-policy {
    margin: 1rem auto;
    padding: 0.75rem;
  }

  .site-privacy-policy__header h1 {
    font-size: 1.75rem;
  }

  .privacy-policy-accordion__trigger {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
    .privacy-policy-accordion__icon {
      width: 1em;
      height: 1em;
    }

  .privacy-policy-accordion__content-inner {
    padding: 0.75rem 1rem;
  }
}

/* ===================
  Terms and Conditions Page Styles
  =================== */
.terms-conditions-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.terms-conditions-wrapper h1 {
    font-size: 2rem;
    color: var(--brand-pink);
    text-align: center;
    margin-bottom: 0.5rem;
}

.terms-conditions-wrapper .tc-date {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.terms-conditions-wrapper .tc-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

.terms-conditions-wrapper .tc-content h2,
.terms-conditions-wrapper .tc-content h3 {
    color: var(--brand-pink);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.terms-conditions-wrapper .tc-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
}

.terms-conditions-wrapper .tc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: block;
}

.terms-conditions-wrapper .tc-content table th,
.terms-conditions-wrapper .tc-content table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .terms-conditions-wrapper {
        padding: 1.5rem 1rem;
    }

    .terms-conditions-wrapper h1 {
        font-size: 1.6rem;
    }

    .terms-conditions-wrapper .tc-content {
        font-size: 0.95rem;
    }

    .terms-conditions-wrapper .tc-content table th,
    .terms-conditions-wrapper .tc-content table td {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
    FAQ Page Styles
    ========================================================================== */

.site-faq {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
                Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.6;
}

.site-faq__header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.site-faq__header h1 {
  font-weight: 700;
  font-size: 2.5rem;
  color: #1a202c;
}

.site-faq__content-area {
}

.site-faq__no-entries,
.site-faq__not-found {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
    FAQ Accordion Styles
    ========================================================================== */

.faq-accordion {
  border-top: 2px solid var(--brand-pink, #e53e3e);
  margin-top: 1.5rem;
}

.faq-accordion__item {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.3s ease;
}

.faq-accordion__item.open {
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.faq-accordion__trigger {
  background-color: transparent;
  border: none;
  width: 100%;
  text-align: left;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-pink, #c53030);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-accordion__trigger:hover,
.faq-accordion__trigger:focus {
  background-color: #f0f4f8;
  outline: none;
}

.faq-accordion__title {
  flex-grow: 1;
  margin-right: 1rem;
}

.faq-accordion__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-accordion__icon {
  width: 1.2em;
  height: 1.2em;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  color: var(--brand-pink, #c53030);
}

.faq-accordion__content {
  max-height: 0;
  overflow: hidden;
  background-color: #ffffff;
  transition: max-height 0.4s ease-in-out;
}

.faq-accordion__content-inner {
  padding-top: 1rem;
  padding-right: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.faq-accordion__content-inner h2,
.faq-accordion__content-inner h3,
.faq-accordion__content-inner h4 {
  color: #2d3748;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 700;
  color: var(--brand-pink, #c53030);
}
.faq-accordion__content-inner h2 { font-size: 1.25rem; }
.faq-accordion__content-inner h3 { font-size: 1.1rem; }


.faq-accordion__content-inner p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  color: #374151;
}

.faq-accordion__content-inner p:last-child {
  margin-bottom: 0;
}

.faq-accordion__content-inner ul,
.faq-accordion__content-inner ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5em;
}

.faq-accordion__content-inner li {
  margin-bottom: 0.5em;
}

.faq-accordion__content-inner a {
  color: var(--brand-pink-dark, #9b2c2c);
  text-decoration: underline;
}

.faq-accordion__content-inner a:hover {
  text-decoration: none;
}

/* ==========================================================================
    Responsive Adjustments for FAQ Page
    ========================================================================== */
@media (max-width: 768px) {
  .site-faq {
    margin: 1.5rem auto;
    padding: 1rem;
  }

  .site-faq__header h1 {
    font-size: 2rem;
  }

  .faq-accordion__trigger {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
  }

  .faq-accordion__content-inner {
    padding-top: 0.75rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    padding-left: 1rem;
  }
}

@media (max-width: 480px) {
  .site-faq {
    margin: 1rem auto;
    padding: 0.75rem;
  }

  .site-faq__header h1 {
    font-size: 1.75rem;
  }

  .faq-accordion__trigger {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
    .faq-accordion__icon {
      width: 1em;
      height: 1em;
    }

  .faq-accordion__content-inner {
    padding: 0.75rem 1rem;
  }
}

/* ===================
    404 Error Page
   =================== */

.error-404-page {
    padding: 3rem 1rem; /* Vertical and horizontal padding */
    text-align: center;
    min-height: calc(70vh - 100px); /* Adjust based on typical header/footer height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc; /* Light background consistent with other pages */
}

.error-404-page .container {
    max-width: 650px; /* Optimal width for error message readability */
    width: 100%;
}

.error-404 .page-header {
    margin-bottom: 1.5rem;
}

.error-404 .page-title {
    font-size: 2.8rem; /* Prominent title */
    color: var(--brand-pink, #eb0c8c); /* Your brand color */
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem 0;
}

.error-404 .page-content > p { /* Target direct paragraph children for main messages */
    font-size: 1.15rem;
    color: var(--text-color-dark, #333);
    margin-bottom: 1rem; /* Spacing between message paragraphs */
    line-height: 1.7;
}
.error-404 .page-content > p:last-of-type {
    margin-bottom: 2rem; /* More space after the last main message paragraph */
}

.error-contact-info {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: var(--text-color-dark, #333);
}

.error-contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.error-phone-number {
    font-size: 1.6rem; /* Make phone number prominent */
    font-weight: 700;
    color: var(--brand-pink, #eb0c8c);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.error-phone-number:hover,
.error-phone-number:focus {
    text-decoration: underline;
    color: var(--brand-pink-darker, #c2185b); /* Assuming --brand-pink-darker is defined */
    outline: none;
}

.error-404-navigation {
    margin-top: 2rem; /* Space above helpful links */
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb; /* Light separator line */
}

.error-404-navigation .helpful-links-title { /* Targets the h2 */
    font-size: 1.25rem;
    color: var(--text-color-dark, #333);
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-404-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem; /* Space between links */
}

.error-404-navigation ul li a {
    color: var(--brand-pink, #eb0c8c);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.8rem; /* Clickable area */
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.error-404-navigation ul li a:hover,
.error-404-navigation ul li a:focus {
    background-color: var(--brand-pink, #eb0c8c);
    color: #fff;
    text-decoration: none;
    outline: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .error-404-page {
        padding: 2rem 1rem;
        min-height: calc(80vh - 80px);
    }
    .error-404 .page-title {
        font-size: 2.2rem;
    }
    .error-404 .page-content > p {
        font-size: 1.05rem;
    }
    .error-phone-number {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .error-404 .page-title {
        font-size: 1.8rem;
    }
    .error-404 .page-content > p {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
     .error-404 .page-content > p:last-of-type {
        margin-bottom: 1.5rem;
    }
    .error-contact-info {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }
    .error-phone-number {
        font-size: 1.3rem;
    }
    .error-404-navigation .helpful-links-title {
        font-size: 1.1rem;
    }
    .error-404-navigation ul li a {
        font-size: 0.95rem;
    }
}