/* Image Display Fixes */





/* Product Grid Image Containers */


.product-image-container {


    position: relative;


    overflow: hidden; /* Prevent images from leaking outside the card */


    display: flex;


    justify-content: center;


    align-items: center;


    background-color: #f5f5f5; /* Neutral background for transparency */


    /* Square cards across storefront for uniform layout */


    aspect-ratio: 1/1;


    width: 100%;


    min-height: 0;


}





.product-image-container::before {


    content: "";


    position: absolute;


    inset: 0;


    background: #f5f5f5;


    border-radius: inherit;


    z-index: 0;


}





/* Keep Tailwind positioning (e.g. .absolute) intact; only ensure content stacks above ::before */


.product-image-container > * {


    z-index: 1;


}





/* Product Images - Fill the card (cover) */


.product-image-container img {


    object-fit: cover !important;


    object-position: center !important;


    box-sizing: border-box;


    max-width: 100% !important;


    max-height: 100% !important;


    width: 100% !important;


    height: 100% !important;


    transition: opacity 0.3s ease, transform 0.35s ease;


}





/* Zoom effect on hover */


.product-item:hover .product-image-container img {


    transform: scale(1.08);


}





/* Ensure the card itself doesn't collapse differently per image */


.product-item .product-image-container {


    flex: 0 0 auto;


}





/* Hover image for product grid */


.product-image-container .hover-image {


    position: absolute;


    top: 0;


    left: 0;


    width: 100%;


    height: 100%;


    object-fit: cover !important;


    object-position: center !important;


    box-sizing: border-box;


    opacity: 0;


    transition: opacity 0.3s ease;


    max-width: 100% !important;


    max-height: 100% !important;


    width: 100% !important;


    height: 100% !important;


}





.product-item:hover .hover-image {


    opacity: 1;


}





.product-item:hover .main-image {


    opacity: 0;


}





/* Prevent hover images from being forced to specific dimensions */


.product-item:hover .hover-image,


.product-item:hover .main-image {


    width: 100% !important;


    height: 100% !important;


}





/* Luxury overlay icon */


.product-luxe-icon {


    position: absolute;


    right: 12px;


    bottom: 12px;


    width: 36px;


    height: 36px;


    border-radius: 50%;


    display: flex;


    align-items: center;


    justify-content: center;


    background: rgba(255, 255, 255, 0.92);


    color: #1f2937;


    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);


    border: 1px solid rgba(0, 0, 0, 0.04);


    opacity: 0;


    transition: opacity 0.25s ease, transform 0.25s ease;


    backdrop-filter: blur(6px);


}





.product-item:hover .product-luxe-icon,


.product-item:focus-within .product-luxe-icon {


    opacity: 1;


    transform: translateY(-2px);


}





.product-luxe-icon span {


    font-size: 16px;


    line-height: 1;


    letter-spacing: 0.12em;


}





.product-luxe-icon:focus-visible {


    outline: 2px solid #111;


    outline-offset: 2px;


}





/* Main product image on product detail page */


.main-product-image-container {


    aspect-ratio: 1/1; /* Square container for consistency */


    display: flex;


    justify-content: center;


    align-items: center;


    overflow: hidden;


    background-color: #f5f5f5;


}





.main-product-image-container img {


    object-fit: cover !important;


    max-width: 100% !important;


    max-height: 100% !important;


    width: 100% !important;


    height: 100% !important;


    transition: transform 0.35s ease;


}





/* Zoom main product image on hover */


.main-product-image-container:hover img {


    transform: scale(1.12);


}





/* Storefront product detail gallery images */


#main-product-image,


.product-detail-gallery img {


    object-fit: cover;


}





/* Thumbnail images */


.product-thumbnail-container {


    aspect-ratio: 1/1;


    overflow: hidden;


    display: flex;


    justify-content: center;


    align-items: center;


    background-color: #f5f5f5;


}





.product-thumbnail-container img {


    object-fit: contain !important;


    max-width: 100% !important;


    max-height: 100% !important;


    width: 100% !important;


    height: 100% !important;


}





/* Customer photos grid */


.customer-photo-grid {


    object-fit: contain !important;


    aspect-ratio: 1/1;


}





