/**
 * KAÏA Fashion - Layout Styles (COMPLETO)
 * Incluye: Header, Hero, Categorías, Productos, Newsletter, Footer
 */

/* ============================================
   RESET UNIVERSAL
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   HEADER - Semi-transparente y fijo
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.header-solid,
.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-top {
    display: none !important;
}

/* ============================================
   NAVBAR - Grid para centrado perfecto del logo
   ============================================ */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    transition: padding 0.3s ease;
    gap: 1rem;
}

.header.header-solid .navbar,
.header.scrolled .navbar {
    padding: 1rem 2rem;
}

.nav-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    text-align: center;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    grid-column: 3;
}

/* ============================================
   MENÚ DE ESCRITORIO (Visible en >= 992px)
   ============================================ */
.nav-menu,
.desktop-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu a,
.desktop-menu a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.nav-menu a::after,
.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.desktop-menu a:hover::after {
    width: 100%;
}

.header.header-solid .nav-menu a,
.header.scrolled .nav-menu a,
.header.header-solid .desktop-menu a,
.header.scrolled .desktop-menu a {
    color: #0f172a;
    text-shadow: none;
}

.header.header-solid .nav-menu a::after,
.header.scrolled .nav-menu a::after,
.header.header-solid .desktop-menu a::after,
.header.scrolled .desktop-menu a::after {
    background: #0f172a;
}

.nav-menu a:hover,
.desktop-menu a:hover {
    color: #ffffff;
}

.header.header-solid .nav-menu a:hover,
.header.scrolled .nav-menu a:hover,
.header.header-solid .desktop-menu a:hover,
.header.scrolled .desktop-menu a:hover {
    color: var(--color-secondary);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.header.header-solid .logo,
.header.scrolled .logo {
    color: #0f172a;
    text-shadow: none;
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.nav-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-icon svg {
    width: 22px;
    height: 22px;
}

.header.header-solid .nav-icon,
.header.scrolled .nav-icon {
    color: #0f172a;
    text-shadow: none;
}

.nav-icon:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.header.header-solid .nav-icon:hover,
.header.scrolled .nav-icon:hover {
    color: var(--color-secondary);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header:not(.header-solid):not(.scrolled) .cart-count {
    background: #ffffff;
    color: #0f172a;
}

/* ============================================
   HAMBURGER / BOTÓN DE MENÚ (Escritorio y Móvil)
   ============================================ */
.hamburger {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.25rem;
    color: #ffffff;
    transition: all 0.25s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hamburger svg {
    display: block;
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.hamburger-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: inherit;
    line-height: 1;
}

.header.header-solid .hamburger,
.header.scrolled .hamburger {
    color: #0f172a;
    text-shadow: none;
}

.hamburger:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ============================================
   MENÚ DESPLEGABLE / OFF-CANVAS DRAWER
   ============================================ */
body.no-scroll {
    overflow: hidden !important;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 88vw;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    overflow-y: auto;
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 1.75rem 1.25rem 1.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 2px;
    text-decoration: none;
}

.mobile-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    line-height: 1;
}

.mobile-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: rotate(90deg);
}

.mobile-menu-body {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-nav li a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav li a:hover {
    background: #f8fafc;
    color: #6366f1;
    transform: translateX(4px);
}

.nav-emoji {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.btn-drawer-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #25D366;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
    transition: all 0.2s ease;
}

.btn-drawer-whatsapp:hover {
    background: #20bd5a;
    transform: translateY(-1px);
}

.mobile-tagline {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

/* ============================================
   HERO - FULL SCREEN
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: block;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 900px;
}

.hero-subtitle {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    opacity: 0.95;
    font-weight: 500;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    display: block;
    margin-top: 0.5rem;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.75rem;
}

.hero-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.hero-dots .dot.active {
    background: white;
    transform: scale(1.3);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
    left: 2rem;
}

.hero-next {
    right: 2rem;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6D3FEA;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #0f172a;
    margin: 0;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   CATEGORÍAS
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card .category-image {
    position: relative;
    padding-top: 125%;
    overflow: hidden;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 1;
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

.category-info h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ============================================
   FILTROS DE PRODUCTOS
   ============================================ */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: white;
    color: #334155;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

/* ============================================
   PRODUCTOS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    padding-top: 125%;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
    background: #f1f5f9;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.product-sizes {
    margin-bottom: 1rem;
}

.size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-badge {
    padding: 0.4rem 0.8rem;
    border: 1px solid #cbd5e1;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.size-badge.available:hover,
.size-badge.selected {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0f172a;
    color: white;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.2);
}

.btn-outline {
    background: transparent;
    color: #0f172a;
    border: 2px solid #0f172a;
}

.btn-outline:hover {
    background: #0f172a;
    color: white;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20ba5a;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ============================================
   PRODUCTO DESTACADO
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image img {
    width: 100%;
    border-radius: 12px;
}

.featured-label {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-title {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.featured-title em {
    color: #64748b;
    font-style: italic;
}

.featured-desc {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-price {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.size-selector {
    margin-bottom: 1.5rem;
}

.size-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.size-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn.active,
.size-btn:hover {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.featured-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.featured-actions .btn {
    flex: 1;
    padding: 1rem;
    font-size: 1rem;
}

/* ============================================
   OFERTAS
   ============================================ */
.offers-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.offer-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.offer-main {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
}

.offer-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
}

.offer-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.offer-secondary {
    background: #f1f5f9;
    padding: 2rem;
    text-align: center;
}

.offer-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offer-secondary h3 {
    margin-bottom: 0.5rem;
}

.offer-secondary p {
    color: #64748b;
    margin-bottom: 1rem;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section {
    background: #0f172a;
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-text .section-subtitle {
    color: #f59e0b;
}

.newsletter-text .section-title {
    color: white;
}

.newsletter-text p {
    opacity: 0.9;
    margin-bottom: 2rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-input-group .btn {
    padding: 0.75rem 2rem;
}

/* ============================================
   MARQUEE - ELIMINADO
   ============================================ */
.marquee-bar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #0f172a;
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
}

/* ============================================
   CART NOTIFICATION
   ============================================ */
.cart-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #0f172a;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.cart-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-notification-content {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: transform 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: bold;
    color: #0f172a;
    display: block;
    margin-bottom: 2rem;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6D3FEA, #f59e0b);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0%; left: 100%; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .logo {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.85rem 1.25rem;
        grid-template-columns: 1fr auto 1fr;
    }
    
    .nav-left { order: 1; }
    .nav-center { order: 2; }
    .nav-right { order: 3; }
    
    .hamburger-text {
        display: none !important;
    }
    
    .hamburger {
        display: inline-flex !important;
    }
    
    .logo {
        font-size: 1.35rem;
        letter-spacing: 1.5px;
    }
    
    .header {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .logo,
    .nav-icon,
    .hamburger {
        color: #0f172a;
        text-shadow: none;
    }
    
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
    
    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .hero-prev { left: 1rem; }
    .hero-next { right: 1rem; }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-actions {
        flex-direction: column;
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cart-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
    }
}