/* Import Lora & Lato fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --main-foreground: #916b5e;
    --main-background: #ffffff;
    --primary-color: #dfcab7;
    --accent-color: #dfcab7;
    --adbar-background: #916b5e;
    --adbar-foreground: #ffffff;
    --footer-background: #ffffff;
    --footer-foreground: #916b5e;
    --gray-light: #fdfbf7;
    --gray-medium: #e8e2d9;
    --gray-dark: #b8a69e;
    --shadow-soft: 0 4px 20px rgba(145, 107, 94, 0.08);
    
    --heading-font: 'Lora', serif;
    --body-font: 'Lato', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--body-font);
    color: var(--main-foreground);
    background-color: var(--main-background);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Page Intro Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.animate-slide-down {
    animation: slideDown 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--gray-light);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--main-foreground);
}

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

/* PROMO BAR */
.promo-bar {
    background-color: var(--adbar-background);
    color: var(--adbar-foreground);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1000;
}

.promo-track {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

.promo-item {
    display: inline-block;
    margin-right: 50px;
    text-transform: uppercase;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* HEADER */
header {
    background-color: var(--main-background);
    border-bottom: 1px solid var(--gray-medium);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: var(--shadow-soft);
    padding: 5px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 48px;
    object-fit: contain;
}

/* NAVIGATION */
.nav-desktop {
    display: flex;
    gap: 30px;
}

.nav-item {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 0;
    cursor: pointer;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--main-background);
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border-radius: 2px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--gray-medium);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    text-transform: capitalize;
    font-weight: 600;
}

.dropdown-link:hover {
    background-color: var(--gray-light);
    color: var(--main-foreground);
    padding-left: 25px;
}

/* HEADER ICONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--main-foreground);
    position: relative;
    padding: 5px;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    color: var(--gray-dark);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--main-foreground);
    color: white;
    font-size: 9px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 75vh;
    background-color: var(--gray-light);
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.25), rgba(0,0,0,0.65));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.hero-subtitle {
    font-family: var(--body-font);
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 52px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.btn-premium {
    background-color: var(--main-foreground);
    color: white;
    padding: 15px 35px;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-premium:hover {
    background-color: var(--primary-color);
    color: var(--main-foreground);
    transform: translateY(-2px);
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    margin: 60px 0 40px 0;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--main-foreground);
    margin: 15px auto 0 auto;
}

/* BANNERS GRID */
.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-card {
    height: 400px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--gray-medium);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

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

.banner-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(145, 107, 94, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: var(--main-foreground);
    background: linear-gradient(rgba(0,0,0,0), rgba(255, 255, 255, 0.9));
}

.banner-card-title {
    font-family: var(--heading-font);
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-card-link {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: underline;
}

/* PRODUCTS GRID */
.products-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
}

.catalog-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--gray-medium);
    padding: 8px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    color: var(--main-foreground);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--main-foreground);
    color: white;
    border-color: var(--main-foreground);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* PRODUCT CARD */
.product-card {
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(145, 107, 94, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(145, 107, 94, 0.12);
}

.product-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    background-color: var(--gray-light);
    cursor: pointer;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.product-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-pill {
    font-size: 8px;
    font-weight: 700;
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.label-pill.offer {
    background-color: var(--primary-color);
    color: var(--main-foreground);
}

.label-pill.free-shipping {
    background-color: var(--main-foreground);
    color: white;
}

/* Badges overlay on product images (Pocos pares, Top ventas) */
.product-badge-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-stamp {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    color: white;
    font-family: var(--heading-font);
}

.badge-stamp.pocos-pares {
    background-color: #e67e22; /* Premium warm orange */
    border: 1px solid rgba(255,255,255,0.15);
}

.badge-stamp.top-ventas {
    background-color: #2980b9; /* Deep premium blue */
    border: 1px solid rgba(255,255,255,0.15);
}

.product-info {
    padding: 22px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--gray-dark);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.product-name {
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--main-foreground);
    line-height: 1.4;
    flex-grow: 1;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-foreground);
    margin-bottom: 15px;
}

.product-options {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-action-btn {
    width: 100%;
    background-color: var(--main-foreground);
    color: white;
    border: none;
    padding: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.3s ease, letter-spacing 0.3s ease, transform 0.2s ease;
}

.product-action-btn:hover:not(:disabled) {
    background-color: var(--gray-dark);
    letter-spacing: 2.2px;
}

.product-action-btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* SLIDING DRAWER SYSTEM */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(145, 107, 94, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--main-background);
    z-index: 1001;
    box-shadow: -5px 0 30px rgba(145, 107, 94, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.drawer.active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    color: var(--main-foreground);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-dark);
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 20px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-medium);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-medium);
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--main-foreground);
}

