/* ============================================================
   CLOTHS4U – COMPLETE STYLESHEET
   Includes: Home, Category, Account, Orders, Login, Sell, FAQ, Contact, Shipping, Returns
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1a1a2e;
    --primary-dark: #0f0f1a;
    --accent: #c9a84c;
    --accent-hover: #b8932e;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}
.btn-gold {
    background: var(--accent);
    color: var(--white);
}
.btn-gold:hover {
    background: var(--accent-hover);
}

/* ---------- Top Bar ---------- */
.top-bar {
    background: var(--primary);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    text-align: center;
}
.top-bar strong {
    color: var(--accent);
}

/* ---------- Header ---------- */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.logo i {
    color: var(--accent);
    font-size: 1.6rem;
}
.logo span {
    color: var(--accent);
}

.search-wrap {
    flex: 1 1 300px;
    position: relative;
}
.search-wrap input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--gray-100);
    transition: var(--transition);
}
.search-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}
.search-results {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 10;
}
.search-results.active {
    display: block;
}
.search-results li {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-results li:hover {
    background: var(--gray-100);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.header-actions a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}
.header-actions a:hover {
    color: var(--accent);
}
.header-actions i {
    font-size: 1.4rem;
}
.account-label, .wishlist-label {
    display: none;
}
@media (min-width: 768px) {
    .account-label, .wishlist-label {
        display: inline;
    }
}
.cart-count {
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: -0.3rem;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .search-wrap {
        order: 3;
        flex-basis: 100%;
    }
    .header-actions a span {
        display: none;
    }
}

/* ---------- Navigation ---------- */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.3rem 0;
}
.nav .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
}
.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700);
    padding: 0.5rem 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
}
.badge {
    background: var(--accent);
    color: var(--white);
    font-size: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    margin-left: 4px;
}
.badge-hot {
    background: #dc3545;
}

/* ---------- Mobile Nav ---------- */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}
.mobile-overlay.active {
    display: block;
}
.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: var(--white);
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    z-index: 300;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    overflow-y: auto;
}
.mobile-nav.open {
    right: 0;
}
.close-btn {
    font-size: 2rem;
    cursor: pointer;
    float: right;
}
.logo-sm {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}
.logo-sm span {
    color: var(--accent);
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.mobile-nav ul li a {
    display: block;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}
.mobile-nav ul li a:hover {
    background: var(--gray-100);
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 4rem 0;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-content h1 em {
    color: var(--accent);
    font-style: italic;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
}
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.stat h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.stat p {
    font-size: 0.9rem;
    color: var(--gray-400);
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--accent);
}
@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .btn-group {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .placeholder {
        max-width: 200px;
        font-size: 5rem;
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 4rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary);
}
.view-all {
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
}
.view-all:hover {
    color: var(--accent);
}
.view-all i {
    margin-left: 4px;
}

/* ---------- Category Grid ---------- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}
.category-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.category-card .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.category-card h4 {
    font-weight: 600;
    font-size: 1rem;
}
.category-card p {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ---------- Product Grid (Home & Category) ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: left;
    padding-bottom: 1rem;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.product-card .image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .image-wrap .placeholder-img {
    font-size: 4rem;
    color: var(--gray-400);
}
.product-card .badges {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-card .badge {
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-sale {
    background: #dc3545;
    color: var(--white);
}
.badge-new {
    background: #28a745;
    color: var(--white);
}
.badge-hot {
    background: #ffc107;
    color: var(--primary);
}
.badge-premium {
    background: #6f42c1;
    color: var(--white);
}
.product-card .wishlist-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255,255,255,0.85);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card .wishlist-btn:hover {
    background: var(--white);
    color: #dc3545;
}
.product-card .wishlist-btn.active {
    color: #dc3545;
}
.product-card .info {
    padding: 0.8rem 1rem;
}
.product-card .brand {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.product-card .title {
    font-weight: 500;
    margin: 0.2rem 0 0.4rem;
    font-size: 1rem;
    color: var(--gray-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .rating {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}
.product-card .rating .stars {
    color: var(--accent);
}
.product-card .price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
}
.product-card .price-row .price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}
.product-card .price-row .price.old {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--gray-500);
    text-decoration: line-through;
}
.product-card .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0.3rem 0;
}
.product-card .sizes span {
    display: inline-block;
    background: var(--gray-200);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--gray-700);
}
.product-card .condition {
    font-size: 0.8rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0.3rem 0;
}
.product-card .condition i {
    color: var(--gray-500);
}
.product-card .stock {
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.3rem 0;
}
.product-card .stock.in-stock {
    color: #28a745;
}
.product-card .stock:not(.in-stock) {
    color: #dc3545;
}
.product-card .action-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}
.product-card .action-buttons .add-btn {
    flex: 1;
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.product-card .action-buttons .add-btn:hover:not(:disabled) {
    background: var(--accent);
}
.product-card .action-buttons .add-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}
.product-card .action-buttons .view-details-btn {
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 50px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.product-card .action-buttons .view-details-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

/* ---------- Newsletter ---------- */
.newsletter {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.newsletter h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.newsletter p {
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}
.newsletter form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter input {
    flex: 1;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 50px;
    min-width: 200px;
}
.newsletter .btn {
    border-radius: 50px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}
.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
}
.brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.brand h3 span {
    color: var(--accent);
}
.brand p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.socials {
    display: flex;
    gap: 1rem;
}
.socials a {
    color: var(--gray-400);
    font-size: 1.2rem;
    transition: var(--transition);
}
.socials a:hover {
    color: var(--accent);
}
.footer h4 {
    color: var(--white);
    margin-bottom: 0.8rem;
}
.footer ul li {
    margin-bottom: 0.4rem;
}
.footer ul li a {
    transition: var(--transition);
}
.footer ul li a:hover {
    color: var(--accent);
}
.bottom {
    grid-column: 1 / -1;
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-500);
}
@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .footer .container {
        grid-template-columns: 1fr;
    }
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 999;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast .icon {
    color: var(--accent);
}

