/* Serenza World - Exact Luxury Styling System Matching Design Reference */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Alex+Brush&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #080b12;
    --bg-surface: #0f1523;
    --bg-surface-elevated: #161e30;
    --gold-primary: #d4af37;
    --gold-bright: #e2ba6e;
    --gold-dark: #a28122;
    --border-gold-subtle: rgba(212, 175, 55, 0.3);
    --border-gold-glow: rgba(226, 186, 110, 0.7);
}

/* Universal Box Sizing & Fluid Layout */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Ensure media and tables never force horizontal overflow */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

/* Text wrap safety for long titles */
h1, h2, h3, h4, h5, h6, p, span, a, label, li, td, th {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, .font-serif-luxury {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* Elegant Cursive Script for Luxury Quotes */
.font-cursive-quote {
    font-family: 'Alex Brush', cursive;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #f3e5ab;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@media (min-width: 768px) {
    .font-cursive-quote {
        font-size: 2.3rem;
    }
}

/* Gold Accent Text & Lines */
.text-gold {
    color: var(--gold-primary);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #fce8ad 0%, #d4af37 50%, #a28122 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Luxury Glassmorphic Border Panels */
.glass-panel {
    background: rgba(15, 21, 35, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-gold-subtle);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.5);
}

.glass-panel-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
    border-color: var(--border-gold-glow);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(212, 175, 55, 0.2);
}

/* Buttons matching design reference */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b89228 100%);
    color: #080b12;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #fce8ad;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #fce8ad 0%, #d4af37 100%);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
}

.btn-outline-gold {
    background: rgba(8, 11, 18, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.7);
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #fce8ad;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Royal Ceylon Sapphire Blue Luxury Button for 'Add to Request Cart' */
.btn-sapphire {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #1e40af 100%);
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(147, 197, 253, 0.45);
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-sapphire:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
    border-color: #dbeafe;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-1px);
}

.btn-sapphire-icon {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    transition: all 0.3s ease;
}

.btn-sapphire-icon:hover {
    background: rgba(37, 99, 235, 0.35);
    border-color: #93c5fd;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    transform: scale(1.05);
}

/* Hero Slideshow Fading Layers */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 68vh;
    max-height: 600px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: auto;
        min-height: 70vh;
        max-height: none;
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.8s ease-in-out, transform 8s ease;
    transform: scale(1.06);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(8, 11, 18, 0.65) 0%, 
        rgba(8, 11, 18, 0.35) 45%, 
        rgba(8, 11, 18, 0.95) 100%
    );
}

/* Image Zoom Lens Effect */
.img-zoom-container {
    position: relative;
    cursor: crosshair;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--border-gold-subtle);
}

.img-zoom-lens {
    position: absolute;
    border: 2px solid var(--gold-primary);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    pointer-events: none;
    display: none;
    z-index: 20;
}

.img-zoom-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    border-radius: 0.75rem;
    display: none;
    z-index: 10;
    background-color: #080b12;
}

/* Single Gem Detail Sub-Images (Thumbnails) */
.gem-thumbnail {
    position: relative;
    border: 2px solid rgba(71, 85, 105, 0.85);
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gem-thumbnail:hover {
    opacity: 1;
    border-color: rgba(250, 204, 21, 0.7);
    transform: translateY(-2px);
}

.gem-thumbnail.active {
    opacity: 1;
    border: 3px solid #facc15;
    outline: 2px solid rgba(250, 204, 21, 0.8);
    outline-offset: 3px;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.55);
    transform: translateY(-2px);
}

/* Grayscale filter for unavailable stock */
.stock-unavailable-card {
    filter: grayscale(100%) opacity(50%);
}

.stock-unavailable-badge {
    background-color: #ef4444;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}


/* Hero Slideshow Dot Navigation Controls */
.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.6);
    cursor: pointer;
    transition: all 0.4s ease;
}

.hero-dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--gold-primary);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.8);
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #080b12;
}
::-webkit-scrollbar-thumb {
    background: #1f293d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

.modal-backdrop {
    background: rgba(8, 11, 18, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-scrollable-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Footer Link Glow Effects */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Floating Animated Call Button & Pulse Rings */
.floating-call-btn-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

.floating-call-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fce8ad 0%, #d4af37 50%, #a28122 100%);
    color: #080b12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.45);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #ffffff;
}

.floating-call-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 35px rgba(212, 175, 55, 0.75);
}

.floating-call-btn i {
    animation: phoneWiggle 3.2s infinite ease-in-out;
}

/* Pulsing Outer Rings */
.floating-call-pulse-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.8);
    animation: goldPulseRing 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    pointer-events: none;
}

