/* ==========================================================================
   Principle Gems Design System - Clean Premium Style Sheet
   ========================================================================== */

/* 1. CSS Custom Properties (Tokens from DESIGN.md)
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #FDFBF7;       /* Luxurious Cream */
    --bg-secondary: #FFFFFF;     /* Pure White */
    --bg-dark: #1D2A44;          /* Deep Navy Blue */
    --text-primary: #212529;      /* Charcoal Gray */
    --text-secondary: #1D2A44;    /* Deep Navy */
    --text-muted: #6C757D;        /* Muted Gray */
    
    --accent-gold: #D4AF37;      /* Champagne Gold */
    --accent-hover: #B5932B;     /* Hover Gold */
    --border-light: #EAE6DF;     /* Light Sand Border */
    --border-gold: #E5C158;      /* Gold Border */

    /* Typography */
    --font-header: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing units */
    --space-sm: 4px;
    --space-md: 16px;
    --space-lg: 32px;
    --space-xl: 64px;
    
    /* Animation Speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 2. Global Resets & Defaults
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-fast);
}

/* 3. Header & Navigation Styles
   ========================================================================== */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(253, 251, 247, 0.85); /* Glassmorphism Cream */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.brand-main {
    font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.25rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-normal);
}

.nav-item:hover {
    color: var(--accent-gold);
}

.nav-item:hover::after {
    width: 100%;
}

.btn-whatsapp-header {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-dark);
    color: var(--bg-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: 1px solid var(--bg-dark);
}

.btn-whatsapp-header:hover {
    background-color: transparent;
    color: var(--bg-dark);
}

/* 4. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 12rem 2rem 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #fbf7ef 0%, #ede6d9 100%);
    overflow: hidden;
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    transform: translateY(0);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 251, 247, 0.35);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    color: var(--text-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-gold);
    color: var(--bg-secondary);
    padding: 1rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--text-secondary);
    padding: 1rem 2.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
}

/* 5. Section Headers
   ========================================================================== */
.showcase-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tagline {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.25rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.divider-gold {
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}

/* 6. Showroom Layout (Grid & Sidebar)
   ========================================================================== */
.showroom-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Sidebar Filters */
.sidebar-filters {
    position: sticky;
    top: 100px;
}

.filter-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(29, 42, 68, 0.02);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-reset-filters {
    font-size: 0.8rem;
    color: var(--accent-gold);
    font-weight: 500;
}

.btn-reset-filters:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* Custom Checkbox Design */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    line-height: 1.2;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -1px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-gold);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container .checkmark::after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Catalog View Toolbar */
.catalog-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.comparison-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-compare-action {
    background-color: var(--accent-gold);
    color: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.btn-compare-action:hover {
    background-color: var(--accent-hover);
}

/* Product Cards Grid */
.gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gem-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(29, 42, 68, 0.02);
    transition: var(--transition-normal);
}

.gem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(29, 42, 68, 0.08);
}

.gem-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square Aspect Ratio */
    background-color: var(--bg-primary);
    overflow: hidden;
}

.gem-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.badge-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    text-transform: uppercase;
}

.badge-tag.type-ruby {
    background-color: #9c1b30;
    color: white;
}

.badge-tag.type-sapphire {
    background-color: #1a3c6c;
    color: white;
}

.badge-tag.type-fancy {
    background-color: #e5a93b;
    color: #212529;
}

.badge-matching {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--bg-dark);
    color: var(--accent-gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gem-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gem-card-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gem-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.gem-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-text {
    font-family: var(--font-body);
}

.price-on-request {
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gem-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-card-view {
    flex-grow: 1;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
}

.btn-card-view:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
    border-color: var(--text-secondary);
}

.btn-card-compare {
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-muted);
}

.btn-card-compare:hover, .btn-card-compare.active {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.03);
}

/* 7. Contact Details & Maps
   ========================================================================== */
