/* ══════════════════════════════════════
   DESKTOP COMPONENTS - PREMIUM REDESIGN
   ══════════════════════════════════════ */

/* ── Buttons - Premium Feel ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-bounce);
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px -10px rgba(var(--primary-rgb), 0.5);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 2px solid var(--gray-200);
    color: var(--gray-800);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-ghost {
    color: var(--gray-600);
    background: transparent;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--gray-600);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* ── Product Cards - Appetizing & Clean ── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition-bounce);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: var(--gray-200);
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-50);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

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

.product-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}

.product-badge.badge-promo {
    background: rgba(239, 68, 68, 0.9);
    color: var(--white);
}

.product-badge.badge-label {
    background: rgba(255, 255, 255, 0.9);
    color: var(--gray-900);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px dashed var(--gray-100);
}

.product-price-group {
    display: flex;
    flex-direction: column;
}

.price-original {
    font-size: 0.85rem;
    color: var(--gray-400);
    text-decoration: line-through;
    margin-bottom: -2px;
}

.product-price {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    font-family: var(--font-display);
}

.add-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-primary);
}

.add-btn:hover {
    transform: scale(1.1) rotate(90deg);
}

/* ── Product Grid - Better spacing ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

/* ── Section Headers ── */
.home-section {
    margin-bottom: 60px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title {
    font-size: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.view-all {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all i {
    transition: transform var(--transition-normal);
}

.view-all:hover i {
    transform: translateX(5px);
}

/* ── Category Cards ── */
.home-categories-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 30px;
    scrollbar-width: none;
}

.home-category-card {
    flex: 0 0 160px;
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: var(--transition-bounce);
}

.home-category-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

.home-category-icon {
    font-size: 2.5rem;
    transition: transform var(--transition-bounce);
}

.home-category-card:hover .home-category-icon {
    transform: scale(1.2);
}

.home-category-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-800);
    transition: color 0.1s;
}

.home-category-card:hover .home-category-name {
    color: var(--white);
}

/* ── Toast Notifications ── */
#toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--white);
    color: var(--gray-800);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 6px solid var(--primary);
    animation: toastIn var(--transition-bounce) forwards;
    min-width: 300px;
}

@keyframes toastIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ── Modal Design ── */
.modal-overlay {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
}

.modal-content {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

/* ── Forms ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-700);
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper > i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    background: var(--gray-50);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 16px 16px 16px 52px;
    color: var(--gray-900);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-light);
}

.input-wrapper:focus-within > i {
    color: var(--primary);
}

/* Deja lugar para el boton de mostrar/ocultar contrasena */
.input-wrapper.has-toggle input {
    padding-right: 52px;
}

/* ── Address Cards ── */
.address-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 2px solid var(--gray-100);
    transition: var(--transition-bounce);
}

.address-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.address-icon {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
}

/* ── Profile ── */
.profile-card {
    background: var(--secondary);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
}