@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-primary: 'Montserrat', sans-serif;
    --color-text-main: #0b1120;
    --color-text-light: #6b7280;
    --color-accent: #d4af37;
    /* More refined gold */
    --color-sale: #ff905a;
    --color-border: #e2e8f0;
    --color-white: #ffffff;
    --color-black: #000000;
    --color-bg-light: #f3f4ff;
    --shadow-card: 0 4px 12px 0 rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 18px 35px 0 rgba(15, 23, 42, 0.25);
    --transition-speed: 0.3s;
    --color-brand-deep: #020617;
    --color-brand-blue: #102a6b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.announcement-bar {
    background-color: #cc0000;
    /* Solid, bold red */
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 700;
    /* Bolder font */
    letter-spacing: 1px;
    text-transform: uppercase;
    overflow: hidden;
}

.scrolling-text {
    display: flex;
    gap: 40px;
    padding: 4px 0;
    white-space: nowrap;
    animation: promo-scroll 10s linear infinite;
}

.scrolling-text span {
    flex-shrink: 0;
}

.promo-strip {
    background-color: var(--color-brand-blue);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
}

.promo-strip .container {
    overflow: hidden;
}

.promo-marquee {
    display: flex;
    gap: 40px;
    padding: 8px 0;
    white-space: nowrap;
    animation: promo-scroll 10s linear infinite;
}

.promo-marquee span {
    flex-shrink: 0;
}

.promo-blue {
    color: #ffe082;
}

@keyframes promo-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Header */
.header-main {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    background: #000;
    /* Prevent white gaps */
}

.hero-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-height: 200px;
    /* Ensure visibility on mobile */
}

@media (min-width: 1024px) {
    .hero-slide img {
        height: 600px;
        /* Fixed height for desktop to match reference */
        aspect-ratio: auto;
    }
}

/* Category Circles */
.category-circles-section {
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}

.category-item {
    text-align: center;
    transition: transform 0.3s;
    width: 100px;
    /* Fixed width for slider */
}

.category-item:hover {
    transform: translateY(-5px);
}

.cat-img-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid transparent;
    padding: 2px;
}

.category-item:hover .cat-img-wrapper {
    border-color: var(--color-accent);
}

.cat-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.category-item span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-top: 8px;
    color: var(--color-text-main);
}

/* Category Swiper Slides - required for autoplay with slidesPerView: 'auto' */
.category-swiper .swiper-slide {
    width: 100px;
}

/* Curated Collections */
.curated-section {
    background: #fafafa;
}

.section-padding {
    padding: 30px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-main);
}

.section-header p {
    font-size: 14px;
    color: var(--color-text-light);
    margin-top: 8px;
    font-weight: 400;
}

.curated-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.curated-banner {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curated-banner:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.curated-banner:nth-child(2) {
    grid-column: 4 / 6;
    grid-row: 1;
}

.curated-banner:nth-child(3) {
    grid-column: 6 / 8;
    grid-row: 1;
}

.curated-banner:nth-child(4) {
    grid-column: 4 / 6;
    grid-row: 2;
}

.curated-banner:nth-child(5) {
    grid-column: 6 / 8;
    grid-row: 2;
}

.curated-banner:nth-child(6) {
    grid-column: 8 / 10;
    grid-row: 1;
}

.curated-banner:nth-child(7) {
    grid-column: 8 / 10;
    grid-row: 2;
}

.curated-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.curated-banner:hover img {
    transform: scale(1.15) rotate(1deg);
}

/* Updated Banner Overlay for visibility */
.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    opacity: 1;
    /* Always visible */
    transform: translateY(0);
    /* Always in place */
    transition: all 0.4s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.curated-banner:hover .banner-overlay,
.curated-banner:active .banner-overlay {
    padding-bottom: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    opacity: 1;
    transform: translateY(0);
}

.curated-banner .banner-overlay {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.banner-tag {
    display: inline-block;
    padding: 5px 10px;
    background: #fff;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 8px;
}

.banner-overlay h3 {
    color: #fff !important;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.banner-overlay p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
    font-weight: 500;
}



/* Shop By Color */
.colour-banners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.colour-banner-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    max-height: 400px;
}

.colour-banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.colour-banner-item:hover img {
    transform: scale(1.1);
}

.colour-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.shop-link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    display: inline-block;
    color: var(--color-accent);
}

.colour-banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    opacity: 1;
    /* Always visible */
    transition: all 0.3s;
    text-align: center;
}

.colour-banner-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff !important;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.shop-link {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 1;
    /* Always visible */
    transform: translateY(0);
    display: inline-block;
    color: #f0c352;
    /* Gold color */
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.colour-banner-item:hover .shop-link {
    text-decoration: underline;
    color: #ffd700;
}

.colour-banner-item:hover .colour-banner-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
}

/* Essentials */
.essentials-section {
    background: #fff;
}

.essentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.essential-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.essential-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.essential-card .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    text-align: center;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.essential-card:hover .banner-overlay,
.essential-card:active .banner-overlay {
    opacity: 1;
    /* Revealed on hover/touch */
    transform: translateY(0);
}

.essential-card:hover img {
    transform: scale(1.15) rotate(3deg);
}

.jewelry-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.jewelry-shimmer:hover::before {
    opacity: 1;
    animation: rotateJewelry 2s linear infinite;
}

@keyframes rotateJewelry {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Shop By Style */
.style-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.style-grid .style-banner {
    flex: 0 1 calc(33.333% - 14px);
    min-width: 280px;
}

.style-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #000;
    aspect-ratio: 4 / 5;
    max-height: 360px;
}

.style-banner img,
.style-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    display: block;
}