.qty-input {
    width: 35px;
    border: none;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--main-foreground);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-dark);
    font-size: 11px;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 10px;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--gray-medium);
    background-color: var(--gray-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Shipping Goal Bar */
.shipping-bar-container {
    background: var(--gray-medium);
    height: 6px;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.shipping-bar {
    background-color: var(--main-foreground);
    height: 100%;
    width: 0%;
    transition: width 0.4s ease;
}

.shipping-text {
    font-size: 11px;
    margin-top: 5px;
    font-weight: 600;
    color: var(--main-foreground);
}

/* FLOATING AI CHAT BUBBLE & DRAWER */
.ai-bubble-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--main-foreground);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(145, 107, 94, 0.4);
    cursor: pointer;
    z-index: 998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition-smooth);
}

.ai-bubble-btn:hover {
    transform: scale(1.1);
    background-color: var(--gray-dark);
}

/* Chat Message Styling */
.chat-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 80%;
    word-wrap: break-word;
}

.chat-bubble.ai {
    background-color: var(--primary-color);
    color: var(--main-foreground);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-bubble.user {
    background-color: var(--main-foreground);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#ai-messages-container {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Talk to human button link */
.human-support-btn {
    background-color: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 0;
    transition: var(--transition-smooth);
}

.human-support-btn:hover {
    background-color: #1ebd56;
    color: white;
}

/* FOOTER */
footer {
    background-color: var(--footer-background);
    color: var(--footer-foreground);
    padding: 60px 20px 30px 20px;
    border-top: 1px solid var(--gray-medium);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column-title {
    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--gray-dark);
    padding-left: 5px;
}

.newsletter-input-group {
    display: flex;
    border-bottom: 2px solid var(--main-foreground);
    padding-bottom: 5px;
}

.newsletter-input {
    border: none;
    background: none;
    flex: 1;
    font-family: var(--body-font);
    font-size: 13px;
    padding: 8px 0;
    outline: none;
    color: var(--main-foreground);
}

.newsletter-input::placeholder {
    color: var(--gray-dark);
}

.newsletter-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--main-foreground);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid var(--gray-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    color: var(--main-foreground);
    font-weight: 600;
}

/* MOBILE MENU TOGGLE VISIBILITY */
#mobile-menu-toggle {
    display: none;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 992px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .banner-card {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    #mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .logo img {
        height: 38px;
    }
}

/* INFO / FEATURES BADGES SECTION */
.info-section {
    padding: 60px 20px;
    background-color: var(--gray-light);
    border-top: 1px solid var(--gray-medium);
    border-bottom: 1px solid var(--gray-medium);
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--main-foreground);
    transition: var(--transition-smooth);
}

.info-item.link-item:hover {
    transform: translateY(-3px);
    color: var(--gray-dark);
}

.info-icon {
    font-size: 36px;
    color: var(--main-foreground);
}

.info-title {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-desc {
    font-size: 13px;
    color: var(--gray-dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .info-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* MULTI-BRAND CATEGORIES BANNERS */
.brand-banners-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-banners-container {
    display: flex;
    gap: 20px;
}

.brand-col-left {
    flex: 5;
}

.brand-col-right {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.brand-row-split {
    display: flex;
    gap: 20px;
}

.brand-row-split .square-banner {
    flex: 1;
}

.textbanner {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--gray-medium);
}

.textbanner .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s ease;
}

.textbanner:hover .banner-img {
    transform: scale(1.03);
}

.big-banner {
    height: 620px;
}

.wide-banner {
    height: 300px;
}

.square-banner {
    height: 300px;
}

.textbanner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.1), rgba(0, 0, 0, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.textbanner-title {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.btn-line {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .brand-banners-container {
        flex-direction: column;
    }
    
    .brand-row-split {
        flex-direction: column;
    }
    
    .big-banner, .wide-banner, .square-banner {
        height: 250px;
    }
}

/* ==========================================================================
   ADMIN PANEL STYLING (TIENDANUBE INSPIRED)
   ========================================================================== */
.admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1005;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-panel-box {
    background-color: #f4f6f9;
    width: 100%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--gray-medium);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-logo-wrapper img {
    height: 38px;
    object-fit: contain;
}

.admin-logo-wrapper h2 {
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    color: var(--main-foreground);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats Summary */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 28px;
    color: var(--main-foreground);
    background-color: rgba(145, 107, 94, 0.08);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gray-dark);
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--main-foreground);
    font-family: var(--heading-font);
}

/* Actions Bar */
.admin-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--gray-medium);
}

