/* ============================================
   TEA DIDACTIC - Main Stylesheet
   Modern, colorful, playful design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Open+Sans:wght@300;400;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --primary: #9575CD;
    --secondary: #68C5B8;
    --accent1: #F9DC6E;
    --accent2: #F4956A;
    --accent3: #72C4D8;
    --success: #72C49A;
    --warning: #F5C97A;
    --danger: #F08A8A;
    --dark: #3D4B5C;
    --light-bg: #FDF9F6;
    --white: #FFFFFF;
    --gray: #7A8A99;
    --light-gray: #EEE9E4;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent2);
}

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

ul {
    list-style: none;
}

/* ---- UTILITY CLASSES ---- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent2 { color: var(--accent2) !important; }
.text-muted { color: var(--gray) !important; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #B59BE0);
    color: white;
    box-shadow: 0 4px 15px rgba(149,117,205,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149,117,205,0.45);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), #7DC8C0);
    color: white;
    box-shadow: 0 4px 15px rgba(104,197,184,0.35);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(104,197,184,0.45);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-accent2 {
    background: linear-gradient(135deg, var(--accent2), #C2B0F0);
    color: white;
    box-shadow: 0 4px 15px rgba(149,117,205,0.35);
}

.btn-accent2:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(149,117,205,0.45);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #7DCBA8);
    color: white;
    box-shadow: 0 4px 15px rgba(46,204,113,0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #E87878);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header .title-line {
    display: inline-block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent3));
    margin: 12px auto 0;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: #7C5CB8;
    box-shadow: 0 4px 20px rgba(149,117,205,0.40);
}

/* En páginas sin hero-video, siempre morado */
.navbar.navbar-solid {
    background: #7C5CB8;
    box-shadow: 0 4px 20px rgba(149,117,205,0.40);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: rgba(255,255,255,0.90);
    padding: 8px 14px;
    border-radius: 50px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.15);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 999;
}

.dropdown-item {
    display: block;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--light-bg);
    color: var(--primary);
    padding-left: 20px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.18);
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.30);
}

.cart-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-2px);
    color: white;
}

.cart-count {
    background: var(--accent1);
    color: var(--dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Espaciador para páginas sin hero (navbar fixed) */
.navbar-spacer {
    height: 68px;
}

/* ---- HERO SECTION ---- */
.hero {
    padding: 120px 20px 160px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,107,53,0.75) 0%, rgba(44,62,80,0.55) 50%, rgba(108,99,255,0.72) 100%);
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-title span {
    color: var(--accent1);
    display: block;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: white;
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    color: var(--primary);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    padding: 15px 36px;
    border-radius: 50px;
    font-size: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    color: white;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

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

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent1);
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.85;
}

/* ---- SECTION STYLES ---- */
.section {
    padding: 80px 0;
}

