/* Header Control Styles */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.topnav {
    margin-left:2rem;
    overflow: hidden;
    background-color: #e9e9e9;
}

.topnav a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
}

.topnav .search-container {
    float: right;
}

.topnav input[type=text] {
    padding: 6px;
    border: none;
}

.topnav .search-container button {
    float: right;
    padding: 6px 10px;
    background: #492248;
    border: none;
    cursor: pointer;
}

.topnav .search-container button:hover {
    background: #ccc;
}

.h11 {
    background: #492248;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'InterRegular','Helvetica Neue',Helvetica,Arial,sans-serif;
    padding: 8px 0px;
    letter-spacing: 6px;
    font-size: 16px;
}

.s1 {
    background: #fdf8fd;
    display: flex;
    align-items: center;
    padding-left: 2.5rem;
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    height: auto;
    min-height: 60px;
}

.s2 {
    background: linear-gradient(135deg, #ab50aa, #e91e63, #9c27b0);
    display: flex;
}

.tabs {
    border-bottom: 1px solid #ddd;
}

.tabs a {
    color: #492248;
    text-decoration: none;
    cursor: default;
}

.tabs a.active {
    font-weight: 600;
}

.tab-content {
    padding-top: 20px;
    padding-left: 4rem;
    padding-right: 4rem;
    background: white;
    display: none;
}

.tab-content {
    position: absolute;
    width: 100%;
    z-index: 10;
    background: white;
    display: none;
}

.tab-content.active {
    display: block;
}

.r11 {
    margin-left: 3rem;
    display: flex;
    grid-column-gap: 2.4rem;
    font-family: InterMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    height: 100%;
    align-items: center;
}

.r11-nav {
    display: flex;
    font-family: InterMedium, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    height: 100%;
}

.r11 a {
    height: 100%;
    align-items: center;
    display: flex;
    padding: 8px 12px;
}

.r11 a:hover {
    border-bottom: 4px solid #ab50aa;
    font-weight: 600;
}

.r11-nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.r11-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    transform: translateY(-2px);
}

/* Mobile toggle button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px 10px;
    margin-left: 12px;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #492248;
    margin: 5px 0;
}

/* Responsive site logo */
.site-logo {
    height: auto;
    width: auto;
    max-height: 40px;
    object-fit: contain;
    cursor: pointer;
}

/* Fullscreen menu panel on mobile */
.menu-panel { 
    display: none; 
}

/* Sidebar styles */
.sidebar {
    position: fixed;
    top: var(--header-height, 56px);
    right: -800px; 
    width: 800px;
    height: calc(100vh - var(--header-height, 56px));
    background-color: #fdf8fd;
    color: white;
    transition: right 0.3s ease-in-out; 
    z-index: 900;
    padding: 20px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar.active {
    right: 0;
}

.sidebar .close-btn {
    position: absolute;
    top: 0px;
    right: 20px;
    font-size: 30px;
    color: black;
    cursor: pointer;
}

#searchInputSidebar {
    padding: 10px;
    border: none;
    width: 100%;
}

#sidebar button {
    margin-top: 10px;
    background: #492248;
    border: none;
    color: white;
    cursor: pointer;
}

/* Prevent background scroll when overlays are open */
body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Fixed header styles */
.gg11 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.container, .container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Trending searches styles */
.w33 {
    font-family: InterSemiBold, "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.2px;
    font-size: 2rem;
}

.f22 p::before {
    content: "";
    background-image: url("https://assets.cltstatic.com/images/responsive/common-sprite.png?v2.0");
    background-size: 600px;
    background-repeat: no-repeat;
    background-position: -508px -198px;
    width: 20px;
    height: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0px;
}

.f22 p {
    padding-left: 25px;
    font-size: 13px;
    margin-top: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 600px) {
    .topnav .search-container {
        float: none;
    }

    .topnav a, .topnav input[type=text], .topnav .search-container button {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
        margin: 0;
        padding: 14px;
    }

    .topnav input[type=text] {
        border: 1px solid #492248;
    }
}

