@import url(fontawesome-all.min.css);
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&family=Open+Sans:wght@300&display=swap");

/* Global Resets & Base HTML/Body Styles */
html, body {
    margin: 0;
    height: 100%; /* Make body and html take full viewport height */
    overflow: hidden; /* Crucial: Prevent overall page scrolling */
    background-color: #f0f0f0; /* Default background for the page */
}

/* Your Existing General Body/Input Styles */
body, input, select, textarea {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    user-select: none; /* Non-standard syntax, supported by some browsers */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
}

/* Your Existing Specific Element Styles */
*, *:before, *:after {
    box-sizing: inherit;
}

.layer{
    position: absolute;
    z-index: 5;
    width: 100%;
    left: 0;
    top: 30%;
    height: 100%;
}

header {
    position: fixed; /* Keep it at the top */
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(53, 56, 57, 0.95);
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Shadow for depth */
    z-index: 1000; /* Header above most content */
    padding: 0 1.25em; /* Padding for the header */
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space out items */
    align-items: center; /* Center vertically */
    opacity: 75%;
}

footer {
    position: fixed; /* Fixed at the bottom */
    left: 0;
    bottom: 0; /* Stick to the bottom */
    width: 100%; /* Full width */
    background-color: rgba(53, 56, 57, 0.95);
    transition: background-color 0.2s ease-in-out;
    color: white; /* White text */
    text-align: center;
    padding: 15px; /* Padding for footer */
    z-index: 1000; /* Footer above most content */
    opacity: 75%;
}

footer p {
    margin: 0; /* Remove default margin */
}

footer a {
    color: white; /* Default link color */
    text-decoration: none; /* Remove underline from links */
    margin: 0 8px; /* Add horizontal margin for spacing */
}

footer a:hover {
    color: #d7407a; /* Hover color */
}

.logo-mf{
    margin: 0;
    padding: 0;
    border: 0;
}

/* Your `.section` styles as provided */
/* Note: `pagepiling.js` manages overflow for its sections,
   so `overflow: hidden` here might be redundant but preserved. */
.section{
    text-align:center;
    overflow: hidden; /* Ensure content doesn't spill out of the section */
    z-index: 1; /* Set lower z-index than the menu */
}

.pink {
    background-color: #d7407a;
    color: #fff;
}

/* FullPage.js Navigation Bullets (if you're using it) */
#pp-nav span {
    background: #777 !important; /* Example: Grey */
}

#pp-nav li .active span {
    background: #d7407a !important; /* Example: Red */
}


/* Catalog-Specific Styles - Applied to BOTH sections 1 & 2 */
.catalog-container {
    width: 100%;
    height: 100%; /* Must fill the pagepiling section's height */
    padding: 5px; /* Minimal padding around the grid */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center content vertically within the section */
    overflow: hidden; /* Crucial: Prevents scrolling within the catalog itself */
}

/* Masonry Grid Container - the direct parent of grid-items */
.product-grid {
    position: relative;
    width: 100%;
    flex-grow: 1; /* Allows the grid to take available vertical space */
    overflow-y: hidden; /* Prevents internal scrolling if images heights are too large */
}

/* Grid sizer is used by Masonry to determine column width */
.grid-sizer,
.grid-item {
    width: 25%; /* Exactly 4 columns for no horizontal gaps */
    margin-bottom: 0; /* No vertical gaps */
}

/* Items that span two columns */
.grid-item.w2 {
    width: 50%; /* Exactly 2 columns for no horizontal gaps */
}

.grid-item {
    float: left; /* Masonry uses floats internally */
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Slight shadow for definition */
    cursor: pointer;
    transition: transform 0.2s ease-in-out, opacity 0.3s ease; /* Added opacity transition */
}

.grid-item:hover {
    transform: scale(1.02); /* Slight scale effect on hover */
    z-index: 10; /* Bring hovered item forward */
}

.grid-item img {
    width: 100%;
    height: 100%; /* Image fills the height of its container */
    display: block;
    object-fit: cover; /* Ensures images fill their container without distortion */
}

/* Optional: Visual feedback for when an image is changing */
.grid-item.is-changing {
    opacity: 0.5; /* Fade out slightly when image is swapped */
}


