/* ============================================
   BASA FISH TRADING - Shop & E-Commerce Styles
   Extends existing style-v17.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS VARIABLES - Brand Colors (matches index.html)
   ============================================ */
:root {
    --primary: #005B96;
    --primary-dark: #003d6b;
    --primary-light: #0073bf;
    --accent: #FF6B00;
    --accent-dark: #e05c00;
    --accent-light: #ff8533;
    --navy: #0B1F3A;
    --navy-light: #162d52;
    --light-bg: #F8FBFD;
    --light-surface: #ffffff;
    --light-border: #e2e8f0;
    --light-text: #1a202c;
    --light-text-muted: #64748b;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0284c7;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   GLOBAL BASE STYLES
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

body.shop-page {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
}

body.auth-page {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--navy) 0%, #0f2d50 50%, var(--primary-dark) 100%);
    min-height: 100vh;
}

body.cart-page,
body.checkout-page,
body.profile-page,
body.orders-page {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--light-text);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ============================================
   SHOP NAVBAR
   ============================================ */
.shop-navbar {
    background: var(--navy);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.shop-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
    letter-spacing: -0.02em;
}
.shop-navbar .navbar-brand span { color: var(--accent); }
.shop-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
}
.shop-navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}
.shop-navbar .nav-link.active { color: #fff !important; }

/* Cart Icon Badge */
.cart-icon-btn {
    position: relative;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cart-icon-btn:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}
.cart-count-badge {
    background: #fff;
    color: var(--accent);
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* User Menu */
.user-menu-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.user-menu-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ============================================
   HERO / PAGE BANNERS
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary-dark) 100%);
    padding: 60px 0 50px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,107,0,0.06);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}
.page-banner h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.page-banner p { color: rgba(255,255,255,0.75); font-size: 1.05rem; }
.breadcrumb-shop { margin: 0; }
.breadcrumb-shop .breadcrumb-item { color: rgba(255,255,255,0.6); }
.breadcrumb-shop .breadcrumb-item a { color: var(--accent); }
.breadcrumb-shop .breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-shop .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================================
   PRODUCT CATALOGUE
   ============================================ */
.catalogue-section { padding: 50px 0 80px; }

/* Search & Filter Bar */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--light-border);
    margin-bottom: 32px;
}
.search-input-wrap {
    position: relative;
}
.search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text-muted);
    font-size: 1.1rem;
}
.search-input-wrap input {
    padding-left: 42px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--light-border);
    background: var(--light-bg);
    color: var(--light-text);
    font-family: var(--font-body);
    transition: var(--transition);
}
.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,91,150,0.12);
    background: #fff;
}

.filter-select {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--light-border);
    background: var(--light-bg);
    color: var(--light-text);
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
}
.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,91,150,0.12);
    background: #fff;
}

/* Category Chips */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.category-chip {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid var(--light-border);
    background: #fff;
    color: var(--light-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(0,91,150,0.05);
}
.category-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Results Info */
.results-info {
    color: var(--light-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.results-info strong { color: var(--light-text); }

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card-shop {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--light-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card-shop:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,91,150,0.2);
}

.product-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--light-bg);
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card-shop:hover .product-img-wrap img {
    transform: scale(1.05);
}

/* Product Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}
.badge-featured { background: var(--accent); color: #fff; }
.badge-outofstock { background: var(--danger); color: #fff; }
.badge-new { background: var(--success); color: #fff; }

.product-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-category-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.product-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 8px;
    line-height: 1.3;
}
.product-desc-short {
    font-size: 0.875rem;
    color: var(--light-text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: var(--light-text-muted);
}
.product-meta span { display: flex; align-items: center; gap: 4px; }

.product-card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--light-border);
}
.product-price-shop {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--navy);
}
.product-price-shop .unit-label {
    font-size: 0.8rem;
    color: var(--light-text-muted);
    font-weight: 500;
}

.btn-add-cart {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-add-cart:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-add-cart:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail-section { padding: 50px 0 80px; }

.product-gallery {
    position: relative;
}
.product-main-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
}
.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--light-border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.product-thumb:hover, .product-thumb.active {
    border-color: var(--primary);
}

.product-detail-info { padding-left: 20px; }
@media (max-width: 991px) { .product-detail-info { padding-left: 0; margin-top: 24px; } }

.product-detail-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.product-detail-name {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
}
.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}
.product-detail-price .unit { font-size: 1rem; color: var(--light-text-muted); font-weight: 500; }

.product-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.availability-in { background: rgba(22,163,74,0.1); color: var(--success); }
.availability-out { background: rgba(220,38,38,0.1); color: var(--danger); }

.product-detail-desc {
    color: var(--light-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.product-specs-table {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}
.product-specs-table .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--light-border);
    font-size: 0.9rem;
}
.product-specs-table .spec-row:last-child { border-bottom: none; }
.product-specs-table .spec-label { color: var(--light-text-muted); }
.product-specs-table .spec-value { font-weight: 600; color: var(--light-text); }

/* Qty Selector */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--light-bg);
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--light-text);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1.5px solid var(--light-border);
    border-right: 1.5px solid var(--light-border);
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
}
.qty-input:focus { outline: none; background: rgba(0,91,150,0.05); }

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--navy) 0%, #0f2d50 50%, var(--primary-dark) 100%);
}
.auth-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
@media (max-width: 575px) { .auth-card { padding: 32px 24px; } }

