/* Liquid Glass White Theme - Gökçe Kuyumculuk */

:root {
    --bg-color: #21421e;
    --text-color: #fff;
    --glass-bg: rgba(255, 255, 255, 0.15);
    /* Slightly more transparent for dark bg */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    /* Darker shadow definition */
    --gold: #D4AF37;
    --gold-dim: #C5A028;
    --deep-green: #21421e;
    /* New User Requested Color */
    --deep-red: #8f1c2a;
    /* New User Requested Color */
    --spotlight: radial-gradient(circle at var(--x) var(--y), rgba(255, 255, 255, 0.8) 0%, transparent 50%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    /* Removed mesh gradient to honor 'complete' solid color request */
}

/* Background Blobs for Liquid Feel - Updated with new colors */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite alternate;
    opacity: 0.5;
    /* Slightly reduced for darker colors */
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--deep-green);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--deep-red);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: #fff4d6;
    animation-delay: -2s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Category Navigation Bar */
.category-nav-wrapper {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 12px 0;
    position: sticky;
    top: 80px;
    z-index: 1000;
    overflow-x: auto;
    white-space: nowrap;
}

.category-nav-wrapper::-webkit-scrollbar {
    display: none;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .category-nav-wrapper {
        top: 70px;
        padding: 8px 0;
    }

    .category-nav {
        justify-content: flex-start;
        padding: 0 15px;
    }

    .category-link {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
}

.category-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.category-link:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.category-section {
    margin-top: 6rem;
    margin-bottom: 4rem;
    scroll-margin-top: 150px;
    /* Offset for sticky navs */
}

.category-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 25px;
    border-left: 5px solid var(--gold);
    text-transform: capitalize;
    letter-spacing: 1px;
}

/* Admin Panel Extended fields */
.admin-product-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: #000;
}

.admin-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.admin-grid-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.admin-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-input-group label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #555;
}

.admin-input-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    background: #fff;
    color: #000;
}

.admin-input-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}


.cart-btn {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.2s;
}

.cart-btn:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 4rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--glass-shadow);
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.hero-glass-card h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
    letter-spacing: 1px;
}

.hero-glass-card p {
    font-size: 1.2rem;
    color: #eee;
    margin-bottom: 2rem;
}