/* Admin product images */


.admin-product-image {


    object-fit: contain !important;


    background-color: #f5f5f5;


}





/* Responsive adjustments */


@media (max-width: 768px) {


    .product-image-container {


        /* aspect-ratio already guarantees height */


        min-height: 0;


    }


}





/* Ensure transparent PNGs display correctly */


img[src*=".png"], img[src*="transparent"] {


    background-color: transparent !important;


}





/* Fix for WebP images with transparency */


img[src*=".webp"] {
    background-color: transparent !important;
}

/* --- Mossé Luxe assurance + seen-in upgrades --- */
.customer-photo-grid {
    --ml-photo-rotation: 0deg;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover !important;
    object-position: center center !important;
    aspect-ratio: 1 / 1;
    image-orientation: from-image;
    backface-visibility: hidden;
    transform: translateZ(0) rotate(var(--ml-photo-rotation));
}

.ml-assurance-social {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #f5f5f5 100%);
}

.ml-assurance-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.ml-assurance-panel::before {
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 140px;
    height: 140px;
    border-radius: 9999px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.ml-assurance-head {
    position: relative;
    z-index: 1;
    margin-bottom: 1.25rem;
}

.ml-assurance-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.55);
}

.ml-assurance-title {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
    font-weight: 800;
    color: #000;
}

.ml-assurance-copy {
    font-size: 0.92rem;
    color: rgba(0, 0, 0, 0.65);
    max-width: 520px;
}

.ml-assurance-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.ml-assurance-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(245, 245, 245, 0.8) 0%, rgba(255, 255, 255, 0.95) 100%);
    padding: 1rem 0.85rem;
    text-align: center;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.ml-assurance-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.ml-assurance-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 9999px;
    margin: 0 auto 0.55rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #000;
    background: #fff;
}

.ml-assurance-label {
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.58);
}

.ml-assurance-value {
    margin-top: 0.28rem;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 700;
    color: #000;
}

.ml-assurance-note {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: rgba(0, 0, 0, 0.52);
}

.ml-seen-wrap {
    padding-top: 0.2rem;
}

.ml-seen-kicker {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.52);
    margin-bottom: 0.45rem;
}

.ml-seen-title {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: 0.03em;
    color: #111;
}

.ml-seen-copy {
    margin: 0.85rem auto 0;
    max-width: 660px;
    color: rgba(0, 0, 0, 0.64);
    font-size: 0.95rem;
}

.ml-seen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.ml-seen-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: #f7f7f7;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    aspect-ratio: 1 / 1;
}

.ml-seen-link,
.ml-seen-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.ml-seen-image {
    transition: transform 0.45s ease;
}

.ml-seen-link:hover .ml-seen-image {
    transform: translateZ(0) rotate(var(--ml-photo-rotation, 0deg)) scale(1.04);
}

.ml-seen-overlay {
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
    padding: 0.4rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.ml-seen-link:hover .ml-seen-overlay {
    opacity: 1;
    transform: translateY(0);
}

.ml-seen-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    padding: 1rem 0;
}

@media (max-width: 1024px) {
    .ml-assurance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ml-seen-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .ml-seen-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ml-assurance-panel {
        padding: 1.1rem;
    }

    .ml-assurance-grid {
        gap: 0.65rem;
    }
}

/* --- Homepage premium UI enhancement --- */
.ml-category-filter-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.ml-category-shell {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    padding: 1rem 1.1rem;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.ml-category-kicker {
    text-align: center;
    margin-bottom: 0.7rem;
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.55);
}

.ml-category-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ml-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    padding: 0.44rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.8);
    color: #111111;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 260ms ease, border-color 260ms ease, background-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

.ml-category-chip:hover,
.ml-category-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, 0.32);
    background: #fff;
    color: #000;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    outline: none;
}

