/* ==========================================
   BNS Storefront Component Styles
   Extracted from inline styles for consistency,
   maintainability, and hover/focus state support.
   ========================================== */

/* ---- Tab Navigation ---- */
.storefront-tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color, #e2e8f0);
    padding-bottom: 1px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.storefront-tabs-nav::-webkit-scrollbar { display: none; }

.store-tab-btn {
    text-decoration: none;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.store-tab-btn:hover {
    color: var(--primary-color, #0d9488);
}
.store-tab-btn.active,
.store-tab-btn--active {
    border-bottom-color: var(--primary-color, #0d9488);
    color: var(--primary-color, #0d9488);
}

/* ---- Follow Modal ---- */
.follow-modal-title {
    font-size: 22px;
    color: var(--secondary-color, #0f172a);
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    margin-bottom: 8px;
}
.follow-modal-desc {
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted, #64748b);
}
.follow-form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.follow-form-input {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    background: var(--bg-color, #f8fafc);
    transition: border-color 0.2s ease;
}
.follow-form-input:focus {
    border-color: var(--primary-color, #0d9488);
    background: var(--white, #fff);
}
.follow-form-submit {
    border-radius: 14px;
    background: var(--primary-color, #0d9488);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    padding: 14px 24px;
    width: 100%;
    transition: all 0.25s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}
.follow-form-submit:hover {
    background: var(--primary-dark, #0f766e);
    transform: translateY(-1px);
}

/* ---- Floating Action Stack ---- */
.floating-actions-stack {
    position: fixed;
    bottom: 16px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10005;
    align-items: center;
}

.floating-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--white, #fff);
    color: var(--text-muted, #475569);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    text-decoration: none;
}
.floating-action-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.floating-action-btn:active {
    transform: scale(0.95);
}

.floating-action-btn--follow {
    background: var(--secondary-color, #0f172a);
    color: #fff;
}
.floating-action-btn--follow.is-following {
    background: #f1f5f9;
    color: var(--text-muted, #475569);
}

.floating-action-btn--chat {
    font-size: 18px;
}

.floating-action-btn--wa {
    background-color: #25D366;
    color: #fff;
    font-size: 20px;
}

.floating-cart-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: var(--primary-color, #0d9488);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}
.floating-cart-badge:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.floating-cart-badge:active {
    transform: scale(0.95);
}

.count-bubble {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger, #ef4444);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* ---- BNS Powered Footer ---- */
.bns-store-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 32, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    font-family: 'Outfit', sans-serif;
}
.bns-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 12px;
}
.bns-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.bns-footer-logo {
    background: linear-gradient(135deg, var(--primary-color, #0d9488) 0%, var(--primary-dark, #0f766e) 100%);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.bns-footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bns-footer-text {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
.bns-footer-text strong {
    color: #e2e8f0;
    font-weight: 700;
}
.bns-footer-links {
    display: flex;
    gap: 6px;
    font-size: 11px;
}
.bns-footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}
.bns-footer-links a:hover { color: #94a3b8; }
.bns-footer-sep { color: #475569; }
.bns-footer-cta {
    color: var(--primary-light, #2dd4bf);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}
.bns-footer-cta:hover {
    opacity: 0.85;
}

/* ---- Chat Drawer ---- */
.chat-drawer-container {
    right: -420px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.chat-drawer-container.active,
.chat-drawer-container.open {
    right: 0;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}
.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-color, #0d9488);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.chat-seller-name {
    font-size: 15px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--secondary-color, #0f172a);
}
.chat-online-badge {
    font-size: 11px;
    color: #22c55e;
    font-weight: 600;
}
.chat-online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 4px;
}
.chat-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted, #64748b);
    padding: 4px;
    line-height: 1;
    transition: color 0.2s ease;
}
.chat-close-btn:hover {
    color: var(--secondary-color, #0f172a);
}

.chat-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    background: var(--bg-color, #f8fafc);
    display: flex;
    flex-direction: column;
}

.chat-login-container {
    margin: auto 0;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}
.chat-login-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary-color, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
}
.chat-login-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 8px;
}
.chat-login-desc {
    font-size: 13px;
    color: var(--text-muted, #64748b);
    line-height: 1.5;
    margin-bottom: 24px;
}
.chat-form-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.chat-form-input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e2e8f0);
    font-size: 14px;
    width: 100%;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease;
}
.chat-form-input:focus {
    border-color: var(--primary-color, #0d9488);
}
.chat-login-submit {
    border-radius: 12px;
    background: var(--primary-color, #0d9488);
    color: #fff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    padding: 12px 24px;
    width: 100%;
    font-size: 15px;
    transition: background 0.2s ease;
}
.chat-login-submit:hover {
    background: var(--primary-dark, #0f766e);
}

.chat-messages-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.chat-message-feed {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 10px;
}

.chat-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}
.chat-input-form {
    display: flex;
    gap: 10px;
}
.chat-text-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}
.chat-text-input:focus {
    border-color: var(--primary-color, #0d9488);
}
.chat-send-btn {
    background: var(--primary-color, #0d9488);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.chat-send-btn:hover {
    background: var(--primary-dark, #0f766e);
}

/* ---- Hero Section (store pages) ---- */
.store-hero {
    min-height: 380px;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}
.store-banner-hero {
    min-height: 380px;
    height: auto;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0 0 36px 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
}
.store-hero-overlay, .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.6) 100%);
    z-index: 1;
}

/* ---- Search Bar (glass morphism) ---- */
.store-search-bar {
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 12px 24px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}
.store-search-bar input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}
.store-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ---- Category Filter Pills ---- */
.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    min-height: 44px;
}
.cat-pill:hover {
    opacity: 0.85;
}
.cat-pill--active {
    background: var(--secondary-color, #0f172a) !important;
    color: #fff !important;
}
.cat-pill--inactive {
    background: #f1f5f9;
    color: var(--text-muted, #475569);
}

/* ---- Product Card ---- */
.product-card-store {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
}
.product-card-store:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.03);
}
.btn-quickview {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--secondary-color, #0f172a);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 2;
}
.product-card-store:hover .btn-quickview {
    opacity: 1;
    transform: scale(1);
}
.btn-quickview:hover {
    background: var(--primary-color, #0d9488);
    color: #fff;
}
.card-image-wrapper {
    position: relative;
    aspect-ratio: 1.1;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.product-card-store:hover .card-image-wrapper img {
    transform: scale(1.05);
}
.badge-condition {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--secondary-color, #0f172a);
    text-transform: uppercase;
}
.card-body-store {
    padding: 24px;
}
.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
}
.price-amount {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color, #0d9488);
}
.btn-add-to-cart-small {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-muted, #475569);
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}
.btn-add-to-cart-small:hover {
    background: var(--secondary-color, #0f172a);
    color: #fff;
    border-color: var(--secondary-color, #0f172a);
}

/* ---- Lazy Loading Images ---- */
.lazy-img {
    filter: blur(12px);
    opacity: 0.3;
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: filter, opacity;
}
.lazy-img.loaded {
    filter: blur(0);
    opacity: 1;
}

/* ---- About Page ---- */
.about-section-card {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    margin-bottom: 32px;
}
.about-section-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 16px;
}
.about-section-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.about-body-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted, #475569);
    margin-bottom: 24px;
}
.about-contact-card {
    margin-top: 36px;
    padding: 24px;
    background: var(--bg-color, #f8fafc);
    border-radius: 20px;
    border: 1.5px dashed var(--border-color, #e2e8f0);
}
.about-contact-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 8px;
}
.about-contact-desc {
    font-size: 12.5px;
    color: var(--text-muted, #64748b);
    margin-bottom: 16px;
}

/* ---- Verification Details ---- */
.details-card {
    background: var(--bg-color, #f8fafc);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-color, #e2e8f0);
}
.details-card-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 12px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-color, #e2e8f0);
    padding-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted, #475569);
}
.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.detail-row-value {
    color: var(--secondary-color, #0f172a);
    font-weight: 700;
}

/* ---- Cart Page ---- */
.cart-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted, #64748b);
}

/* ---- Form Inputs (shared) ---- */
.form-field-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    margin-bottom: 5px;
}
.form-field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
}
.form-field-input:focus {
    border-color: var(--primary-color, #0d9488);
}
.form-field-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13.5px;
    background: #fff;
    outline: none;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}
.form-field-textarea:focus {
    border-color: var(--primary-color, #0d9488);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .store-hero {
        min-height: 320px;
        padding: 100px 16px 40px;
        border-radius: 0 0 24px 24px;
    }
    .store-search-bar {
        max-width: 100%;
        padding: 10px 16px;
    }
    .floating-actions-stack {
        bottom: 12px;
        right: 16px;
        gap: 10px;
    }
    .floating-action-btn,
    .floating-cart-badge {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .store-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    .about-section-card {
        padding: 24px;
    }
    .chat-drawer-container {
        width: 100%;
        right: -100%;
    }
    .btn-add-to-cart-small {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

/* Skip to Content Link */
.skip-to-content {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 999999;
    background: var(--primary-color, #0d9488);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm, 12px) var(--radius-sm, 12px);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 0;
}

/* Focus Visible Styles */
:focus-visible {
    outline: 2px solid var(--primary-color, #0d9488);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color, #0d9488);
    outline-offset: 2px;
}

/* Remove outline:none from inputs that have focus-visible */
.follow-form-input:focus,
.chat-form-input:focus,
.chat-text-input:focus,
.form-field-input:focus,
.form-field-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Modal Accessibility */
.storefront-modal[role="dialog"] {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

/* Toast Live Region */
.toast-live-region {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    pointer-events: none;
}

/* Icon-only button minimum size for touch */
.icon-only-btn {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Ensure interactive elements have visible labels */
[aria-label] {
    cursor: pointer;
}

/* ==========================================
   UX Improvements
   ========================================== */

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: auto;
    min-width: 160px;
    height: 44px;
    border-radius: 12px 12px 0 0;
    background: var(--secondary-color, #0f172a);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 10004;
    opacity: 0;
    transition: all 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    pointer-events: none;
    padding: 0 20px;
}
.scroll-to-top.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.scroll-to-top:hover {
    background: #1e293b;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}

/* Cart Badge Animation */
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.cart-badge-bounce {
    animation: cartBounce 0.5s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

/* Cart Conflict Modal */
.cart-conflict-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    animation: modalFadeIn 0.2s ease forwards;
}
@keyframes modalFadeIn {
    to { opacity: 1; }
}
.cart-conflict-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 400px;
    width: 100%;
    padding: 32px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    animation: modalSlideUp 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.cart-conflict-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-color, #f59e0b);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
}
.cart-conflict-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 8px;
}
.cart-conflict-desc {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    margin-bottom: 24px;
    line-height: 1.5;
}
.cart-conflict-actions {
    display: flex;
    gap: 12px;
}
.cart-conflict-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.cart-conflict-btn--keep {
    background: #f1f5f9;
    color: var(--text-muted, #475569);
}
.cart-conflict-btn--keep:hover {
    background: #e2e8f0;
}
.cart-conflict-btn--clear {
    background: var(--primary-color, #0d9488);
    color: #fff;
}
.cart-conflict-btn--clear:hover {
    background: var(--primary-dark, #0f766e);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 70px;
        right: 70px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .cart-conflict-modal {
        padding: 24px;
        margin: 16px;
    }
    .cart-conflict-actions {
        flex-direction: column;
    }
}

/* ==========================================
   Recently Viewed Products
   ========================================== */
.recently-viewed-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color, #e2e8f0);
}
.recently-viewed-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 16px;
}
.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.recently-viewed-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e2e8f0);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.recently-viewed-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.recently-viewed-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.recently-viewed-card-info {
    padding: 10px 12px;
}
.recently-viewed-card-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recently-viewed-card-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color, #0d9488);
    margin-top: 2px;
}

/* ==========================================
   Quick-View Modal
   ========================================== */
.quickview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    animation: modalFadeIn 0.2s ease forwards;
}
.quickview-modal {
    background: #fff;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
    animation: modalSlideUp 0.3s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.quickview-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    background: var(--bg-secondary, #f1f5f9);
}
.quickview-body {
    padding: 24px;
}
.quickview-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--secondary-color, #0f172a);
    margin-bottom: 8px;
}
.quickview-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color, #0d9488);
    margin-bottom: 16px;
}
.quickview-description {
    font-size: 14px;
    color: var(--text-muted, #64748b);
    line-height: 1.6;
    margin-bottom: 20px;
}
.quickview-actions {
    display: flex;
    gap: 12px;
}
.quickview-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    min-height: 48px;
}
.quickview-btn--primary {
    background: var(--primary-color, #0d9488);
    color: #fff;
}
.quickview-btn--primary:hover {
    background: var(--primary-dark, #0f766e);
}
.quickview-btn--secondary {
    background: var(--secondary-color, #0f172a);
    color: #fff;
}
.quickview-btn--secondary:hover {
    background: #1e293b;
}
.quickview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.quickview-close:hover {
    background: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .recently-viewed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .quickview-modal {
        max-height: 90vh;
        border-radius: 20px;
    }
    .quickview-actions {
        flex-direction: column;
    }
}

/* ==========================================
   Dark Mode (auto-detect)
   ========================================== */
@media (prefers-color-scheme: dark) {
    .product-card-store {
        background: #1e293b;
        border-color: #334155;
    }
    .product-card-store:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }
    .product-card-store .product-title,
    .product-card-store .recently-viewed-card-title {
        color: #f1f5f9;
    }
    .product-card-store .price-amount {
        color: #2dd4bf;
    }
    .btn-add-to-cart-small {
        background: #1e293b;
        border-color: #334155;
        color: #94a3b8;
    }
    .btn-add-to-cart-small:hover {
        background: #0d9488;
        color: #fff;
        border-color: #0d9488;
    }
    .recently-viewed-card {
        background: #1e293b;
        border-color: #334155;
    }
    .recently-viewed-card-title {
        color: #f1f5f9;
    }
    .quickview-modal {
        background: #1e293b;
    }
    .quickview-title {
        color: #f1f5f9;
    }
    .quickview-description {
        color: #94a3b8;
    }
    .cart-conflict-modal {
        background: #1e293b;
    }
    .cart-conflict-title {
        color: #f1f5f9;
    }
    .cart-conflict-desc {
        color: #94a3b8;
    }
    .cart-conflict-btn--keep {
        background: #334155;
        color: #94a3b8;
    }
    .cat-pill {
        background: #1e293b;
        color: #94a3b8;
        border-color: #334155;
    }
    .btn-quickview {
        background: rgba(30, 41, 59, 0.9);
        color: #f1f5f9;
    }
    .scroll-to-top {
        background: #334155;
        color: #f1f5f9;
    }
}

/* ================================================================
   STOREFRONT PAGE COMPONENTS
   Extracted from index.php, cart.php, product.php, checkout.php
   ================================================================ */

/* ---- Storefront Wrapper ---- */
.storefront-wrapper {
    position: relative;
    font-family: 'Outfit', sans-serif;
}

/* ---- Hero / Banner ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.store-banner-hero.has-mesh-gradient {
    position: relative;
    background: #0f172a !important;
    overflow: hidden;
}
.store-banner-hero.has-mesh-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 10% 20%, rgba(13, 148, 136, 0.22) 0px, transparent 50%),
        radial-gradient(at 90% 40%, rgba(15, 23, 42, 0.85) 0px, transparent 45%),
        radial-gradient(at 35% 85%, rgba(99, 102, 241, 0.16) 0px, transparent 50%),
        radial-gradient(at 80% 10%, rgba(20, 184, 166, 0.18) 0px, transparent 40%),
        radial-gradient(at 15% 80%, rgba(15, 23, 42, 0.9) 0px, transparent 55%);
    background-size: 200% 200%;
    animation: meshMovement 18s ease-in-out infinite alternate;
    z-index: 0;
}
@keyframes meshMovement {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Product Cards Grid (store homepage) ---- */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}
@media (max-width: 576px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* ---- Cart Page ---- */
.cart-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px 100px;
}
.cart-empty {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #f1f5f9;
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    margin-bottom: 12px;
    align-items: center;
    transition: 0.2s;
}
.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}
.cart-item-details {
    flex: 1;
    min-width: 0;
}
.cart-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color);
    margin-top: 4px;
}
.cart-qty-box {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.cart-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: 0.2s;
}
.cart-qty-btn:hover {
    background: #f1f5f9;
}
.cart-qty-val {
    width: 40px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 8px 0;
}
.cart-remove-btn {
    background: #fee2e2;
    border: none;
    color: #ef4444;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}
.cart-remove-btn:hover {
    background: #fecaca;
}
.cart-summary {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    margin-top: 20px;
}
.promo-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.promo-row input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}
.promo-row button {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.price-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.price-line .label {
    color: #64748b;
}
.price-line .val {
    font-weight: 700;
    color: #0f172a;
}
.price-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 8px;
    font-size: 16px;
}
.price-total .label {
    font-weight: 800;
    color: #0f172a;
}
.price-total .val {
    font-weight: 900;
    color: var(--primary-color);
    font-size: 20px;
}
.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    transition: 0.2s;
}
.btn-checkout:hover {
    opacity: 0.9;
}
.btn-checkout:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ---- Product Detail Page ---- */
.product-detail-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 100px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-image-gallery {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1;
}
.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-main-image:hover {
    transform: scale(1.03);
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.gallery-thumbs::-webkit-scrollbar {
    display: none;
}
.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    flex-shrink: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary-color);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info {
    padding: 8px 0;
}
.product-condition-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.product-detail-title {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}
.product-detail-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 24px;
}
.product-detail-description {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    white-space: pre-wrap;
    margin-bottom: 32px;
}
.escrow-badge {
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: 0.2s;
}
.qty-btn:hover {
    background: #f1f5f9;
}
.qty-value {
    width: 50px;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    padding: 10px 0;
}
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.btn-add-cart {
    flex: 2;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-add-cart:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-whatsapp {
    flex: 1;
    background: #fff;
    color: #25D366;
    border: 1.5px solid #25D366;
    border-radius: 14px;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-whatsapp:hover {
    background: rgba(34, 197, 94, 0.05);
}
.product-meta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f1f5f9;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #f1f5f9;
}
.meta-row .label {
    color: #64748b;
    font-weight: 600;
}
.meta-row .value {
    color: #0f172a;
    font-weight: 700;
}
.related-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.related-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}
.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.related-card-body {
    padding: 16px;
}
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-image-gallery {
        aspect-ratio: 4/3;
    }
    .product-detail-title {
        font-size: 22px;
    }
    .product-detail-price {
        font-size: 26px;
    }
    .action-buttons {
        flex-direction: column;
    }
}
@media (max-width: 576px) {
    .btn-add-to-cart-small {
        padding: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
        align-items: center;
    }
}

/* ---- Checkout Page ---- */
.checkout-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 24px 100px;
    font-family: 'Outfit', sans-serif;
}
.checkout-steps {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
}
.checkout-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.step-progress {
    position: absolute;
    top: 16px;
    left: 16%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
    transition: width 0.3s ease;
}
.step-indicator {
    z-index: 2;
    text-align: center;
    width: 33.33%;
}
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}
.step-indicator.active .step-dot {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}
.step-indicator.active span {
    color: #0f172a;
    font-weight: 700;
}
.checkout-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 20px;
}
.checkout-step {
    display: none;
    animation: fadeIn 0.3s ease;
}
.checkout-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.delivery-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}
.delivery-card.selected {
    border-color: var(--primary-color);
    background: rgba(13, 148, 136, 0.02);
}
.delivery-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.btn-primary-full {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-primary-full:hover {
    opacity: 0.9;
}
.btn-back {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}
.price-row .label {
    color: #64748b;
}
.price-row .val {
    font-weight: 700;
}
.cart-item-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 8px;
}
.cart-item-mini img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
}

/* ==========================================
   SPA Section Component Styles
   Used by section.php AJAX-loaded content
   ========================================== */

/* ---- Hero Section ---- */
.home-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 32px;
}
.home-hero.has-mesh-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.1) 0%, rgba(15,23,42,0.7) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    padding: 40px 36px;
    gap: 24px;
}
.hero-tagline {
    flex: 1;
    min-width: 0;
}
.hero-title {
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 850;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 1.15;
}
.hero-desc {
    font-size: clamp(12px, 1.5vw, 14px);
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.6;
    max-width: 480px;
}
.hero-avatars {
    flex-shrink: 0;
}
.hero-store-avatar-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.hero-store-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-compact {
    min-height: 220px;
}
.hero--rounded {
    border-radius: 20px;
}
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 20px;
    }
    .hero-title { font-size: clamp(20px, 5vw, 28px); }
    .hero-avatars { display: none; }
    .home-hero {
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
        min-height: 200px;
    }
    .home-hero.hero--rounded {
        border-radius: 0;
    }
    .hero-compact { min-height: 180px; }
    .featured-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .policies-grid { grid-template-columns: 1fr; }
    .about-business-grid { grid-template-columns: 1fr; }
}

/* ---- Section Framework ---- */
.storefront-section {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
}
.section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
    font-family: 'Outfit', sans-serif;
}
.section-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0;
}
.section-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color, #0d9488);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: gap 0.2s;
}
.section-link:hover {
    gap: 8px;
}

