:root {
    --header-height: auto;
    --nav-height: 65px;
    --safe-padding: 16px;
    --primary: #D32F2F;
    /* Official Brand Red */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    /* Mobile Viewport Support */
    padding-bottom: calc(var(--nav-height) + 20px);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Categories */
.app-header {
    position: relative;
    z-index: 100;
    padding-top: var(--safe-padding);
    background: inherit;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 var(--safe-padding);
    margin-bottom: 24px;
}

.main-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #1e293b;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    position: relative;
}

.cart-icon-container {
    position: relative;
}

.badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #D32F2F;
    /* Brand */
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

.expanded-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #D32F2F;
    /* Brand */
    color: white;
    border-radius: 20px;
    padding: 0 8px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    /* Brand Shadow */
}

.category-nav {
    padding: 0 var(--safe-padding) 12px;
}

.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    margin-top: 5px;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    font-size: 15px;
    font-family: inherit;
}

/* Product Grid - 2 Columns Mobile First */
/* --- REFERENCE DESIGN (Compact Grid) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    /* Tighter Grid */
    padding: 8px;
}

.product-card {
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    /* Fixed Height Removed for Square Ratio */
    /* height: 160px; REMOVED */
    aspect-ratio: 1/1;
    cursor: pointer;
    /* Indicates clickable */
    transition: all 0.2s ease;
    border: 2px solid transparent;
    /* Prepare for border */
}

.product-card.in-cart {
    border: 2px solid #D32F2F;
    /* Brand Highlight */
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
}

.product-img-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient Overlay */
.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    /* Increased from 70% */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Info Container */
.overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    /* Increased padding */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.overlay-unit {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    margin-bottom: 2px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.overlay-title {
    font-size: 14px;
    /* Slightly larger */
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.25;
    color: #ffffff !important;
    /* Force White */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    /* Stronger shadow */

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.overlay-price {
    font-size: 15px;
    font-weight: 700;
    color: white;
    /* Blanco Puro */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    /* Fuerte sombra */
}

/* Mini Inline Button */
/* Mini Inline Button */
/* --- STEPPER CONTROL (Morphing Button) --- */
.add-control-container {
    position: relative;
    height: 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.add-btn {
    background: white;
    color: #D32F2F;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    overflow: hidden;
    position: absolute;
    right: 0;
}

/* State: Active (Expanded Stepper) */
.add-btn.expanded {
    width: 90px;
    border-radius: 20px;
    background: #D32F2F;
    /* Brand */
    color: white;
    justify-content: space-between;
    padding: 0 4px;
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.4);
}

/* Inner elements logic */
.btn-icon-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s;
}

.stepper-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.2s ease;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
}

.add-btn.expanded .btn-icon-plus {
    opacity: 0;
    pointer-events: none;
}

.add-btn.expanded .stepper-content {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.stepper-btn {
    background: none;
    border: none;
    color: white;
    width: 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.stepper-btn:active {
    transform: scale(0.8);
}

.stepper-val {
    font-size: 13px;
    font-weight: 800;
    min-width: 20px;
    text-align: center;
}

/* SVG sizes */
.add-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 3px;
}

.stepper-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 3px;
}

/* --- NAV BADGE --- */
.nav-item {
    position: relative;
}

.nav-badge {
    position: absolute;
    top: 2px;
    right: 20px;
    /* Adjust based on icon centering */
    background: #D32F2F;
    /* Brand */
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 1px solid white;
}

.nav-badge.hidden {
    display: none;
}

/* Ocultar elementos legacy */
#cart-btn-top,
.add-btn-fab,
.fab-cart,
.cart-badge-fab {
    display: none !important;
}

/* Ocultar botones viejos */
#cart-btn-top {
    display: none;
}

.add-btn-fab {
    display: none;
}

.product-info {
    padding: 0;
    background: none;
}

/* Reset */



/* Remove old stuff */
.product-footer,
.add-control,
.product-price {
    display: none;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-img:hover {
    transform: scale(1.05);
}

.product-icon {
    width: 100%;
    aspect-ratio: 1/1;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    cursor: pointer;
}

.product-icon svg {
    width: 48px;
    height: 48px;
}

.product-info {
    padding: 10px 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 13px;
    font-weight: 400;
}

/* Expanding Add Button */
.add-control {
    position: relative;
    height: 32px;
    min-width: 32px;
    background: inherit;
    border-radius: 16px;
}

.add-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.expanded-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FF4747;
    color: white;
    border-radius: 20px;
    padding: 0 8px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(255, 71, 71, 0.3);
}

.product-card.in-cart .expanded-controls .icon-btn-small {
    color: white;
}

.icon-btn-small {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.quantity-text {
    font-size: 14px;
    font-weight: 700;
    min-width: 12px;
    text-align: center;
}

/* Floating Cart Bubble */
.cart-bubble {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #D32F2F;
    /* Brand */
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
    z-index: 1100;
    transition: all 0.3s ease;
}

.cart-bubble.hidden {
    bottom: -100px;
    opacity: 0;
    pointer-events: none;
}

.bubble-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#bubble-total {
    font-weight: 700;
    font-size: 18px;
}