/* --- Image Comparison Slider Styles (for section3) --- */
.image-compare-container {
    position: relative;
    width: 100%;
    max-width: 1024px; /* Add this line */
    margin: 0 auto;     /* Add this line to center it horizontally */
    height: 100%;
    overflow: hidden; /* Crucial for clipping the 'right' image */
    display: flex; /* Helps center images initially */
    justify-content: center;
    align-items: center;
    user-select: none; /* Prevent text selection during drag */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    z-index: 99;
}

.image-compare-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* *** CHANGED: Use 'contain' to center transparent PNGs *** */
    pointer-events: none; /* Prevent images from interfering with handle dragging */
}

/* The right image will be clipped using clip-path in JS */
.image-compare-right {
    /* Initial state, 50% visible */
    clip-path: inset(0 0 0 50%);
    -webkit-clip-path: inset(0 0 0 50%);
}

.image-compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* Initial position in the middle */
    width: 4px; /* Thickness of the handle line */
    background-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%); /* Center the handle line */
    cursor: ew-resize; /* Cursor indicating horizontal resize */
    z-index: 10; /* Ensure handle is above images */
}

.image-compare-handle::before,
.image-compare-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px; /* Width of the horizontal line parts */
    height: 40px; /* Height of the circle/icon container */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5); /* Border around the circle */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em; /* For icon */
    color: #333; /* For icon */
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.image-compare-handle::before {
    top: -20px; /* Position above the handle */
}

.image-compare-handle::after {
    bottom: -20px; /* Position below the handle */
}

/* Style for the Font Awesome icon inside the handle */
.image-compare-handle .fas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-size: 1.5em;
    z-index: 11; /* Above the handle line itself */
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* Adjustments for handle on hover */
.image-compare-handle:hover {
    background-color: rgba(255, 255, 255, 1);
}
.image-compare-handle:hover .fas {
    color: #000;
}


/* Lightbox Styling (shared for all sections) */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Set higher than header/footer to ensure it's always on top */
}

#lightbox.hidden {
    display: none;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px; /* Keep rounded corners for lightbox image */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

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

/* Media Queries for Responsiveness - Masonry Column Adjustment */
/* These widths are precise to ensure no gaps */
@media (max-width: 1200px) {
    .grid-sizer,
    .grid-item {
        width: 33.33333%; /* Exactly 3 columns */
    }
    .grid-item.w2 {
        width: 66.66666%; /* Exactly 2 of 3 columns */
    }
}

@media (max-width: 768px) {
    .grid-sizer,
    .grid-item {
        width: 50%; /* Exactly 2 columns */
    }
    .grid-item.w2 {
        width: 100%; /* Span full width */
    }
    /* Smaller handle for image comparison on small screens */
    .image-compare-handle {
        width: 2px;
    }
    .image-compare-handle::before,
    .image-compare-handle::after {
        width: 30px;
        height: 30px;
    }
    .image-compare-handle .fas {
        font-size: 1.2em;
        padding: 6px;
    }
}

@media (max-width: 480px) {
    .catalog-container {
        padding: 0; /* Remove padding on very small screens for max space */
    }
    .grid-sizer,
    .grid-item {
        width: 100%; /* Single column on small screens */
    }
    .grid-item.w2 {
        width: 100%; /* Still span full width */
    }
}

/* Nav Icon */
nav {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

header nav {
  font-weight: 300;
  height: 3em;
  letter-spacing: 0.1em;
  line-height: 3em;
  text-transform: uppercase;
}

header nav a {
    border: 0;
    display: inline-block;
    padding: 0 1em;
}

header nav a:before {
    float: right;
    margin-left: 0.75em;
}

header nav a {
    color: #ffffff;
    text-decoration: none;
    -moz-transition: background-color 0.2s ease-in-out;
    -webkit-transition: background-color 0.2s ease-in-out;
    -ms-transition: background-color 0.2s ease-in-out;
    transition: background-color 0.2s ease-in-out;
    border-radius: 5px;
    padding: 0 3.35em;
}

header nav a:before {
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    text-transform: none !important;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f015';
    line-height: inherit;
}

header nav a[href="#home"]:hover {
    background-color: rgba(255, 255, 255, 0.025);
}

header nav a[href="#home"]:active {
    background-color: rgba(255, 255, 255, 0.075);
}

#mixfashion{
    filter: opacity(40%);
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    top:0;
    right:0;
    width: 100%;
    height: 100%;
    background-size: 100% 100%;
    background-color: black; /* in case the video doesn't fit the whole page*/
    background-position: center center;
    background-size: contain;
    object-fit: cover; /*cover video background */
}