.contact-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-tag {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-panel h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.contact-pitch {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 1.5rem 0 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-detail-item i {
    font-size: 1.35rem;
    color: var(--accent-gold);
    margin-top: 4px;
}

.contact-detail-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-detail-item p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.social-links a:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Premium Map Placeholder */
.map-container {
    display: flex;
    align-items: center;
}

.premium-map-placeholder {
    width: 100%;
    height: 450px;
    background: radial-gradient(circle at center, #ffffff 0%, #f6f3eb 100%);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(29, 42, 68, 0.02);
}

.premium-map-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    border: 1px dashed var(--accent-gold);
    opacity: 0.35;
    border-radius: 2px;
}

.map-inner-decor {
    text-align: center;
    z-index: 5;
    padding: 2rem;
}

.map-pin-icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.map-inner-decor h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.map-inner-decor p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.btn-map-link {
    display: inline-flex;
    align-items: center;
    background-color: var(--text-secondary);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.btn-map-link:hover {
    background-color: var(--accent-gold);
}

/* 8. Compare Drawer
   ========================================================================== */
.compare-drawer {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--bg-primary);
    z-index: 90;
    border-top: 1px solid var(--border-gold);
    transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
}

.compare-drawer.active {
    bottom: 0;
}

.compare-drawer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-items {
    display: flex;
    gap: 1.5rem;
}

.drawer-item-thumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(255,255,255,0.06);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.drawer-item-thumb img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 2px;
}

.drawer-item-thumb span {
    font-size: 0.8rem;
    font-weight: 500;
}

.drawer-item-thumb button {
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

.drawer-item-thumb button:hover {
    color: #ff5252;
}

.drawer-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-clear-compare {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-clear-compare:hover {
    color: white;
}

/* 9. Modal Dialogs System
   ========================================================================== */
.modal-dialog {
    border: none;
    margin: auto;
    border-radius: 4px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 50px rgba(29, 42, 68, 0.15);
    max-width: 900px;
    width: calc(100% - 2rem);
    padding: 0;
    overflow: hidden;
}

.modal-dialog::backdrop {
    background-color: rgba(29, 42, 68, 0.4);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    padding: 3rem;
}

.btn-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 1.1rem;
    border: 1px solid var(--border-light);
}

.btn-modal-close:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
}

/* Product Detail Grid Layout */
.modal-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
}

.modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main-container {
    width: 100%;
    padding-bottom: 100%;
    background-color: var(--bg-primary);
    position: relative;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.gallery-main-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.gallery-thumb.active {
    border-color: var(--accent-gold);
    outline: 1px solid var(--accent-gold);
}

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

.modal-info-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.gem-badge-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.gem-detail-title {
    font-family: var(--font-header);
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.2;
}

.gem-detail-sku {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Matching Alert Panel */
.matching-alert {
    background-color: rgba(29, 42, 68, 0.03);
    border-left: 3px solid var(--accent-gold);
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.matching-alert i {
    color: var(--accent-gold);
}

.btn-view-matching {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: underline;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.specs-table td {
    padding: 0.65rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.specs-table td:first-child {
    color: var(--text-muted);
    font-weight: 400;
    width: 45%;
}

.specs-table td:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.specs-table td.highlight-spec {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-view-cert-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    background-color: transparent;
}

.btn-view-cert-action:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

/* Certificate Modal adjustments */
.cert-modal-content {
    text-align: center;
    max-width: 600px;
}

.cert-modal-title {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cert-image-container {
    width: 100%;
    border: 1px solid var(--border-light);
    padding: 1rem;
    background-color: white;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.cert-image-container img {
    max-width: 100%;
    height: auto;
}

/* 10. Forms & B2B Lead Quotations
   ========================================================================== */
.form-modal-content {
    max-width: 700px;
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.25rem;
}

.form-header h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    color: var(--text-secondary);
}

.form-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.5;
}

.form-gem-preview {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.form-gem-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 2px;
}

.form-gem-preview h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-gem-preview p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-submit-row {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.btn-submit-quote-form {
    width: 100%;
    padding: 0.9rem;
    font-weight: 600;
}

/* Success State Screen */
.form-success-message {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.success-icon {
    font-size: 4rem;
    color: #4caf50;
    margin-bottom: 1.5rem;
}

.form-success-message h3 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.form-success-message p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 450px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* 11. Comparison Dialog Adjustments
   ========================================================================== */
.comparison-modal-content {
    max-width: 950px;
}

.comparison-header {
    margin-bottom: 2rem;
}

.comparison-header h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    color: var(--text-secondary);
}

.comparison-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.comparison-grid-container {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
}

.comparison-table th, .comparison-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    font-family: var(--font-body);
    font-weight: 600;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-light);
}

.comparison-table th:first-child, .comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    background-color: var(--bg-primary);
    width: 25%;
}

.comparison-table tr:hover td {
    background-color: rgba(253, 251, 247, 0.4);
}

.compare-gem-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.compare-gem-header img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid var(--border-light);
}

.compare-gem-header h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.comparison-table td.highlight-row {
    color: var(--accent-gold);
    font-weight: 600;
}

/* 12. Footer Styling
   ========================================================================== */
.app-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.65);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.85rem;
    margin-top: auto;
}

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

/* 13. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .showroom-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sidebar-filters {
        position: relative;
        top: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-container {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .nav-links {
        display: none; /* Mobile should use drawer but for MVP header is simplified */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .modal-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
    }
}