/* ---- Category Chips ---- */
.category-chip {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}
.category-chip:hover {
    border-color: var(--primary-color, #0d9488);
    color: var(--primary-color, #0d9488);
}
.category-chip.active {
    background: var(--primary-color, #0d9488);
    color: #fff;
    border-color: var(--primary-color, #0d9488);
}

/* ---- Listing Cards ---- */
.listing-card-img-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8fafc;
}
.listing-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}
.listings-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    position: relative;
}
.listings-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.listings-img-icon {
    font-size: 32px;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
}
.listing-card-img-wrap .listings-img:not([style*="display: none"]) + .listings-img-icon {
    display: none;
}
.listings-card-body {
    padding: 14px;
}
.listings-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listings-card-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.listings-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-color, #0d9488);
}
.listings-price-currency {
    font-size: 13px;
}
.listings-price-unit {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}
.listings-price-strike {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}
.listings-card-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.listings-seller-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}
.listings-seller-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listings-card-seller-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.listings-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.listing-add-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--primary-color, #0d9488);
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary-color, #0d9488);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    white-space: nowrap;
}
.listing-add-cart-btn:hover {
    background: var(--primary-color, #0d9488);
    color: #fff;
    transform: scale(1.05);
}
.listing-add-cart-btn:active {
    transform: scale(0.95);
}
.cart-btn-label { font-weight: 600; }
@media (max-width: 480px) {
    .cart-btn-label { display: none; }
    .listing-add-cart-btn { padding: 8px; width: 36px; height: 36px; justify-content: center; }
}
.listings-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Outfit', sans-serif;
}
.listings-load-more-btn:hover {
    border-color: var(--primary-color, #0d9488);
    color: var(--primary-color, #0d9488);
}

/* ---- Featured Items ---- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}
.featured-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.featured-card--green .featured-img-wrap { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.featured-card--blue .featured-img-wrap { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.featured-top {
    display: flex;
    gap: 0;
}
.featured-img-wrap {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
.featured-img-icon {
    font-size: 28px;
    color: rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}
.featured-right {
    padding: 18px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color, #0d9488);
}
.featured-price-currency {
    font-size: 14px;
}
.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    border-top: 1px solid #f1f5f9;
}
.featured-stock {
    display: flex;
    align-items: center;
    gap: 6px;
}
.featured-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.featured-stock-dot.in-stock { background: #22c55e; }
.featured-stock-dot.out-of-stock { background: #ef4444; }
.featured-stock-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.featured-buy-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #0d9488);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.featured-buy-link:hover {
    gap: 8px;
}

/* ---- Snapshot Card ---- */
.snapshot-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
}
.snapshot-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.snapshot-avatar-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #f1f5f9;
}
.snapshot-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.snapshot-info { min-width: 0; }
.snapshot-name {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}
.snapshot-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.snapshot-meta span {
    font-size: 13px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.snapshot-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.snapshot-stat {
    text-align: center;
}
.snapshot-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.snapshot-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}
@media (max-width: 768px) {
    .snapshot-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Reviews ---- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
}
.review-stars {
    margin-bottom: 10px;
}
.review-text {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    margin: 0 0 14px;
}
.review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.review-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.review-user-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}
.review-date {
    font-size: 12px;
    color: #94a3b8;
}