.ml-category-chip.is-active {
    background: linear-gradient(135deg, #111111 0%, #000000 100%);
    border-color: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.ml-featured-products {
    background:
        radial-gradient(circle at 100% -5%, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 45%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.ml-featured-products .ml-product-card {
    width: 100%;
    max-width: 330px;
    padding: 0.52rem 0.52rem 0.86rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 360ms ease, border-color 360ms ease;
}

.ml-featured-products .ml-product-card:hover,
.ml-featured-products .ml-product-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.12);
    outline: none;
}

.ml-featured-products .ml-product-media {
    border-radius: 0.98rem;
    border: 1px solid rgba(0, 0, 0, 0.09);
    background:
        linear-gradient(180deg, #f5f5f5 0%, #efefef 100%);
}

.ml-product-badge {
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    letter-spacing: 0.07em;
}

.ml-product-meta {
    padding-inline: 0.1rem;
}

.ml-product-category {
    font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin-bottom: 0.38rem;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ml-product-name {
    margin: 0;
    color: #0f0f0f;
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.56em;
}

.ml-product-price {
    margin-top: 0.62rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.ml-product-price-old {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.86rem;
    text-decoration: line-through;
}

.ml-product-price-current {
    color: #0e0d0a;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.ml-view-products-cta {
    border-radius: 999px;
    border-color: #111111;
    padding-inline: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    transition: transform 260ms ease, box-shadow 260ms ease, background-color 260ms ease, color 260ms ease;
}

.ml-view-products-cta:hover,
.ml-view-products-cta:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
    outline: none;
}

.ml-story-section {
    background:
        radial-gradient(circle at 92% 8%, rgba(0, 0, 0, 0.05) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
}

.ml-story-panel {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 12, 9, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.98) 100%);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.08);
    padding: clamp(1.3rem, 3.8vw, 2.6rem);
}

.ml-story-panel::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    right: -70px;
    top: -70px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.07) 0%, rgba(0, 0, 0, 0) 68%);
    pointer-events: none;
}

.ml-story-title {
    margin: 0 0 1.55rem;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: clamp(1.42rem, 2.9vw, 2.2rem);
    line-height: 1.18;
    font-weight: 700;
}

.ml-story-content {
    max-width: 65ch;
    margin: 0 auto;
}

.ml-story-content p {
    color: rgba(0, 0, 0, 0.82);
    line-height: 1.84;
}

.ml-story-content p:last-child {
    margin-bottom: 0;
}

.ml-story-portrait-wrap {
    margin: 0 auto 1.4rem;
    max-width: 260px;
    text-align: center;
}

.ml-story-portrait-frame {
    padding: 0.55rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background:
        radial-gradient(circle at 20% 5%, rgba(0, 0, 0, 0.08) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.ml-story-portrait-image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 0.8rem;
    object-fit: cover;
    object-position: center top;
}

.ml-story-portrait-caption {
    margin-top: 0.65rem;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.62);
}

.ml-story-portrait-home {
    max-width: 220px;
}

@media (max-width: 768px) {
    .ml-category-shell {
        padding: 0.9rem;
    }

    .ml-category-row {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    .ml-category-row::-webkit-scrollbar {
        display: none;
    }

    .ml-featured-products .ml-product-card {
        border-radius: 1rem;
        padding: 0.4rem 0.4rem 0.76rem;
    }

    .ml-featured-products .ml-product-media {
        border-radius: 0.82rem;
    }

    .ml-story-panel {
        border-radius: 1.1rem;
    }
}

/* --- Requested: remove image frames --- */
.product-image-container {
    background-color: transparent !important;
}

.product-image-container::before {
    content: none !important;
    display: none !important;
}

.main-product-image-container,
.product-thumbnail-container,
.ml-product-main-media-frame,
.ml-product-thumb-media {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ml-featured-products .ml-product-card {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ml-featured-products .ml-product-card:hover,
.ml-featured-products .ml-product-card:focus-visible {
    border-color: transparent !important;
    box-shadow: none !important;
}

.ml-featured-products .ml-product-media {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.ml-story-portrait-frame {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ml-story-portrait-image {
    border-radius: 0 !important;
}

/* --- Requested: open spacing between product images --- */
.ml-product-grid {
    column-gap: clamp(1.2rem, 2.6vw, 2.4rem) !important;
    row-gap: clamp(1.8rem, 3.3vw, 3.2rem) !important;
}

@media (max-width: 768px) {
    .ml-product-grid {
        column-gap: 1rem !important;
        row-gap: 1.5rem !important;
    }
}
