:root {
    --bg-dark: #0b0f19;
    --bg-card: #141b2d;
    --border-color: #263352;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    
    --accent-teal: #00f2fe;
    --accent-blue: #0070f3;
    --accent-red: #ff4757;
    --accent-orange: #ff9f43;
    
    --font-main: 'Outfit', sans-serif;
    --border-radius: 12px;
    --shadow-premium: 0 8px 30px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* HEADER */
.store-header {
    background-color: rgba(20, 27, 45, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

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

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

.brand-logo {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #ffffff, #88d3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.cart-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.cart-badge {
    background: var(--accent-teal);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.4);
}

/* MAIN CONTENT */
.store-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* PROMO BANNER */
.promo-banner {
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.8), rgba(11, 15, 25, 0.9)), 
                radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
}

.promo-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff, var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.promo-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
}

/* CATEGORIAS */
.categories-section {
    margin-bottom: 25px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.category-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.category-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.category-tab.active {
    background: var(--accent-teal);
    color: #000;
    border-color: var(--accent-teal);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

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

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--accent-teal);
    transform: translateY(-5px);
}

.product-image-container {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--accent-teal);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.add-btn {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    border: none;
    color: #000;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15);
}

.add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.out-of-stock-badge {
    background: rgba(255, 71, 87, 0.15);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.owner-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* CARRITO DRAWER */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    right: 0;
}

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

.drawer-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

.drawer-body {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-empty-state {
    text-align: center;
    margin: auto;
    color: var(--text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

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

.cart-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-teal);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-teal);
}

.qty-val {
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.summary-row.total-row {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 6px;
}

/* CHECKOUT OVERLAY */
.checkout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.checkout-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

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

.checkout-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.checkout-form {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.form-section:last-child {
    border: none;
    padding-bottom: 0;
}

.form-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    border-left: 3px solid var(--accent-teal);
    padding-left: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    width: 100%;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-teal);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

textarea.form-control {
    resize: none;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.delivery-option {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
    position: relative;
}

.delivery-option input[type="radio"] {
    position: absolute;
    top: 15px;
    right: 15px;
    accent-color: var(--accent-teal);
}

.delivery-option.active {
    border-color: var(--accent-teal);
    background-color: rgba(0, 242, 254, 0.03);
}

.delivery-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.delivery-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.bank-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.bank-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-field span {
    color: var(--text-secondary);
}

.btn-copy {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    background: var(--accent-teal);
    color: #000;
    border-color: var(--accent-teal);
}

.text-accent {
    color: var(--accent-teal);
    font-weight: 800;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 15, 25, 0.5);
}

/* BOTONES GENERALES */
.btn {
    font-family: var(--font-main);
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-block {
    width: 100%;
}

/* SUCCESS OVERLAY */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

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

.success-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-premium);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(40, 199, 111, 0.15);
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.success-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}

.success-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.order-summary-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.order-summary-box p {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.order-summary-box p:last-child {
    margin-bottom: 0;
}

.order-summary-box span {
    color: var(--accent-teal);
    font-weight: 700;
}

.success-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FOOTER */
.store-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 60px;
}

/* RESPONSIVE DESIGN */
@media(max-width: 768px) {
    .promo-banner {
        padding: 25px;
    }
    
    .promo-content h2 {
        font-size: 1.5rem;
    }
    
    .delivery-options {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .checkout-container {
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
}