.auth-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}
.auth-logo span { color: var(--accent); }
.auth-logo .logo-icon {
    background: var(--primary);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}
.auth-subtitle { color: var(--light-text-muted); margin-bottom: 30px; font-size: 0.95rem; }

.form-label-shop {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.form-input-shop {
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
    color: var(--light-text);
    background: var(--light-bg);
    font-family: var(--font-body);
}
.form-input-shop:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,91,150,0.12);
    background: #fff;
    outline: none;
}
.form-input-shop::placeholder { color: #a0aec0; }
.form-input-shop.is-invalid { border-color: var(--danger); }
.form-input-shop.is-valid { border-color: var(--success); }

.btn-primary-shop {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-primary-shop:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,91,150,0.3);
}
.btn-primary-shop:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-accent-shop {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 13px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-accent-shop:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255,107,0,0.3);
}

.divider-text {
    text-align: center;
    color: var(--light-text-muted);
    position: relative;
    margin: 20px 0;
    font-size: 0.85rem;
}
.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--light-border);
}
.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.auth-footer-text {
    text-align: center;
    color: var(--light-text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
}
.auth-footer-text a { color: var(--primary); font-weight: 600; }

/* Alert / Error messages */
.alert-shop {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-shop-danger { background: rgba(220,38,38,0.08); color: #b91c1c; border: 1px solid rgba(220,38,38,0.2); }
.alert-shop-success { background: rgba(22,163,74,0.08); color: #166534; border: 1px solid rgba(22,163,74,0.2); }
.alert-shop-warning { background: rgba(217,119,6,0.08); color: #92400e; border: 1px solid rgba(217,119,6,0.2); }
.alert-shop-info { background: rgba(2,132,199,0.08); color: #0c4a6e; border: 1px solid rgba(2,132,199,0.2); }

/* ============================================
   CART PAGE
   ============================================ */
.cart-section { padding: 50px 0 80px; }

.cart-container {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    overflow: hidden;
}
.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-header h2 { font-size: 1.3rem; margin: 0; }
.cart-items-list { padding: 0; }

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: rgba(0,91,150,0.02); }

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-border);
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-unit { font-size: 0.8rem; color: var(--light-text-muted); }
.cart-item-price { font-weight: 700; font-size: 0.9rem; color: var(--accent); white-space: nowrap; }

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--light-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-bg);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-qty-btn:hover { background: var(--primary); color: #fff; }
.cart-qty-num {
    width: 40px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--light-border);
    border-right: 1px solid var(--light-border);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-item {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1.1rem;
}
.btn-remove-item:hover { color: var(--danger); background: rgba(220,38,38,0.08); }

/* Order Summary Box */
.order-summary-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    padding: 28px;
    position: sticky;
    top: 80px;
}
.order-summary-card h3 { font-size: 1.2rem; margin-bottom: 24px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--light-border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total-row {
    border-top: 2px solid var(--navy);
    padding-top: 14px;
    margin-top: 4px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navy);
}
.summary-row .label { color: var(--light-text-muted); }
.summary-row .amount { font-weight: 600; }
.summary-row.total-row .amount { color: var(--accent); font-size: 1.2rem; }

.btn-checkout-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: var(--transition);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-checkout-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,107,0,0.35);
}

/* Empty cart */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state-icon {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.empty-state h3 {
    color: var(--light-text-muted);
    font-size: 1.3rem;
    margin-bottom: 8px;
}
.empty-state p { color: #94a3b8; margin-bottom: 24px; }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-section { padding: 50px 0 80px; }

.checkout-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    padding: 30px;
    margin-bottom: 24px;
}
.checkout-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--light-border);
}
.checkout-card-header .step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.checkout-card-header h3 { font-size: 1.15rem; margin: 0; }

/* Payment Method Cards */
.payment-method-card {
    border: 2px solid var(--light-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
}
.payment-method-card:hover { border-color: var(--primary); background: rgba(0,91,150,0.03); }
.payment-method-card.selected { border-color: var(--primary); background: rgba(0,91,150,0.05); }
.payment-method-card .method-icon { font-size: 1.8rem; }
.payment-method-card .method-info h5 { font-size: 0.95rem; margin: 0 0 2px; }
.payment-method-card .method-info p { font-size: 0.8rem; color: var(--light-text-muted); margin: 0; }

/* UPI QR Box */
.upi-qr-box {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    border: 1.5px dashed var(--light-border);
    margin-top: 16px;
    display: none;
}
.upi-qr-box.show { display: block; }
.upi-qr-box img { width: 160px; height: 160px; margin: 0 auto 12px; display: block; }
.upi-id-display {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    background: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 8px;
    border: 1px solid var(--light-border);
}

/* Order item in checkout */
.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-border);
}
.checkout-item-row:last-child { border-bottom: none; }
.checkout-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-border);
    flex-shrink: 0;
}
.checkout-item-name { font-weight: 600; font-size: 0.9rem; flex: 1; }
.checkout-item-qty { color: var(--light-text-muted); font-size: 0.85rem; }
.checkout-item-price { font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Place Order Button */
.btn-place-order {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    width: 100%;
    transition: var(--transition);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-place-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(22,163,74,0.35);
}
.btn-place-order:disabled { background: #94a3b8; cursor: not-allowed; transform: none; }

/* ============================================
   ORDER CONFIRMATION
   ============================================ */
.order-success-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}
.order-success-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px;
}
.order-id-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-family: monospace;
    font-weight: 700;
    margin-top: 8px;
}

