/* =============================================
   VIBE SMOKE SHOP - Soft Neon Urban Stylesheet
   White Navbar + Icons + Bigger Logo + Smooth Slides
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0a0a16;
    --bg2: #10091f;
    --card: rgba(255,255,255,0.045);
    --card-border: rgba(255,255,255,0.09);
    --text: #f1f0f8;
    --text-dim: rgba(241,240,248,0.65);
    --pink: #ff3fb0;
    --cyan: #2fe3ff;
    --purple: #9b5cff;
    --grad-main: linear-gradient(135deg, var(--pink), var(--purple));
    --grad-cool: linear-gradient(135deg, var(--cyan), var(--purple));
    --glow-pink: 0 6px 24px rgba(255,63,176,0.35);
    --glow-cyan: 0 6px 24px rgba(47,227,255,0.3);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-pill: 999px;

    /* Navbar (white theme) */
    --nav-bg: #ffffff;
    --nav-text: #1a1a2e;
    --nav-text-dim: #555570;
    --nav-border: rgba(0,0,0,0.08);
    --nav-hover-bg: rgba(255,63,176,0.08);

    /* Layout heights */
    --topbar-h: 34px;
    --navbar-h: 82px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255,63,176,0.16) 0%, transparent 45%),
        radial-gradient(circle at 90% 25%, rgba(47,227,255,0.14) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(155,92,255,0.16) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, .page-title, .section-title {
    font-family: 'Space Grotesk', 'Poppins', sans-serif;
}

/* =============================================
   ANIMATED BACKGROUND
   ============================================= */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    background: radial-gradient(circle at 30% 30%, rgba(255,63,176,0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(47,227,255,0.08) 0%, transparent 40%);
    animation: rotate 50s linear infinite;
    filter: blur(20px);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--cyan);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 8px 2px rgba(47,227,255,0.6);
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(-100vh); opacity: 0; }
}

.smoke {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to top, rgba(155,92,255,0.08), transparent);
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   TOP BAR — flush against navbar (NO GAP)
   ============================================= */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,22,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1001;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    height: var(--topbar-h);
}

.top-bar a, .top-bar span {
    color: var(--cyan);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.top-bar a:hover { color: var(--pink); }
.top-bar span { color: var(--text-dim); }

/* =============================================
   NAVBAR — WHITE, flush under top bar (NO GAP)
   ============================================= */
.navbar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    width: 100%;
    transform: none;
    padding: 12px 24px;
    background: var(--nav-bg);
    border: none;
    border-bottom: 1px solid var(--nav-border);
    border-radius: 0;
    box-shadow: 0 6px 24px rgba(0,0,0,0.28);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* =============================================
   LOGO — BIGGER + FADE-IN ON FIRST LOAD
   ============================================= */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 58px;
    width: auto;
    border-radius: 10px;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.3s ease, opacity 0.6s ease;
    animation: navLogoIn 0.7s 0.15s both ease-out;
}

.logo img:hover {
    transform: scale(1.04);
}

@keyframes navLogoIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HAMBURGER
   ============================================= */
.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--nav-text);
    background: rgba(0,0,0,0.05);
    border: 1px solid var(--nav-border);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.hamburger:hover {
    background: var(--grad-main);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--glow-pink);
}

/* =============================================
   NAV LINKS — dark text on white
   ============================================= */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.nav-links a {
    position: relative;
    color: var(--nav-text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-links a i { font-size: 0.95rem; opacity: 0.85; }

.nav-links a:hover {
    color: var(--pink);
    background: var(--nav-hover-bg);
}

.nav-links a.active {
    color: #fff;
    background: var(--grad-main);
    box-shadow: 0 6px 18px rgba(255,63,176,0.35);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 10px 1px var(--pink);
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.nav-links a.active::after { display: none; }

/* =============================================
   LOGIN / REGISTER / PROFILE — WITH ICONS
   ============================================= */
.user-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--nav-border);
    padding: 0.35rem 0.5rem 0.35rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    color: var(--nav-text);
}

.user-info i {
    color: var(--pink);
    font-size: 0.95rem;
}

.logout-btn {
    background: var(--grad-main);
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: white !important;
    text-decoration: none;
    box-shadow: var(--glow-pink);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s ease;
}

.logout-btn:hover { transform: translateY(-2px); }

.login-icon {
    background: var(--grad-main);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--glow-pink);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-icon i { font-size: 0.9rem; }

.login-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,63,176,0.45);
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-btn {
    background: rgba(0,0,0,0.04);
    border: 1px solid var(--nav-border);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nav-text);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.profile-btn i { color: var(--pink); font-size: 0.95rem; }

