/* Import Elegant Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Premium Design System */
:root {
    --bg-primary: #F4EFEA;
    /* Light warm premium ivory */
    --text-primary: #111111;
    /* Rich luxurious near-black */
    --text-secondary: #5D5A56;
    /* Refined muted warm-gray */
    --accent-sage: #3D5F4D;
    /* Luxurious deep forest-sage */
    --accent-sage-light: #EAF2ED;
    /* Subtle soft sage tint for price boxes */
    --accent-sage-hover: #2C4538;
    /* Darker state for sage hover */
    --whatsapp-green: #00C26F;
    /* Vibrant WhatsApp emerald */
    --whatsapp-green-hover: #00A35D;
    --border-color: #E2DBD3;
    /* Soft warm light border */
    --card-bg: #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

    --shadow-sm: 0 2px 8px rgba(27, 25, 23, 0.04);
    --shadow-md: 0 10px 30px rgba(27, 25, 23, 0.06);
    --shadow-lg: 0 20px 50px rgba(27, 25, 23, 0.1);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Core Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* Global Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Premium Header --- */
header.site-header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-inner {
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background-color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-bg);
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
    font-style: italic;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.meta-info {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-info span {
    display: inline-block;
}

.meta-info .client-tag {
    font-weight: 700;
    color: var(--text-primary);
}

.meta-info .divider {
    color: var(--border-color);
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: var(--card-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 194, 111, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 194, 111, 0.3);
}

.btn-whatsapp svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- Hero Intro Section --- */
.hero-section {
    padding: 40px 0 28px 0;
}

.selection-tag {
    color: var(--accent-sage);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-title em {
    font-style: italic;
    font-weight: 600;
}

.hero-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 750px;
    line-height: 1.6;
}

.hero-desc strong {
    color: var(--text-primary);
}

/* --- Main App Layout --- */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}

/* --- LEFT SIDE: 360 Visuals Card --- */
.visuals-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    transition: var(--transition-smooth);
}

.visuals-card:hover {
    box-shadow: var(--shadow-md);
}

.heart-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.heart-badge:hover {
    transform: scale(1.1);
    border-color: #E63946;
}

.heart-badge svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.8;
    transition: var(--transition-smooth);
}

.heart-badge.active svg {
    fill: #E63946;
    stroke: #E63946;
}

/* Interactive Diamond Render */
.diamond-render-container {
    width: 100%;
    max-width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: grab;
}

.diamond-render-container:active {
    cursor: grabbing;
}

.diamond-vector {
    width: 100%;
    height: 100%;
    transition: transform 0.1s linear;
}

/* Rotating reflection effects */
@keyframes shimmerAnim {
    0% {
        transform: translate(-30%, -30%) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 0.5;
    }

    30% {
        opacity: 0.5;
    }

    50% {
        transform: translate(30%, 30%) rotate(180deg);
        opacity: 0;
    }

    100% {
        transform: translate(30%, 30%) rotate(180deg);
        opacity: 0;
    }
}

.shimmer-path {
    animation: shimmerAnim 6s infinite ease-in-out;
}

.view-instruction {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-instruction::before,
.view-instruction::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 1px;
    background-color: var(--border-color);
}

/* Carousel dots */
.carousel-indicators {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background-color: var(--text-primary);
    width: 18px;
    border-radius: 4px;
}

/* --- RIGHT SIDE: Details & Specs --- */
.details-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stone-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stone-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
}

.stone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
    box-shadow: var(--shadow-sm);
}