.style-banner .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.style-banner:hover .banner-overlay,
.style-banner.active .banner-overlay {
    opacity: 1;
    transform: translateY(0);
}

.style-banner .banner-overlay h3 {
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.style-banner .banner-overlay p {
    color: #ffffff !important;
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.style-banner:hover img,
.style-banner:hover video {
    transform: scale(1.08);
}

.style-banner:hover .banner-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.collection-item {
    text-align: center;
}

.collection-item a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Space between image and text */
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 600;
}

.collection-item img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.3s;
}

.collection-item:hover img {
    transform: translateY(-5px);
}

/* Most Gifted */
.royal-section {
    background: linear-gradient(135deg, #1a2a5e 0%, #0d1b3e 100%);
    color: #ffffff;
}

.royal-section .section-header h2 {
    color: #ffffff;
}

.royal-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.most-gifted-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gift-person-card {
    text-align: center;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.75);
    border-radius: 24px;
    padding: 16px 12px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gift-person-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.gift-person-image {
    background: #ffffff;
    border-radius: 20px;
    padding: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-person-image img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gift-person-card:hover .gift-person-image img {
    transform: scale(1.05);
}

.gift-person-label {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: 0.03em;
    display: none;
}

/* Glam Gallery */
.glam-spotlight-section {
    background: linear-gradient(135deg, #1a2a5e 0%, #0d1b3e 100%);
    padding: 60px 0;
    color: #ffffff;
}

.glam-spotlight-section .section-header h2 {
    color: #ffffff;
}

.glam-spotlight-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Force linear timing for continuous scroll sliders */
.category-swiper .swiper-wrapper,
.glam-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
}

.glam-swiper .swiper-slide {
    width: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.glam-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.glam-swiper .swiper-slide:hover img {
    transform: scale(1.1);
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    padding: 60px 0;
    color: #ffffff;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.newsletter-form input {
    flex: 1;
    max-width: 400px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.newsletter-form button {
    padding: 15px 35px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.newsletter-form button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Customer Stories */
.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Side Jewelry Panel */
.side-jewelry-panel {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(100%, -50%);
    z-index: 10000;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: flex-start;
}

.side-jewelry-panel.visible {
    transform: translate(0, -50%);
}

.side-panel-toggle {
    background: #d4af37;
    /* Gold */
    color: #000;
    padding: 10px 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    border-radius: 4px 0 0 4px;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.side-panel-content {
    background: #ffffff;
    width: 280px;
    padding: 20px;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0 12px;
    text-align: center;
    position: relative;
    border: 1px solid var(--color-border);
}

.side-product-card {
    position: relative;
    overflow: hidden;
}

.side-product-slider {
    position: relative;
    width: 100%;
    height: 220px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.side-product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 15px;
}

.side-product-img.active {
    opacity: 1;
}

/* Notification Popup */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-popup {
    background: #ffffff;
    border-left: 4px solid var(--color-accent);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    width: 320px;
    transform: translateX(-120%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
}

.notification-popup.active {
    transform: translateX(0);
    opacity: 1;
}

.notification-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.notification-content {
    flex: 1;
    text-align: left;
}

.notification-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--color-text-main);
}

.notification-content p {
    font-size: 12px;
    color: var(--color-text-light);
}

.notification-time {
    font-size: 11px;
    color: #999;
}

@media (max-width: 768px) {

    .curated-grid,
    .colour-banners-grid,
    .essentials-grid,
    .collections-grid,
    .most-gifted-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .style-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px !important;
    }

    /* Curated Banners Specific overrides for grid placement on mobile if needed */
    .curated-banner:nth-child(n) {
        grid-column: span 1 !important;
        grid-row: auto !important;
    }

    /* Make the first banner span full width if desired for impact, or keep 2-col */
    .curated-banner:nth-child(1) {
        grid-column: 1 / -1 !important;
        aspect-ratio: 2/1;
    }

    .curated-banner,
    .colour-banner-item,
    .essential-card,
    .style-banner,
    .collection-item {
        max-height: 250px;
        /* Prevent too tall images */
    }

    .style-banner {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-height: 400px;
        /* Allow bigger video */
    }

    .most-gifted-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 cols for small icons looks better */
    }

    /* Mobile fixes for category circles */
    .category-circles-section {
        background: #ffffff !important;
        padding: 15px 0 25px;
    }

    .category-swiper .swiper-slide {
        width: 90px;
    }

    .category-item {
        width: 90px;
    }

    .cat-img-wrapper {
        width: 70px;
        height: 70px;
    }

    .category-item span {
        font-size: 11px;
    }

    /* Mobile fixes for glam gallery */
    .glam-swiper .swiper-slide {
        width: 100%;
        max-width: 100%;
    }

    .glam-spotlight-section {
        background: linear-gradient(135deg, #1a2a5e 0%, #0d1b3e 100%) !important;
    }

    /* Adjust Side Panel on Mobile - Make smaller but visible */
    .side-jewelry-panel {
        top: auto;
        bottom: 80px;
        /* Above bottom nav */
        right: 0;
        transform: translate(100%, 0);
        display: flex !important;
        /* Ensure it's not hidden */
    }

    .side-jewelry-panel.visible {
        transform: translate(0, 0);
    }

    .side-panel-content {
        width: 200px;
        /* Smaller width for mobile */
        padding: 10px;
    }

    .side-product-slider {
        height: 160px;
    }

    .notification-popup {
        width: 280px;
        padding: 12px;
        bottom: 10px;
        left: 10px;
    }
}

/* Customer Stories - Restored Styles */
.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-brand-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.user-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 2px;
}

.stars {
    color: #ffd700;
    /* Gold stars */
    font-size: 14px;
    letter-spacing: 1px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 14px;
}