:root {
    --gem-sapphire: #0F2357;
    --gem-indigo: #234EA0;
    --gem-emerald: #1F7D56;
    --gem-emerald-bright: #289B6C;
    --gem-teal: #2A9CA0;
    --gem-ruby: #B01C4E;
    --gem-amethyst: #77328F;
    --gem-gold: #E49825;
    --gem-ivory: #FBF9F5;
    --gem-cream: #F3EEE3;
    --gem-ink: #1A2033;
    --gem-muted: #5A6275;
    --gem-border: #E6DFD1;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gem-ink);
    background-color: var(--gem-ivory);
    overflow-x: hidden;
}

h1, h2, h3, .font-display {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Announcement & Header */
.top-announcement {
    background: linear-gradient(90deg, #0F2357 0%, #77328F 36%, #B01C4E 70%, #2A9CA0 100%);
    color: #fff;
    font-size: 0.8rem;
    padding: 7px 0;
}

.site-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gem-border);
    box-shadow: 0 4px 20px rgba(14, 31, 77, 0.05);
}

.site-navbar .navbar-brand img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.site-navbar .nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gem-sapphire);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--gem-ruby);
    background: rgba(166, 28, 76, 0.06);
}

.btn-rfq-nav {
    background: linear-gradient(135deg, var(--gem-sapphire) 0%, var(--gem-ruby) 100%);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(15, 35, 87, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-rfq-nav:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(176, 28, 78, 0.28);
}

.rfq-count-pill {
    background: var(--gem-gold);
    color: #0F2357;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 99px;
}

/* Hero Section */
.hero-gem {
    background: radial-gradient(circle at 86% 18%, rgba(176, 28, 78, 0.36), transparent 44%),
                radial-gradient(circle at 14% 84%, rgba(42, 156, 160, 0.36), transparent 48%),
                linear-gradient(135deg, #0F2357 0%, #2C2673 48%, #165969 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 72px 0 68px;
}

.page-hero-banner {
    background: radial-gradient(circle at 88% 20%, rgba(176, 28, 78, 0.32), transparent 45%),
                linear-gradient(135deg, #0F2357 0%, #3E277A 55%, #1A6D74 100%);
    color: #ffffff;
}

.page-hero-banner--clearance {
    background: linear-gradient(135deg, #87143B 0%, #B01C4E 55%, #DF8B22 100%);
    color: #ffffff;
}

.page-hero-banner--new {
    background: linear-gradient(135deg, #0F2357 0%, #77328F 52%, #2A9CA0 100%);
    color: #ffffff;
}

.cta-gem-banner {
    background: linear-gradient(135deg, #0F2357 0%, #77328F 48%, #B01C4E 100%);
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 155, 53, 0.18);
    border: 1px solid rgba(212, 155, 53, 0.55);
    color: #FBE4B4;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.35rem);
    line-height: 1.15;
    font-weight: 700;
}

.hero-mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

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

.hero-gem-tile {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 12px;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease;
}

.hero-gem-tile:hover {
    transform: translateY(-4px);
}

.hero-gem-tile img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mosaic--single .hero-gem-tile img {
    height: 320px;
}

/* Gemstone Palette Buttons */
.btn-gem-primary {
    background: linear-gradient(135deg, var(--gem-emerald) 0%, var(--gem-teal) 100%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-gem-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(31, 125, 86, 0.28);
}

.btn-gem-sapphire {
    background: var(--gem-sapphire);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-gem-sapphire:hover {
    background: var(--gem-indigo);
    color: #fff;
}

.btn-gem-gold {
    background: linear-gradient(135deg, #E49825 0%, #F1B64B 100%);
    color: #0F2357;
    border: none;
    font-weight: 700;
    border-radius: 10px;
}

.btn-gem-gold:hover {
    color: #0F2357;
    filter: brightness(1.04);
}

/* Category & Stone Chips */
.category-showcase-card {
    background: #ffffff;
    border: 1px solid var(--gem-border);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(14, 31, 77, 0.08);
}

.stone-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--gem-border);
    border-radius: 99px;
    padding: 8px 16px;
    color: var(--gem-sapphire);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stone-pill:hover {
    border-color: var(--gem-amethyst);
    background: rgba(107, 45, 139, 0.06);
    color: var(--gem-amethyst);
    transform: translateY(-2px);
}

.stone-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Catalog Two-Column Layout (25% Filter Sidebar / 75% Product Grid) */
.catalog-layout {
    display: grid;
    grid-template-columns: 25% minmax(0, 75%);
    gap: 24px;
    align-items: start;
}

.filter-sidebar {
    background: #ffffff;
    border: 1px solid var(--gem-border);
    border-radius: 18px;
    padding: 20px;
    position: sticky;
    top: 86px;
    box-shadow: 0 6px 24px rgba(14, 31, 77, 0.04);
}

.filter-group-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gem-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: #ffffff;
    border: 1px solid var(--gem-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(14, 31, 77, 0.1);
    border-color: #d6cbb5;
}

.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: radial-gradient(circle, #ffffff 40%, #f4efe6 100%);
    overflow: hidden;
}

.product-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img-wrap img {
    transform: scale(1.06);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge-new {
    background: linear-gradient(135deg, #0F2357, #2A9CA0);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.badge-clearance {
    background: linear-gradient(135deg, #B01C4E, #E49825);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 99px;
    letter-spacing: 0.03em;
}

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-code-tag {
    font-family: monospace;
    font-size: 0.74rem;
    color: var(--gem-amethyst);
    background: rgba(107, 45, 139, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    font-weight: 600;
}

.product-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gem-sapphire);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta-line {
    font-size: 0.79rem;
    color: var(--gem-muted);
}

.product-price {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--gem-emerald);
}

/* Product Details Zoom */
.zoom-stage {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--gem-border);
    background: #ffffff;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
}

.zoom-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    border: 2px solid var(--gem-border);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #fff;
    transition: border-color 0.2s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--gem-sapphire);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Surfaces */
.section-ivory {
    background: var(--gem-ivory);
}

.section-white {
    background: #ffffff;
}

.clearance-banner {
    background: linear-gradient(135deg, #87143B 0%, #B01C4E 55%, #DF8B22 100%);
    color: #fff;
    border-radius: 22px;
    padding: 36px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--gem-border);
    border-radius: 18px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 35, 87, 0.04);
}

/* Light Background Footer aligned with Logo Palette */
.site-footer {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F3EA 100%);
    color: #4B5568;
    padding-top: 52px;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #0F2357, #234EA0, #77328F, #B01C4E, #E49825, #1F7D56, #2A9CA0) 1;
}

.site-footer h6 {
    color: var(--gem-sapphire);
}

.site-footer a:not(.btn) {
    color: #374158;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer a:not(.btn):hover {
    color: var(--gem-ruby);
}

.site-footer a.btn-footer-rfq {
    background: linear-gradient(135deg, var(--gem-ruby) 0%, var(--gem-amethyst) 100%);
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(176, 28, 78, 0.22);
    transition: all 0.2s ease;
}

.site-footer a.btn-footer-rfq:hover,
.site-footer a.btn-footer-rfq:focus {
    background: linear-gradient(135deg, var(--gem-sapphire) 0%, var(--gem-indigo) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 35, 87, 0.28);
}

.footer-logo-box {
    display: inline-block;
    padding: 0;
}

.footer-logo-box img {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.footer-bottom-bar {
    background: #EFE9DC;
    border-top: 1px solid var(--gem-border);
    color: #4B5568;
}

/* Responsive Grid Breakpoints */
@media (max-width: 1199.98px) {
    .product-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .product-grid-4,
    .product-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .product-grid-4,
    .product-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-card-body {
        padding: 10px;
    }
    .hero-gem {
        padding: 46px 0;
    }
}