/* Desktop: keep hover dropdown fixed under sticky header so it remains visible after scroll */
@media screen and (min-width: 992px) {
    .tab-content {
        position: fixed;
        top: var(--header-height, 120px);
        left: 0;
        right: 0;
        z-index: 1500;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
}

@media screen and (max-width: 991px) {
    .s1 {
        height: auto;
        padding: 0.5rem 1rem;
    }

    .s2 {
        display: none;
    }

    .menu-toggle {
        display: inline-block;
    }

    /* Place header items in a row and keep search in header */
    .tabs {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .topnav {
        margin-left: 0 !important;
        flex: 1 1 auto;
        max-width: 760px;
    }

    /* Mobile slide-in menu: full-screen overlay with brand tint */
    .menu-panel {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, rgba(73,34,72,0.92) 0%, rgba(171,80,170,0.88) 100%);
        z-index: 2000;
        display: block;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 8px 24px;
    }

    .menu-panel.open {
        transform: translateX(0);
    }

    .menu-panel .close-btn {
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 26px;
        color: #ffffff;
        cursor: pointer;
        line-height: 1;
        padding: 6px;
        border-radius: 50%;
        transition: background-color 0.2s ease;
    }

    .menu-panel .close-btn:hover {
        background-color: rgba(255,255,255,0.12);
    }

    .menu-panel .r11 {
        display: flex;
        flex-direction: column;
        margin-left: 0;
        padding: 8px 6px 0;
        grid-column-gap: 0;
        row-gap: 0;
        align-items: stretch;
    }

    .menu-panel .r11 a {
        display: block;
        height: auto;
        padding: 16px 16px;
        font-size: 16px;
        color: #ffffff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,0.18);
        letter-spacing: 0.2px;
        text-align: left;
        width: 100%;
    }

    .menu-panel .r11 a:hover {
        background-color: rgba(255,255,255,0.08);
        color: #ffffff;
    }

    /* Search stays in header and becomes full width */
    .topnav { 
        width: 100%; 
    }
    
    .topnav .search-container { 
        width: 100%; 
        display: flex; 
    }
    
    .topnav .search-container form { 
        display: flex; 
        width: 100%; 
    }
    
    .topnav input[type=text] {
        width: 100% !important;
        min-width: 82%;
        flex: 1 1 auto;
        height: 40px;
        padding: 8px 10px;
        border: 1px solid #492248;
        border-right: 0;
        background: #fdf8fd;
        font-size: 16px;
    }

    /* Hide desktop hover mega menu on mobile */
    .tab-content {
        display: none !important;
    }

    /* Sidebar takes full width on small screens */
    .sidebar {
        width: 100%;
        right: -100%;
    }

    .site-logo {
        max-height: 30px;
        max-width: 55vw;
    }

    /* Hide desktop nav list on mobile */
    .r11-desktop { 
        display: none; 
    }

    /* Mobile: search sidebar becomes full width under header */
    .sidebar {
        left: 0;
        right: auto;
        width: 100vw;
        top: var(--header-height, 56px);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar .close-btn {
        top: 10px;
        right: 14px;
    }

    /* Sidebar Trending Searches: stack items 1 column, 6 rows */
    .sidebar .col-md-12[style*="grid-column-gap"] {
        flex-direction: column !important;
        row-gap: 12px;
    }

    .sidebar .col-md-12[style*="grid-column-gap"] > .col-md-6 {
        width: 100% !important;
        padding: 8px 0;
    }

    .sidebar .col-md-12[style*="grid-column-gap"] > .col-md-6 img {
        margin-left: 12px;
    }
}

/* Responsive search bar for desktop */
@media screen and (min-width: 992px) {
    .topnav input[type=text] {
        width: 680px !important;
        max-width: 680px;
    }
}

@media screen and (min-width: 1200px) {
    .topnav input[type=text] {
        width: 820px !important;
        max-width: 820px;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .topnav input[type=text] {
        width: 620px !important;
        max-width: 620px;
    }
}

@media screen and (max-width: 991px) {
    .topnav input[type=text] {
        width: 100% !important;
        max-width: 100%;
    }
    
    .topnav .search-container button {
        flex: 0 0 auto;
        height: 40px;
        padding: 0 14px;
        border: 1px solid #492248;
    }
}

@media screen and (max-width: 575px) {
    .site-logo {
        max-height: 35px;
        max-width: 60vw;
    }
}

/* Additional styles for inline elements */
.topnav-search-container {
    border: 1px solid #492248;
}

.topnav-search-input {
    background: #fdf8fd;
    width: 600px;
}

.topnav-search-icon {
    color: white;
}

.sidebar-padding {
    padding: 4rem 6rem;
}

.sidebar-content-color {
    color: #492248;
}

.trending-searches-grid {
    display: flex;
    grid-column-gap: 3rem;
    padding: 0px;
    border-bottom: 1px solid rgb(235, 235, 255);
    padding-bottom: 12px;
}

.trending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trending-item img {
    height: 60px;
    width: 60px;
    border-radius: 12px;
}

.tab-content-padding {
    padding-bottom: 0px;
}

.form-group-nowrap {
    white-space: nowrap;
    font-size: 1.2rem;
    margin-bottom: 0px;
}

.section-title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.category-item {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    grid-column-gap: 2rem;
    font-size: 1rem;
}

.category-item img {
    width: 100%;
}

.metal-stone-grid {
    display: flex;
    grid-column-gap: 2rem;
}

.metal-stone-item {
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    grid-column-gap: 2rem;
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.price-range-item {
    display: flex;
    align-items: center;
    grid-column-gap: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.banner-image {
    margin-bottom: 1rem;
    width: 80%;
    height: auto;
    margin-top: -2rem;
    float: right;
    margin-right: 3rem;
}

.hidden-title {
    visibility: hidden;
}

.spacing-title {
    margin-top: 2rem;
}

