/**
 * Seylan look & feel — inspired by Brilliant Earth + GemsNY
 * (serif display, airy white chrome, sharp CTAs; keep Seylan green)
 */
:root {
    --sg-ink: #1a1a1a;
    --sg-muted: #6b6b6b;
    --sg-line: rgba(26, 26, 26, 0.1);
    --sg-green: #0a5c38;
    --sg-green-deep: #063d26;
    --sg-cream: #f7f6f3;
    --sg-display: "EB Garamond", "Times New Roman", serif;
    --sg-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --sg-radius: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sg-sans) !important;
    color: var(--sg-ink);
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

/* ——— Type: BE-style serif display ——— */
h1, h2, h3, .h1, .h2, .h3,
.hero-title,
.product-banner-title,
.section-title h2,
.featured-products-section h2,
.sg-intent-strip__head h2,
.sg-consult__copy h2,
.sg-welcome__title,
.product-title,
.product-info .product-title {
    font-family: var(--sg-display) !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em;
}

.navbar-nav .nav-link,
.main-menu .nav-link,
.btn,
input,
button,
.tb-label,
.sg-trust-bar__text,
.product-price {
    font-family: var(--sg-sans) !important;
}

/* Kill gradient headline fills (dated vs BE/GemsNY) */
.section-title h2[style*="background"],
.featured-products-section h2[style*="background"],
h2[style*="background-clip"],
.h2[style*="background-clip"] {
    background: none !important;
    -webkit-text-fill-color: var(--sg-ink) !important;
    color: var(--sg-ink) !important;
}

/* ——— Header: quieter, more BE ——— */
.modern-header,
.navbar-modern {
    box-shadow: none !important;
    border-bottom: 1px solid var(--sg-line);
}

.menu-bar {
    border-top: 1px solid var(--sg-line);
    border-bottom: 1px solid var(--sg-line);
    background: #fff !important;
}

.navbar-nav .nav-link,
.main-menu .nav-link {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--sg-ink) !important;
}

.navbar-nav .nav-link:hover,
.main-menu .nav-link:hover {
    color: var(--sg-green) !important;
}

/* Search: less candy-circle (GemsNY/BE quieter controls) */
.header-search .btn,
.search-bar button,
.navbar .search-form button,
button[type="submit"].search-btn {
    border-radius: var(--sg-radius) !important;
}

/* ——— Hero: BE rectangular CTAs, quieter badges ——— */
.btn-hero-primary,
.btn-hero-outline,
.btn-product-banner {
    border-radius: var(--sg-radius) !important;
    padding: 14px 28px !important;
    font-family: var(--sg-sans) !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.btn-hero-primary {
    background: #fff !important;
    color: var(--sg-ink) !important;
    border: none !important;
}

.btn-hero-primary:hover {
    background: var(--sg-cream) !important;
    color: var(--sg-green-deep) !important;
    transform: none !important;
}

.btn-hero-outline {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    transform: none !important;
}

.hero-badge,
.product-badge:not(.badge-sold):not(.sg-sale-badge) {
    border-radius: var(--sg-radius) !important;
    font-family: var(--sg-sans) !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.14em !important;
}

.hero-title {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem) !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    max-width: 12ch;
}

.hero-subtitle {
    font-family: var(--sg-sans) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.01em;
    opacity: 0.9 !important;
}

/* Soften hero stats — keep but quieter (BE doesn't scream numbers) */
.hero-stats .stat-number {
    font-family: var(--sg-display) !important;
    font-size: 1.75rem !important;
    font-weight: 500 !important;
    background: none !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
}

.hero-stats .stat-label {
    font-family: var(--sg-sans) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.product-banner-title {
    font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
    font-weight: 500 !important;
}

/* ——— Trust bar: flatter GemsNY row ——— */
.sg-trust-bar {
    background: var(--sg-cream) !important;
    padding: 18px 0 !important;
}

.sg-trust-bar__icon {
    border-radius: var(--sg-radius) !important;
    width: 32px !important;
    height: 32px !important;
    background: transparent !important;
    color: var(--sg-green) !important;
    border: 1px solid rgba(10, 92, 56, 0.25);
}

.sg-trust-bar__text strong {
    font-family: var(--sg-sans) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ——— Shop-by-gem: BE category rail feel ——— */
.sg-intent-strip {
    padding: 48px 0 28px !important;
    background: #fff !important;
}

.sg-intent-strip__head h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.35rem) !important;
    font-weight: 400 !important;
    color: var(--sg-ink) !important;
    margin-bottom: 8px !important;
}

.sg-intent-strip__head p {
    font-family: var(--sg-sans) !important;
    color: var(--sg-muted) !important;
    font-size: 0.95rem !important;
}

.sg-intent-strip__grid {
    gap: 14px !important;
}

.sg-intent-strip__link {
    border-radius: var(--sg-radius) !important;
    border-color: var(--sg-line) !important;
    background: var(--sg-cream) !important;
    min-height: 110px;
    justify-content: center;
    padding: 22px 12px !important;
}

.sg-intent-strip__link span {
    font-family: var(--sg-sans) !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.1em !important;
}

