/* ============================================================
   LYLA JEWELRY - HOME PAGE STYLES
   ============================================================ */

/* ==================== MEDIA QUERY BREAKPOINTS ====================
   Large Desktop: 1440px+
   Desktop:       1025px - 1439px (default base styles)
   Tablet:        768px - 1024px
   Large Mobile:  481px - 767px  
   Mobile:        max-width: 480px
   ============================================================ */

/* ==================== BASE STYLES (Desktop 1025px-1439px) ==================== */

/* Home Section */
.home-section {
    background-color: white;
    width: 100%;
    font-family: 'Avenir', sans-serif;
}

.home-container {
    width: 100%;
}
/* Carousel Container */
.ring-image-box .carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Carousel Track & Slides */
.ring-image-box .carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-image-box .carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
}

/* Navigation Arrows (Hidden until hover) */
.ring-image-box .carousel-nav {
  position: absolute;
  opacity: 0;
  border-radius: 200px;
  width: 40px;
  height: 40px;
}

.ring-image-box:hover .carousel-nav {
  opacity: 1;
  
}

/* Indicators (Hidden until hover) */
.ring-image-box .carousel-indicators {
  position: absolute;
  bottom: 10px;
  opacity: 0;
}

.ring-image-box:hover .carousel-indicators {
  opacity: 1;
}
/* Hero Header Section */
.home-header {
    position: relative;
    width: 100%;
    height: 80vh;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
}

/* Hero media: image on desktop, video on mobile */
.home-header .hero-image-desktop {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-header .hero-video-mobile {
    display: none;
}
/* Subtle dark overlay to improve white text readability */
.home-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}
@media (max-width: 767px) {
    .home-header .hero-image-desktop {
        display: none;
    }
    .home-header .hero-video-mobile {
        display: block;
    }
}

/* Hero text overlay */
.home-header .hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    pointer-events: none;
}
.home-header .hero-text-line1 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-light);
    font-size: clamp(28px, 5vw, 64px);
    letter-spacing: 0.35em;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    line-height: 1.1;
}
.home-header .hero-text-line2 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium);
    font-size: clamp(14px, 1.6vw, 22px);
    letter-spacing: 0.25em;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}
@media (max-width: 767px) {
    .home-header .hero-text-line1 {
        letter-spacing: 0.25em;
    }
    .home-header .hero-text-line2 {
        letter-spacing: 0.2em;
    }
}

/* Header Overlay Styling */
.home-header .primary-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border: none;
}

.home-header .menu-toggle .bar {
    background-color: white !important;
}

.home-header .cart-container a {
    color: white !important;
    opacity: 1 !important;
}

.home-header .cart-icon {
    filter: invert(1);
}

.home-header .desktop-nav a {
    color: white !important;
}