/* ---- Products Section ---- */
.products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.listings-controls {
    flex-shrink: 0;
}
.listings-filter-select {
    padding: 8px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    background: #fff;
    cursor: pointer;
    outline: none;
    font-family: 'Outfit', sans-serif;
}
.listings-filter-select:focus {
    border-color: var(--primary-color, #0d9488);
}
.store-search-wrap {
    position: relative;
}
.store-search-wrap i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
}
.store-search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}
.store-search-input:focus {
    border-color: var(--primary-color, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}

/* ---- About Page ---- */
.about-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}
.about-profile-section {
    text-align: center;
    padding: 40px 24px 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
}
.about-avatar-wrap {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #e2e8f0;
    position: relative;
}
.about-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.about-location {
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 16px;
}
.about-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.about-stat { text-align: center; }
.about-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.about-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 2px;
}
.about-section {
    padding: 24px;
    border-top: 1px solid #f1f5f9;
}
.about-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}
.about-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}
.about-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.about-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    text-decoration: none;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.about-social-link:hover {
    border-color: var(--primary-color, #0d9488);
    color: var(--primary-color, #0d9488);
}
.about-policies-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.about-policies-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}
.about-policies-list li i {
    color: var(--primary-color, #0d9488);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}
.about-business-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.about-business-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.about-business-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.about-business-val {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}
.about-business-val--yes {
    color: #0ca678;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ---- Policies Page ---- */
.policies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.policy-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}
.policy-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(13, 148, 136, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.policy-icon i {
    font-size: 22px;
    color: var(--primary-color, #0d9488);
}
.policy-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}
.policy-text {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ---- Track Order Page ---- */
.track-order-form-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 32px;
}
.track-order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.track-order-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.track-order-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.track-order-input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}
.track-order-input:focus {
    border-color: var(--primary-color, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.08);
}
.track-order-submit {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: var(--primary-color, #0d9488);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}
.track-order-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.track-order-help {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
.track-order-help a {
    color: var(--primary-color, #0d9488);
    font-weight: 700;
    text-decoration: none;
}
.track-order-status {
    margin-top: 20px;
    background: #f8fafc;
    border-radius: 14px;
    padding: 24px;
}
.track-order-status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.track-order-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.track-order-status-dot.status-pending { background: #f59e0b; }
.track-order-status-dot.status-processing { background: #3b82f6; }
.track-order-status-dot.status-shipped { background: #8b5cf6; }
.track-order-status-dot.status-delivered { background: #22c55e; }
.track-order-status-dot.status-completed { background: #22c55e; }
.track-order-status-dot.status-cancelled { background: #ef4444; }
.track-order-status-text {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}
.track-order-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.track-order-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.track-order-detail-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.track-order-detail-val {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}
.track-order-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}
.track-order-note a {
    color: var(--primary-color, #0d9488);
    font-weight: 700;
    text-decoration: none;
}

/* ==========================================
   SPA Skeleton Loaders & Transitions
   ========================================== */

@keyframes skeletonPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}
@keyframes skeletonShimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

#spa-content {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.skeleton-container {
    padding: 0 0 40px;
}
.skeleton-bar {
    height: 14px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 800px 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-w20 { width: 20%; }
.skeleton-w30 { width: 30%; }
.skeleton-w40 { width: 40%; }
.skeleton-w50 { width: 50%; }
.skeleton-w60 { width: 60%; }
.skeleton-w70 { width: 70%; }
.skeleton-w80 { width: 80%; }
.skeleton-w90 { width: 90%; }
.skeleton-w100 { width: 100%; }

.skeleton-hero {
    background: linear-gradient(135deg, #f1f5f9 0%, #e8edf2 50%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 40px 36px;
    margin-bottom: 32px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(0,0,0,0.04);
}
.skeleton-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}
.skeleton-hero-left { flex: 1; min-width: 0; }
.skeleton-hero-right { flex-shrink: 0; }
.skeleton-hero .skeleton-bar {
    background: linear-gradient(90deg, #d4dce6 25%, #e2e8f0 50%, #d4dce6 75%);
    background-size: 800px 100%;
}
.skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(90deg, #d4dce6 25%, #e2e8f0 50%, #d4dce6 75%);
    background-size: 800px 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.skeleton-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.skeleton-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.skeleton-img {
    height: 180px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 800px 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}
.skeleton-card-body {
    padding: 16px;
}

@media (max-width: 768px) {
    .skeleton-hero {
        padding: 32px 20px;
        min-height: 200px;
        border-radius: 0;
        margin-left: -16px;
        margin-right: -16px;
    }
    .skeleton-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .skeleton-avatar {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }
}
.skeleton-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.skeleton-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ---- SPA Error State ---- */
.spa-error {
    text-align: center;
    padding: 80px 24px;
    color: #64748b;
}
.spa-error i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}
.spa-error p {
    font-size: 16px;
    margin-bottom: 20px;
}
.btn-retry {
    padding: 10px 28px;
    border-radius: 12px;
    background: var(--primary-color, #0d9488);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}

/* ==========================================
   Smart Mobile Menu (Slide-in Drawer)
   ========================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #fff;
    z-index: 20001;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 40px rgba(0,0,0,0.1);
}
.mobile-menu-drawer.active {
    left: 0;
}
.mobile-menu-header {
    padding: 24px 20px 16px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-menu-header .seller-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}
.mobile-menu-header .seller-info {
    flex: 1;
    min-width: 0;
}
.mobile-menu-header .seller-name {
    font-weight: 800;
    font-size: 15px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-menu-header .seller-badge {
    font-size: 11px;
    color: #0ca678;
    font-weight: 600;
}
.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mobile-menu-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.mobile-menu-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}
.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border-radius: 12px;
    margin: 2px 12px;
    cursor: pointer;
    background: none;
    border: none;
    width: calc(100% - 24px);
    text-align: left;
    font-family: 'Outfit', sans-serif;
}
.mobile-menu-item:hover {
    background: #f1f5f9;
    color: var(--primary-color, #0d9488);
}
.mobile-menu-item.active {
    color: var(--primary-color, #0d9488);
    background: rgba(13, 148, 136, 0.06);
    font-weight: 700;
}
.mobile-menu-item i {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.mobile-menu-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 20px;
}
.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}
.mobile-menu-footer .btn-login {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: var(--primary-color, #0d9488);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.mobile-menu-footer .btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile menu hamburger */
.mobile-menu-trigger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.mobile-menu-trigger:hover {
    background: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .mobile-menu-trigger {
        display: flex;
    }
    .storefront-fixed-header .desktop-nav-links {
        display: none;
    }
    .storefront-tabs-nav {
        gap: 0;
    }
    .store-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ==========================================
   Login Modal
   ========================================== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.login-modal-overlay.active {
    display: flex;
}
.login-modal-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.login-modal-close:hover {
    background: #0f172a;
    color: #fff;
}
.login-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: rgba(13, 148, 136, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.login-modal-icon i {
    font-size: 28px;
    color: var(--primary-color, #0d9488);
}
.login-modal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}
.login-modal-subtitle {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}
.login-form-group {
    margin-bottom: 16px;
}
.login-form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}
.login-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #0f172a;
    transition: all 0.2s;
    outline: none;
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}
.login-form-input:focus {
    border-color: var(--primary-color, #0d9488);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}
.login-form-submit {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: var(--primary-color, #0d9488);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.login-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.login-google-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.login-google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.login-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: #94a3b8;
    font-size: 13px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.login-footer-link {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
}
.login-footer-link a {
    color: var(--primary-color, #0d9488);
    font-weight: 700;
    text-decoration: none;
}
.login-footer-link a:hover {
    text-decoration: underline;
}

/* ==========================================
   Enhanced Hero Follow/Share Buttons
   ========================================== */
.hero-actions-container .btn-follow,
.hero-actions-container .btn-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: 'Outfit', sans-serif;
}
.hero-actions-container .btn-follow {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.hero-actions-container .btn-follow:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero-actions-container .btn-follow.following {
    background: var(--primary-color, #0d9488);
    border-color: var(--primary-color, #0d9488);
    color: #fff;
}
.hero-actions-container .btn-share {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.2);
}
.hero-actions-container .btn-share:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