.sg-intent-strip__link--all {
    background: var(--sg-green) !important;
    border-color: var(--sg-green) !important;
}

/* ——— Featured / sections ——— */
.featured-products-section {
    background: #fff !important;
    padding-top: 56px !important;
    padding-bottom: 56px !important;
}

/* Section eyebrow badges only — do NOT paint product weight/SKU chips green */
.featured-products-section .text-center > .badge,
.featured-products-section .section-title > .badge,
.section-title > .badge {
    border-radius: var(--sg-radius) !important;
    background: var(--sg-green) !important;
    color: #fff !important;
    font-family: var(--sg-sans) !important;
    letter-spacing: 0.12em !important;
}

/* Weight / item # must stay readable on product cards */
.product-meta .badge,
.product-meta .sg-meta-chip {
    background: #eef5f1 !important;
    color: #0a5c38 !important;
    border: 1px solid rgba(10, 92, 56, 0.22) !important;
    border-radius: 2px !important;
    font-family: var(--sg-sans) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    padding: 5px 10px !important;
}

.product-meta .badge[itemprop="sku"],
.product-meta .sg-meta-chip--sku {
    background: #f4f6f8 !important;
    color: #334155 !important;
    border-color: rgba(71, 85, 105, 0.28) !important;
}

.featured-products-section .text-muted,
.section-title .text-muted {
    font-family: var(--sg-sans) !important;
    color: var(--sg-muted) !important;
}

/* ——— Product cards: quieter luxury ——— */
.product-card,
.single-product-box,
.p-card-inner {
    border: 1px solid var(--sg-line) !important;
    border-radius: var(--sg-radius) !important;
    box-shadow: none !important;
}

.product-card:hover,
.single-product-box:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(10, 92, 56, 0.28) !important;
}

.sg-sale-badge,
.product-badge.sg-sale-badge {
    border-radius: var(--sg-radius) !important;
    font-family: var(--sg-sans) !important;
    letter-spacing: 0.04em;
}

.quick-action-btn {
    border-radius: var(--sg-radius) !important;
}

/* ——— Consult band ——— */
.sg-consult {
    background: #0c1f17 !important;
}

.sg-consult__btn {
    border-radius: var(--sg-radius) !important;
    font-family: var(--sg-sans) !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.72rem !important;
}

.sg-consult__btn--primary {
    background: #fff !important;
    color: var(--sg-ink) !important;
}

.sg-consult__eyebrow {
    font-family: var(--sg-sans) !important;
}

/* ——— Welcome modal: GemsNY clarity ——— */
.sg-welcome__panel {
    border-radius: 4px !important;
    padding: 36px 32px 28px !important;
}

.sg-welcome__form button {
    border-radius: var(--sg-radius) !important;
    background: var(--sg-green) !important;
}

.sg-welcome__form input {
    border-radius: var(--sg-radius) !important;
}

/* ——— Shape tiles / misc pills ——— */
.shape-list-item > div,
.shape-list-item .rounded-4 {
    border-radius: 4px !important;
}

@media (max-width: 991.98px) {
    .hero-title {
        max-width: none;
    }
}

/* ========== BEST-OF UI/UX (BE + GemsNY + AFG) ========== */

/* Hide duplicate contact block on menu bar (already in top ticker) — BE quieter chrome */
.menu-bar .topbar-left {
    display: none !important;
}

.menu-bar .navbar-nav,
.menu-bar .main-menu {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Search: rectangular, thin (GemsNY/BE — not candy pill) */
.search-input-group {
    border-radius: 2px !important;
    border-width: 1px !important;
    background: #fff !important;
    border-color: var(--sg-line) !important;
}

.search-input-group:focus-within {
    border-color: var(--sg-green) !important;
    box-shadow: none !important;
}

.search-btn {
    border-radius: 2px !important;
    width: 44px !important;
    height: 40px !important;
    margin: 4px !important;
    background: var(--sg-green) !important;
    background-image: none !important;
}

.search-btn:hover {
    transform: none !important;
    background: var(--sg-green-deep) !important;
}

.search-input {
    font-family: var(--sg-sans) !important;
    font-size: 0.9rem !important;
}

/* Hero: BE first-viewport discipline — no stats noise */
.hero-stats {
    display: none !important;
}

.hero-content-wrapper {
    align-items: flex-end !important;
    background: linear-gradient(0deg, rgba(10, 26, 15, 0.72) 0%, rgba(10, 26, 15, 0.2) 55%, transparent 100%) !important;
}

/* Visual category rail — Brilliant Earth / GemsNY */
.sg-cat-rail {
    padding: 56px 0 40px;
    background: #fff;
    border-bottom: 1px solid var(--sg-line);
}

.sg-cat-rail__head {
    text-align: center;
    margin-bottom: 28px;
}

.sg-cat-rail__eyebrow {
    margin: 0 0 8px;
    font-family: var(--sg-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sg-green);
}

.sg-cat-rail__head h2 {
    margin: 0 0 8px;
    font-family: var(--sg-display) !important;
    font-weight: 400 !important;
    font-size: clamp(1.85rem, 3vw, 2.5rem) !important;
    color: var(--sg-ink) !important;
}

.sg-cat-rail__sub {
    margin: 0 auto;
    max-width: 42ch;
    font-family: var(--sg-sans);
    color: var(--sg-muted);
    font-size: 0.95rem;
}

.sg-cat-rail__track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.sg-cat-rail__card {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--sg-ink);
}

