/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #d11d4d;
    /* APS Jewelers-like vibrant pink/red */
    --primary-hover: #b51540;
    --text-dark: #111111;
    --text-light: #555555;
    --bg-light: #fefefe;
    --border-color: #eaeaea;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.top-bar {
    background-color: #d11d4d;
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    padding: 10px 0;
}

.main-header {
    border-bottom: 1px solid #eaeaea;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0 !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-bar {
    display: flex;
    align-items: stretch;
    background-color: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 30px;
    padding: 0;
    flex: 0 1 450px;
    overflow: hidden;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 12px 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background-color: var(--primary-hover);
}

.close-search-btn {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
    flex: 1;
}

.action-item {
    color: #333333;
    /* Dark to stand out on white */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.action-icon {
    font-size: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.action-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.action-item:hover {
    opacity: 1;
}

.action-item:hover .action-icon {
    transform: scale(1.15) translateY(-2px);
    color: var(--primary-color);
    /* Brand color on hover */
}

.action-item:hover .action-label {
    color: #ffd700;
}

.cart-item {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #ff3366;
    /* Vibrant pink/red for contrast */
    color: white;
    font-size: 10px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #290c3d;
    /* Match header background to look cut out */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.main-nav {
    margin-top: 10px;
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.8vw, 30px);
    list-style: none;
    padding: 0 10px;
    flex-wrap: nowrap;
}

.nav-item {
    /* Padding bottom ensures mouse doesn't slip off between link and menu */
    padding-bottom: 15px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: clamp(11.5px, 0.9vw, 13.5px);
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding-bottom: 15px;
    white-space: nowrap;
    display: inline-block;
}

.nav-link:active,
.nav-item.active .nav-link,
.nav-link:focus {
    color: #ed72a7;
}

.nav-link:active::after,
.nav-item.active .nav-link::after,
.nav-link:focus::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ed72a7;
}

@media (hover: hover) {
    .nav-item:hover .nav-link {
        color: #ed72a7;
    }

    .nav-item:hover .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #ed72a7;
    }
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ed72a7;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
}

@media (hover: hover) {
    .nav-item:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.mega-menu-inner {
    display: flex;
    justify-content: center;
    gap: 100px;
    padding: 40px 20px;
}

.mega-menu-column {
    display: flex;
    flex-direction: column;
}

.mega-menu-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.mega-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mega-menu-list a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #111111;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mega-menu-list a:hover {
    color: var(--primary-color);
}

/* Hero Banner Slider */
.hero-banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 850;
    max-height: 850px;
    background-color: #fcedf1;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1.5s ease-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-title {
    font-size: 60px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    line-height: 1.2;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide.active .slide-title {
    transform: translateY(0);
    opacity: 1;
}

.shop-now-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide.active .shop-now-btn {
    transform: translateY(0);
    opacity: 1;
}

.shop-now-btn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}



.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 16px;
    height: 16px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.dot-inner {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    position: absolute;
    transition: var(--transition);
}

