/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --maroon: #4A0404;
    --maroon-light: #6d1212;
    --gold: #D4AF37;
    --cream: #FDFBF7;
    --text-dark: #1a1a1a;
}

/* FIX: Prevent horizontal scrolling/wobbling on mobile devices */
html {
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .serif { 
    font-family: 'Cinzel', serif; 
}

/* --- ANIMATIONS --- */
.fade-in-up { 
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; 
    opacity: 0; 
    transform: translateY(20px); 
}

@keyframes fadeInUp { 
    to { 
        opacity: 1; 
        transform: translateY(0); 
    } 
}

.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* --- SKELETON LOADING ANIMATION --- */
.skeleton {
    background: #f6f7f8;
    background: linear-gradient(
        120deg, 
        #e5e5e5 30%, 
        #f0f0f0 38%, 
        #f0f0f0 40%, 
        #e5e5e5 48%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
    100% { background-position: -200% 0; }
}

/* Skeleton Layout Helpers */
.skeleton-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    height: 100%;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* --- UI COMPONENTS --- */

/* Product Cards */
.product-card { 
    background: white; 
    border: 1px solid #f0f0f0; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(74, 4, 4, 0.08); 
    border-color: var(--gold); 
}

/* Polished Category Circles */
.cat-circle { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 2px solid #e5e5e5; 
    padding: 3px; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: hidden; 
    background: white;
}

.cat-circle img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 50%; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-item:hover .cat-circle { 
    transform: translateY(-5px); 
    border-color: var(--gold); 
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25); 
}

.cat-item:hover .cat-circle img { 
    transform: scale(1.15); 
}

.cat-item.active .cat-circle { 
    border-color: var(--maroon); 
    border-width: 2px; 
    transform: scale(1.05); 
    box-shadow: 0 0 0 4px rgba(74, 4, 4, 0.05); 
}

.cat-item.active span { 
    color: var(--maroon); 
    font-weight: 800; 
}

/* --- REVIEW IMAGES & LIGHTBOX --- */

/* Larger Review Thumbnails */
.review-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.review-thumb:hover {
    transform: scale(1.05) translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Upload Image Preview Container */
#review-photo-previews img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* --- UTILITIES --- */

/* Hiding Scrollbars while keeping functionality */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Interactive Nav Links */
.nav-link { 
    position: relative; 
    color: white; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 0.1em; 
    transition: color 0.3s ease;
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 1px; 
    bottom: -4px; 
    left: 0; 
    background-color: var(--gold); 
    transition: width 0.3s ease-in-out; 
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold); }

/* Overlays */
.drawer-overlay { 
    background: rgba(0,0,0,0.4); 
    backdrop-filter: blur(4px); 
    transition: backdrop-filter 0.3s ease;
}

/* Star Ratings Interactive */
.star-rating i { 
    color: #e5e5e5; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
}

.star-rating i.active { 
    color: var(--gold); 
    transform: scale(1.1);
}

.star-rating i.cursor-pointer:hover {
    transform: scale(1.25);
    color: var(--gold);
}

/* Carousel Scroll Snap */
.snap-x { scroll-snap-type: x mandatory; }
.snap-center { scroll-snap-align: center; }

/* Buttons General Tactile Feedback */
button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.96);
}

/* Subtle image zoom wrapper */
.img-zoom-wrapper {
    overflow: hidden;
}
.img-zoom-wrapper img {
    transition: transform 0.7s ease;
}
.img-zoom-wrapper:hover img {
    transform: scale(1.08);
}
