@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --bg-color: #FAF9F6;
    --text-main: #2C352D;
    --accent: #8B7355;
    --light-border: #E8E6DF;
}

/* Base App Reset */
html, body {
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent; /* Removes blue tap box on mobile */
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 70px; /* Space for mobile bottom nav */
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Playfair Display', serif;
}

/* Custom Aesthetic Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* Glassmorphism Navbar */
.app-navbar {
    background: rgba(250, 249, 246, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 230, 223, 0.5);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--text-main) !important;
}

.nav-link {
    color: var(--text-main) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    display: block;
    margin-top: 2px;
    right: 0;
    background: var(--accent);
    transition: width .3s ease;
    -webkit-transition: width .3s ease;
}
.nav-link:hover::after {
    width: 100%; left: 0; background: var(--accent);
}

/* Premium Buttons */
.btn-primary-custom {
    background-color: var(--text-main);
    color: #fff;
    border: 1px solid var(--text-main);
    padding: 14px 35px;
    border-radius: 0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-primary-custom:hover, .btn-primary-custom:active {
    background-color: transparent;
    color: var(--text-main);
    transform: scale(0.98); /* App-like press effect */
}

/* App-like Product Cards */
.product-card {
    border: none;
    background: transparent;
    cursor: pointer;
}

.product-card .img-wrapper {
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.product-card img {
    border-radius: 4px;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

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

.product-card .card-body {
    padding: 1.2rem 0;
    text-align: center;
}

.price {
    color: var(--accent);
    font-weight: 400;
    font-size: 1.1rem;
}

/* Mobile Bottom Navigation (App Feel) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--light-border);
    display: flex;
    justify-content: space-around;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); /* iOS safe area */
    z-index: 1030;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.mobile-nav-item span.material-icons-outlined {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.mobile-nav-item:hover, .mobile-nav-item:active {
    color: var(--accent);
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .mobile-bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

footer {
    background-color: var(--text-main);
    color: var(--bg-color);
    padding: 5rem 0 3rem;
}
/* ==========================================
   Global Premium Preloader
========================================== */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color); /* Matches the earthy #FAF9F6 theme */
    z-index: 999999; /* Keeps it above absolutely everything */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* SVG Text Animation */
.loader-svg {
    max-width: 100%;
}

.svg-text {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    letter-spacing: 6px;
    fill: transparent;
    stroke: var(--text-main);
    stroke-width: 0.7;
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawStroke 2s ease-in-out forwards, fillText 1s 1.5s ease-in-out forwards;
}

/* Minimalist Moving Line Underneath */
.loader-line {
    width: 80px;
    height: 1px;
    background: var(--light-border);
    position: relative;
    overflow: hidden;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: lineSwipe 1.5s infinite ease-in-out;
}

/* Keyframes */
@keyframes drawStroke {
    100% { stroke-dashoffset: 0; }
}

@keyframes fillText {
    100% { fill: var(--text-main); stroke-width: 0; }
}

@keyframes lineSwipe {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}