.admin-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.admin-search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-dark);
}

.admin-search-wrapper input {
    width: 100%;
    padding: 10px 15px 10px 38px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    outline: none;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--main-foreground);
}

.admin-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-admin-action {
    background-color: #ffffff;
    color: var(--main-foreground);
    border: 1px solid var(--gray-medium);
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-admin-action:hover {
    background-color: var(--gray-light);
}

.btn-admin-action.primary {
    background-color: var(--main-foreground);
    color: #ffffff;
    border-color: var(--main-foreground);
}

.btn-admin-action.primary:hover {
    background-color: var(--gray-dark);
}

.btn-admin-action.danger {
    color: #c0392b;
    border-color: #f5c6cb;
}

.btn-admin-action.danger:hover {
    background-color: #f8d7da;
}

/* Products Table */
.admin-table-container {
    background: #ffffff;
    border: 1px solid var(--gray-medium);
    border-radius: 6px;
    overflow-x: auto;
    flex: 1;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-medium);
    vertical-align: middle;
}

.admin-table th {
    background-color: #fcfcfc;
    font-weight: 700;
    color: var(--gray-dark);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
}

.admin-table tbody tr:hover {
    background-color: #fafbfc;
}

.admin-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--gray-medium);
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
}

.btn-table-action {
    background: none;
    border: 1px solid var(--gray-medium);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: var(--main-foreground);
    transition: var(--transition-smooth);
}

.btn-table-action:hover {
    background-color: var(--gray-light);
}

.btn-table-action.delete {
    color: #c0392b;
    border-color: #f5c6cb;
}

.btn-table-action.delete:hover {
    background-color: #f8d7da;
}

/* MODAL OVERLAYS */
.admin-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    z-index: 1010;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-modal-box {
    background-color: #ffffff;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-modal-header {
    border-bottom: 1px solid var(--gray-medium);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 700;
    color: var(--main-foreground);
}

.admin-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-dark);
    text-transform: uppercase;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    outline: none;
    font-family: var(--body-font);
    font-size: 13px;
    color: var(--main-foreground);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--main-foreground);
}

.form-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-form-cancel {
    background: none;
    border: 1px solid var(--gray-medium);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    color: var(--main-foreground);
}

.btn-form-save {
    background-color: var(--main-foreground);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
}

.btn-form-save:hover {
    background-color: var(--gray-dark);
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* Product Size Button Selection Styling */
.size-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid var(--gray-medium);
    color: var(--main-foreground);
    font-family: var(--body-font);
    font-weight: 700;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.size-btn:hover:not(:disabled) {
    border-color: var(--main-foreground);
    background-color: var(--gray-light);
}

.size-btn.active {
    border: 2px solid var(--main-foreground) !important;
    background-color: #ffffff;
    color: var(--main-foreground);
}

.size-btn:disabled, .size-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background-color: #f7f7f7;
    border-color: #e5e5e5;
    color: var(--gray-dark);
    text-decoration: line-through;
}

/* Mobile Optimization Styles (max-width: 576px) */
@media (max-width: 576px) {
    /* 2 Columns on Product Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    .products-container {
        padding: 0 12px 40px 12px !important;
    }
    
    /* Product card adjustments */
    .product-card {
        border-radius: 8px !important;
        overflow: hidden;
    }
    
    .product-info {
        padding: 12px 10px !important;
    }
    
    .product-name {
        font-size: 13px !important;
        margin-bottom: 4px !important;
        height: 38px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .product-price {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }
    
    .product-action-btn {
        padding: 8px !important;
        font-size: 10px !important;
        letter-spacing: 0.5px !important;
    }

    /* Modal Bottom Sheet on Mobile */
    .admin-modal-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }
    
    .admin-modal-box {
        max-height: 85vh !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 12px 12px 0 0 !important;
        margin: 0 !important;
    }
    
    .admin-form {
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* Header adjustments */
    .header-container {
        padding: 10px 12px !important;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .hero {
        height: 50vh !important;
    }
    
    .hero-title {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 11px !important;
        letter-spacing: 2px !important;
    }
    
    .btn-premium {
        padding: 10px 20px !important;
        font-size: 10px !important;
    }
    
    /* Drawer width */
    .drawer {
        max-width: 85vw !important;
    }
    
    /* Size Selector buttons */
    .size-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 11px !important;
    }
}