.profile-btn:hover {
    background: var(--nav-hover-bg);
    border-color: rgba(255,63,176,0.3);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    min-width: 220px;
    border-radius: var(--radius-md);
    border: 1px solid var(--nav-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    z-index: 1002;
    margin-top: 12px;
    overflow: hidden;
}

.profile-dropdown:hover .dropdown-content { display: block; }

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--nav-text);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.88rem;
    transition: all 0.15s ease;
}

.dropdown-content a i {
    color: var(--pink);
    width: 18px;
    text-align: center;
}

.dropdown-content a:last-child { border-bottom: none; }

.dropdown-content a:hover {
    background: var(--nav-hover-bg);
    color: var(--pink);
}

/* =============================================
   CONTAINER — offset for topbar + navbar
   ============================================= */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--topbar-h) + var(--navbar-h) + 24px) 20px 20px;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 1.2rem 0;
    margin-bottom: 1rem;
}

.page-icon {
    font-size: 2.8rem;
    color: transparent;
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-title {
    font-size: 2.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.01em;
}

.tagline {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    font-size: 1.7rem;
    text-align: center;
    margin: 1.8rem 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* =============================================
   SLIDESHOW — Cinematic Split Panel + Smooth Text
   ============================================= */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 24px 0;
    height: 520px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 70px rgba(0,0,0,0.55);
}

.slideshow-container::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: linear-gradient(100deg,
        rgba(10,10,22,0.94) 0%,
        rgba(10,10,22,0.74) 32%,
        rgba(10,10,22,0.18) 62%,
        rgba(10,10,22,0.42) 100%);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 1.2s ease, visibility 0s linear 1.2s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease, visibility 0s linear 0s;
}

.slide-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    transition: transform 8s ease-out;
}

.slide.active .slide-image { transform: scale(1); }

/* --- Slide text: smooth CSS transition (no jitter) --- */
.slide-content {
    position: absolute;
    left: 5%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translateY(-50%);
    max-width: 430px;
    width: 88%;
    padding: 1.6rem 1.8rem 1.7rem 2rem;
    background: rgba(16,9,31,0.55);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255,255,255,0.10);
    border-left: none;
    border-radius: 6px 22px 22px 6px;
    box-shadow: 0 24px 55px rgba(0,0,0,0.5);
    z-index: 10;
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(-50%);
}

.slide-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 6px 0 0 6px;
    background: var(--grad-main);
    box-shadow: 0 0 20px rgba(255,63,176,0.65);
}

.slide-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.slide-content p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
    margin-bottom: 1.1rem;
}

.slide-btn {
    display: inline-block;
    background: var(--grad-main);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--glow-pink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255,63,176,0.5);
}

/* Dots */
.dots-container {
    position: absolute;
    left: 5%;
    bottom: 30px;
    width: auto;
    padding: 0;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 26px;
    height: 4px;
    margin: 0;
    border-radius: 4px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.35s ease;
}

.dot:hover { background: rgba(255,255,255,0.55); }

.dot.active {
    width: 54px;
    background: var(--grad-main);
    box-shadow: 0 0 14px rgba(255,63,176,0.7);
}

/* Arrows */
.prev, .next {
    position: absolute;
    top: auto;
    bottom: 22px;
    transform: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.25s ease;
}

.prev { left: auto; right: 82px; }
.next { right: 22px; }

.prev:hover, .next:hover {
    background: var(--grad-main);
    border-color: transparent;
    box-shadow: var(--glow-pink);
    transform: translateY(-3px);
}

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
    background: var(--card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1.4rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255,63,176,0.15);
}