/* ============================================================
   CATEGORY PAGE SPECIFIC STYLES
   ============================================================ */

.page-header {
    background: var(--white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.page-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}
.page-header .breadcrumb a {
    color: var(--gray-700);
    transition: var(--transition);
}
.page-header .breadcrumb a:hover {
    color: var(--accent);
}
.page-header .breadcrumb .sep {
    margin: 0 0.3rem;
}
.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}
.page-header .results-count {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: var(--gray-600);
}
.page-header .filter-badge {
    display: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    background: var(--gray-200);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    align-items: center;
    gap: 0.3rem;
}
.page-header .filter-badge.active {
    display: inline-flex;
}
.filter-badge #filterBadgeCount {
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    padding: 0 0.5rem;
    font-weight: 700;
}

.category-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

/* Sidebar */
.sidebar {
    flex: 0 0 260px;
    background: var(--white);
    padding: 1.5rem 1.2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    align-self: start;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.sidebar .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.sidebar .filter-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.sidebar .filter-header .badge-count {
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.3rem;
}
.clear-all {
    background: none;
    border: none;
    color: var(--gray-600);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
}
.clear-all:hover {
    color: #dc3545;
}

.filter-group {
    margin-bottom: 1.2rem;
}
.filter-toggle {
    background: none;
    border: none;
    width: 100%;
    padding: 0.4rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
    cursor: pointer;
    border-bottom: 1px solid var(--gray-200);
}
.filter-toggle .toggle-icon {
    transition: transform 0.3s;
}
.filter-toggle .toggle-icon.open {
    transform: rotate(180deg);
}
.filter-options {
    display: none;
    padding-top: 0.5rem;
}
.filter-options.open {
    display: block;
}
.filter-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    padding: 0.2rem 0;
    cursor: pointer;
}
.filter-options label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}
.filter-options label .count {
    color: var(--gray-500);
    font-size: 0.8rem;
    margin-left: auto;
}
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.price-range input {
    width: 80px;
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.9rem;
}
.price-range .dash {
    color: var(--gray-500);
}

/* Product Area */
.product-area {
    flex: 1;
}
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.toolbar .sort-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}
.toolbar .sort-wrap select {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    background: var(--white);
    font-size: 0.9rem;
}
.toolbar .view-toggle {
    display: flex;
    gap: 0.3rem;
}
.toolbar .view-toggle button {
    background: none;
    border: 1px solid var(--gray-300);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}
