/* General Styles */
.store-visit {
    text-align: center;
    font-size: 1.2em;
    margin-top: 20px;
    color: #333;
    font-weight: bold;
}

.store-visit:hover {
    color: #b98d3a; /* Match with your theme color */
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
}

/* Necklace Collection Section */
.necklaces {
    padding: 60px 28px;
    background: linear-gradient(180deg, #eef6f7 0%, #f6fafb 100%);
}

.necklaces .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
}

.necklaces h2 {
    text-align: center;
    margin-bottom: 34px;
    font-size: 3.4rem;
    color: #2b2b2b;
    font-family: 'Georgia', serif;
    position: relative;
    letter-spacing: 1px;
}
.necklaces h2::after {
    content: '';
    display: block;
    width: 90px;
    height: 6px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 12px auto 0;
    border-radius: 3px;
    box-shadow: 0 6px 18px rgba(212,175,55,0.12);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 26px;
    justify-content: center;
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(10, 20, 35, 0.12);
    transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s;
    border: 1px solid rgba(212,175,55,0.14);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 4/5;
    transition: transform 0.35s ease;
}

/* Decorative shine and interactive overlay */
.gallery-item {
    perspective: 900px;
}

.gallery-item::before{
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(212,175,55,0.06), rgba(255,255,255,0.015));
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}

.gallery-item .view-btn{
    background: linear-gradient(180deg,#d4af37,#b98d3a);
    color: #0b1a2b;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(212,175,55,0.18);
}

.gallery-item .price-badge{
    background: rgba(0,0,0,0.7);
    color: #f6e9c8;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid rgba(212,175,55,0.18);
}

.gallery-item .card-caption{ align-items: center; }

.gallery-item .card-caption .title{ flex:1; }

.gallery-item:hover img{
    transform: scale(1.12) rotate(-0.6deg);
}

.gallery-item:hover::before{ opacity: 1; }

.gallery-item:hover .card-caption{ transform: translateY(-12px); }

/* subtle floating animation for first row */
.gallery-item:nth-child(-n+4){
    transition-timing-function: cubic-bezier(.2,.9,.3,1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}


.gallery-item .card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 14px 14px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.36) 55%, rgba(0,0,0,0.72) 100%);
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    backdrop-filter: blur(4px);
}

.gallery-item .card-caption .title {
    font-size: 1rem;
    font-weight: 800;
}

.gallery-item .card-caption .badge {
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    padding: 6px 10px;
    border-radius: 12px;
    color: var(--primary-gold);
    font-weight: 700;
}

.gallery-item:hover .card-caption { transform: translateY(-8px); }

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 34px 80px rgba(10,20,35,0.22);
}
.home-button {
    position: fixed;
    top: 22px;
    left: 22px;
    background: linear-gradient(180deg, #f7b36b, #e69c46);
    color: #fff;
    padding: 12px 18px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(214,150,60,0.18);
}

/* Lightbox styles */
.lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(6,10,20,0.6);
    backdrop-filter: blur(6px) saturate(120%);
    z-index: 12000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lb-content { display:flex; align-items:center; gap:18px; max-width: 92vw; width: 1100px; }
.lb-image-wrap { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding: 18px; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lb-image-wrap img { max-width: 78vw; max-height: 78vh; display:block; border-radius:8px; }
.lb-caption { margin-top: 10px; color: #f8efe0; text-align: center; font-weight:700; display: flex; justify-content: center; align-items: center; width: 100%; }
.lb-close { position: absolute; right: 20px; top: 18px; background: transparent; border: none; color: #fff; font-size: 34px; cursor: pointer; }
.lb-prev, .lb-next { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); color: var(--primary-gold); font-size: 34px; width:56px; height:56px; border-radius:12px; cursor:pointer; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.4); }

/* Responsive adjustments */
@media (max-width: 1200px){
    .necklaces h2 {
        font-size: 2.8rem;
        margin-bottom: 28px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px){
    .necklaces {
        padding: 40px 16px;
    }
    .necklaces h2 {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 16px;
    }
    .lb-content { width: 92vw; flex-direction: column; }
    .lb-prev, .lb-next { width:44px; height:44px; font-size:22px; }
    .home-button {
        top: 12px;
        left: 12px;
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px){
    .necklaces {
        padding: 30px 12px;
    }
    .necklaces h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
    .gallery-item .card-caption {
        padding: 10px 10px;
    }
    .gallery-item .card-caption .title {
        font-size: 0.9rem;
    }
    .gallery-item .view-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .lb-image-wrap img { 
        max-width: 90vw; 
        max-height: 60vh; 
    }
    .lb-close { 
        right: 12px; 
        top: 12px; 
        font-size: 28px; 
    }
}

@media (max-width: 480px){
    .necklaces {
        padding: 20px 10px;
    }
    .necklaces h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    .necklaces h2::after {
        width: 60px;
        height: 4px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .gallery-item {
        border-radius: 12px;
    }
    .gallery-item img {
        border-radius: 10px;
    }
    .gallery-item .card-caption {
        padding: 8px 8px;
        bottom: 0;
    }
    .gallery-item .card-caption .title {
        font-size: 0.8rem;
        font-weight: 700;
    }
    .gallery-item .view-btn {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    .home-button {
        top: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .lb-content {
        padding: 10px;
    }
    .lb-image-wrap { 
        padding: 10px; 
    }
    .lb-image-wrap img { 
        max-width: 95vw; 
        max-height: 50vh; 
    }
    .lb-caption { 
        margin-top: 8px; 
        font-size: 0.95rem;
    }
    .lb-prev, .lb-next { 
        width: 36px; 
        height: 36px; 
        font-size: 18px; 
    }
    .back-to-top {
        width: 130px;
        padding: 8px 12px;
        font-size: 0.9rem;
        margin: 30px auto;
    }
    .store-visit {
        font-size: 1rem;
        margin-top: 15px;
    }
}

.home-button:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(214,150,60,0.22); }

/* Back to Top Button */
.back-to-top {
    display: block;
    width: 150px;
    margin: 50px auto;
    background-color: #f4a261;
    color: white;
    text-align: center;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.back-to-top:hover {
    background-color: #e76f51;
}