.section-light {
    background: linear-gradient(160deg, #E8F8F5 0%, #F5EFFF 100%);
}

.section-gray {
    background: linear-gradient(160deg, #EDE7F6 0%, #E3F6F5 100%);
}

/* ---- CATEGORY CARDS ---- */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.category-card {
    flex: 0 1 200px;
    min-width: 160px;
    max-width: 220px;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.category-card .cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    backdrop-filter: blur(5px);
}

.category-card .cat-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.category-card .cat-count {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.cat-orange { background: linear-gradient(135deg, #9575CD, #B59BE0); }
.cat-teal { background: linear-gradient(135deg, #68C5B8, #7DC8C0); }
.cat-purple { background: linear-gradient(135deg, #9575CD, #C2B0F0); }
.cat-pink { background: linear-gradient(135deg, #F4A8C0, #F7C4D4); }
.cat-yellow { background: linear-gradient(135deg, #F5C97A, #F9DFA0); }
.cat-green { background: linear-gradient(135deg, #72C49A, #7DCBA8); }
.cat-blue { background: linear-gradient(135deg, #72A8D8, #6898C8); }
.cat-red { background: linear-gradient(135deg, #F08A8A, #E87878); }

/* ---- PRODUCT CARDS ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-sale {
    background: var(--danger);
    color: white;
}

.badge-new {
    background: var(--secondary);
    color: white;
}

.badge-featured {
    background: var(--accent1);
    color: var(--dark);
}

.badge-out {
    background: var(--gray);
    color: white;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--light-bg);
    aspect-ratio: 1 / 1;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-quick-btns {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 10px;
    gap: 8px;
    transition: var(--transition);
    background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}

.product-card:hover .product-quick-btns {
    bottom: 0;
}

.product-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.product-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
}

.price-old {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--danger);
    background: rgba(240,138,138,0.15);
    padding: 2px 8px;
    border-radius: 50px;
}

.product-footer {
    display: flex;
    gap: 8px;
}

.btn-add-cart {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--accent3));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(149,117,205,0.35);
}

.btn-add-cart:disabled {
    background: var(--light-gray);
    color: var(--gray);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-view-product {
    background: var(--light-bg);
    color: var(--dark);
    border: none;
    border-radius: 50px;
    padding: 10px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.btn-view-product:hover {
    background: var(--light-gray);
    color: var(--primary);
}

/* ---- FEATURED SECTION ---- */
.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

/* ---- WHY US SECTION ---- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.why-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ---- FOOTER ---- */
.footer {
    background: linear-gradient(160deg, #3D2B6B 0%, #5C4494 60%, #4A3F80 100%);
    color: white;
    padding-top: 60px;
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    transform: scaleY(-1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-fb { background: #1877F2; }
.social-ig { background: linear-gradient(45deg, #F09433, #E6683C, #DC2743, #CC2366, #BC1888); }
.social-wa { background: #25D366; }
.social-yt { background: #FF0000; }

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 6px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom span {
    color: var(--primary);
}

/* ---- WHATSAPP BUTTON ---- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 58px;
    height: 58px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    box-shadow: 0 6px 25px rgba(37,211,102,0.5);
    transition: var(--transition);
    text-decoration: none;
    animation: pulse-wa 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    color: white;
    box-shadow: 0 10px 35px rgba(37,211,102,0.6);
}

@keyframes pulse-wa {
    0% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 6px 35px rgba(37,211,102,0.8), 0 0 0 12px rgba(37,211,102,0.1); }
    100% { box-shadow: 0 6px 25px rgba(37,211,102,0.5); }
}

/* ---- BREADCRUMBS ---- */
.breadcrumb-section {
    background: white;
    border-bottom: 1px solid var(--light-gray);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: var(--gray);
}

.breadcrumb-item a {
    color: var(--gray);
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 600;
}

.breadcrumb-sep {
    color: var(--light-gray);
    font-size: 10px;
}

/* ---- PAGE HEADER ---- */
.page-header {
    background: linear-gradient(135deg, #7C5CB8 0%, #9575CD 50%, #68C5B8 100%);
    padding: 50px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3Ccircle cx='5' cy='5' r='5'/%3E%3Ccircle cx='55' cy='55' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.page-header p {
    font-size: 1rem;
    opacity: 0.75;
}

/* ---- SIDEBAR ---- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i {
    color: var(--primary);
}

.cat-filter-list li {
    margin-bottom: 4px;
}

.cat-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    color: var(--dark);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.cat-filter-link:hover, .cat-filter-link.active {
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 600;
    padding-left: 16px;
}

.cat-count-badge {
    background: var(--light-gray);
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 11px;
    color: var(--gray);
}

/* ---- FILTER BAR ---- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-bar-left {
    font-size: 14px;
    color: var(--gray);
}

.filter-bar-left strong {
    color: var(--dark);
    font-family: var(--font-heading);
}

.filter-bar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-select {
    padding: 8px 14px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--dark);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-select:focus {
    border-color: var(--primary);
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(149,117,205,0.35);
}

.page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ---- PRODUCT DETAIL ---- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 90px;
}

.gallery-main {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--light-bg);
    aspect-ratio: 1;
}

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

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.gallery-thumb:hover, .gallery-thumb.active {
    border-color: var(--primary);
}

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

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 14px;
    color: var(--dark);
}

.product-sku {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
}

.product-detail-price .price-current {
    font-size: 2.2rem;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
}

.stock-in {
    background: rgba(114,196,154,0.15);
    color: var(--success);
}

.stock-out {
    background: rgba(240,138,138,0.15);
    color: var(--danger);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    background: var(--light-bg);
    border-radius: 50px;
    display: inline-flex;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--light-gray);
    color: var(--primary);
}

.qty-input {
    width: 56px;
    text-align: center;
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    color: var(--dark);
    outline: none;
}

.product-detail-btns {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-description {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.product-description h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.product-description p,
.product-description ul,
.product-description ol {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ---- CART ---- */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-table {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    padding: 16px 20px;
    background: var(--light-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 40px;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    align-items: center;
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(255,107,53,0.02);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--light-bg);
}

.cart-product-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
}

.cart-product-sku {
    font-size: 12px;
    color: var(--gray);
}

.cart-qty-input {
    width: 60px;
    text-align: center;
    padding: 6px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.cart-qty-input:focus {
    border-color: var(--primary);
    outline: none;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    padding: 6px;
    border-radius: 8px;
}

.btn-remove:hover {
    color: var(--danger);
    background: rgba(231,76,60,0.08);
}

.cart-summary {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--light-gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--gray);
}

.summary-row.total {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark);
    padding-top: 14px;
    border-top: 2px solid var(--light-gray);
    margin-top: 6px;
}

.summary-row.discount {
    color: var(--success);
}

.coupon-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.coupon-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 13px;
    outline: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.coupon-input:focus {
    border-color: var(--primary);
}

.coupon-info {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 14px;
    display: none;
}

.coupon-info.success {
    background: rgba(114,196,154,0.15);
    color: var(--success);
    display: block;
}

.coupon-info.error {
    background: rgba(240,138,138,0.15);
    color: var(--danger);
    display: block;
}

/* ---- CHECKOUT ---- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 36px;
    box-shadow: var(--shadow);
}

.checkout-form-card h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--dark);
    padding-bottom: 14px;
    border-bottom: 2px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-label span {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark);
    outline: none;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(240,138,138,0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.checkout-summary {
    position: sticky;
    top: 90px;
}

.order-summary-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.order-summary-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--light-gray);
}

.order-item {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--light-gray);
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--light-bg);
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    color: var(--dark);
}

.order-item-qty {
    font-size: 12px;
    color: var(--gray);
}

.order-item-price {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary);
    font-size: 14px;
}

.payment-methods {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.payment-methods h4 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.payment-method-logo {
    max-height: 40px;
    margin-bottom: 12px;
}

/* ---- TOAST NOTIFICATIONS ---- */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--primary);
}

.toast.fade-out {
    animation: toastOut 0.3s ease forwards;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--danger); }
.toast.warning .toast-icon { color: var(--warning); }
.toast-icon { color: var(--primary); }

.toast-message {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    color: var(--dark);
    flex: 1;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(80px); }
}

/* ---- LOADING SPINNER ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s ease-in-out infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.loading-overlay .spinner-lg {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

.empty-state i {
    font-size: 64px;
    color: var(--light-gray);
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark);
}

/* ---- WEBPAY RESULT ---- */
.result-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-hover);
    text-align: center;
    max-width: 600px;
    margin: 60px auto;
}

.result-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.result-icon.success {
    background: rgba(46,204,113,0.15);
    color: var(--success);
}

.result-icon.error {
    background: rgba(231,76,60,0.15);
    color: var(--danger);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .layout-with-sidebar {
        grid-template-columns: 240px 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr 320px;
    }

    .checkout-layout {
        grid-template-columns: 1fr 360px;
    }
}

@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    .layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .checkout-summary {
        position: static;
    }

    .cart-table-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        border-top: 2px solid var(--light-gray);
        gap: 4px;
        z-index: 100;
    }

    .navbar-nav.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        position: fixed;
    }
    .navbar:not(.scrolled) .navbar-nav {
        background: #7C5CB8;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero {
        padding: 70px 20px 110px;
    }

    .hero-stats {
        gap: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .categories-grid {
        gap: 16px;
    }
    .category-card {
        flex: 0 1 calc(50% - 16px);
        min-width: 140px;
        max-width: calc(50% - 16px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .featured-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .checkout-form-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ---- TESTIMONIALS ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: Georgia, serif;
    font-size: 80px;
    color: var(--light-gray);
    line-height: 1;
}

.testimonial-stars {
    color: var(--accent1);
    margin-bottom: 12px;
    font-size: 15px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
}

.testimonial-role {
    font-size: 12px;
    color: var(--gray);
}

/* ---- NEWSLETTER ---- */
.newsletter-section {
    background: linear-gradient(135deg, #4A3F80 0%, #9575CD 55%, #68C5B8 100%);
    padding: 80px 20px 90px;
    position: relative;
    overflow: hidden;
    color: white;
}

.newsletter-wave-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: block;
}

/* formas decorativas flotantes */
.nl-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 7s ease-in-out infinite;
}
.nl-shape-1 {
    width: 280px; height: 280px;
    background: var(--accent1);
    top: -80px; left: -60px;
    animation-delay: 0s;
}
.nl-shape-2 {
    width: 180px; height: 180px;
    background: white;
    bottom: -40px; right: 10%;
    animation-delay: 2s;
}
.nl-shape-3 {
    width: 120px; height: 120px;
    background: var(--secondary);
    top: 40%; right: 35%;
    animation-delay: 4s;
}

/* layout dos columnas */
.newsletter-inner {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* -- columna izquierda -- */
.newsletter-left {
    flex: 1;
}

.nl-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.nl-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.nl-subtitle {
    font-size: 1rem;
    opacity: 0.88;
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 400px;
}

.nl-benefits {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nl-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
}

.nl-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* -- columna derecha: tarjeta -- */
.newsletter-right {
    flex: 0 0 360px;
}

.nl-card {
    background: white;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
    z-index: 2;
}

.nl-card-icon {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 26px;
    color: white;
    box-shadow: 0 8px 24px rgba(149,117,205,0.35);
}

.nl-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
}

.nl-card-sub {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nl-input-wrap {
    position: relative;
}

.nl-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 13px;
}

.nl-input {
    width: 100%;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 12px 14px 12px 38px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: #F8F9FA;
}

.nl-input:focus {
    border-color: var(--accent2);
    background: white;
    box-shadow: 0 0 0 3px rgba(149,117,205,0.15);
}

.nl-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    color: white;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(149,117,205,0.30);
    margin-top: 4px;
}

.nl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(149,117,205,0.40);
}

.nl-privacy {
    font-size: 11px;
    color: var(--gray);
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* responsive newsletter */
@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        gap: 40px;
    }
    .newsletter-right {
        flex: unset;
        width: 100%;
        max-width: 400px;
    }
    .nl-card {
        padding: 30px 24px;
    }
    .nl-subtitle {
        max-width: 100%;
    }
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 998;
    width: 44px;
    height: 44px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-top:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ---- MISC ---- */
.divider {
    border: none;
    height: 2px;
    background: var(--light-gray);
    margin: 30px 0;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    background: var(--light-bg);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: rgba(114,196,154,0.15); color: #7DCBA8; border: 1px solid rgba(114,196,154,0.35); }
.alert-error { background: rgba(240,138,138,0.15); color: #E87878; border: 1px solid rgba(240,138,138,0.35); }
.alert-info { background: rgba(114,168,216,0.15); color: #6898C8; border: 1px solid rgba(114,168,216,0.35); }
.alert-warning { background: rgba(243,156,18,0.1); color: #E67E22; border: 1px solid rgba(243,156,18,0.3); }

/* ---- CART MINI PREVIEW ---- */
.cart-preview-empty {
    text-align: center;
    padding: 30px;
    color: var(--gray);
    font-size: 14px;
    font-family: var(--font-heading);
}

/* ---- NAVBAR USER & ADMIN BUTTONS ---- */
.navbar-icon-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    color: white;
}
.navbar-admin-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
}
.navbar-admin-btn:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}
.navbar-user-btn {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
}
.navbar-user-btn:hover {
    background: rgba(255,255,255,0.30);
    color: white;
}

/* User dropdown */
.user-dropdown { position: relative; }
.user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 8px;
    min-width: 190px;
    z-index: 1001;
}
.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.open .user-dropdown-menu { display: block; }
.user-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.15s;
}
.user-dropdown-menu a:hover { background: var(--light-bg); color: var(--primary); }
.user-dropdown-menu .divider { height: 1px; background: var(--light-gray); margin: 6px 8px; }
/* ---- NAVBAR SEARCH BOX ---- */
.navbar-search {
    position: relative;
}
.search-toggle {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.search-toggle:hover {
    background: rgba(255,255,255,0.28);
    color: white;
}
.search-toggle:hover {
    background: rgba(255,255,255,0.30) !important;
}
.search-box {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.20);
    padding: 6px 6px 6px 20px;
    min-width: 320px;
    z-index: 1100;
    align-items: center;
}

.search-box.open {
    display: flex;
}

.search-box form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 6px;
}

.search-box input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    padding: 6px 0;
}

.search-box input[type="text"]::placeholder {
    color: var(--gray);
    font-weight: 400;
}

.search-box button[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.search-box button[type="submit"]:hover {
    background: #7C5CB8;
}

.search-suggestions {
    display: none;
}

@media (max-width: 768px) {
    .search-box {
        right: -60px;
        min-width: 260px;
    }
}