/* ============================================================
   NAIRABUY.NG — MASTER STYLESHEET
   Desktop-first, fully responsive header & footer
   Header now supports BOTH .user-actions AND .header-links
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
/* ============================================================
   HEADER — ONE STRUCTURE FOR ALL PAGES
   Works on: index, category, product, cart, checkout, about, blog,
   contact, help, returns, seller-guidelines, seller-support,
   commission-rates, privacy, forgot-password, login, register,
   profile, orders, search, wishlist, seller/*, admin/*
   ============================================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Logo */
.header .logo {
    font-size: 26px;
    font-weight: 700;
    color: #2c3e50;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}
.header .logo span { color: #27ae60; }
.header .logo a { text-decoration: none; color: inherit; }

/* Search bar (only on pages that have it) */
.header .search-bar {
    display: flex;
    flex: 1;
    max-width: 480px;
    min-width: 0;
}
.header .search-bar input {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border: 2px solid #ecf0f1;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 15px;
    outline: none;
}
.header .search-bar input:focus { border-color: #27ae60; }
.header .search-bar button {
    padding: 11px 18px;
    background: #27ae60;
    border: none;
    border-radius: 0 25px 25px 0;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

/* ✅ Unified actions row — works with .user-actions AND .header-links */
.header .user-actions,
.header .header-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Plain text links (Home, Shop) */
.header .user-actions > a:not([class]),
.header .header-links > a:not([class]) {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 4px;
    transition: color 0.2s;
    white-space: nowrap;
}
.header .user-actions > a:not([class]):hover,
.header .header-links > a:not([class]):hover { color: #27ae60; }

/* Buttons */
.header .btn-outline,
.header .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1;
    min-height: 38px;
    border: none;
}
.header .btn-outline {
    border: 1.5px solid #27ae60;
    color: #27ae60;
    background: transparent;
}
.header .btn-outline:hover {
    background: #27ae60;
    color: #fff;
}
.header .btn-primary {
    background: #27ae60;
    color: #fff;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
}
.header .btn-primary:hover { background: #219a52; }

/* Cart & wishlist icons */
.header .cart-icon,
.header .wishlist-icon {
    color: #2c3e50;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
}
.header .cart-icon:hover,
.header .wishlist-icon:hover {
    color: #27ae60;
    background: #f0f9f3;
}
.header .cart-icon span,
.header .wishlist-icon span {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    min-width: 17px;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    border: 2px solid #fff;
}

/* ============================================================
   HEADER RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ---------- iPad (≤1024px) ---------- */
@media (max-width: 1024px) {
    .header .container { gap: 12px; padding: 0 16px; }
    .header .logo { font-size: 23px !important; }
    .header .search-bar { max-width: 320px; }
    .header .btn-outline,
    .header .btn-primary {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-height: 36px !important;
    }
    .header .user-actions,
    .header .header-links { gap: 10px; }
}

/* ---------- Tablet (≤900px) — search bar wraps below ---------- */
@media (max-width: 900px) {
    .header .container {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .header .logo { order: 1; }
    .header .user-actions,
    .header .header-links { order: 2; margin-left: auto; }
    .header .search-bar {
        order: 3;
        flex: 1 0 100%;
        max-width: 100%;
    }
}

/* ---------- Phone (≤768px) ---------- */
@media (max-width: 768px) {
    .header { padding: 12px 0 !important; }
    .header .container {
        gap: 10px !important;
        padding: 0 15px !important;
        flex-wrap: wrap !important;
    }
    .header .logo { font-size: 21px !important; }

    /* Hide plain text links (Home, Shop) */
    .header .user-actions > a:not([class]),
    .header .header-links > a:not([class]) {
        display: none !important;
    }

    .header .user-actions,
    .header .header-links {
        gap: 8px !important;
        margin-left: auto;
    }

    .header .btn-outline,
    .header .btn-primary {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-height: 38px !important;
        border-radius: 22px !important;
    }

    .header .cart-icon,
    .header .wishlist-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .header .search-bar {
        flex: 1 0 100% !important;
        max-width: 100% !important;
        order: 3 !important;
    }
    .header .search-bar input {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    .header .search-bar button { padding: 10px 16px !important; }
}

/* ---------- Phone (≤520px) — Hide Sign Up, keep Login ---------- */
@media (max-width: 520px) {
    .header { padding: 11px 0 !important; }
    .header .container {
        padding: 0 13px !important;
        gap: 8px !important;
    }
    .header .logo { font-size: 19px !important; }

    /* ✅ Sign Up hidden on ALL pages except homepage */
    body:not(.home-page) .header .btn-primary {
        display: none !important;
    }

    .header .user-actions,
    .header .header-links { gap: 6px !important; }

    .header .btn-outline {
        padding: 9px 18px !important;
        font-size: 13px !important;
        min-height: 38px !important;
        border-radius: 22px !important;
    }

    .header .cart-icon,
    .header .wishlist-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    .header .search-bar input {
        padding: 10px 13px !important;
        font-size: 13px !important;
    }
    .header .search-bar button { padding: 10px 14px !important; }
}

/* ---------- Small Phone (≤400px) ---------- */
@media (max-width: 400px) {
    .header { padding: 10px 0 !important; }
    .header .container { padding: 0 12px !important; gap: 6px !important; }
    .header .logo { font-size: 17px !important; }

    .header .user-actions,
    .header .header-links { gap: 4px !important; }

    .header .btn-outline {
        padding: 8px 15px !important;
        font-size: 12px !important;
        min-height: 36px !important;
    }

    .header .cart-icon,
    .header .wishlist-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 16px !important;
    }

    .header .search-bar input {
        padding: 9px 12px !important;
        font-size: 12.5px !important;
    }
    .header .search-bar button { padding: 9px 13px !important; }
}

/* ---------- Tiny Phone (≤340px) ---------- */
@media (max-width: 340px) {
    .header .logo { font-size: 15px !important; }
    .header .btn-outline {
        padding: 7px 13px !important;
        font-size: 11.5px !important;
        min-height: 34px !important;
    }
    .header .cart-icon,
    .header .wishlist-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }
    .header .search-bar input {
        padding: 8px 11px !important;
        font-size: 12px !important;
    }
    .header .search-bar button { padding: 8px 12px !important; }
}

/* ============================================================
   CATEGORY NAV
   ============================================================ */
.category-nav {
    background: #2c3e50;
    padding: 12px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.category-nav::-webkit-scrollbar { height: 3px; }
.category-nav::-webkit-scrollbar-thumb {
    background: #27ae60;
    border-radius: 3px;
}
.category-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
}
.category-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.category-nav a:hover { color: #27ae60; }

@media (max-width: 480px) {
    .category-nav ul { gap: 18px; }
    .category-nav a { font-size: 13px; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}
.hero h1 { font-size: 42px; margin-bottom: 15px; }

@media (max-width: 768px) {
    .hero { padding: 35px 15px !important; }
    .hero h1 { font-size: 24px !important; }
    .hero p { font-size: 14px !important; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 20px !important; }
    .hero p { font-size: 13px !important; }
}

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */
.featured-products { padding: 60px 0; background: #f9f9f9; }
.featured-products h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #2c3e50;
}
@media (max-width: 768px) {
    .featured-products { padding: 30px 0 !important; }
    .featured-products h2 { font-size: 22px !important; margin-bottom: 25px !important; }
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    border: 1px solid #ecf0f1;
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #27ae60;
}

.product-image,
.card-img-wrap {
    position: relative;
    height: 220px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img,
.card-img-wrap img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img,
.product-card:hover .card-img-wrap img { transform: scale(1.1); }

.card-img-wrap a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.card-badge.low-stock { background: #fff3cd; color: #856404; }
.card-badge.sold-out  { background: #f8d7da; color: #721c24; }

.card-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: #bdc3c7;
    font-size: 16px;
    transition: all 0.2s;
}
.card-wishlist:hover { color: #e74c3c; transform: scale(1.1); }

.product-info,
.card-body { padding: 16px; }

.product-title,
.card-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
    margin-bottom: 8px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.product-title:hover,
.card-title:hover { color: #27ae60; }

.product-price,
.card-price {
    font-size: 22px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 6px;
}

.product-seller,
.card-seller {
    font-size: 13px;
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.seller-dot {
    width: 6px;
    height: 6px;
    background: #27ae60;
    border-radius: 50%;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #7f8c8d;
}
.card-stars { color: #f1c40f; font-size: 12px; letter-spacing: 1px; }

.add-to-cart,
.card-add-btn {
    width: 100%;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}
.add-to-cart:hover,
.card-add-btn:hover { background: #219a52; transform: scale(1.02); }
.card-add-btn:disabled { background: #bdc3c7; cursor: not-allowed; transform: none; }

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    .product-image, .card-img-wrap { height: 160px !important; }
    .product-info, .card-body { padding: 12px !important; }
    .product-title, .card-title { font-size: 13px !important; }
    .product-price, .card-price { font-size: 17px !important; }
    .product-seller, .card-seller { font-size: 11px !important; }
    .add-to-cart, .card-add-btn { padding: 9px !important; font-size: 12px !important; }
}
@media (max-width: 480px) {
    .product-grid { gap: 8px !important; }
    .product-image, .card-img-wrap { height: 130px !important; }
    .product-info, .card-body { padding: 10px !important; }
    .product-title, .card-title { font-size: 12px !important; }
    .product-price, .card-price { font-size: 15px !important; }
    .card-wishlist { width: 30px; height: 30px; font-size: 13px; }
}
@media (max-width: 375px) {
    .product-image, .card-img-wrap { height: 110px !important; }
    .product-title, .card-title { font-size: 11px !important; }
    .product-price, .card-price { font-size: 14px !important; }
    .add-to-cart, .card-add-btn { padding: 7px !important; font-size: 11px !important; }
}

/* ============================================================
   FOOTER — Fully Responsive
   ============================================================ */
.footer {
    background: #1a252f;
    color: white;
    padding: 45px 0 25px;
    margin-top: 50px;
}
.footer .container { padding: 0 20px; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 16px;
    font-weight: 600;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #bdc3c7;
    line-height: 1.5;
}
.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-links a:hover { color: #27ae60; }
.footer-links i { color: #27ae60; margin-right: 6px; width: 16px; display: inline-block; }

.social-brand {
    text-align: center;
    padding: 20px 0;
    margin: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-large {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}
.footer-logo-large span { color: #27ae60; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 15px;
}
.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.25s;
}
.social-icons a:hover { background: #27ae60; transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}
.footer-bottom a { color: #94a3b8; text-decoration: none; }
.footer-bottom a:hover { color: #27ae60; }

.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.payment-methods i {
    font-size: 26px;
    background: #1e293b;
    padding: 7px 10px;
    border-radius: 10px;
    color: #bdc3c7;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 25px; }
}
@media (max-width: 768px) {
    .footer { padding: 35px 0 20px !important; margin-top: 35px; }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .footer-links h4 { font-size: 14px !important; margin-bottom: 12px; }
    .footer-links li, .footer-links a { font-size: 12px !important; }
    .footer-logo-large { font-size: 22px !important; }
    .social-icons a { width: 34px; height: 34px; font-size: 14px; }
}
@media (max-width: 480px) {
    .footer { padding: 25px 0 15px !important; }
    .footer-grid { gap: 15px !important; }
    .footer-links h4 { font-size: 13px !important; }
    .footer-links li, .footer-links a { font-size: 11px !important; }
    .footer-logo-large { font-size: 18px !important; }
    .social-icons { gap: 10px; }
    .social-icons a { width: 30px; height: 30px; font-size: 12px; }
    .payment-methods i { font-size: 20px !important; padding: 5px 8px !important; }
    .footer-bottom { font-size: 10px !important; }
}
@media (max-width: 375px) {
    .footer-grid { gap: 12px !important; }
    .footer-links h4 { font-size: 12px !important; }
    .footer-links li, .footer-links a { font-size: 10px !important; }
    .footer-logo-large { font-size: 16px !important; }
    .social-icons a { width: 28px; height: 28px; font-size: 11px; }
}
@media (max-width: 320px) {
    .footer-grid { gap: 10px !important; }
    .footer-links h4 { font-size: 11px !important; }
    .footer-links li, .footer-links a { font-size: 9px !important; }
}

/* ============================================================
   MISC / UTILITIES
   ============================================================ */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #7f8c8d;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}
.breadcrumb a { color: #6c757d; text-decoration: none; }
.breadcrumb a:hover { color: #27ae60; }
.breadcrumb i { font-size: 10px; margin: 0 8px; color: #adb5bd; }
@media (max-width: 480px) {
    .breadcrumb { font-size: 11px; padding: 10px 0; }
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail { padding: 40px 0; }
.product-detail-grid,
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.product-gallery { position: relative; }

.main-image,
.main-image-wrapper {
    width: 100%;
    height: 400px;
    background: #f1f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
}
.main-image img,
.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f2f6;
}
.thumbnail.active { border-color: #27ae60; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-info-detail h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
}
.product-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.seller-info { display: flex; align-items: center; gap: 8px; color: #7f8c8d; }
.seller-info i { color: #27ae60; }

.product-price-detail {
    font-size: 32px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 20px;
}
.product-description { color: #34495e; line-height: 1.6; margin-bottom: 25px; }

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.quantity-selector label { font-weight: 500; }
.quantity-input { display: flex; align-items: center; }
.quantity-input button {
    width: 36px;
    height: 36px;
    background: #ecf0f1;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.quantity-input input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ecf0f1;
    border-left: none;
    border-right: none;
    font-size: 16px;
}

.add-to-cart-detail {
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}
.add-to-cart-detail:hover { background: #219a52; }

@media (max-width: 768px) {
    .product-detail { padding: 20px 0 !important; }
    .product-detail-grid,
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .main-image,
    .main-image-wrapper { height: 260px !important; }
    .product-info-detail h1 { font-size: 20px !important; }
    .product-price-detail { font-size: 24px !important; }
    .thumbnail { width: 55px; height: 55px; }
}
@media (max-width: 480px) {
    .main-image,
    .main-image-wrapper { height: 220px !important; }
    .product-info-detail h1 { font-size: 18px !important; }
    .product-price-detail { font-size: 22px !important; }
    .product-description { font-size: 13px !important; }
    .add-to-cart-detail { font-size: 15px !important; padding: 12px 20px !important; }
}

/* ============================================================
   STAR RATINGS
   ============================================================ */
.star-rating { display: flex; align-items: center; gap: 5px; }
.stars { display: flex; gap: 2px; }
.star { color: #f1c40f; font-size: 16px; }
.star-empty { color: #ecf0f1; }
.star-large { font-size: 24px; }
.star-interactive { cursor: pointer; transition: transform 0.1s; }
.star-interactive:hover { transform: scale(1.2); }
.rating-number { font-weight: 600; color: #2c3e50; margin-left: 5px; }
.review-count { color: #7f8c8d; font-size: 14px; margin-left: 5px; }

.rating-bars { margin: 15px 0; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rating-label { width: 30px; color: #7f8c8d; font-size: 14px; }
.rating-bar { flex: 1; height: 8px; background: #ecf0f1; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f1c40f; border-radius: 4px; }
.rating-percent { width: 45px; font-size: 13px; color: #7f8c8d; }

.seller-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}
.seller-rating .stars { gap: 1px; }
.seller-rating .star { font-size: 12px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-section { margin-top: 40px; }
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}
.reviews-header h3 { font-size: 22px; color: #2c3e50; }

.review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.reviewer-info { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar {
    width: 40px; height: 40px;
    background: #e8f8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #27ae60;
    font-weight: 600;
}
.reviewer-name { font-weight: 600; color: #2c3e50; }
.review-date { font-size: 13px; color: #7f8c8d; }
.verified-badge {
    background: #e8f8f0;
    color: #27ae60;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 8px;
}
.review-title { font-weight: 600; color: #2c3e50; margin-bottom: 8px; }
.review-comment { color: #34495e; line-height: 1.6; margin-bottom: 15px; }
.review-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.helpful-btn {
    background: none;
    border: 1px solid #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.2s;
}
.helpful-btn:hover {
    background: #f8f9fa;
    border-color: #27ae60;
    color: #27ae60;
}
.helpful-btn i { margin-right: 5px; }

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.show { display: flex; }

.review-modal {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}
.review-modal h3 { color: #2c3e50; margin-bottom: 20px; }

.rating-input { display: flex; gap: 10px; margin-bottom: 20px; }
.rating-input .star { font-size: 32px; cursor: pointer; }
.rating-input .star:hover { color: #f1c40f; }

.review-form-group { margin-bottom: 20px; }
.review-form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #2c3e50; }
.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 15px;
}
.review-form-group textarea { resize: vertical; min-height: 100px; }
.submit-review-btn {
    width: 100%;
    padding: 14px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
}

@media (max-width: 480px) {
    .review-modal { padding: 22px 16px !important; }
    .reviews-header h3 { font-size: 18px !important; }
    .review-card { padding: 15px !important; }
}

/* ============================================================
   UNIVERSAL RESPONSIVE ENHANCEMENTS
   ============================================================ */
table {
    width: 100%;
    border-collapse: collapse;
}

.card, .dashboard-card, .main-content {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .main-content {
        padding: 15px !important;
        margin-left: 0 !important;
    }
    .dashboard-grid, .stats-grid, .product-detail-grid, .checkout-content {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

button,
.btn-primary,
.btn-outline,
.card-add-btn,
.add-to-cart-detail,
input,
select,
textarea {
    min-height: 44px;
    font-size: 16px;
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-link:hover .product-title { color: #27ae60; }