/*
Theme Name: LaBuccia Pro
Author: Abdullah Choudhary
Author URI: https://varpec.app
version: 1.0.1
Description: La Buccia is a premium WordPress theme crafted for dermatology clinics, skincare brands, and beauty startups. It features a modern, elegant design with powerful customization options to help you build trust, showcase services, and grow your brand online.
*/

:root {
    --bg: #FFFDD0;
    --text: #050505;
    --accent: #660000;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    margin: 0;
    overflow-x: hidden;
    cursor: auto;
}

h1, h2, h3, .font-display { font-family: 'Syncopate', sans-serif; text-transform: uppercase; }

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}

/* HEADER */
.floating-header {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.05); border-radius: 50px;
    padding: 0 40px; height: 60px; display: flex; align-items: center; gap: 30px;
    z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.05); white-space: nowrap;
}

/* UTILS */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hover-reveal-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transform: scale(1.1);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}
.hover-reveal-img.active { opacity: 1; transform: scale(1); z-index: 10; }

/* === CAROUSEL LAYOUT === */
/* Force horizontal flex on ALL screens */
.horizontal-wrapper {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    width: 600%; /* Ensure plenty of width */
}

/* Panel Sizing */
.h-panel {
    width: 100vw;   /* Full viewport width */
    height: 100vh;  /* Full viewport height */
    flex-shrink: 0; /* Never shrink */
    display: flex;  /* Internal layout */
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .floating-header {
        width: 90%; padding: 0 20px; justify-content: space-between;
    }
    
    /* On mobile, stack image on top of text INSIDE the sliding panel */
    .h-panel {
        flex-direction: column; 
    }
    
    /* Ensure image and text take up roughly half height each */
    .h-panel .panel-image { height: 50%; width: 100%; }
    .h-panel .panel-text { height: 50%; width: 100%; padding: 2rem; }
    
    /* Adjust text size for mobile */
    .h-panel h3 { font-size: 2.5rem; }
    .h-panel span.price { font-size: 2rem; }
}

/* =========================================
   PAGINATION: LUXURY ANIMATED STYLE
   ========================================= */

/* 1. Container Layout */
.pagination ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Space between items */
    list-style: none !important;
    padding: 0;
    margin: 0;
}

/* 2. THE NUMBERS (Circles) */
.pagination ul li a,
.pagination ul li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Very subtle border */
    border-radius: 50%;
    background: #fff;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    
    /* The Animation Magic */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

/* Hover State for Numbers (Float Up) */
.pagination ul li a:not(.next):not(.prev):hover {
    border-color: #000;
    transform: translateY(-5px); /* Moves up */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Soft shadow appears */
}

/* Active State (The Current Page) */
.pagination ul li span.current {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: scale(1.1); /* Slightly larger */
}

/* 3. THE NEXT / PREV BUTTONS (The "Out of Circle" Fix) */
.pagination ul li a.next, 
.pagination ul li a.prev {
    width: auto !important;   /* Let text fit naturally */
    height: auto !important;
    padding: 12px 28px;       /* Pill Shape Padding */
    border-radius: 100px;     /* Full Round Edges */
    background: transparent;
    border: 1px solid #000;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Hover State for Next/Prev (Fill Black) */
.pagination ul li a.next:hover, 
.pagination ul li a.prev:hover {
    background: #000;
    color: #fff;
    transform: translateY(0); /* Don't float up, just fill */
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 769px) {
    /* On desktop, side-by-side */
    .h-panel {
        flex-direction: row; 
    }
    .h-panel .panel-image { height: 100%; width: 50%; }
    .h-panel .panel-text { height: 100%; width: 50%; padding: 5rem; }
}