.sg-cat-rail__media {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sg-cream);
    border: 1px solid var(--sg-line);
    border-radius: 2px;
    margin-bottom: 10px;
}

.sg-cat-rail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sg-cat-rail__card:hover .sg-cat-rail__media img {
    transform: scale(1.06);
}

.sg-cat-rail__media--all {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-green);
    border-color: var(--sg-green);
    color: #fff;
    font-size: 1.25rem;
}

.sg-cat-rail__label {
    display: block;
    text-align: center;
    font-family: var(--sg-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.sg-cat-rail__card:hover .sg-cat-rail__label {
    color: var(--sg-green);
}

.sg-cat-rail__card--all .sg-cat-rail__label {
    color: var(--sg-green);
}

/* Legacy intent strip → hide if both somehow render */
.sg-intent-strip {
    display: none !important;
}

/* Product cards — BE quiet hover, AFG clarity */
.product-card,
article.product-card {
    border-radius: 2px !important;
    border-width: 1px !important;
    border-color: var(--sg-line) !important;
    box-shadow: none !important;
}

.product-card:hover,
article.product-card:hover,
.single-product-box:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(10, 26, 15, 0.08) !important;
    border-color: rgba(10, 92, 56, 0.35) !important;
}

.product-card .product-title,
.product-info .product-title {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
}

.product-badges .badge {
    border-radius: 2px !important;
    box-shadow: none !important;
    letter-spacing: 0.04em;
}

.product-overlay {
    background: linear-gradient(to top, rgba(10, 26, 15, 0.45) 0%, transparent 50%) !important;
    pointer-events: none;
}

.product-image-container .quick-action-btn,
.product-actions .btn {
    pointer-events: auto;
    background: #fff !important;
    border: 1px solid var(--sg-line) !important;
    border-radius: 2px !important;
    box-shadow: none !important;
}

.product-card:hover .product-actions {
    opacity: 1 !important;
}

/* Products listing chrome */
.products-header {
    border: 1px solid var(--sg-line) !important;
    box-shadow: none !important;
    border-radius: 2px !important;
}

.product-count-badge {
    border-radius: 2px !important;
    background: var(--sg-green) !important;
    font-family: var(--sg-sans) !important;
    letter-spacing: 0.04em;
}

/* Action icons quieter (GemsNY) */
.action-icon {
    color: var(--sg-ink) !important;
}

.action-icon:hover {
    color: var(--sg-green) !important;
}

.badge-count {
    background: var(--sg-green) !important;
}

@media (max-width: 767.98px) {
    .sg-cat-rail {
        padding: 36px 0 28px;
    }

    .sg-cat-rail__track {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .sg-cat-rail__label {
        font-size: 0.62rem;
    }
}

/* Floating gem type carousel (preferred home treatment) */
.sg-gem-carousel {
    background: #fff;
    padding: 28px 0 36px;
}

.sg-gem-carousel__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0a5c38;
}

.sg-gem-carousel__title {
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    font-weight: 600;
    color: #12241c;
}

.sg-gem-carousel__sub {
    color: #5b6b63;
    font-size: 0.95rem;
}

.sg-gem-carousel__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: #12241c;
    padding: 8px 4px 12px;
}

.sg-gem-carousel__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sg-line, rgba(18, 36, 28, 0.12));
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(18, 36, 28, 0.04);
    padding: 10px;
}

.sg-gem-carousel__img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    filter: none;
    transition: transform 0.35s ease;
}

.sg-gem-carousel__link:hover .sg-gem-carousel__img {
    transform: scale(1.06);
    filter: none;
}

.sg-gem-carousel__media--all {
    background: var(--sg-green, #0a5c38);
    border-color: var(--sg-green, #0a5c38);
    border-radius: 2px;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    color: #fff;
    font-size: 1.25rem;
    margin: 0;
    padding: 0;
}

.sg-gem-carousel__label {
    margin-top: 10px;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    color: #12241c;
}

.sg-gem-carousel__owl .owl-nav {
    position: absolute;
    top: 38%;
    width: 100%;
    margin: 0;
    pointer-events: none;
}

.sg-gem-carousel__owl .owl-nav button {
    pointer-events: auto;
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid rgba(18, 36, 28, 0.12) !important;
    color: #0a5c38 !important;
    box-shadow: 0 6px 16px rgba(18, 36, 28, 0.08);
}

.sg-gem-carousel__owl .owl-nav button.owl-prev {
    left: -8px;
}

.sg-gem-carousel__owl .owl-nav button.owl-next {
    right: -8px;
}

.sg-gem-carousel__owl .owl-nav button:hover {
    background: #0a5c38 !important;
    color: #fff !important;
    border-color: #0a5c38 !important;
}

@media (max-width: 767.98px) {
    .sg-gem-carousel__label {
        font-size: 0.92rem;
    }
}