.stone-ref {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.stone-ref strong {
    color: var(--text-primary);
}

/* --- Specs Table --- */
.specs-table {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px 16px;
    box-shadow: var(--shadow-sm);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
    column-gap: 32px;
    padding: 16px 0;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid rgba(226, 219, 211, 0.5);
    padding-bottom: 12px;
}

.spec-item:nth-last-child(1),
.spec-item:nth-last-child(2) {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Price Box --- */
.price-container {
    background-color: var(--accent-sage-light);
    border: 1px solid rgba(61, 95, 77, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.price-label-group {
    display: flex;
    flex-direction: column;
}

.price-title {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-sage);
}

.price-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.price-value {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Action Buttons Row --- */
.actions-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 12px;
}

.btn-action {
    height: 48px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.btn-action svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.btn-primary-action {
    background-color: var(--accent-sage);
    color: var(--card-bg);
    border: none;
}

.btn-primary-action:hover {
    background-color: var(--accent-sage-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 95, 77, 0.25);
}

.btn-secondary-action {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-action:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-save-action {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-save-action:hover {
    border-color: #E63946;
    transform: translateY(-2px);
}

.btn-save-action.active {
    background-color: #FFF0F0;
    border-color: #E63946;
    color: #E63946;
}

.btn-save-action.active svg {
    fill: #E63946;
    stroke: #E63946;
}

/* --- More Stones Section --- */
.more-stones-section {
    margin-top: 16px;
}

.section-subtitle {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.stones-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stone-row-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
}

.stone-row-card:hover {
    border-color: var(--text-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.stone-row-card.active {
    border-color: var(--accent-sage);
    background-color: var(--accent-sage-light);
    box-shadow: var(--shadow-sm);
}

.stone-row-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mini-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.stone-row-card.active .mini-icon {
    background-color: var(--card-bg);
    border-color: var(--accent-sage);
}

.mini-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    stroke-width: 1.5;
}

.stone-row-info {
    display: flex;
    flex-direction: column;
}

.stone-row-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.stone-row-specs {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.stone-row-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stone-row-price {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.stone-row-heart {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.stone-row-heart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.8;
    transition: var(--transition-smooth);
}

.stone-row-heart.active svg {
    fill: #E63946;
    stroke: #E63946;
}

/* --- Premium Modal (Video and Cert View) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-window {
    background-color: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 720px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-window {
    transform: translateY(0);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

.modal-body {
    padding: 24px;
}

.modal-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}

.modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* --- Premium Footer --- */
footer.site-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-logo {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-location {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .main-grid {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .meta-info {
        display: none !important;
        /* Hide full meta info row from the header on mobile/tablet to prevent text wrapping/clash */
    }

    .visuals-card {
        min-height: auto;
        padding: 30px;
    }

    .hero-title {
        font-size: 32px;
    }
}

@media (max-width: 580px) {
    body {
        padding-bottom: 24px;
    }

    .app-container {
        padding: 0 16px;
        /* Bring page margins tighter on mobile to maximize viewport size */
    }

    .header-inner {
        height: 64px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .btn-whatsapp {
        padding: 8px 14px;
        font-size: 11px;
        gap: 6px;
    }

    .btn-whatsapp svg {
        width: 14px;
        height: 14px;
    }

    .hero-section {
        padding: 24px 0 16px 0;
    }

    .hero-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .hero-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .visuals-card {
        padding: 20px;
    }

    .diamond-render-container {
        max-width: 200px;
        height: 200px;
    }

    .stone-title {
        font-size: 32px;
    }

    .stone-tags {
        gap: 6px;
    }

    .tag-pill {
        padding: 5px 10px;
        font-size: 10px;
    }

    /* Keep the primary action buttons beautifully in a single row just like the mockup design */
    .actions-row {
        grid-template-columns: 1.1fr 1.1fr 1fr;
        gap: 8px;
    }

    .btn-action {
        height: 44px;
        font-size: 11px;
        gap: 4px;
        border-radius: 10px;
    }

    .btn-action svg {
        width: 14px;
        height: 14px;
    }

    .price-container {
        padding: 16px;
        border-radius: 12px;
    }

    .price-value {
        font-size: 26px;
    }
}

@media (max-width: 380px) {
    .logo-text {
        font-size: 14px;
    }

    .btn-whatsapp {
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .diamond-render-container {
        max-width: 170px;
        height: 170px;
    }

    .actions-row {
        gap: 6px;
    }

    .btn-action {
        font-size: 10px;
    }
}