.floating-call-pulse-ring-2 {
    position: absolute;
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
    border-radius: 50%;
    border: 1.5px solid rgba(252, 232, 173, 0.6);
    animation: goldPulseRing 2.2s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s;
    pointer-events: none;
}

@keyframes goldPulseRing {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes phoneWiggle {
    0%, 72%, 100% {
        transform: rotate(0deg);
    }
    76% {
        transform: rotate(14deg);
    }
    80% {
        transform: rotate(-14deg);
    }
    84% {
        transform: rotate(10deg);
    }
    88% {
        transform: rotate(-5deg);
    }
}

/* Gemstone Category Cards Ribbon */
.gem-category-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gem-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 18px rgba(212, 175, 55, 0.25);
}

.gem-category-card.active {
    border-color: #d4af37 !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.45), inset 0 0 15px rgba(212, 175, 55, 0.15) !important;
    transform: translateY(-2px);
}

/* Mobile Screens Overflow & Spacing Control */
@media (max-width: 640px) {
    /* Safe Letter Spacing for Mobile */
    .tracking-\[0\.4em\] {
        letter-spacing: 0.16em !important;
    }
    .tracking-\[0\.35em\] {
        letter-spacing: 0.14em !important;
    }
    .tracking-\[0\.3em\] {
        letter-spacing: 0.12em !important;
    }
    .tracking-\[0\.25em\] {
        letter-spacing: 0.1em !important;
    }
    .tracking-\[0\.2em\] {
        letter-spacing: 0.08em !important;
    }

    /* Floating call button contained within mobile screen */
    .floating-call-btn-container {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
    }
    .floating-call-btn {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.15rem !important;
    }
    .floating-call-pulse-ring-2 {
        top: -8px !important;
        left: -8px !important;
        right: -8px !important;
        bottom: -8px !important;
    }
    #callWidgetMenu {
        right: 0 !important;
        max-width: calc(100vw - 2.5rem) !important;
        width: 18rem !important;
    }
}

/* ======================================================= */
/* LUXURY RESPONSIVE ALERT & TOAST NOTIFICATION SYSTEM     */
/* Specifically engineered for optimal mobile experience   */
/* ======================================================= */

#toast-container {
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    left: 1rem;
    right: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 440px;
    width: auto;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    #toast-container {
        top: 1.5rem;
        right: 1.5rem;
        left: auto;
        margin-left: 0;
        margin-right: 0;
        max-width: 420px;
        width: 100%;
    }
}

.serenza-toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(12, 18, 34, 0.97);
    border-radius: 0.875rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.88), 0 0 20px rgba(212, 175, 55, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f8fafc;
    overflow: hidden;
    transform: translateY(-8px) scale(0.97);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.serenza-toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.serenza-toast.hide {
    transform: translateY(-10px) scale(0.95);
    opacity: 0;
}

/* Toast Type Variations */
.serenza-toast-success {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.88), 0 0 25px rgba(212, 175, 55, 0.22);
}
.serenza-toast-success .serenza-toast-icon {
    color: #facc15;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
}

.serenza-toast-error {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.88), 0 0 25px rgba(239, 68, 68, 0.22);
}
.serenza-toast-error .serenza-toast-icon {
    color: #f87171;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.serenza-toast-warning {
    border-color: rgba(245, 158, 11, 0.55);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.88), 0 0 25px rgba(245, 158, 11, 0.22);
}
.serenza-toast-warning .serenza-toast-icon {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.serenza-toast-info {
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.88), 0 0 25px rgba(56, 189, 248, 0.22);
}
.serenza-toast-info .serenza-toast-icon {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

/* Toast Inner Layout */
.serenza-toast-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.serenza-toast-content {
    flex: 1;
    min-width: 0;
    padding-top: 0.1rem;
}

.serenza-toast-title {
    font-family: 'Cinzel', serif, Georgia;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    color: #fef08a;
    line-height: 1.25;
    margin: 0;
    word-break: break-word;
}

.serenza-toast-message {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin: 0.25rem 0 0 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.serenza-toast-close {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: #94a3b8;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.serenza-toast-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.serenza-toast-close:active {
    transform: scale(0.94);
}

/* Luxury Animated Progress Countdown Line */
.serenza-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 100%;
    background: linear-gradient(90deg, #d4af37, #fce8ad);
    transform-origin: left;
    animation: toastProgressBar linear forwards;
}

.serenza-toast-error .serenza-toast-progress {
    background: linear-gradient(90deg, #ef4444, #fca5a5);
}

.serenza-toast-warning .serenza-toast-progress {
    background: linear-gradient(90deg, #f59e0b, #fde68a);
}

.serenza-toast-info .serenza-toast-progress {
    background: linear-gradient(90deg, #0284c7, #7dd3fc);
}

@keyframes toastProgressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}