/* Liquid Button */
.btn-liquid {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-liquid:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-liquid:hover::before {
    left: 100%;
}

/* Products Grid */
.section-title {
    text-align: center;
    margin: 4rem 0 2rem;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect Layer */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.4), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 0;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    /* Changed to contain for better jewelry display */
    border-radius: 12px;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
    z-index: 1;
    position: relative;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-price {
    display: block;
    font-size: 1.2rem;
    color: var(--gold);
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-add-cart {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-add-cart:hover {
    background: var(--gold);
    color: white;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: calc(100% - 41px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.cart-modal.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    /* dark text for visibility */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    color: #000;
    /* dark text */
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000;
    /* dark text */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.close-cart {
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.close-cart:hover {
    transform: rotate(90deg);
}

/* Modals (Product Detail, Checkout) */
.checkout-overlay,
.detail-overlay,
.secure-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Lighter backdrop */
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    /* Flex when open */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.checkout-overlay.open,
.detail-overlay.open,
.secure-overlay.open {
    display: flex;
    opacity: 1;
}

.checkout-modal,
.detail-modal,
.secure-modal {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.detail-modal {
    display: flex;
    max-width: 800px;
    padding: 0;
    overflow: hidden;
}

.detail-image-container {
    width: 50%;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.detail-image-container img {
    max-width: 100%;
    max-height: 300px;
}

.detail-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    color: #fff;
}

/* Credit Card Form Customization */
.card-front {
    background: padding-box linear-gradient(135deg, #1a1a1a, #333);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.8);
}

/* Ticker - Fixed at Bottom for Mobile Visibility */
.ticker-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--gold);
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    height: 41px;
    display: flex;
    align-items: center;
    z-index: 9999;
    /* Changed back to be on top but cart is moved up */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 1.5rem;
    font-weight: 500;
}

.ticker-label {
    font-weight: 700;
    color: #fff;
    opacity: 0.9;
}

.ticker-buy,
.ticker-sell {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticker-sep {
    opacity: 0.5;
    font-weight: 300;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-glass-card h1 {
        font-size: 2.5rem;
    }

    .detail-modal {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .detail-image-container,
    .detail-content {
        width: 100%;
        padding: 1.5rem;
    }

    .detail-image-wrapper {
        height: 250px;
    }

    .detail-specs {
        margin: 1rem 0;
    }
}

/* Extra Aesthetics */
.highlight {
    font-weight: bold;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 5px;
    border-radius: 4px;
}

/* Modal Gallery & Zoom */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
}

.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.5);
}

.gallery-thumb.active {
    border-color: var(--gold);
    transform: scale(1.1);
}

.detail-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: zoom-in;
    width: 100%;
    /* Ensure height consistency */
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.detail-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s;
    transform-origin: center center;
}

.detail-specs {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 0.9rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding-bottom: 0.2rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: bold;
    color: #000;
    /* dark text for visibility */
}

.spec-value {
    color: var(--gold);
    font-weight: 600;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- New Background Animations --- */

/* Rotating Ambient Light Beams */
.ambient-light {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle, transparent 20%, rgba(212, 175, 55, 0.05) 40%, transparent 60%);
    transform: translate(-50%, -50%);
    animation: rotateLight 60s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateLight {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Sparkles Container */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Individual Sparkle */
.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8), 0 0 20px 5px rgba(212, 175, 55, 0.5);
    opacity: 0;
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* --- Mobile Mode Simulation Styles --- */
body.mobile-mode {
    background-color: #111;
    /* Darker bg to focus on "screen" */
}

body.mobile-mode .container,
body.mobile-mode header,
body.mobile-mode .hero-glass-card,
body.mobile-mode .section-title,
body.mobile-mode footer {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

body.mobile-mode header {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
    top: 10px;
    width: 95%;
    /* Slightly floating */
}

/* Adjust text for readability */
body.mobile-mode p,
body.mobile-mode span,
body.mobile-mode .nav-links li a {
    font-size: 1.1rem !important;
}

body.mobile-mode h1 {
    font-size: 2.5rem !important;
}

body.mobile-mode h3 {
    font-size: 1.3rem !important;
}

/* Buttons bigger for touch */
body.mobile-mode button,
body.mobile-mode .btn-liquid {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Product Grid returns to single/double col */
body.mobile-mode .product-grid {
    grid-template-columns: 1fr;
    /* Single column stream */
    gap: 1.5rem;
    padding: 0 1rem;
}

/* Hide some decorative desktop bloat if needed */
body.mobile-mode .blob {
    opacity: 0.3;
    /* Dim background to focus on content */
}

/* Mobile Cart Button Layout */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    nav {
        justify-content: flex-start;
        /* Align logo and cart to the left */
        gap: 15px;
        /* Space between logo and cart */
    }

    .mobile-only {
        display: flex !important;
        /* No extra margin needed if using gap, or add margin-left if gap not supported well (modern browsers support flex gap) */
        align-items: center;
        font-size: 1.2rem;
    }
}

body.mobile-mode .mobile-only {
    display: flex !important;
    align-items: center;
    font-size: 1.2rem;
}

body.mobile-mode nav {
    justify-content: flex-start;
    gap: 15px;
}

body.mobile-mode .nav-links {
    display: none;
}

/* Mobile Mode Detail Modal Optimization */
body.mobile-mode .detail-modal {
    flex-direction: column;
    max-height: 80vh;
    width: 90%;
    max-width: 350px;
    overflow-y: auto;
    padding: 0.5rem;
}

body.mobile-mode .detail-image-wrapper {
    height: 150px;
}

body.mobile-mode .detail-image-wrapper {
    height: 200px;
}

body.mobile-mode .detail-specs {
    margin: 0.8rem 0;
    padding: 0.8rem;
}

body.mobile-mode .detail-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

body.mobile-mode #modal-price {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

body.mobile-mode .gallery-thumb {
    width: 50px;
    height: 50px;
}

/* Mail Button */
/* Mail Button */
.btn-mail {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
    padding: 12px 20px;
    background: #db4437;
    /* Google Red button face */
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.btn-mail:hover {
    transform: scale(1.02);
}

/* Rotating Gradient Border Background */
.btn-mail::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(#4285F4,
            /* Blue */
            #DB4437,
            /* Red */
            #F4B400,
            /* Yellow */
            #0F9D58,
            /* Green */
            #4285F4
            /* Wrap Blue */
        );
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -2;
    animation: spin 3s linear infinite;
}

/* Inner Overlay to create the "border" effect */
.btn-mail::after {
    content: "";
    position: absolute;
    inset: 3px;
    /* Border thickness */
    background: #db4437;
    /* Matches button face */
    border-radius: 28px;
    z-index: -1;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.google-icon {
    margin-left: 8px;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Pickup Modal Specifics (Nested in Cart) */
#pickup-modal {
    z-index: 100 !important;
    /* Above cart items */
}

.pickup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Visibility Utilities */
.desktop-only {
    display: flex !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

body.mobile-mode .desktop-only {
    display: none !important;
}


/* Firebase Status Fire Icon */
.fire-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.5s ease;
}

.fire-status.offline {
    color: #888;
    filter: grayscale(1);
    opacity: 0.5;
}

.fire-status.online {
    color: #ff4500;
    filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.6));
    animation: realisticFire 0.5s infinite alternate ease-in-out;
}

@keyframes realisticFire {
    0% {
        transform: scale(1) translateY(0) rotate(-1deg);
        filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.6));
        color: #ff4500;
    }

    25% {
        transform: scale(1.1) translateY(-1px) rotate(1deg);
        filter: drop-shadow(0 0 8px rgba(255, 100, 0, 0.8));
        color: #ff6a00;
    }

    50% {
        transform: scale(1.05) translateY(0) rotate(-2deg);
        filter: drop-shadow(0 0 12px rgba(255, 140, 0, 0.9));
        color: #ffc400;
    }

    75% {
        transform: scale(1.15) translateY(-2px) rotate(2deg);
        filter: drop-shadow(0 0 10px rgba(255, 80, 0, 0.7));
        color: #ff8c00;
    }

    100% {
        transform: scale(1) translateY(0) rotate(-1deg);
        filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.6));
        color: #ff4500;
    }
}

/* --- Contact Section Redesign --- */
#contact {
    padding: 6rem 0;
    background: #fdfdfd;
}