/* ============================================
   ORDERS LIST & ORDER DETAIL
   ============================================ */
.orders-section { padding: 50px 0 80px; }

.order-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: var(--transition);
}
.order-card:hover { border-color: rgba(0,91,150,0.2); box-shadow: var(--shadow-sm); }

.order-status-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.status-pending { background: rgba(217,119,6,0.1); color: #b45309; }
.status-confirmed { background: rgba(2,132,199,0.1); color: #0369a1; }
.status-processing { background: rgba(124,58,237,0.1); color: #6d28d9; }
.status-out_for_delivery { background: rgba(37,99,235,0.1); color: #1d4ed8; }
.status-delivered { background: rgba(22,163,74,0.1); color: #15803d; }
.status-cancelled { background: rgba(220,38,38,0.1); color: #b91c1c; }

.payment-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pay-pending { background: rgba(217,119,6,0.1); color: #b45309; }
.pay-paid { background: rgba(22,163,74,0.1); color: #15803d; }
.pay-failed { background: rgba(220,38,38,0.1); color: #b91c1c; }
.pay-refunded { background: rgba(107,114,128,0.1); color: #4b5563; }

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-section { padding: 50px 0 80px; }

.profile-sidebar {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    padding: 24px;
    position: sticky;
    top: 80px;
}
.profile-avatar-area {
    text-align: center;
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--light-border);
    margin-bottom: 20px;
}
.profile-avatar-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    margin: 0 auto 12px;
}
.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--light-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 4px;
    text-decoration: none;
}
.profile-nav-link:hover {
    background: var(--light-bg);
    color: var(--primary);
}
.profile-nav-link.active {
    background: rgba(0,91,150,0.08);
    color: var(--primary);
}
.profile-nav-link i { font-size: 1.1rem; }

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,91,150,0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-spinner.sm { width: 16px; height: 16px; }
.loading-spinner.lg { width: 40px; height: 40px; border-width: 3px; }
.loading-spinner.white {
    border-color: rgba(255,255,255,0.3);
    border-top-color: #fff;
}

@keyframes spin { to { transform: rotate(360deg); } }

.skeleton-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--light-border);
    overflow: hidden;
}
.skeleton {
    background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-img { height: 200px; border-radius: 0; }
.skeleton-title { height: 18px; width: 70%; margin: 14px 14px 8px; }
.skeleton-text { height: 12px; width: 90%; margin: 0 14px 8px; }
.skeleton-price { height: 22px; width: 40%; margin: 14px; }

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container-shop {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}
.shop-toast {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--primary);
    animation: toast-slide-in 0.3s ease;
}
.shop-toast.toast-success { border-color: var(--success); }
.shop-toast.toast-danger { border-color: var(--danger); }
.shop-toast.toast-warning { border-color: var(--warning); }
.shop-toast-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }
.shop-toast.toast-success .shop-toast-icon { color: var(--success); }
.shop-toast.toast-danger .shop-toast-icon { color: var(--danger); }
.shop-toast.toast-warning .shop-toast-icon { color: var(--warning); }
.shop-toast-title { font-weight: 700; font-size: 0.9rem; color: var(--light-text); }
.shop-toast-msg { font-size: 0.85rem; color: var(--light-text-muted); margin-top: 2px; }
.shop-toast-close {
    background: none;
    border: none;
    color: var(--light-text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

@keyframes toast-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   PAGINATION
   ============================================ */
.shop-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--light-border);
    background: #fff;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   SHOP FOOTER
   ============================================ */
.shop-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}
.shop-footer a { color: rgba(255,255,255,0.7); }
.shop-footer a:hover { color: var(--accent); }
.shop-footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 20px 0;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 767px) {
    .cart-item { flex-wrap: wrap; }
    .cart-item-img { width: 60px; height: 60px; }
    .order-summary-card { position: static; }
    .product-detail-info { padding-left: 0; }
    .auth-card { padding: 28px 20px; }
    .checkout-card { padding: 20px 16px; }
    .filter-bar { padding: 16px; }
    .toast-container-shop { right: 12px; left: 12px; max-width: 100%; }
}

@media (max-width: 575px) {
    .category-chip { padding: 6px 14px; font-size: 0.8rem; }
    .product-card-body { padding: 14px 16px; }
}
