/* base spacing */
 body, h1, h2, h3, h4, h5, h6, p, a, button, input, textarea {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    letter-spacing: 0.5px;
    color: #111; /* Optional for consistent text color */
  }

  /* Clean uppercase headings and buttons */
  h1, h2, h3, h4, h5, h6, .btn, .nav-link {
    text-transform: uppercase;
  }

  /* Improve readability */
  body {
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    background-color: #fff;
  }

  /* Optional: Make buttons cleaner like Scanlan */
  .btn {
    border-radius: 0;
    font-weight: 500;
    letter-spacing: 1px;
  }

  /* Links */
  a {
    color: inherit;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

/* ------------------- Product Card & Image Swap ------------------- */

/* Card container (no border, no shadow for clean look) */
.product-card {
    background: white;
    overflow: hidden;
    transition: all 0.18s ease; 
    padding-bottom: 8px;
}

/* Image swap container setup (position: relative is crucial for stacking images and mobile bookmark) */
.product-image-container {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 320px; 
    padding: 0; 
}

/* Base styles for all images inside the container */
.product-image-container img {
    width: 100%;
    height: auto;
    display: block;
    /* Smooth transition for the fade effect on desktop hover */
    transition: opacity 0.3s ease-in-out; 
}

/* --- Image Swap Logic (Desktop Only) --- */

/* Default image is visible */
.product-image-container .default-image {
    opacity: 1;
    position: relative;
}

/* Hover image is stacked on top and initially hidden */
.product-image-container .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0; 
}

/* On hover of the entire card link (<a>): */
a:hover .product-image-container .default-image {
    opacity: 0; /* Fade out default image */
}

a:hover .product-image-container .hover-image {
    opacity: 1; /* Fade in hover image */
}

/* --- Product Text Styles --- */

.product-title {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.price {
    color: #111;
    font-size: 0.95rem;
}

/* --- Bookmark Icon Logic --- */

/* Bookmark icon positioned absolutely over the image on mobile */
.bookmark-mobile {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; 
    color: #333; 
    font-size: 1.2rem;
    display: none; /* Hidden by default, shown in mobile media query */
}

/* Desktop/Tablet Bookmark (in the card-body) */
.bookmark { 
    color: #999; 
    font-size: 1rem; 
    cursor: pointer;
    display: block; /* Shown by default */
}

/* ------------------- Full-Screen Mobile Menu ------------------- */

/* The full-screen overlay (Targeting the ID #mobileMenu) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1050; 
    display: none; /* Overridden to flex when open */
    padding: 20px 30px;
    flex-direction: column;
    overflow-y: auto; 
    transition: transform 0.3s ease-in-out; /* Optional: adds a slide effect */
    transform: translateX(100%); /* Start off-screen */
}

/* Override Bootstrap collapse to make it full screen and slide in */
.navbar-collapse.mobile-menu-overlay.show {
    display: flex;
    transform: translateX(0);
}

/* Close button (X) positioning and style */
.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
}

/* Menu Links */
.mobile-menu-links {
    list-style: none;
    padding-left: 0;
    flex-grow: 1; 
    margin-top: 2rem !important; /* Spacing below logo/close button */
}

.mobile-menu-links .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    color: #111;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* SALE link styling */
.mobile-menu-links .sale a {
    color: green !important; 
    border-bottom: none;
}

/* Footer links (Sign in, Cart) */
.mobile-menu-footer .nav-link {
    font-size: 1.1rem;
    color: #111;
    padding: 15px 0;
    text-transform: uppercase;
}


/* ------------------- Responsive Tweaks (Mobile First) ------------------- */

/* Mobile view (up to md breakpoint) */
@media (max-width: 767px) {
    /* Product grid image height adjustment */
    .product-image-container { min-height: 280px; }
    
    /* Show mobile bookmark icon over the image */
    .bookmark-mobile {
        display: block; 
    }
    
    /* Hide the text-area bookmark icon */
    .bookmark {
        display: none !important;
    }

    /* Hide the default desktop navigation links */
    .navbar-collapse:not(.mobile-menu-overlay) {
        display: none !important;
    }
}

/* Remove default link padding/style */
.footer-links a {
    font-size: 0.85rem;
    padding-top: 3px;
    padding-bottom: 3px;
    display: inline-block;
    color: #333 !important;
}

/* Style for the link column headings */
.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Style the subscription input fields */
#emailInput {
    border-color: #333 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0.5rem !important;
}

/* Style the currency selector */
.footer .bg-light {
    background-color: transparent !important; /* Make the selector background invisible */
    border: 1px solid #ccc !important;
    border-radius: 0;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.8rem;
}

/* Adjust social icon size/color */
.footer .fab {
    font-size: 1.1rem;
    color: #333;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s;
}
.color-swatch.active {
    border: 2px solid #000;
    padding: 2px; /* For a selection ring effect */
}
/* Dark Mode adjustment for swatch */
@media (prefers-color-scheme: dark) {
    .color-swatch {
        border-color: #555;
    }
    .color-swatch.active {
        border-color: #e0e0e0;
    }
}


/* Size Button Styling */
.size-button {
    min-width: 45px;
    height: 45px;
    text-align: center;
    border-color: #ccc !important;
}
.size-button:hover,
.size-button.active {
    background-color: black !important;
    color: white !important;
    border-color: black !important;
}

/* Accordion Styling (Remove borders/backgrounds) */
.accordion-item {
    border: none !important;
}
.accordion-header .accordion-button {
    background-color: transparent !important;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    color: #0000;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
    border-bottom-color: transparent !important; /* Hide border when open */
    color: #000;
}
.accordion-body {
    padding-left: 0;
    padding-right: 0;
}

/* Dark Mode Accordion */
@media (prefers-color-scheme: dark) {
    .accordion-header .accordion-button {
        color: #000000 !important;
        border-bottom-color: #333 !important;
    }
    .accordion-button:not(.collapsed) {
        color: #e0e0e0 !important;
    }
}