#checkout-btn {
    background: white;
    color: #D32F2F;
    /* Brand Text */
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Connectivity Toasts */
.connectivity-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.4s ease-out;
}

.connectivity-toast.success {
    background: #27AE60;
    color: white;
}

.connectivity-toast.warning {
    background: #F39C12;
    color: white;
}

.connectivity-toast.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.5s ease;
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translate(-50%, 100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Premium Action Buttons */
.action-btn,
.secondary-btn,
.save-btn,
.add-address-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    /* Brand Shadow */
}

.action-btn:active {
    transform: scale(0.98);
}

.secondary-btn {
    background: #f1f5f9;
    color: #475569;
}

/* Bottom Nav */
.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.nav-item span {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* PWA Promo Modal - Enhanced Design */
#pwa-modal {
    z-index: 5000;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.6);
}

.pwa-card {
    background: white;
    width: 90%;
    max-width: 360px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    animation: pwaPopUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
}

.pwa-header {
    background: linear-gradient(135deg, #D32F2F 0%, #b71c1c 100%);
    /* Brand Gradient */
    padding: 30px 20px;
    color: white;
}

.pwa-icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwa-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.2;
}

.pwa-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.pwa-body {
    padding: 24px;
}

.pwa-offer {
    background: #fff1f2;
    border: 2px dashed #fecdd3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.offer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e11d48;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.offer-value {
    font-size: 18px;
    font-weight: 800;
    color: #be123c;
}

.install-btn {
    width: 100%;
    padding: 16px;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.2);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.install-btn:active {
    transform: scale(0.96);
}

.maybe-later {
    margin-top: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

@keyframes pwaPopUp {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 90%;
    max-width: 400px;
    padding: 24px;
    border-radius: 20px;
}

/* Cart Drawer (Premium Look) */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: inherit;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);

    /* Make the whole drawer scrollable */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-drawer.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-items-container {
    padding: 20px;
    /* Removed scroll limit to show all items */
}

.checkout-form-container {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
    margin: 20px 0 15px;
    font-size: 16px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.7;
}

.form-input,
.checkout-form-container input,
.checkout-form-container select,
.checkout-form-container textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: inherit;
    font-size: 14px;
    background: white;
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.location-btn {
    background: #ff4747;
    color: white;
    border: none;
    border-radius: 8px;
    width: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-feedback {
    font-size: 11px;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.location-feedback.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27AE60;
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.location-feedback.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #F39C12;
    border: 1px solid rgba(243, 156, 18, 0.2);
}

.location-feedback.error {
    background: rgba(231, 76, 60, 0.1);
    color: #E74C3C;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.checkout-form-container textarea {
    resize: none;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    opacity: 0.7;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: inherit;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.quantity-controls-drawer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 2px;
}

.qty-btn-drawer {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qty-btn-drawer:active {
    transform: scale(0.95);
}

.qty-val-drawer {
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    font-size: 14px;
}

.remove-btn-drawer {
    background: none;
    border: none;
    color: #FF4747;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px;
}

.remove-btn-drawer:hover {
    opacity: 1;
}

/* Account Drawer (Same style as Cart) */
.account-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: inherit;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 80px;
}

.account-drawer.open {
    right: 0;
}

.account-drawer-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: inherit;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Utility */
.hidden {
    display: none !important;
}

.cart-helper-text {

    font-size: 13px;
    color: #888;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
    padding: 0 10px;
}

.cart-helper-text i {
    vertical-align: middle;
    margin-right: 4px;
    color: #27AE60;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.btn-checkout-full {
    width: 100%;
    padding: 16px;
    background: #D32F2F;
    /* Brand */
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease;
}

/* Load More Spacing */
#load-more-container {
    text-align: center;
    padding: 20px 20px 140px 20px;
    /* Huge bottom padding to clear bubble */
    display: none;
    margin-top: 20px;
}

.btn-checkout-full:active {
    transform: scale(0.98);
}

.empty-cart-msg {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

/* Account View */
.view-section {
    display: block;
    animation: fadeIn 0.3s ease;
    padding-top: 10px;
    padding-bottom: 80px;
}

.view-section.hidden {
    display: none;
}

.account-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--safe-padding);
}

.account-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
}

.profile-icon-large {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 24px;
}

.profile-icon-large i {
    width: 40px;
    height: 40px;
}

.account-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.account-card h3 {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Address Book */
.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.address-item:active {
    transform: scale(0.99);
}

.address-content {
    flex: 1;
    cursor: pointer;
}

.delete-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-address-form {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.add-address-form.collapsed {
    display: none;
}

/* Global Form Inputs (Premium) */
.form-input,
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    width: 100%;
    transition: all 0.2s ease;
    outline: none;
    color: #334155;
}

.form-input:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 71, 71, 0.1);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
}

/* Remove old specific block if exists to avoid clutter */
.account-form input {
    /* handeled by global */
}

/* Order History */
.order-card {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}