.progress-ring {
    transform: rotate(-90deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot.active .progress-ring {
    opacity: 1;
}

.progress-ring-fill {
    stroke-dasharray: 38;
    stroke-dashoffset: 38;
    transition: stroke-dashoffset 0.3s;
}

.dot.active .progress-ring-fill {
    animation: circleProgress 10s linear forwards;
}

@keyframes circleProgress {
    0% {
        stroke-dashoffset: 38;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

/* Fallback static banner */
.hero-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #fcedf1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

/* Top Categories */
.top-categories {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 40px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: #f5f5f5;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

/* Footer */
.main-footer {
    background-color: #f9f9f9;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
    color: var(--text-light);
}

/* Responsive Global Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    margin-right: 15px;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    .top-bar {
        display: none;
    }

    .mobile-hide-profile {
        display: none !important;
    }

    .header-content {
        position: relative;
        flex-wrap: wrap;
        padding: 25px 15px;
        gap: 15px 0;
    }

    .header-left {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .brand-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        flex: 0 0 50%;
        max-width: 50%;
        justify-content: flex-end;
    }

    .search-bar {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3;
        margin-top: 10px;
    }

    /* Mobile Navigation Drawer */
    .main-nav {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100%;
        background: white;
        z-index: 1050;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 0 !important;
        padding-bottom: 80px !important;
        margin-top: 0;
    }

    .main-nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
        color: var(--text-dark);
    }

    .nav-item:hover .nav-link::after {
        display: none;
    }

    /* Mega menu turns into accordion-like on mobile (hidden by default to avoid huge scrolling) */
    .mega-menu {
        position: static;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding-left: 20px;
    }

    .mega-menu-inner {
        flex-direction: column;
        gap: 20px;
        padding: 10px 0 20px;
    }

    /* Hero Banner Mobile */
    .hero-banner-slider {
        aspect-ratio: 1920 / 850;
        height: auto;
        min-height: 0;
        margin-top: 0 !important;
    }

    main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .slide-content {
        padding: 0 20px;
        align-items: center;
        text-align: center;
    }

    .slide-title {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .shop-now-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Adjust Container Padding */
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .brand-logo img {
        height: 100px !important;
    }

    .hero-banner-slider {
        aspect-ratio: 1920 / 850;
        height: auto;
        min-height: 0;
    }

    .slide-title {
        font-size: 26px;
    }

    .header-actions {
        gap: 15px;
    }

    .action-label {
        display: none;
    }
}

/* Mobile Sidebar Specific Styles */
.mobile-only-item {
    display: none;
}

.mobile-search-toggle {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
    margin-right: 15px;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #fdfdfd;
    border-color: #d11d4d;
    box-shadow: 0 4px 8px rgba(209, 29, 77, 0.1);
}

@media (max-width: 991px) {
    .desktop-wishlist {
        display: none !important;
    }

    .mobile-search-toggle {
        display: flex !important;
    }

    .search-bar.mobile-active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .search-btn {
        display: none !important;
    }

    .search-bar {
        display: flex !important;
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        transform: none;
        padding: 0 !important;
        background: #ffffff;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        z-index: 1100;
        margin: 0 !important;
        box-sizing: border-box;
        border-radius: 0;
        border: none;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .close-search-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        padding: 0 20px;
        font-size: 20px;
        color: #555;
        cursor: pointer;
    }

    .search-bar input {
        padding-left: 5px;
    }

    .mobile-only-item {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 15px;
        height: 100px;
        box-sizing: border-box;
        background: #290c3d;
        color: white;
        margin-bottom: 10px;
    }

    .mobile-sidebar-header img {
        height: 40px !important;
        margin-top: 2px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    }

    .close-mobile-menu {
        background: transparent;
        border: none;
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease;
    }

    .close-mobile-menu:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .mobile-sidebar-title {
        padding: 10px 20px 5px;
        font-size: 12px;
        font-weight: 700;
        color: #888;
        letter-spacing: 1px;
    }

    .mobile-sidebar-divider {
        height: 1px;
        background: #eee;
        margin: 10px 20px;
    }

    .mobile-nav-icon {
        width: 24px;
        text-align: center;
        margin-right: 12px;
        color: var(--primary-color);
        font-size: 16px;
    }

    /* Make the nav link slightly bolder with flex for icon */
    .main-nav .nav-link {
        display: flex;
        align-items: center;
        font-weight: 500;
        padding: 14px 20px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    /* Indent category links that don't have icons so they align with the text of Home/About */
    .main-nav .nav-item:not(.mobile-only-item) .nav-link {
        padding-left: 56px;
        color: #555;
    }

    .main-nav .nav-link:hover {
        background: rgba(0, 0, 0, 0.03);
        color: var(--primary-color);
    }

    /* Enhance the overall drawer look */
    .main-nav {
        padding-top: 0 !important;
        /* Remove top padding since we have the header now */
        background: #fafafa !important;
    }
}