/* ============================================================
   RED DOT COSMETICS — Main Stylesheet
   ============================================================ */

/* ---- Variables ---- */
:root {
    --dark:      #1a1a1a;
    --white:     #ffffff;
    --red:       #e04040;
    --red-hover: #c53030;
    --overlay:   rgba(0, 0, 0, 0.22);
    --font-logo: 'Cinzel', serif;
    --font-main: 'Montserrat', sans-serif;
    --font-hero: 'Playfair Display', serif;
    --header-h:  68px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }


/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1800;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}


/* ============================================================
   MOBILE MENU DRAWER
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 1900;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }

/* Drawer top bar */
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--dark);
    position: relative;
    min-height: 52px;
}

.mobile-social-icons {
    display: flex;
    align-items: center;
    gap: 11px;
    z-index: 1;
}
.mobile-social-icons a {
    color: #ccc;
    font-size: 12px;
    transition: color 0.2s;
}
.mobile-social-icons a:hover { color: var(--red); }

.mobile-menu-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    font-family: var(--font-logo);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.5px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
}
.mobile-menu-logo span {
    display: block;
    font-family: var(--font-main);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: 1px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: #ccc;
    font-size: 17px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    z-index: 1;
}
.mobile-menu-close:hover { color: var(--white); }

/* Drawer search */
.mobile-search {
    display: flex;
    align-items: center;
    margin: 14px 16px 4px;
    border: 1px solid #ddd;
}
.mobile-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 14px;
    font-size: 12px;
    font-family: var(--font-main);
    color: #555;
    background: transparent;
}
.mobile-search button {
    background: none;
    border: none;
    padding: 9px 12px;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
}
.mobile-search button:hover { color: var(--dark); }

/* Drawer nav links */
.mobile-nav-links { padding: 8px 0 30px; }
.mobile-nav-links > li { border-bottom: 1px solid #efefef; }

.mobile-nav-links > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: var(--dark);
    transition: color 0.2s;
}
.mobile-nav-links > li > a:hover { color: var(--red); }
.mobile-nav-links > li > a i {
    font-size: 10px;
    transition: transform 0.25s;
    color: #aaa;
}
.has-dropdown.open > a i { transform: rotate(180deg); }

/* Drawer submenu */
.mobile-submenu {
    display: none;
    background: #f8f8f8;
    border-top: 1px solid #efefef;
}
.mobile-submenu.open { display: block; }
.mobile-submenu li a {
    display: block;
    padding: 11px 20px 11px 34px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: #555;
    transition: color 0.2s;
}
.mobile-submenu li a:hover { color: var(--red); }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--dark);
    height: var(--header-h);
    padding: 0 30px;
    transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 3px 20px rgba(0, 0, 0, 0.6); }

.header-inner {
    max-width: 1380px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---- Desktop nav (left + right) ---- */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

.desktop-nav > a {
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s;
}
.desktop-nav > a:hover { color: var(--red); }

/* Dropdown (desktop) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-dropdown-toggle:hover { color: var(--red); }
.nav-dropdown-toggle i {
    font-size: 9px;
    transition: transform 0.25s;
}
.nav-dropdown:hover .nav-dropdown-toggle i { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    background: var(--dark);
    min-width: 160px;
    border-top: 2px solid var(--red);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.22s ease;
    pointer-events: none;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}
.nav-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #ccc;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s, background 0.2s;
}
.nav-dropdown-menu li a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

/* Cart icon (header) */
.header-cart {
    color: var(--white);
    font-size: 16px;
    transition: color 0.2s;
}
.header-cart:hover { color: var(--red); }

/* Login / Register button */
.btn-login {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    color: var(--white);
    padding: 7px 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-login:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

/* ---- Center logo ---- */
.site-logo {
    flex-shrink: 0;
    margin: 0 28px;
    text-align: center;
}
.site-logo a {
    display: block;
    color: var(--white);
    font-family: var(--font-logo);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.1;
    transition: opacity 0.2s;
}
.site-logo a:hover { opacity: 0.85; }
.site-logo a span {
    display: block;
    font-family: var(--font-main);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 5px;
    margin-top: 2px;
}

/* ---- Mobile controls (hidden on desktop) ---- */
.mobile-controls { display: none; }

.hamburger-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}
.hamburger-btn:hover { color: var(--red); }

.mobile-logo a {
    display: block;
    text-align: center;
    color: var(--white);
    font-family: var(--font-logo);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.15;
}
.mobile-logo a span {
    display: block;
    font-family: var(--font-main);
    font-size: 7px;
    font-weight: 400;
    letter-spacing: 4px;
    margin-top: 1px;
}
.mobile-cart-icon { font-size: 19px; }


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    width: 100%;
    height: 86vh;
    min-height: 480px;
    margin-top: var(--header-h);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: #3d2418; /* fallback when image is missing */
    transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.03); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 20px 30px;
}

