/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1600px) {
    .section-heading h2 {
        font-size: 58px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .diamond-container {
        grid-template-columns: 420px 1fr;
        gap: 50px;
    }

    .diamond-left h2 {
        font-size: 54px;
    }

    .diamond-grid {
        column-gap: 28px;
    }

    .promo-image {
        left: 250px;
    }

    .promo-content {
        margin-left: 500px;
    }

    .ring-heading h2 {
        font-size: 58px;
    }

    .ring-card h3 {
        font-size: 20px;
    }

    .charmed-section {
        height: 700px;
    }

    .charmed-title {
        font-size: 62px;
        gap: 26px;
    }

    .brand-name {
        font-size: 50px;
    }

    .trend-card {
        height: 680px;
    }

    .trend-header h2 {
        font-size: 58px;
    }

    .showroom-content h2 {
        font-size: 58px;
    }

    .showroom-content p {
        font-size: 20px;
    }

    .showroom-content {
        padding-left: 70px;
    }

    .inspired-header h2 {
        font-size: 58px;
    }

    .instagram-link {
        font-size: 17px;
    }

}

@media (max-width: 1200px) {

    .main-nav {
        gap: 30px;
        flex-wrap: wrap;
    }

    .hero-content h2 {
        font-size: 54px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 35px;
    }

    .diamond-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .diamond-left {
        text-align: center;
    }

    .diamond-left h2 {
        text-align: center;
    }

    .diamond-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .promo-inner {
        height: auto;
        padding: 40px 30px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .promo-image {
        position: relative;
        left: auto;
        top: auto;
        width: 130px;
        height: 180px;
        margin-bottom: 20px;
    }

    .promo-content {
        margin-left: 0;
    }

    .promo-terms {
        position: static;
        display: inline-block;
        margin-top: 20px;
    }

    .ring-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
    }

    .charmed-content {
        padding-left: 60px;
    }

    .charmed-title {
        font-size: 52px;
        gap: 20px;
    }

    .brand-name {
        font-size: 42px;
    }

    .by-text {
        margin-left: 260px;
    }

    .charmed-btn {
        margin-left: 200px;
    }

    .showroom-container {
        grid-template-columns: 1fr;
    }

    .showroom-content {
        max-width: 100%;
        padding: 60px 40px 0;
    }

    .showroom-image img {
        aspect-ratio: 1.7;
    }

    .covered-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 60px;
    }

    .covered-section h2 {
        font-size: 58px;
    }

    .mission-container {
        grid-template-columns: 1fr;
    }

    .mission-header {
        padding: 0;
    }

    .mission-header h2 {
        font-size: 48px;
    }

    .inspired-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media (max-width: 992px) {

    .header-top {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 20px;
    }

    .header-left,
    .header-right,
    .logo {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-card {
        height: 500px;
    }

    .hero-left-content {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }

      .jewelry-category-section {
        padding: 50px 0;
    }

    .category-container {
        padding: 0 24px;
    }

    .section-heading h2 {
        font-size: 48px;
    }

    .section-heading p {
        font-size: 18px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card h3 {
        font-size: 20px;
    }

    .diamond-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .diamond-left h2 {
        font-size: 46px;
    }

    .shape-card span {
        font-size: 16px;
    }

    .ring-categories-section {
        padding: 56px 0;
    }

    .ring-container {
        padding: 0 24px;
    }

    .ring-heading h2 {
        font-size: 48px;
    }

    .ring-heading p {
        font-size: 18px;
    }

    .ring-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .ring-card h3 {
        font-size: 19px;
        margin-top: 14px;
    }

    .charmed-section {
        height: 620px;
    }

    .charmed-content {
        align-items: center;
        padding: 0 30px;
        text-align: center;
    }

    .charmed-title {
        justify-content: center;
        gap: 14px;
        font-size: 42px;
        letter-spacing: 4px;
    }

    .by-text {
        margin-left: 0;
    }

    .brand-name {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .charmed-btn {
        margin-left: 0;
        margin-top: 50px;
    }

    .trend-report-section {
        padding-top: 50px;
    }

    .trend-header {
        padding: 0 24px;
    }

    .trend-header h2 {
        font-size: 48px;
    }

    .trend-header p {
        font-size: 18px;
    }

    .trend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 24px;
    }

    .trend-card {
        height: 700px;
    }

}

@media (max-width: 768px) {

    .about-hero {
        min-height: 360px;
        padding: 64px 22px;
    }

    .about-hero h1 {
        font-size: 44px;
    }

    .about-hero p:last-child {
        font-size: 16px;
    }

    .main-nav {
        gap: 18px;
        padding: 18px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .hero-card {
        height: 420px;
    }

    .hero-content h2 {
        font-size: 42px;
    }

    .hero-btn {
        min-width: 190px;
        height: 48px;
        font-size: 14px;
    }

    .chat-widget {
        transform: scale(.88);
        right: 10px;
        bottom: 10px;
    }

    .next-section h2 {
        font-size: 42px;
    }

     .section-heading h2 {
        font-size: 38px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-card h3 {
        font-size: 18px;
        margin-top: 14px;
    }

    .slider-arrow {
        width: 44px;
        height: 44px;
    }

    
    .diamond-shapes-section {
        padding: 60px 0;
    }

    .diamond-container {
        padding: 0 20px;
    }

    .diamond-left h2 {
        font-size: 38px;
    }

    .diamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }

    .shape-image {
        width: 90px;
        height: 90px;
    }

    .shape-image img {
        width: 72px;
        height: 72px;
    }

    .shape-card span {
        font-size: 15px;
    }

    .promo-content h3 {
        font-size: 22px;
    }

    .promo-line,
    .promo-code {
        font-size: 14px;
        line-height: 1.6;
    }

    .promo-banner {
        padding: 20px 0;
    }

    .ring-heading h2 {
        font-size: 38px;
        line-height: 1.05;
    }

    .ring-heading p {
        font-size: 16px;
    }

    .ring-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ring-card h3 {
        font-size: 18px;
    }

    .charmed-section {
        height: 520px;
    }

    .charmed-title {
        font-size: 26px;
        gap: 8px;
        letter-spacing: 2px;
        margin-bottom: 26px;
    }

    .by-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 22px;
        letter-spacing: 2px;
    }

    .charmed-btn {
        width: 190px;
        height: 58px;
        font-size: 18px;
        margin-top: 40px;
    }

    .trend-header h2 {
        font-size: 38px;
    }

    .trend-header p {
        font-size: 16px;
    }

    .trend-card {
        height: 560px;
    }

    .trend-content h3 {
        font-size: 28px;
    }

    .trend-content p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .trend-btn {
        width: 145px;
        height: 48px;
        font-size: 15px;
    }

    .showroom-section {
        padding: 60px 0;
    }

    .showroom-content {
        padding: 40px 24px 0;
    }

    .showroom-content h2 {
        font-size: 42px;
        margin-bottom: 24px;
    }

    .showroom-content p {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 32px;
    }

    .showroom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .showroom-btn {
        width: 100%;
        min-width: 100%;
        height: 56px;
        font-size: 16px;
    }

    .covered-section {
        padding: 60px 0 80px;
    }

    .covered-container {
        padding: 0 24px;
    }

    .covered-section h2 {
        font-size: 44px;
        margin-bottom: 50px;
    }

    .covered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    .covered-icon {
        width: 95px;
        height: 95px;
        margin-bottom: 24px;
    }

    .covered-icon i {
        font-size: 34px;
    }

    .covered-item h3 {
        font-size: 15px;
    }

    .mission-section {
        padding: 60px 0;
    }

    .mission-container {
        padding: 0 24px;
    }

    .mission-header h2 {
        font-size: 38px;
    }

    .mission-label {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .mission-caption {
        left: 24px;
        right: 24px;
        bottom: 24px;
        font-size: 14px;
    }

    .mission-card h3 {
        font-size: 17px;
    }

    .inspired-section {
        padding: 40px 0;
    }

    .inspired-header {
        padding: 0 24px;
        margin-bottom: 28px;
        flex-direction: column;
        gap: 18px;
    }

    .inspired-header h2 {
        font-size: 46px;
    }

    .instagram-link {
        margin-top: 0;
        font-size: 16px;
    }

    .inspired-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        top: 14px;
        right: 14px;
    }
}

@media (max-width: 480px) {

    .hero-content h2 {
        font-size: 34px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: 3px;
    }

    .header-left,
    .header-right {
        gap: 14px;
        flex-wrap: wrap;
    }

    .main-nav {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }


    .diamond-shapes-section {
        padding: 60px 0;
    }

    .diamond-container {
        padding: 0 20px;
    }

    .diamond-left h2 {
        font-size: 38px;
    }

    .diamond-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }

    .shape-image {
        width: 90px;
        height: 90px;
    }

    .shape-image img {
        width: 72px;
        height: 72px;
    }

    .shape-card span {
        font-size: 15px;
    }

    .showroom-content h2 {
        font-size: 34px;
        line-height: 1.1;
    }

    .showroom-image img {
        aspect-ratio: 1.2;
    }

    .covered-grid {
        grid-template-columns: 1fr;
    }

    .covered-section h2 {
        font-size: 36px;
    }

    .covered-item h3 {
        max-width: 200px;
    }

    .inspired-header h2 {
        font-size: 38px;
    }

    .inspired-grid {
        grid-template-columns: 1fr;
    }

    .slider-arrow {
        width: 48px;
        height: 48px;
    }
}

/* Later responsive overrides for the shared storefront shell. */

@media (max-width: 1200px) {
    .main-nav {
        flex-wrap: nowrap;
    }

    .mega-menu__inner {
        grid-template-columns: 220px 1fr;
        gap: 32px;
        padding-left: 28px;
        padding-right: 28px;
    }

    .mega-menu__columns {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-landing__hero {
        grid-template-columns: 1fr;
    }

    .category-landing__copy {
        padding: 62px 36px 40px;
    }

    .category-landing__panels {
        padding-left: 10px;
    }

    .category-shop__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-direction: row;
        height: 72px;
        padding: 0 18px;
        gap: 12px;
    }

    .header-left,
    .header-right {
        width: 25%;
    }

    .header-left {
        justify-content: flex-start;
    }

    .header-right {
        gap: 12px;
    }

    .header-right .header-icon:nth-of-type(2),
    .header-right .header-icon:nth-of-type(3),
    .currency,
    .phone,
    .location {
        display: none;
    }

    .logo {
        width: 50%;
        font-size: 20px;
        letter-spacing: 3px;
        white-space: nowrap;
    }

    .mobile-menu-toggle,
    .mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    body.nav-is-open {
        overflow: hidden;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(390px, 88vw);
        padding: 72px 24px 34px;
        display: block;
        background: #fff;
        border-right: 1px solid #ddd;
        border-bottom: 0;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 16px 0 36px rgba(0,0,0,.14);
    }

    .site-header.is-menu-open .main-nav {
        transform: translateX(0);
    }

    .mobile-menu-close {
        position: absolute;
        top: 18px;
        right: 18px;
    }

    .nav-item {
        border-bottom: 1px solid #ececea;
        padding: 18px 0;
    }

    .main-nav a {
        font-size: 14px;
        letter-spacing: 1.2px;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        margin-top: 18px;
    }

    .mega-menu__inner {
        display: block;
        padding: 0;
    }

    .mega-menu__feature {
        border-right: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .mega-menu__feature p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .mega-menu__columns {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .category-landing__copy h1 {
        font-size: 56px;
    }

    .category-landing__panel {
        min-height: 470px;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 110;
        background: #fff;
    }

    .brand-word {
        font-size: 21px;
        letter-spacing: 2px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .appointment-link {
        display: none;
    }

    .cart-page__layout,
    .checkout-layout {
        grid-template-columns: 1fr;
        padding: 42px 24px 64px;
    }

    .simple-grid {
        grid-template-columns: 1fr;
        padding: 42px 24px 64px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 24px 58px;
    }

    .product-info {
        position: static;
        padding-top: 0;
    }

    .product-story {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 48px 24px;
    }

    .related-products {
        padding: 52px 24px 68px;
    }
}

@media (max-width: 768px) {
    .category-landing__copy {
        padding: 46px 24px 34px;
    }

    .category-landing__copy h1 {
        font-size: 46px;
    }

    .category-landing__copy p:last-child {
        font-size: 16px;
    }

    .category-landing__panels {
        grid-template-columns: 1fr;
        padding: 0 10px 10px;
    }

    .category-landing__panel {
        min-height: 430px;
    }

    .category-shop,
    .category-guides {
        padding-left: 24px;
        padding-right: 24px;
    }

    .category-shop__header h2,
    .category-guides h2 {
        font-size: 40px;
    }

    .category-shop__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 12px;
    }

    .category-guides__grid {
        grid-template-columns: 1fr;
    }

    .cart-page__header,
    .checkout-hero,
    .simple-hero {
        padding: 54px 24px 44px;
    }

    .cart-page__header h1,
    .checkout-hero h1,
    .simple-hero h1,
    .account-panel h1 {
        font-size: 42px;
    }

    .product-card__purchase {
        align-items: stretch;
        flex-direction: column;
    }

    .add-to-cart-btn {
        width: 100%;
    }

    .cart-drawer__header,
    .cart-drawer__footer,
    .cart-drawer__items {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cart-line {
        grid-template-columns: 86px 1fr;
        gap: 14px;
    }

    .product-info h1 {
        font-size: 40px;
    }

    .product-options {
        grid-template-columns: 1fr;
    }

    .product-gallery__main {
        aspect-ratio: 1;
    }

    .product-story h2,
    .related-products h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .top-banner {
        font-size: 10px;
        letter-spacing: 1px;
        line-height: 1.4;
    }

    .header-top {
        height: 64px;
    }

    .header-right {
        gap: 6px;
    }

    .mega-menu__columns {
        grid-template-columns: 1fr;
    }

    .category-landing__copy h1 {
        font-size: 38px;
    }

    .category-landing__panel h2 {
        font-size: 32px;
    }

    .category-shop__grid {
        grid-template-columns: 1fr;
    }

    .category-guide {
        min-height: 78px;
        padding: 20px;
    }

    .brand-logo {
        gap: 8px;
    }

    .brand-word {
        font-size: 17px;
        letter-spacing: 1.2px;
    }

    .brand-mark {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .header-icon {
        width: 30px;
        height: 30px;
    }

    .main-nav {
        width: 100vw;
        padding-left: 22px;
        padding-right: 22px;
    }

    .cart-page__layout,
    .checkout-layout,
    .simple-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cart-summary,
    .checkout-summary,
    .checkout-panel,
    .account-panel {
        padding: 22px;
    }

    .crypto-options label {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 14px;
    }

    .app-loader span {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .product-detail {
        padding-left: 18px;
        padding-right: 18px;
    }

    .product-gallery__thumbs {
        gap: 8px;
    }
}

/* Brilliantstones layout stabilization pass. */

.currency img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #d8d8d8;
}

.site-header {
    background: #fff;
}

.cart-drawer:not(.is-open) {
    display: none;
    visibility: hidden;
}

.cart-drawer.is-open {
    display: flex;
    visibility: visible;
}

.main-nav {
    gap: 42px;
}

.nav-item__row {
    display: contents;
}

.nav-submenu-toggle {
    display: none;
}

.mobile-account-actions {
    display: none;
}

.hero-section {
    min-height: 560px;
    height: auto;
}

.hero-card {
    min-height: 560px;
}

.hero-section .hero-content {
    position: absolute;
    z-index: 5;
    color: #fff;
}

.hero-left-content,
.hero-right-content {
    left: 50%;
    right: auto;
    bottom: 46px;
    width: min(520px, calc(100% - 72px));
    transform: translateX(-50%);
    text-align: center;
}

.hero-content h2 {
    margin-bottom: 22px;
    text-shadow: 0 2px 16px rgba(0,0,0,.32);
}

.hero-btn,
.trend-btn,
.featured-btn,
.gift-btn,
.seasonal-btn,
.collection-btn,
.industry-btn,
.shop-btn {
    text-align: center;
}

.hero-content h2,
.section-heading h2,
.ring-heading h2,
.trend-header h2,
.inspired-header h2 {
    letter-spacing: 0;
}

.jewel {
    display: none;
}

.promo-banner {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 26px 40px 38px;
}

.promo-inner {
    display: grid;
    grid-template-columns: minmax(100px, 180px) minmax(0, 1fr) auto;
    gap: 34px;
    height: auto;
    min-height: 168px;
    padding: 22px 42px;
}

.promo-image {
    position: static;
    width: 150px;
    height: 124px;
}

.promo-content {
    margin-left: 0;
}

.promo-terms {
    position: static;
    align-self: end;
}

.category-grid,
.ring-grid,
.inspired-grid {
    align-items: start;
}

.category-card,
.ring-card,
.product-card,
.inspired-card,
.trend-card,
.mission-card {
    min-width: 0;
}

.trend-card {
    height: 640px;
}

.charmed-section {
    height: 500px;
}

.charmed-title,
.by-text,
.brand-name {
    letter-spacing: 0;
}

.charmed-title {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 58px;
    font-weight: 300;
    margin-bottom: 18px;
}

.charmed-title span {
    display: inline;
}

.by-text {
    margin: 0 0 18px;
    font-size: 13px;
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
}

.charmed-btn {
    width: 178px;
    height: 52px;
    margin: 34px 0 0;
    font-size: 16px;
}

.category-landing__hero,
.product-detail {
    overflow: hidden;
}

.summer-edit,
.slider-wrapper,
.popular-slider,
.high-jewelry-grid,
.high-jewelry-content {
    max-width: 100%;
    min-width: 0;
}

.summer-edit {
    overflow: hidden;
}

.summer-edit .decor {
    max-width: 100%;
}

.popular-slider {
    width: 100%;
}

.gift-page .high-jewelry-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 32px;
}

.gift-page .high-jewelry-content {
    width: 100%;
    max-width: 540px;
}

@media (max-width: 1200px) {
    .main-nav {
        gap: 24px;
    }

    .hero-section,
    .hero-card {
        min-height: 520px;
    }

    .category-grid,
    .ring-grid,
    .inspired-grid,
    .covered-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trend-card {
        height: 560px;
    }
}

@media (max-width: 992px) {
    .top-banner {
        padding: 9px 16px;
        font-size: 10px;
        letter-spacing: 1px;
        line-height: 1.35;
    }

    .header-top {
        position: relative;
        height: 64px;
        padding: 0 14px;
    }

    .header-left,
    .header-right {
        width: 30%;
    }

    .logo {
        width: 40%;
    }

    .brand-word {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .main-nav {
        width: min(360px, 88vw);
        padding: 78px 0 30px;
        background: #fff;
    }

    .site-header.is-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(17, 24, 32, .34);
    }

    .site-header.is-menu-open .main-nav {
        z-index: 70;
    }

    .mobile-menu-close {
        top: 18px;
        right: 18px;
    }

    .mobile-account-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0 24px 20px;
        border-bottom: 1px solid #e8e5df;
    }

    .mobile-account-actions a {
        min-height: 44px;
        border: 1px solid #123f42;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #123f42;
        font-size: 12px;
        letter-spacing: .4px;
        background: #fff;
    }

    .mobile-account-actions a:first-child {
        background: #123f42;
        color: #fff;
    }

    .nav-item {
        padding: 0;
        border-bottom: 1px solid #e8e5df;
    }

    .nav-item__row {
        display: flex;
        align-items: stretch;
        min-height: 56px;
    }

    .main-nav .nav-item__row > a {
        display: flex;
        align-items: center;
        flex: 1;
        padding: 0 24px;
        font-size: 13px;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .nav-submenu-toggle {
        width: 56px;
        border: 0;
        border-left: 1px solid #ece8e2;
        background: #fff;
        color: #26313d;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background .2s ease;
    }

    .nav-submenu-toggle i {
        font-size: 12px;
        transition: transform .22s ease;
    }

    .nav-item.is-expanded .nav-submenu-toggle {
        background: #f5f5f3;
    }

    .nav-item.is-expanded .nav-submenu-toggle i {
        transform: rotate(90deg);
    }

    .main-nav .mega-menu {
        display: none;
    }

    .main-nav .nav-item.is-expanded .mega-menu {
        display: block;
        padding: 0 24px 22px;
        background: #fbfbfa;
    }

    .main-nav .nav-item.is-expanded .mega-menu__feature {
        padding-top: 18px;
    }

    .main-nav .nav-item.is-expanded .mega-menu__feature p {
        display: none;
    }

    .main-nav .nav-item.is-expanded .mega-menu__feature a {
        display: inline-block;
        margin-bottom: 8px;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-section,
    .hero-card {
        min-height: 0;
    }

    .hero-card {
        height: 520px;
    }

    .hero-left-content,
    .hero-right-content {
        left: 24px;
        right: 24px;
        width: auto;
        bottom: 36px;
        transform: none;
        text-align: left;
    }

    .hero-content h2 {
        font-size: 46px;
    }

    .promo-banner {
        padding-left: 24px;
        padding-right: 24px;
        margin-left: 0;
        margin-right: 0;
    }

    .promo-inner {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 18px;
        padding: 22px;
    }

    .promo-terms {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .trend-grid,
    .showroom-container,
    .mission-container,
    .product-detail,
    .product-story,
    .auth-shell,
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .trend-card {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .header-right .header-icon[aria-label="Search"] {
        display: inline-flex;
    }

    .header-right .header-icon[aria-label="Account"],
    .header-right .header-icon[aria-label="Wishlist"] {
        display: none;
    }

    .brand-word {
        font-size: 17px;
    }

    .brand-mark {
        display: none;
    }

    .hero-card {
        height: 430px;
    }

    .hero-content h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .category-container,
    .ring-container,
    .trend-header,
    .covered-container,
    .mission-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .category-grid,
    .ring-grid,
    .inspired-grid,
    .covered-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
    }

    .section-heading h2,
    .ring-heading h2,
    .trend-header h2,
    .inspired-header h2 {
        font-size: 38px;
        line-height: 1.05;
    }

    .promo-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .promo-image {
        width: 120px;
        height: 96px;
    }

    .charmed-section {
        height: 420px;
    }

    .charmed-content {
        align-items: flex-start;
        padding: 0 24px;
        text-align: left;
    }

    .charmed-title,
    .brand-name {
        font-size: 36px;
    }

    .trend-card {
        height: 440px;
    }

    .showroom-content {
        padding: 34px 20px 0;
    }

    .auth-shell {
        padding: 52px 24px 70px;
        gap: 34px;
    }

    .auth-copy h1,
    .profile-hero h1 {
        font-size: 46px;
    }

    .profile-layout {
        padding: 36px 24px 68px;
    }

    .profile-card--lead {
        grid-row: auto;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 44px 24px 48px;
    }

    .footer-spacer {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-left,
    .header-right {
        width: 28%;
    }

    .logo {
        width: 44%;
    }

    .brand-word {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-nav {
        width: 88vw;
    }

    .hero-card {
        height: 390px;
    }

    .category-grid,
    .ring-grid,
    .inspired-grid,
    .covered-grid {
        grid-template-columns: 1fr;
    }

    .trend-card {
        height: 390px;
    }

    .product-info h1 {
        font-size: 34px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .profile-card {
        padding: 24px;
    }

    .auth-copy h1,
    .profile-hero h1 {
        font-size: 38px;
    }

    .auth-copy span,
    .profile-hero span {
        font-size: 16px;
    }

    .profile-hero {
        padding: 52px 20px 42px;
    }

    .mobile-account-actions {
        grid-template-columns: 1fr;
    }
}

/* Page-specific cleanup for Gift and Jewelry templates. */

.jewelry-featured__grid,
.gifts-split-hero,
.seasonal-gifts-container,
.occasion-content,
.high-jewelry-grid,
.collections-grid,
.industry-banner {
    min-width: 0;
}

.featured-card,
.gift-panel,
.seasonal-gift-card,
.recipient-card,
.popular-product-card,
.meaning-card,
.review-card,
.education-card,
.gifting-card,
.shop-card,
.collection-card {
    min-width: 0;
}

.featured-card img,
.gift-image img,
.seasonal-gift-image img,
.recipient-image img,
.product-image-wrap img,
.meaning-image img,
.review-image img,
.education-image img,
.gifting-image img,
.shop-image img,
.collection-image img {
    max-width: 100%;
}

.slider-wrapper,
.popular-slider,
.popular-gifts-swiper,
.swiper-wrapper {
    max-width: 100%;
}

.slider-wrapper,
.popular-gifts-swiper {
    overflow: hidden;
}

.popular-slider {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

@media (max-width: 1200px) {
    .gift-category-grid,
    .meaningful-grid,
    .reviews-grid,
    .education-grid,
    .gifting-grid,
    .more-ways-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .popular-gifts-swiper,
    .popular-slider {
        overflow-x: auto;
    }

    .summer-edit {
        min-height: 900px;
    }
}

@media (max-width: 992px) {
    .jewelry-featured__grid,
    .gifts-split-hero,
    .seasonal-gifts-container,
    .occasion-content,
    .high-jewelry-grid,
    .collections-grid,
    .industry-container .industry-banner {
        grid-template-columns: 1fr;
    }

    .featured-card,
    .gift-panel,
    .seasonal-gift-image,
    .recipient-image img {
        height: 460px;
    }

    .gift-category-grid,
    .recipient-grid,
    .meaningful-grid,
    .reviews-grid,
    .education-grid,
    .gifting-grid,
    .more-ways-grid,
    .categories-grid,
    .style-grid,
    .design-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gift-price-grid,
    .occasion-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .summer-edit {
        min-height: auto;
        padding: 74px 24px;
        display: block;
        background: #f5f5f3;
    }

    .summer-edit__bg-star,
    .summer-edit .decor,
    .summer-edit .floating-image,
    .summer-edit .label {
        display: none;
    }

    .summer-edit__content {
        position: static;
        transform: none;
        margin: 0 auto;
        max-width: 620px;
        text-align: center;
    }

    .summer-edit__content h2,
    .summer-edit__content h3 {
        letter-spacing: 0;
    }

    .summer-edit__content h2 {
        font-size: 56px;
        line-height: 1;
    }

    .summer-edit__content h3 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .featured-card,
    .gift-panel,
    .seasonal-gift-image,
    .recipient-image img {
        height: 380px;
    }

    .featured-card__overlay h2,
    .gift-overlay h2,
    .categories-title,
    .section-title,
    .price-title,
    .recipient-title,
    .popular-gifts-title,
    .more-ways-title,
    .gifts-editorial__title,
    .gifts-faq__title {
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: 0;
    }

    .gift-category-grid,
    .recipient-grid,
    .meaningful-grid,
    .reviews-grid,
    .education-grid,
    .gifting-grid,
    .more-ways-grid,
    .categories-grid,
    .style-grid,
    .design-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .jewelry-page .style-grid,
    .jewelry-page .categories-grid,
    .jewelry-page .design-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .gift-price-grid,
    .occasion-buttons {
        grid-template-columns: 1fr;
    }

    .popular-product-card {
        width: min(300px, 82vw);
    }

    .popular-slider {
        display: grid;
        grid-template-columns: 1fr;
        gap: 22px;
        overflow: visible;
        width: 100%;
    }

    .jewelry-page .popular-slider {
        display: grid;
        grid-template-columns: 1fr;
        transform: none;
        width: 100%;
        overflow: visible;
    }

    .popular-slider .product-card {
        width: 100%;
        max-width: 100%;
    }

    .jewelry-page .popular-slider .product-card {
        width: 100%;
        max-width: 100%;
    }

    .slider-wrapper .slider-arrow {
        display: none;
    }

    .occasion-content,
    .occasion-buttons,
    .occasion-buttons a {
        width: 100%;
        max-width: 100%;
    }

    .gift-page .occasion-content,
    .gift-page .occasion-buttons,
    .gift-page .occasion-buttons a {
        width: calc(100vw - 80px);
        max-width: calc(100vw - 80px);
    }

    .product-image-wrap {
        height: 260px;
    }

    .shop-btn,
    .summer-edit .shop-btn {
        width: 100%;
        max-width: 260px;
    }

    .high-jewelry-content h2,
    .industry-overlay h2,
    .industry-overlay-content h2 {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .featured-card,
    .gift-panel,
    .seasonal-gift-image,
    .recipient-image img {
        height: 330px;
    }

    .featured-card__overlay,
    .gift-overlay,
    .seasonal-gift-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-left-content,
    .hero-right-content {
        left: 20px;
        right: 20px;
    }

    .promo-banner {
        padding-left: 0;
        padding-right: 0;
    }

    .summer-edit__content h2 {
        font-size: 42px;
    }

    .summer-edit__content h3 {
        font-size: 26px;
    }
}

/* Search and checkout production stabilization. */

body.search-is-open {
    overflow: hidden;
}

.checkout-page,
.search-results-page {
    overflow-x: clip;
}

.search-panel {
    width: 100%;
    max-width: 100vw;
}

.search-panel__inner,
.search-results,
.checkout-layout {
    box-sizing: border-box;
}

.checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
}

.checkout-panel,
.checkout-summary {
    min-width: 0;
}

.checkout-panel--step {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 20px;
}

.checkout-summary {
    position: sticky;
    top: 112px;
}

.wallet-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wallet-box code {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .search-panel__inner {
        padding: 30px 24px 34px;
    }

    .search-results {
        padding: 34px 24px 64px;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
        padding: 34px 24px 68px;
    }

    .catalog-hero {
        padding: 58px 24px 46px;
    }

    .catalog-hero h1 {
        font-size: 50px;
    }

    .catalog-toolbar {
        top: 64px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-left: 24px;
        padding-right: 24px;
    }

    .catalog-toolbar a {
        flex: 0 0 auto;
    }

    .catalog-section {
        padding-left: 24px;
        padding-right: 24px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .checkout-summary {
        position: static;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .checkout-panel--step {
        padding: 24px;
    }

    .checkout-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .search-panel {
        top: 0;
        min-height: 100dvh;
        overflow-y: auto;
    }

    .search-panel__header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        gap: 16px;
        align-items: start;
    }

    .search-panel__header h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    .search-form {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .search-form input {
        min-width: 0;
        height: 52px;
    }

    .search-form button {
        grid-column: 1 / -1;
        height: 48px;
        border-left: 0;
        border-top: 1px solid #cfcac1;
    }

    .search-panel__quick {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-results-hero {
        padding: 48px 20px 36px;
    }

    .search-results-hero h1 {
        font-size: 40px;
    }

    .search-results__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-hero {
        padding: 50px 22px 36px;
    }

    .catalog-hero h1 {
        font-size: 42px;
    }

    .catalog-section__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .catalog-section__header h2 {
        font-size: 40px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-hero h1 {
        font-size: 40px;
    }

    .admin-shell {
        padding: 34px 22px 64px;
    }

    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header h1,
    .admin-panel__title h2,
    .admin-auth-panel h2 {
        font-size: 36px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-panel--step {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .checkout-step-label {
        width: 34px;
        height: 34px;
    }

    .checkout-panel__content h2,
    .checkout-summary__header h2 {
        font-size: 30px;
    }

    .checkout-service-options label,
    .crypto-options label {
        min-height: 0;
    }

    .crypto-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-panel__inner,
    .search-results,
    .checkout-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .search-panel__header h2 {
        font-size: 26px;
    }

    .checkout-panel,
    .checkout-summary,
    .admin-panel,
    .admin-auth-panel {
        padding: 20px;
    }

    .checkout-panel--step {
        padding: 20px;
    }

    .wallet-box {
        grid-template-columns: 1fr;
    }

    .wallet-box button,
    .checkout-summary button {
        width: 100%;
    }

    .catalog-hero {
        padding-left: 18px;
        padding-right: 18px;
    }

    .catalog-hero h1 {
        font-size: 36px;
    }

    .catalog-toolbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .catalog-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .catalog-strip {
        grid-template-columns: 1fr;
    }
}

/* Global commerce and mobile polish. */

.floating-contact-links {
    position: fixed;
    inset: auto 0 22px 0;
    z-index: 170;
    pointer-events: none;
}

.floating-contact-link {
    position: fixed;
    bottom: 22px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    box-shadow: 0 12px 28px rgba(14, 24, 34, .22);
    pointer-events: auto;
    transition: transform .2s ease, box-shadow .2s ease;
}

.floating-contact-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(14, 24, 34, .28);
}

.floating-contact-link--telegram {
    left: 22px;
    background: #229ed9;
}

.floating-contact-link--whatsapp {
    right: 22px;
    background: #25d366;
}

.mobile-home-shortcut {
    display: none;
}

.category-card[role="link"],
.ring-card[role="link"],
.mission-card[role="link"],
.meaning-card[role="link"],
.shop-card[role="link"],
.gifting-card[role="link"],
.education-card[role="link"],
.review-card[role="link"],
.popular-product-card[role="link"],
.inspired-card[role="link"] {
    cursor: pointer;
}

.category-card[role="link"]:focus-visible,
.ring-card[role="link"]:focus-visible,
.mission-card[role="link"]:focus-visible,
.meaning-card[role="link"]:focus-visible,
.shop-card[role="link"]:focus-visible,
.gifting-card[role="link"]:focus-visible,
.education-card[role="link"]:focus-visible,
.review-card[role="link"]:focus-visible,
.popular-product-card[role="link"]:focus-visible,
.inspired-card[role="link"]:focus-visible {
    outline: 2px solid #123f42;
    outline-offset: 4px;
}

@media (max-width: 992px) {
    .header-top {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .header-left,
    .header-right,
    .logo {
        width: auto;
        min-width: 0;
    }

    .header-right {
        justify-content: flex-end;
    }

    .header-right .cart-toggle {
        display: inline-flex !important;
    }

    .cart-count {
        top: -6px;
        right: -7px;
    }

    .category-landing__panel::after,
    .trend-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,.06) 0%, rgba(0,0,0,.35) 48%, rgba(0,0,0,.7) 100%);
    }

    .category-landing__panel div,
    .trend-content,
    .featured-card__overlay,
    .gift-overlay,
    .seasonal-gift-content,
    .industry-overlay,
    .industry-overlay-content,
    .collection-content {
        max-width: calc(100% - 32px);
        overflow-wrap: anywhere;
    }

    .trend-content {
        bottom: 26px;
        width: calc(100% - 36px);
    }
}

@media (max-width: 768px) {
    .header-right {
        gap: 10px;
    }

    .hero-left-content,
    .hero-right-content,
    .category-landing__panel div,
    .trend-content,
    .featured-card__overlay,
    .gift-overlay,
    .seasonal-gift-content,
    .industry-overlay,
    .industry-overlay-content,
    .collection-content {
        left: 18px;
        right: 18px;
        width: auto;
        max-width: none;
    }

    .hero-btn,
    .category-landing__panel a,
    .trend-btn,
    .featured-btn,
    .gift-btn,
    .seasonal-btn,
    .collection-btn,
    .industry-btn,
    .shop-btn {
        min-width: 0;
        max-width: 100%;
        min-height: 46px;
        height: auto;
        padding: 13px 18px;
        white-space: normal;
        line-height: 1.2;
    }

    .trend-content p,
    .industry-overlay p,
    .industry-overlay-content p,
    .collection-content p {
        font-size: 14px;
        line-height: 1.45;
    }

    .floating-contact-link {
        width: 48px;
        height: 48px;
        bottom: 18px;
        font-size: 25px;
    }

    .floating-contact-link--telegram {
        left: 16px;
    }

    .floating-contact-link--whatsapp {
        right: 16px;
    }

    .mobile-home-shortcut {
        position: fixed;
        left: 50%;
        bottom: 18px;
        transform: translateX(-50%);
        z-index: 171;
        min-height: 48px;
        padding: 0 18px;
        border-radius: 999px;
        background: #123f42;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 500;
        box-shadow: 0 12px 28px rgba(14, 24, 34, .22);
        pointer-events: auto;
    }

    .mobile-home-shortcut i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .header-top {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-right .header-icon[aria-label="Search"] {
        display: none;
    }

    .header-right .cart-toggle {
        width: 40px;
        height: 40px;
    }

    .brand-word {
        max-width: 172px;
        font-size: 18px;
    }

    .hero-content h2,
    .featured-card__overlay h2,
    .gift-overlay h2,
    .seasonal-gift-content h2,
    .category-landing__panel h2,
    .trend-content h3,
    .collection-content h3,
    .industry-overlay h2,
    .industry-overlay-content h2 {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.05;
    }

    .trend-card,
    .category-landing__panel,
    .featured-card,
    .gift-panel,
    .seasonal-gift-image {
        min-height: 360px;
    }

    .floating-contact-link {
        width: 44px;
        height: 44px;
        bottom: 14px;
        font-size: 23px;
    }

    .mobile-home-shortcut {
        bottom: 14px;
        min-height: 44px;
        padding: 0 14px;
        font-size: 12px;
    }
}

/* Landing hero mobile fix: keep title and CTA from colliding. */

@media (max-width: 768px) {
    .hero-card {
        height: auto;
        min-height: 430px;
    }

    .hero-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.18) 42%, rgba(0,0,0,.62) 100%);
        z-index: 1;
        pointer-events: none;
    }

    .hero-section .hero-content,
    .hero-left-content,
    .hero-right-content {
        left: 18px;
        right: 18px;
        bottom: 24px;
        width: auto;
        max-width: none;
        transform: none;
        display: grid;
        gap: 16px;
        align-items: start;
        justify-items: start;
        text-align: left;
        padding: 18px;
        border-radius: 6px;
        background: linear-gradient(180deg, rgba(14, 22, 30, .18), rgba(14, 22, 30, .34));
        backdrop-filter: blur(1px);
    }

    .hero-content h2 {
        margin: 0;
        max-width: 11ch;
        font-size: 42px;
        line-height: 1.02;
    }

    .hero-btn {
        width: auto;
        max-width: 100%;
        min-height: 48px;
        padding: 13px 18px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .hero-card {
        min-height: 380px;
    }

    .hero-section .hero-content,
    .hero-left-content,
    .hero-right-content {
        left: 14px;
        right: 14px;
        bottom: 18px;
        gap: 14px;
        padding: 16px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }

    .category-card__cta {
        width: 100%;
        min-height: 46px;
        margin-top: 10px;
    }
}
