/* Global Styles: R24 Creations 🌸 */

:root {
    /* Core Palette */
    --bg-body: #fff0f5;
    --bg-card: #ffffff;
    --bg-secondary: #ffc0cb;
    --bg-dark: #000000;
    --bg-light: #fff5f6;

    --text-main: #121212;
    --text-muted: #666666;
    --accent-color: #ff69b4;
    --primary-color: #ffb7c5;

    /* Fonts */
    --serif-font: "Playfair Display", serif;
    --sans-font: "Poppins", sans-serif;
    --tracking-wider: 0.1em;
    --tracking-widest: 0.2em;
}

/* Base Styles */
body {
    font-family: var(--sans-font);
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    line-height: 1.6;
}

.serif-font {
    font-family: var(--serif-font);
}
.italic {
    font-style: italic;
}
.text-primary-color {
    color: var(--accent-color);
}

/* Theme Overrides */
.bg-light {
    background-color: var(--bg-light) !important;
}
.bg-white {
    background-color: var(--bg-card) !important;
}
.bg-black {
    background-color: var(--bg-dark) !important;
}
.text-white {
    color: #fff !important;
}
.text-dark {
    color: var(--text-main) !important;
}
.text-muted {
    color: var(--text-muted) !important;
}

/* Buttons */
.btn-dark {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
}
.btn-dark:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Header & Navbar */
.top-bar {
    background-color: var(--bg-secondary);
    color: var(--bg-dark);
    letter-spacing: var(--tracking-wider);
}

.navbar {
    transition: padding 0.3s ease;
    background-color: var(--bg-card) !important;
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
    color: var(--text-main) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.icon-hover {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
    display: inline-block;
}
.icon-hover:hover {
    transform: translateY(-3px);
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    border: 1px solid #fff;
}
.cursor-follower.active {
    opacity: 0.3;
    background-color: var(--primary-color);
}

/* Common Components */
.glass-morphism {
    background: rgba(255, 240, 245, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px rgba(74, 59, 62, 0.1);
    color: var(--text-main);
}

/* Utilities */
.scroll-hide::-webkit-scrollbar {
    display: none;
}
.scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.grayscale {
    filter: grayscale(1);
    transition: filter 0.3s;
}
.grayscale:hover {
    filter: grayscale(0);
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Widget 💬 */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    cursor: pointer;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.chat-tooltip {
    position: absolute;
    right: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 8px 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    color: #121212;
    font-size: 0.9rem;
}

.chat-widget:hover .chat-tooltip {
    opacity: 1;
    right: 70px;
}

/* Mobile Basics */
@media (max-width: 991px) {
    .cursor-follower {
        display: none !important;
    }
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }

    /* Fix nav items getting clipped on the left */
    .navbar-collapse .navbar-nav {
        padding-left: 1rem;
    }
    .navbar-collapse .nav-link {
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* Quick View Modal Mobile Scroll Fix */
    #quickViewModal .modal-content {
        max-height: 90vh;
        overflow-y: auto !important;
    }

    #quickViewModal .modal-dialog {
        margin: 1rem;
    }
}

/* Product Card Hover Effect */
.product-card .hover-img {
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2; /* Ensure it covers the main image */
}

.product-card:hover .hover-img {
    opacity: 1;
}

/* Quantity Selector Input Fixes */
.quantity-selector input[type="number"]::-webkit-inner-spin-button,
.quantity-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.quantity-selector input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

/* Marquee Animation 🏃‍♂️ (Global) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Product Card Interactions (Global) */
.product-card {
    transition: all 0.5s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card .quick-view-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .product-card .quick-view-btn {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    .product-card .action-bar {
        transform: translateY(0) !important;
        opacity: 1 !important;
    }
}

/* Action Bar & Animations */
.product-card .action-bar {
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .action-bar {
    transform: translateY(0);
    opacity: 1;
}

/* Add to Cart Button 🛒 */
.btn-add-cart {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .btn-add-cart {
        font-size: 0.7rem;
        padding: 5px 8px !important;
        letter-spacing: 0px;
    }
}

.btn-add-cart:hover {
    background-color: #f8f9fa; /* Slightly darker white */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
    color: #000000;
}

.btn-add-cart:active,
.btn-add-cart:focus,
.btn-add-cart:active:focus {
    transform: translateY(0);
    background-color: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

/* Top Right Buttons */
.product-card .quick-view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(0);
}

/* Custom Help Card & Out of Stock Styles */
.custom-help-card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.custom-help-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

.contact-icon-circle {
    transition: transform 0.3s ease;
}

.custom-help-card:hover .contact-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.btn-outline-success {
    color: #25d366;
    border-color: #25d366;
}

.btn-outline-success:hover {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

/* Out of Stock Quick Actions */
#qv-contact-actions .btn {
    transition: all 0.3s ease;
}

#qv-contact-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .custom-help-card .btn {
        margin-bottom: 5px;
    }
}