.hero-text {
    font-family: var(--font-hero);
    font-style: italic;
    font-size: clamp(22px, 3.5vw, 46px);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 28px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.btn-read-story {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 13px 32px;
    border-radius: 40px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    transition: background 0.25s, transform 0.25s;
}
.btn-read-story:hover {
    background: var(--red-hover);
    transform: translateY(-2px);
}


/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.category-card {
    position: relative;
    height: 390px;
    overflow: hidden;
}

.category-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.55s ease;
}

/* Fallback colors per category */
.category-card:nth-child(1) .category-bg { background-color: #6e5a4e; }
.category-card:nth-child(2) .category-bg { background-color: #a89080; }
.category-card:nth-child(3) .category-bg { background-color: #d4c8c0; }
.category-card:nth-child(4) .category-bg { background-color: #c0a888; }

.category-card:hover .category-bg { transform: scale(1.06); }

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    transition: background 0.3s;
}
.category-card:hover .category-overlay { background: rgba(0, 0, 0, 0.38); }

.category-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 48px;
    color: var(--white);
    text-align: center;
}

.category-info h3 {
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.btn-shop {
    display: inline-block;
    background: var(--white);
    color: var(--dark);
    padding: 9px 26px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: background 0.25s, color 0.25s;
}
.btn-shop:hover {
    background: transparent;
    color: var(--white);
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 42px 20px 36px;
    text-align: center;
    background: var(--white);
    border-top: 1px solid #ebebeb;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}
.footer-social a {
    width: 34px;
    height: 34px;
    border: 1.5px solid #aaa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 13px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.footer-social a:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--white);
}

.footer-copyright {
    font-size: 11.5px;
    color: #888;
    letter-spacing: 0.3px;
    margin-bottom: 7px;
}

.footer-links {
    font-size: 11.5px;
    color: #888;
    letter-spacing: 0.3px;
}
.footer-links a {
    color: var(--red);
    text-decoration: underline;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--red-hover); }


/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
@keyframes wa-float {
    0%, 100% { transform: translateY(0);    }
    50%       { transform: translateY(-8px); }
}

@keyframes wa-pulse {
    0%   { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(37, 211, 102, 0);    }
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 800;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    animation: wa-float 3s ease-in-out infinite,
               wa-pulse 2.5s ease-out infinite;
    transition: background 0.25s, transform 0.25s;
}
.whatsapp-float:hover {
    background: #20bd5a;
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}


/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .site-header { padding: 0 20px; }
    .desktop-nav { gap: 16px; }
    .desktop-nav > a,
    .nav-dropdown-toggle { font-size: 10px; }
    .site-logo { margin: 0 18px; }
    .site-logo a { font-size: 18px; }
    .btn-login { padding: 6px 12px; font-size: 9px; }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {

    /* Show mobile controls, hide desktop nav/logo */
    .desktop-nav,
    .site-logo { display: none; }
    .mobile-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    .site-header { padding: 0 16px; }

    /* Show mobile menu overlay layer */
    .mobile-menu-overlay { display: block; }

    /* Hero */
    .hero {
        height: 62vh;
        min-height: 320px;
    }
    .hero-text { font-size: clamp(18px, 5vw, 28px); }
    .btn-read-story { padding: 11px 26px; font-size: 9.5px; }

    /* Categories — single column on mobile */
    .categories { grid-template-columns: 1fr; }
    .category-card { height: 300px; }

}


/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    .hero { height: 55vh; }
    .hero-text { font-size: 19px; }
    .btn-read-story { padding: 10px 22px; font-size: 9px; }
    .category-card { height: 260px; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 24px; bottom: 20px; right: 16px; }
}