.toolbar .view-toggle button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.toolbar .view-toggle button:hover:not(.active) {
    background: var(--gray-200);
}
.toolbar .filter-mobile-toggle {
    display: none;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    gap: 0.3rem;
    align-items: center;
}
.toolbar .filter-mobile-toggle .badge-count {
    background: var(--accent);
    border-radius: 50%;
    padding: 0 0.4rem;
    font-size: 0.7rem;
}
@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
    .category-layout {
        flex-direction: column;
    }
    .toolbar .filter-mobile-toggle {
        display: inline-flex;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.pagination button {
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.pagination button:hover:not(:disabled) {
    background: var(--gray-200);
}
.pagination button.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination .ellipsis {
    padding: 0 0.3rem;
    color: var(--gray-500);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--gray-500);
}
.empty-state i {
    font-size: 3rem;
    color: var(--gray-300);
    margin-bottom: 1rem;
}
.empty-state h3 {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ---------- Mobile Filter Drawer ---------- */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 400;
}
.filter-drawer-overlay.active {
    display: block;
}
.filter-drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.2rem 2rem;
    transition: bottom 0.4s ease;
    z-index: 500;
    max-height: 85vh;
    overflow-y: auto;
}
.filter-drawer.open {
    bottom: 0;
}
.filter-drawer .drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--gray-300);
    border-radius: 4px;
    margin: 0 auto 1rem;
}
.filter-drawer .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.filter-drawer .drawer-header h3 {
    font-size: 1.1rem;
}
.filter-drawer .drawer-header .close-drawer {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
.filter-drawer .drawer-body {
    margin-bottom: 1.5rem;
}
.filter-drawer .drawer-footer {
    display: flex;
    gap: 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}
.filter-drawer .drawer-footer .btn-clear {
    flex: 1;
    padding: 0.6rem;
    background: var(--gray-200);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
}
.filter-drawer .drawer-footer .btn-apply {
    flex: 2;
    padding: 0.6rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
}
.filter-drawer .drawer-footer .btn-apply:hover {
    background: var(--accent);
}

/* ============================================================
   ADDITIONAL PAGES: Account, Orders, Login, Sell, FAQ, Contact, Shipping, Returns
   ============================================================ */

.account-dashboard {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.account-sidebar {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}
.account-sidebar h3 {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 0.5rem;
    margin-top: 0;
}
.account-sidebar ul li {
    margin: 0.5rem 0;
}
.account-sidebar ul li a {
    display: block;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: var(--transition);
}
.account-sidebar ul li a:hover {
    background: var(--gray-100);
}
.account-content {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.account-content h2 {
    font-family: 'Playfair Display', serif;
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.order-table th, .order-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}
.order-table th {
    background: var(--gray-100);
}
.order-status {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.status-shipped { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-delivered { background: #cce5ff; color: #004085; }

.auth-container {
    max-width: 500px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
}
.auth-tabs button {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}
.auth-tabs button.active {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}
.auth-form label {
    display: block;
    margin: 0.5rem 0 0.2rem;
}
.auth-form input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    margin-bottom: 1rem;
}
.auth-form .btn {
    width: 100%;
}

.sell-hero {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    padding: 3rem 1rem;
    text-align: center;
    border-radius: var(--radius);
    margin: 2rem 0;
}
.sell-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
}
.sell-step {
    flex: 1 1 200px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.sell-step .step-number {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.faq-question {
    background: var(--gray-100);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.faq-question:hover {
    background: var(--gray-200);
}
.faq-question .arrow {
    transition: transform 0.3s;
}
.faq-question.open .arrow {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 1rem 1rem;
    display: none;
}
.faq-answer.open {
    display: block;
}

.contact-info {
    background: var(--gray-100);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}
.contact-info p {
    margin: 0.5rem 0;
}

.policy-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    line-height: 1.8;
}
.policy-content h2 {
    margin-top: 2rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 768px) {
    .nav .container {
        gap: 0.3rem 0.8rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .account-dashboard {
        padding: 0 0.5rem;
    }
    .page-header h1 {
        font-size: 1.4rem;
    }
    .filter-drawer {
        padding: 1rem;
    }
}
@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .toolbar .sort-wrap {
        justify-content: center;
    }
    .toolbar .view-toggle {
        display: none;
    }
}