/* Chocomar Coffee & Breakfast Luxury Theme & Components */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-page: #faf5ee;
    --bg-card: #ffffff;
    --bg-card-dark: #18110e;
    --text-main: #2b1810;
    --text-muted: #78645a;
    --accent-burgundy: #581825;
    --accent-burgundy-light: #7c2233;
    --accent-gold: #c98822;
    --accent-gold-light: #f5b74c;
    --border-soft: rgba(88, 24, 37, 0.12);
    --border-gold: rgba(201, 136, 34, 0.3);
    --gold-gradient: linear-gradient(135deg, #f5b74c 0%, #c98822 100%);
    --burgundy-gradient: linear-gradient(135deg, #7c2233 0%, #4a0e17 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body[dir="rtl"] {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

/* ==========================================================
   1. SPLASH INTRO SCREEN (SENORITA STYLE - LUXURY & TRANSPARENT)
   ========================================================== */
.splash-intro-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-intro-screen.hidden-splash {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.92) contrast(1.05) saturate(1.15);
    z-index: 1;
}

.splash-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.40) 0%, rgba(0,0,0,0.08) 45%, rgba(0,0,0,0.65) 100%);
    z-index: 2;
}

/* Senorita Style: Completely transparent container without dark bounding box */
.splash-content-box {
    position: relative;
    z-index: 10;
    max-width: 480px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 3rem 1.5rem 2.25rem 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: splashFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes splashFloat {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.splash-enter-btn {
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #ffffff;
    font-weight: 900;
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    padding: 1.1rem 2.5rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 100%;
    max-width: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.splash-enter-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(245, 183, 76, 0.38);
    border-color: #ffd700;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 35px rgba(245, 183, 76, 0.5);
}

.splash-enter-btn:active {
    transform: translateY(1px) scale(0.98);
}

.splash-enter-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* ==========================================================
   2. PROMOTIONAL WELCOME POPUP
   ========================================================== */
.promo-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(14px);
    z-index: 99995;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.promo-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.promo-card, .promo-poster-card {
    background: #140d0a;
    color: #ffffff;
    border-radius: 2.2rem;
    overflow: hidden;
    max-width: 390px;
    width: 100%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 35px rgba(217, 119, 6, 0.25);
    border: 1.5px solid rgba(245, 158, 11, 0.35);
    animation: promoPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.promo-card {
    background: #ffffff;
    color: #1f1410;
    border-radius: 2rem;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--accent-gold);
    animation: promoPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes promoPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================
   3. PRODUCT CARDS & 3-LINE CLAMP
   ========================================================== */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1.4rem;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(88, 24, 37, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: 0 15px 35px -5px rgba(88, 24, 37, 0.12);
}

.product-desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.45;
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* Corner Badges (Image 5 style) */
.product-corner-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 5;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: var(--burgundy-gradient);
    box-shadow: 0 4px 12px rgba(88, 24, 37, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

[dir="rtl"] .product-corner-badge {
    right: auto;
    left: 0.65rem;
}

.video-pill-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 10;
    background: rgba(26, 10, 13, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(245, 183, 76, 0.85);
    color: #fce7b0;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(245, 183, 76, 0.3);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-pill-badge:hover {
    transform: scale(1.08);
    background: #581825;
    color: #ffffff;
    border-color: #ffd700;
    box-shadow: 0 6px 18px rgba(88, 24, 37, 0.6), 0 0 18px rgba(255, 215, 0, 0.6);
}

.video-pill-badge:active {
    transform: scale(0.95);
}

[dir="rtl"] .video-pill-badge {
    left: auto;
    right: 0.65rem;
}

/* Favorite Button - Bottom Right of Image (Requirement 6) */
.btn-toggle-fav {
    position: absolute;
    bottom: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(88, 24, 37, 0.15);
    color: #581825;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: transform 0.2s, background 0.2s;
}

[dir="rtl"] .btn-toggle-fav {
    right: auto;
    left: 0.65rem;
}

.btn-toggle-fav:hover {
    transform: scale(1.15);
    background: #ffffff;
}

.btn-toggle-fav.liked {
    color: #e11d48;
}

/* ==========================================================
   4. FULL-SCREEN REELS SHORT VIDEO MODAL (100dvh)
   ========================================================== */
.reel-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reel-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reel-container {
    position: relative;
    width: 100%;
    height: 100dvh;
    max-width: 460px;
    margin: 0 auto;
    overflow: hidden;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .reel-container {
        height: 92dvh;
        max-height: 880px;
        border-radius: 2rem;
        border: 2px solid var(--accent-gold);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
    }
}

.reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.reel-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0) 25%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0.94) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.reel-progress-wrapper {
    position: absolute;
    top: 0.4rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    overflow: hidden;
    z-index: 15;
}

.reel-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold-gradient);
    transition: width 0.1s linear;
}

/* ==========================================================
   5. DRAG & DROP FOR ADMIN REORDERING
   ========================================================== */
.draggable-item-card {
    cursor: grab;
    transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-item-card:active {
    cursor: grabbing;
}

.draggable-item-card.dragging {
    opacity: 0.45;
    transform: scale(0.97);
    border: 2px dashed var(--accent-gold) !important;
}

.draggable-item-card.drag-over {
    transform: translateY(-8px);
    border-color: var(--accent-gold) !important;
    box-shadow: 0 10px 25px rgba(245, 183, 76, 0.3) !important;
}

/* Category Row Drag & Drop */
.category-row-item {
    cursor: grab;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.category-row-item:active {
    cursor: grabbing;
}

.category-row-item.dragging {
    opacity: 0.4;
    transform: scale(0.98);
    border: 2px dashed #e6a83c !important;
}

/* Cloudflare Turnstile Box */
#cf-turnstile-container {
    transition: all 0.3s ease;
}

/* Rating Stars */
.star-rating-box button {
    font-size: 1.5rem;
    transition: transform 0.15s, color 0.15s;
    color: #d1c7bd;
}

.star-rating-box button.active {
    color: #e6a83c;
    transform: scale(1.15);
}