.home-header .center-holder {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Image */
#hero-image {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Video Play Button (Optional) */
.play-button {
    position: absolute;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 5px;
}

/* Category Section (Desktop) */
.home-category-section {
    width: 100%;
    margin-inline: auto;
    margin-top: 15px;
    overflow: hidden;
}

.home-category-container {
    display: flex;
    gap: 15px;
    padding: 0;
}

.home-category-container h3 {
    font-size: 24px;
    font-weight: 100;
    letter-spacing: 1.5px;
    text-transform: capitalize;
    opacity: 0.9;
    color: white;
    margin: 0;
}

.home-category {
    width: 100%;
    height: 23vw;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 10px;
    
    
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.home-category:hover {
    transform: scale(1.02);
}

#rings-category {
    background: linear-gradient(to bottom, #00000000, #00000071),url(https://firebasestorage.googleapis.com/v0/b/lyla-ad8ff.firebasestorage.app/o/mediaLibrary%2Fmoik7alp3w4qvxe2b.webp?alt=media&token=28d29fd7-4a73-4c61-9920-a02939b5d5b2);
    background-size: cover;
    background-position: center;
}

#earring-category {
    background: linear-gradient(to bottom, #00000000, #00000071),url(https://firebasestorage.googleapis.com/v0/b/lyla-ad8ff.firebasestorage.app/o/mediaLibrary%2Fmoik6zfr6zz63nnoe.webp?alt=media&token=bd477304-c97c-4032-a5d8-4dd7cbd9998d);
    background-size: cover;
    background-position: center;
}

#necklace-category {
    background: linear-gradient(to bottom, #00000000, #00000071),url(https://firebasestorage.googleapis.com/v0/b/lyla-ad8ff.firebasestorage.app/o/mediaLibrary%2Fmoik76u49yrpq5gfz.webp?alt=media&token=f9ea28b3-d727-413d-bf11-890479fda4fe);
    background-size: cover;
    background-position: center;
}

#bracelet-category {
    background: linear-gradient(to bottom, #00000000, #00000071),url(https://firebasestorage.googleapis.com/v0/b/lyla-ad8ff.firebasestorage.app/o/mediaLibrary%2Fmoik73kylcqf18nvp.webp?alt=media&token=623aeb98-56b7-4f83-93b4-ddaa9dbcd493);
    background-size: cover;
    background-position: center;
}

/* Featured Products Section */
.collection-header {
    text-align: center;
    font-size: 30px;
    font-weight: 300;
    margin: 60px 0 40px 0;
    text-transform: capitalize;
    color: #000;
}

/* Product Grid */
.ring-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 5%;
    margin-bottom: 60px;
}

.ring-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.ring-card:hover {
    transform: translateY(-5px);
}

.ring-image-box {
    aspect-ratio: 1 / 1;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.ring-card:hover .ring-image-box {

}

.ring-image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ring-details {
    padding: 0 10px;
}

.ring-name {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 400;
    color: #000;
}

.ring-price {
    font-size: 0.9rem;
    opacity: 0.6;
    color: #000;
}

/* Shop Button */
.shop-rings-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.shop-rings-btn {
    background-color: transparent;
    border: 1.5px solid #000;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.shop-rings-btn:hover {
    background-color: #000;
    color: #fff;
}

/* Banner Section */
.image-banner-wraper {
    width: 100%;
    margin-bottom: 0;
}

.image-container {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Subtle dark overlay for readability */
.image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.image-container .banner-content {
    z-index: 2;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ==================== LARGE DESKTOP: 1440px+ ==================== */
@media (min-width: 1440px) {
    .collection-header {
        font-size: 35px;
        text-transform: capitalize;
        margin: 80px 0 50px 0;
    }

    .ring-grid-container {
        gap: 30px;
        padding: 0 8%;
        margin-bottom: 80px;
    }

    .banner-title {
        font-size: 4rem;
    }
}

/* ==================== TABLET: 768px - 1024px ==================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .home-header {
        height: 80vh;
    }

    #hero-image {
        mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 95%);
    }

    /* Category Carousel */
    .home-category-section {
        margin-top: 30px;
        padding: 0;
    }

    .home-category-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 4%;
        gap: 12px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
    }

    .home-category-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .home-category {
        min-width: 70%;
        height: 50vw;
        scroll-snap-align: start;
    }

    .home-category-container h3 {
        font-size: 24px;
    }

    .collection-header {
        font-size: 2rem;
        margin: 50px 0 30px 0;
    }

    .ring-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 4%;
        margin-bottom: 50px;
    }

    .image-container {
        height: 50vh;
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }
}

/* ==================== LARGE MOBILE: 481px - 767px ==================== */
@media (min-width: 481px) and (max-width: 767px) {
    .home-header {
        height: 80vh;
    }

    #hero-image {
        mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 90%);
    }

    /* Category Carousel */
    .home-category-section {
        margin-top: 25px;
        padding: 0;
    }

    .home-category-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 3%;
        gap: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .home-category-container::-webkit-scrollbar {
        display: none;
    }

    .home-category {
        min-width: 75%;
        height: 60vw;
        scroll-snap-align: start;
    }

    .home-category-container h3 {
        font-size: 22px;
    }

    .collection-header {
        font-size: 1.8rem;
        margin: 40px 0 25px 0;
    }

    .ring-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 3%;
        margin-bottom: 40px;
    }

    .ring-name {
        font-size: 0.85rem;
    }

    .ring-price {
        font-size: 0.8rem;
    }

    .shop-rings-btn {
        padding: 10px 30px;
        font-size: 13px;
    }

    .image-container {
        height: 40vh;
    }

    .banner-title {
        font-size: 2rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button::after {
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-left: 12px solid white;
    }
}

/* ==================== MOBILE: ≤480px ==================== */
@media (max-width: 480px) {
    .home-header {
        height: 80vh;
    }

    #hero-image {
        mask-image: linear-gradient(to bottom, black 40%, transparent 85%);
        -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 85%);
    }

    /* Category Carousel */
    .home-category-section {
        margin-top: 20px;
        padding: 0;
    }

    .home-category-container {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
        gap: 10px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .home-category-container::-webkit-scrollbar {
        display: none;
    }

    .home-category {
        min-width: 80%;
        height: 70vw;
        scroll-snap-align: start;
    }

    .home-category-container h3 {
        font-size: 18px;
    }

    .collection-header {
        font-size: 1.5rem;
        margin: 30px 0 20px 0;
        padding: 0 15px;
    }

    .ring-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .ring-image-box {
        margin-bottom: 10px;
    }

    .ring-name {
        font-size: 0.8rem;
    }

    .ring-price {
        font-size: 0.75rem;
    }

    .shop-rings-wrapper {
        margin-bottom: 50px;
    }

    .shop-rings-btn {
        padding: 10px 25px;
        font-size: 12px;
        
    }

    .image-container {
        height: 35vh;
    }

    .banner-title {

        font-size: 20px;
        width: 100%;
        /* padding: 0 20px; */
    }

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button::after {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid white;
        margin-left: 3px;
    }
}