.contact-title {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title h2 {
    font-family: 'Bodoni Moda', serif;
    font-size: 3rem;
    color: #333;
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.contact-card-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.1);
}

.contact-card h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card p,
.contact-card a {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--gold);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 4rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-title h2 {
        font-size: 2.2rem;
    }

    .map-container {
        height: 350px;
        border-radius: 20px;
    }
}

/* AI Badge Styles */
.ai-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-badge i {
    color: #96bf48;
    /* Brand green */
    font-size: 0.9rem;
}

.ai-badge:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(150, 191, 72, 0.4);
}

/* Responsive Modal Fixes */
.detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 20000;
    /* Ensure high z-index */
}

.detail-overlay.open {
    display: flex !important;
}

.detail-modal {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.1);
    /* Ensure visible background if needed, though glass-card usually covers it */
}

/* Specific fix for Welcome & AI Disclaimer Modals to force centering and size */
#welcome-disclaimer-modal .detail-modal,
#ai-disclaimer-modal .detail-modal {
    max-width: 450px !important;
    width: auto !important;
    padding: 2.5rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    /* Important for flex centering fallback */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {

    #welcome-disclaimer-modal .detail-modal,
    #ai-disclaimer-modal .detail-modal {
        width: 95% !important;
        padding: 1.5rem !important;
    }
}