/* ============================================
   DAYLI STORE - E-Commerce Clean Minimalist Bold
   Design System v1.0
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --black: #000000;
    --white: #FFFFFF;
    --page-bg: #FFFFFF;
    --product-card-bg: #F2F2F2;
    --announcement-bg: #000000;
    --badge-dark: #000000;
    --floating-btn: #000000;
    --text-primary: #000000;
    --text-secondary: #555555;
    --accent-red: #D32F2F;
    --text-inverse: #FFFFFF;
    --promo-highlight: #D32F2F;
    --border-light: #E0E0E0;

    /* Typography */
    --font-heading: 'Oswald', 'Arial Black', sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;

    /* Spacing */
    --gap: 16px;
    --container-max: 1400px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--page-bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    height: 32px;
    background-color: var(--announcement-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.announcement-bar p {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-inverse);
    letter-spacing: 0.5px;
    white-space: nowrap;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.header {
    height: 80px;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: var(--container-max);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
}

.header-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    color: var(--black);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--black);
}

.main-nav {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.icon-btn {
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: opacity 0.2s;
    position: relative;
}

.icon-btn:hover {
    opacity: 0.6;
}

.icon-btn.logged-in {
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
}

.auth-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
}

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    letter-spacing: 1px;
    width: fit-content;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--black);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.hero-image {
    background-color: var(--product-card-bg);
    position: relative;
    overflow: hidden;
}

.hero-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F2F2F2 0%, #E0E0E0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-bg::after {
    content: '';
}

.hero-logo {
    width: 70%;
    max-width: 340px;
    height: auto;
    background-color: var(--white);
    padding: 24px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border: 2px solid var(--black);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--black);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 32px;
    border: 2px solid var(--black);
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--black);
    color: var(--white);
}

/* ===== FEATURES BAR ===== */
.features-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-light);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    border-right: 1px solid var(--border-light);
    color: var(--black);
}