.category-btn {
    padding: 0.6rem 1.3rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    cursor: pointer;
    font-size: 0.82rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-btn:hover, .category-btn.active {
    background: var(--grad-main);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-pink);
}

/* =============================================
   PRODUCT GRID
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.product-card {
    background: var(--card);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--card-border);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,63,176,0.4);
    box-shadow: 0 18px 40px rgba(255,63,176,0.18);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1330, #10091f);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image .no-image { font-size: 4rem; opacity: 0.4; }

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.stock-in-stock { background: rgba(47,227,255,0.85); color: #0a0a16; }
.stock-low-stock { background: rgba(255,180,60,0.9); color: #0a0a16; }
.stock-out-of-stock { background: rgba(255,63,176,0.85); color: #0a0a16; }

.product-info { padding: 1.3rem; }

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-brand {
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.product-category {
    display: inline-block;
    background: rgba(155,92,255,0.18);
    color: #cdb8ff;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    margin-bottom: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #8a869c;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    -webkit-text-fill-color: #8a869c;
}

.discount-badge {
    background: var(--grad-main);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.65rem;
    margin-left: 0.5rem;
}

.card-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.detail-btn, .whatsapp-btn {
    flex: 1;
    padding: 0.65rem;
    border-radius: var(--radius-pill);
    text-align: center;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.detail-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--card-border);
    color: var(--text);
}

.detail-btn:hover { background: rgba(255,255,255,0.14); }

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #1aa457);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(37,211,102,0.4);
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.gallery-item {
    background: var(--card);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid var(--card-border);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(47,227,255,0.18);
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1330, #10091f);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-info {
    padding: 0.9rem;
    text-align: center;
}

.gallery-info h3 {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

/* =============================================
   VIEW MORE + PAGINATION
   ============================================= */
.view-more {
    text-align: center;
    margin: 2rem 0;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--grad-main);
    padding: 13px 34px;
    border-radius: var(--radius-pill);
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glow-pink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255,63,176,0.45);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    padding: 0.55rem 1.1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination a:hover, .pagination .active {
    background: var(--grad-cool);
    color: #0a0a16;
    border-color: transparent;
}

.pagination .disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* =============================================
   PRODUCT DETAIL
   ============================================= */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem;
    background: var(--card);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 2.2rem;
    margin: 1rem 0;
}