.feature-item:last-child {
    border-right: none;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-desc {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 48px 24px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-link {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.action-link:hover {
    opacity: 0.6;
}

/* ===== CATEGORIES ===== */
.categories-section {
    padding-bottom: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.category-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-image {
    aspect-ratio: 1;
    background-color: var(--product-card-bg);
    background-size: cover;
    background-position: center;
    position: relative;
    background: linear-gradient(135deg, #E8E8E8, #D0D0D0);
}

.category-carteras { background: linear-gradient(135deg, #E8E8E8, #D0D0D0); }
.category-billeteras { background: linear-gradient(135deg, #F0F0F0, #E0E0E0); }
.category-novedades { background: linear-gradient(135deg, #E5E5E5, #D5D5D5); }
.category-ofertas { background: linear-gradient(135deg, #F2F2F2, #ECECEC); }

.category-image.has-image {
    background-size: cover;
    background-position: center;
}

.category-image.is-rotating {
    animation: categoryFade 0.8s ease-in-out;
}

@keyframes categoryFade {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.category-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.1));
}

.category-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-count {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== PRODUCTS ===== */
.products-section {
    padding-bottom: 48px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: all 0.2s;
}

.filter-tab.active,
.filter-tab:hover {
    background-color: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.product-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image-container {
    background-color: var(--product-card-bg);
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image-placeholder {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: rgba(0,0,0,0.15);
    text-transform: uppercase;
}

.product-image-real {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--badge-dark);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background-color: var(--accent-red);
}

.product-wishlist {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    opacity: 0;
    transition: opacity 0.2s;
}

.product-card:hover .product-wishlist {
    opacity: 1;
}

.product-wishlist.active {
    color: var(--accent-red);
}

.product-content {
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-category {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.price-original {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.add-to-cart-btn {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--black);
    border-bottom: 2px solid var(--black);
    padding: 2px 0;
    transition: opacity 0.2s;
}

.add-to-cart-btn:hover {
    opacity: 0.6;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background-color: var(--black);
    padding: 80px 24px;
    text-align: center;
    margin: 48px 0;
}

.promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.promo-badge {
    background-color: var(--accent-red);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    letter-spacing: 1px;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    letter-spacing: 1px;
}

.promo-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.promo-banner .btn-primary {
    background-color: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.promo-banner .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
}

/* ===== NEWSLETTER ===== */
.newsletter {
    padding: 64px 24px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.newsletter-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-text {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
}

.newsletter-form {
    display: flex;
    width: 100%;
    margin-top: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid var(--black);
    border-right: none;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.newsletter-form .btn-primary {
    border-radius: 0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 64px 24px 24px;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-brand .brand-name {
    color: var(--white);
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--white);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--black);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.payment-badge {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 8px;
    letter-spacing: 0.5px;
}

/* ===== FLOATING CHAT ===== */
.floating-chat {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--floating-btn);
    color: var(--white);
    border-radius: 20px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.floating-chat:hover {
    transform: scale(1.05);
}

/* ===== CART DRAWER ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
}

.cart-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cart-close {
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    padding: 40px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: var(--product-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: rgba(0,0,0,0.2);
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.cart-item-price {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--black);
    transition: all 0.2s;
}

.qty-btn:hover {
    background-color: var(--black);
    color: var(--white);
}

.qty-value {
    font-family: var(--font-body);
    font-size: 13px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: var(--text-secondary);
    font-size: 18px;
    align-self: start;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subtotal-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.subtotal-amount {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    margin-top: 16px;
}

/* ===== CATEGORY PAGE BANNER ===== */
.page-banner {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 64px 24px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.banner-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.banner-subtitle {
    font-family: var(--font-body);
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* ===== RESULTS COUNT ===== */
.results-count {
    font-family: var(--font-body);
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
}

.empty-state p {
    font-family: var(--font-body);
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
}

/* ===== PRODUCT STOCK LABEL ===== */
.product-stock {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
    margin: 6px 0 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.product-stock.out {
    color: #c62828;
    background: #ffebee;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    background: #fafafa;
    min-height: 60vh;
    padding: 48px 24px 80px;
}

.checkout-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.checkout-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.checkout-back {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 14px;
    color: #666;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s;
}

.checkout-back:hover { color: #000; }

/* Carrito vacío */
.checkout-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    color: #999;
}

.checkout-empty svg { margin-bottom: 24px; color: #ccc; }

.checkout-empty h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #333;
}

.checkout-empty p {
    font-family: var(--font-body);
    font-size: 16px;
    color: #777;
    margin-bottom: 24px;
}

/* Layout: formulario + resumen */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

/* Secciones del formulario */
.checkout-section {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 24px;
}

.checkout-section-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.checkout-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #000;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.form-group textarea {
    resize: vertical;
    font-family: var(--font-body);
}

/* Métodos de pago */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.payment-option:hover { border-color: #999; }

.payment-option:has(input:checked) {
    border-color: #000;
    background: #f9f9f9;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.2s;
}

.payment-option:has(input:checked) .payment-radio {
    border-color: #000;
}

.payment-option:has(input:checked) .payment-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.payment-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-label strong {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.payment-label small {
    font-family: var(--font-body);
    font-size: 12px;
    color: #888;
}

/* Resumen del pedido */
.checkout-summary {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 28px;
    position: sticky;
    top: 24px;
}

.checkout-summary-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.checkout-item-image {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    background: #f2f2f2;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-placeholder {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #999;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.checkout-item-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.checkout-item-qty {
    font-family: var(--font-body);
    font-size: 12px;
    color: #888;
}

.checkout-item-price {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

/* Totales */
.checkout-totals {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: #555;
}

.checkout-total-final {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.checkout-confirm {
    width: 100%;
    margin-top: 20px;
    padding: 16px;
    font-size: 15px;
    letter-spacing: 1px;
}

.checkout-secure {
    text-align: center;
    font-family: var(--font-body);
    font-size: 12px;
    color: #888;
    margin-top: 14px;
}

/* Confirmación de pedido */
.checkout-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.checkout-success svg {
    color: #2e7d32;
    margin-bottom: 24px;
}

.checkout-success h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: #000;
}

.checkout-success p {
    font-family: var(--font-body);
    font-size: 16px;
    color: #555;
    max-width: 480px;
    margin-bottom: 8px;
}

/* ============================================
   MIS PEDIDOS - Página de usuario
   ============================================ */
.orders-page {
    background: #FFFFFF;
    padding: 40px 0 80px;
    min-height: 70vh;
}

.orders-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.checkout-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-back:hover { opacity: 0.6; }

.orders-page-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    margin-bottom: 8px;
}

.orders-page-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: #555;
    margin-bottom: 32px;
}

/* Tabs de filtro (compartidas admin + usuario) */
.orders-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.orders-tab {
    padding: 12px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.orders-tab:hover { color: #000; }

.orders-tab.active {
    color: #000;
    border-bottom-color: #000;
}

/* Lista de pedidos del usuario */
.user-orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-order-card {
    background: #F2F2F2;
    padding: 24px;
    border: 1px solid #E0E0E0;
}

.user-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.user-order-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-order-id {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

.user-order-date {
    font-family: var(--font-body);
    font-size: 13px;
    color: #555;
}

.user-order-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.user-order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.user-order-thumb {
    width: 56px;
    height: 56px;
    background: #FFFFFF;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-order-thumb-placeholder {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #000;
}

.user-order-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-order-item-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.user-order-item-qty {
    font-family: var(--font-body);
    font-size: 13px;
    color: #555;
}

.user-order-item-price {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.user-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid #000;
    flex-wrap: wrap;
    gap: 12px;
}

.user-order-payment {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-order-payment-label {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.user-order-totals {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-order-items-count {
    font-family: var(--font-body);
    font-size: 13px;
    color: #555;
}

.user-order-total {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

/* Estado vacío */
.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.orders-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.orders-empty h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 8px;
}

.orders-empty p {
    font-family: var(--font-body);
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
}

.orders-empty-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.orders-empty-btn:hover { opacity: 0.8; }

/* Login requerido */
.orders-login-required {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.orders-login-required h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 8px;
}

.orders-login-required p {
    font-family: var(--font-body);
    font-size: 14px;
    color: #555;
    margin-bottom: 24px;
}

.orders-login-required a {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #FFF;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-login-required a:hover { opacity: 0.8; }

/* ===== BADGES DE ESTADO (compartidos admin + usuario) ===== */
.order-status {
    display: inline-block;
    padding: 6px 14px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-pendiente {
    background: #FFF3CD;
    color: #856404;
}

.status-enviado {
    background: #D1ECF1;
    color: #0C5460;
}

.status-recibido {
    background: #D4EDDA;
    color: #155724;
}

/* ===== MODAL DETALLE DE PEDIDO (admin) ===== */
.order-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.order-detail-modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #000;
}

.order-detail-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

.order-detail-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    padding: 0 4px;
}

.order-detail-close:hover { opacity: 0.5; }

.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0E0E0;
}

.order-detail-info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 14px;
}

.order-detail-info-row span:first-child {
    color: #555;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.order-detail-info-row span:last-child {
    color: #000;
    font-weight: 600;
    text-align: right;
}

.order-detail-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.order-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.order-detail-thumb {
    width: 48px;
    height: 48px;
    background: #F2F2F2;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-detail-thumb-placeholder {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #000;
}

.order-detail-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-detail-item-name {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-detail-item-qty {
    font-family: var(--font-body);
    font-size: 13px;
    color: #555;
}

.order-detail-item-subtotal {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.order-detail-totals {
    margin-top: 8px;
}

.order-detail-total-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--font-body);
    font-size: 14px;
    color: #555;
}

.order-detail-total-row.final {
    border-top: 2px solid #000;
    margin-top: 8px;
    padding-top: 12px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

.order-detail-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.order-detail-date {
    font-family: var(--font-body);
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .orders-page-title { font-size: 28px; }
    .user-order-footer { flex-direction: column; align-items: flex-start; }
    .user-order-totals { width: 100%; justify-content: space-between; }
    .orders-tab { padding: 10px 14px; font-size: 13px; }
}

.checkout-order-id {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: #888;
    letter-spacing: 1px;
    margin-bottom: 32px !important;
}

.checkout-success .btn-primary {
    padding: 14px 40px;
}

/* ===== RESPONSIVE CHECKOUT ===== */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
        order: -1;
    }

    .checkout-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .checkout-section,
    .checkout-summary {
        padding: 20px;
    }

    .checkout-page {
        padding: 32px 16px 60px;
    }
}

.empty-state .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.empty-state .btn-primary:hover {
    opacity: 0.8;
}

/* ===== RESPONSIVE BANNER ===== */
@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 14px;
    }
}
}

.cart-note {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: var(--black);
    color: var(--white);
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item:nth-child(2) {
        border-right: none;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        z-index: 150;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .brand-name {
        font-size: 20px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 48px 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image {
        min-height: 300px;
    }

    .hero-logo {
        width: 60%;
        max-width: 240px;
        padding: 16px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .promo-title {
        font-size: 32px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .floating-chat span {
        display: none;
    }

    .floating-chat {
        padding: 14px;
        border-radius: 50%;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input {
        border-right: 2px solid var(--black);
    }
}

@media (max-width: 480px) {
    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .features-bar {
        grid-template-columns: 1fr;
    }

    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}