.detail-image {
    background: linear-gradient(135deg, #1a1330, #10091f);
    border-radius: var(--radius-lg);
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-image .no-image { font-size: 5rem; opacity: 0.4; }

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.detail-info h1 { font-size: 1.8rem; color: #fff; }

.detail-brand, .detail-category {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.detail-brand strong, .detail-category strong {
    color: var(--pink);
    font-weight: 600;
}

.detail-price {
    font-size: 2rem;
    font-weight: 700;
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stock-badge-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.45rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.stock-badge-detail.stock-in-stock { background: rgba(47,227,255,0.85); color: #0a0a16; }
.stock-badge-detail.stock-low-stock { background: rgba(255,180,60,0.9); color: #0a0a16; }
.stock-badge-detail.stock-out-of-stock { background: rgba(255,63,176,0.85); color: #0a0a16; }

.detail-description {
    line-height: 1.8;
    margin: 0.9rem 0;
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    padding: 1.1rem;
    border-radius: var(--radius-md);
}

.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366, #1aa457);
    padding: 13px 30px;
    border-radius: var(--radius-pill);
    color: white;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.35);
    transition: transform 0.2s ease;
}

.whatsapp-order-btn:hover { transform: translateY(-3px); }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--text);
    text-decoration: none;
    padding: 9px 18px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: rgba(255,63,176,0.15);
    color: var(--pink);
}

/* =============================================
   PROFILE + CONTACT
   ============================================= */
.profile-card, .contact-form, .contact-info, .messages-list {
    background: var(--card);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    border: 1px solid var(--card-border);
}

.profile-card {
    max-width: 600px;
    margin: 1rem auto;
}

.profile-card h2, .contact-form h2, .contact-info h2 {
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.1rem;
    font-size: 1.2rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.88rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255,63,176,0.15);
}

.submit-btn {
    background: var(--grad-main);
    padding: 0.85rem;
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: var(--glow-pink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255,63,176,0.45);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.message-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.message-subject {
    font-weight: 600;
    background: var(--grad-cool);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.9rem;
}

.admin-reply {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid var(--cyan);
    padding: 0.9rem;
    margin-top: 0.9rem;
    border-radius: var(--radius-md);
    color: #e5e4ee;
}

.admin-reply strong { color: var(--cyan); }

.delete-message-btn {
    color: #ffb0d6;
    font-size: 0.72rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    background: rgba(255,63,176,0.12);
    border-radius: var(--radius-pill);
    transition: all 0.2s ease;
}

.delete-message-btn:hover {
    background: var(--pink);
    color: white;
}

.success-msg, .error-msg {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.success-msg { background: rgba(47,227,255,0.16); color: #b8f4ff; border: 1px solid rgba(47,227,255,0.35); }
.error-msg { background: rgba(255,63,176,0.16); color: #ffcbe8; border: 1px solid rgba(255,63,176,0.35); }

.msg-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.msg-pagination a, .msg-pagination span {
    padding: 0.45rem 0.9rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
}

.msg-pagination a:hover, .msg-pagination .active {
    background: var(--grad-cool);
    color: #0a0a16;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    text-align: center;
    padding: 1.6rem;
    border-top: 1px solid var(--card-border);
    margin-top: 1.6rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text);
    font-size: 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: var(--grad-main);
    color: white;
    box-shadow: var(--glow-pink);
}

.footer p { color: var(--text-dim); }

/* =============================================
   FLOATING WHATSAPP
   ============================================= */
.floating-wa {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #25D366, #1aa457);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    animation: bounce 3s ease-in-out infinite;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37,211,102,0.45);
}

.floating-wa i {
    font-size: 1.7rem;
    color: white;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* =============================================
   PRELOADER WITH LOGO
   ============================================= */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

.loading.hide {
    opacity: 0;
    pointer-events: none;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.loading-logo {
    max-height: 100px;
    width: auto;
    border-radius: 12px;
    animation: logoFadeIn 1s ease both, logoPulse 2s 1s ease-in-out infinite;
    filter: drop-shadow(0 0 22px rgba(255,63,176,0.45));
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.06); }
}

.spinner {
    width: 46px;
    height: 46px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--pink);
    border-right-color: var(--cyan);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   LOGIN MODAL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,22,0.75);
    backdrop-filter: blur(6px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: rgba(16,9,31,0.9);
    backdrop-filter: blur(20px);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    max-width: 410px;
    width: 90%;
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-pill);
    color: var(--text);
    font-size: 0.9rem;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--pink);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(255,63,176,0.15);
}

.modal-content .submit-btn { margin-top: 0.4rem; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.2s ease;
}

.modal-close:hover { color: var(--pink); }

.switch-modal {
    text-align: center;
    margin-top: 1.1rem;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.87rem;
    transition: color 0.2s ease;
}

.switch-modal strong { color: var(--cyan); }
.switch-modal:hover { color: var(--pink); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,22,0.92);
    backdrop-filter: blur(8px);
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-lightbox:hover { color: var(--pink); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    .container { padding: calc(var(--topbar-h) + var(--navbar-h) + 20px) 20px 20px; }
    .slideshow-container { height: 400px; }
    .product-detail { grid-template-columns: 1fr; }
    .slide-content { max-width: 350px; }
    .slide-content h2 { font-size: 1.2rem; }
}

@media (max-width: 900px) {
    .navbar {
        padding: 10px 16px;
    }

    .hamburger { display: flex; }

    .logo img { max-height: 46px; }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.85rem;
        background: #ffffff;
        border: 1px solid var(--nav-border);
        border-radius: 18px;
        box-shadow: 0 26px 60px rgba(0,0,0,0.25);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-14px);
        transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    }

    .nav-links.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links a {
        justify-content: flex-start;
        padding: 0.85rem 1.1rem;
        border-radius: 14px;
        font-size: 0.92rem;
        color: var(--nav-text);
    }

    .nav-links a:hover {
        color: var(--pink);
        background: var(--nav-hover-bg);
    }

    .nav-links a.active {
        color: #fff;
        background: var(--grad-main);
    }

    .nav-links a::after { display: none; }

    .container { padding: calc(var(--topbar-h) + var(--navbar-h) + 16px) 15px 15px; }
}

@media (max-width: 768px) {
    :root {
        --topbar-h: 30px;
        --navbar-h: 74px;
    }

    .top-bar {
        font-size: 10px;
        padding: 0 15px;
        justify-content: center;
        gap: 12px;
    }

    .navbar {
        padding: 10px 14px;
    }

    .logo img { max-height: 42px; }

    .container {
        padding: calc(var(--topbar-h) + var(--navbar-h) + 12px) 15px 15px;
    }

    .slideshow-container {
        height: 340px;
        border-radius: 20px;
        margin-top: 12px;
    }

    /* --- mobile slide content --- */
    .slide-content {
        left: 14px;
        right: 14px;
        top: auto;
        bottom: 62px;
        transform: translateY(16px);
        max-width: none;
        width: auto;
        padding: 0.9rem 1rem 0.95rem 1.2rem;
        border-radius: 4px 16px 16px 4px;
        opacity: 0;
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .slide.active .slide-content {
        opacity: 1;
        transform: translateY(0);
    }

    .slide-content::before { width: 3px; }

    .slide-content h2 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .slide-content p {
        font-size: 0.72rem;
        margin-bottom: 0.6rem;
    }

    .slide-btn {
        padding: 0.4rem 1rem;
        font-size: 0.68rem;
    }

    .dots-container {
        left: 14px;
        bottom: 22px;
        gap: 6px;
    }

    .dot { width: 18px; height: 3px; }
    .dot.active { width: 34px; }

    .prev, .next {
        width: 38px;
        height: 38px;
        bottom: 14px;
        border-radius: 12px;
        font-size: 0.9rem;
    }

    .prev { right: 60px; }
    .next { right: 14px; }

    .page-title { font-size: 1.5rem; }
    .page-icon { font-size: 2rem; }
    .section-title { font-size: 1.3rem; }
    .product-detail { padding: 1.2rem; }
    .detail-info h1 { font-size: 1.3rem; }
    .detail-price { font-size: 1.5rem; }
    .detail-image { min-height: 220px; }
    .contact-section { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    .gallery-image { height: 150px; }
    .filter-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.9rem;
        justify-content: center;
    }
    .search-input {
        width: 100%;
        min-width: 100%;
        margin-bottom: 0.5rem;
    }
    .category-btn {
        flex: 1 1 calc(33.333% - 0.5rem);
        min-width: calc(33.333% - 0.5rem);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.72rem;
        padding: 0.45rem 0.6rem;
    }
    .floating-wa {
        width: 46px;
        height: 46px;
        bottom: 15px;
        right: 15px;
    }
    .floating-wa i { font-size: 1.3rem; }
    .modal-content {
        padding: 1.6rem;
        max-width: 350px;
    }
    .modal-content h2 { font-size: 1.3rem; }

    .loading-logo { max-height: 74px; }
    .spinner { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
    .container { padding: calc(var(--topbar-h) + var(--navbar-h) + 10px) 12px 12px; }

    .slideshow-container {
        height: 280px;
        border-radius: 16px;
    }

    .slide-content {
        bottom: 56px;
        padding: 0.75rem 0.85rem 0.8rem 1rem;
    }

    .slide-content p { display: none; }
    .slide-content h2 { font-size: 0.88rem; }

    .dots-container { bottom: 20px; }
    .dot { width: 14px; }
    .dot.active { width: 26px; }

    .prev, .next { width: 34px; height: 34px; bottom: 12px; }
    .prev { right: 54px; }
    .next { right: 12px; }

    .product-image { height: 160px; }
    .price { font-size: 1.2rem; }
    .card-buttons { flex-direction: column; gap: 0.5rem; }
    .gallery-image { height: 120px; }
    .category-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
        font-size: 0.68rem;
    }

    .loading-logo { max-height: 60px; }
}