/* ============================================
   JOYOUTPOSTWAVE — STYLE SYSTEM
   Playful Market UI
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
    --bg-primary: #fdfdfd;
    --bg-section: #f1f5f9;
    --accent-orange: linear-gradient(135deg, #ff7a18, #ffb347);
    --accent-orange-solid: #ff7a18;
    --accent-blue: linear-gradient(135deg, #38bdf8, #60a5fa);
    --accent-blue-solid: #38bdf8;
    --accent-green: linear-gradient(135deg, #22c55e, #4ade80);
    --accent-green-solid: #22c55e;
    --heading-color: #0f172a;
    --text-color: #475569;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --card-radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.14);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Nunito', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font);
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 800;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-float {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-float.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(255, 122, 24, 0.4);
}

.btn-secondary {
    background: var(--accent-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
}

.btn-success {
    background: var(--accent-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--accent-orange-solid);
    border: 2px solid var(--accent-orange-solid);
}

.btn-outline:hover {
    background: var(--accent-orange);
    color: var(--white);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 20px;
    color: var(--heading-color);
    flex-shrink: 0;
}

.logo-icon {
    font-size: 28px;
    animation: bounce 2s infinite;
}

.logo-text {
    background: var(--accent-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-section);
    color: var(--accent-orange-solid);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-section);
    border-radius: 50px;
    padding: 8px 16px;
    gap: 8px;
    transition: var(--transition);
    min-width: 220px;
}

.search-bar:focus-within {
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.2);
    background: var(--white);
    border: 1px solid var(--accent-orange-solid);
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    font-family: var(--font);
    font-size: 14px;
    color: var(--heading-color);
    width: 100%;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    margin-top: 8px;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.search-results.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: var(--bg-section);
}

.search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.search-result-item .sr-info {
    flex: 1;
}

.search-result-item .sr-info strong {
    display: block;
    font-size: 14px;
}

.search-result-item .sr-info span {
    font-size: 13px;
    color: var(--accent-orange-solid);
    font-weight: 700;
}

.header-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-section);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    border: none;
}

.header-btn:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.favorites-btn {
    position: relative;
}

.fav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-bottom-nav {
    display: none;
    grid-template-columns: repeat(5, 1fr);
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.mob-nav-item.active {
    color: var(--accent-orange-solid);
}

.mob-nav-icon {
    font-size: 22px;
}

.mob-nav-item.sell-fab {
    position: relative;
}

.mob-nav-item.sell-fab .mob-nav-icon {
    background: var(--accent-orange);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(255, 122, 24, 0.4);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 50%, #f0fdf4 100%);
}

.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    top: -50px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-blue);
    bottom: -60px;
    left: -50px;
    animation: float 8s ease-in-out infinite 1s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-green);
    top: 40%;
    left: 20%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    background: var(--accent-orange);
    bottom: 20%;
    right: 30%;
    animation: float 5s ease-in-out infinite 2s;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 122, 24, 0.1);
    color: var(--accent-orange-solid);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.hero-text {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    color: var(--heading-color);
    font-weight: 900;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* FLOATING CARDS */
.hero-right {
    position: relative;
    height: 420px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.floating-card:hover {
    transform: scale(1.08) !important;
    box-shadow: var(--shadow-hover);
    z-index: 10;
}

.floating-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.fc-info {
    padding: 10px 14px;
}

.fc-price {
    display: block;
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-orange-solid);
}

.fc-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.fc-1 {
    top: 0;
    left: 20px;
    width: 170px;
    animation: floatSlow 5s ease-in-out infinite;
}

.fc-2 {
    top: 30px;
    right: 10px;
    width: 160px;
    animation: floatSlow 6s ease-in-out infinite 1s;
}

.fc-3 {
    bottom: 60px;
    left: 40px;
    width: 180px;
    animation: floatSlow 7s ease-in-out infinite 0.5s;
}

.fc-4 {
    bottom: 20px;
    right: 30px;
    width: 150px;
    animation: floatSlow 5.5s ease-in-out infinite 1.5s;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: rgba(255, 122, 24, 0.1);
    color: var(--accent-orange-solid);
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.section-badge.light {
    background: rgba(255,255,255,0.2);
    color: var(--white);
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.categories-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.cat-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.cat-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

.cat-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-section {
    padding: 80px 0;
}

.filters-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: var(--white);
    padding: 20px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: var(--heading-color);
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-orange-solid);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card .card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-green);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.card-fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.card-fav-btn:hover {
    transform: scale(1.2);
}

.card-fav-btn.active {
    background: #fee2e2;
}

.card-body {
    padding: 16px;
}

.card-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--heading-color);
    margin-bottom: 4px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.load-more-wrap {
    text-align: center;
    margin-top: 40px;
}

/* ============================================
   DEALS SECTION
   ============================================ */
.deals-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   SELL SECTION
   ============================================ */
.sell-section {
    padding: 80px 0;
}

.sell-inner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 30px;
    padding: 60px 48px;
    text-align: center;
    color: var(--white);
}

.sell-inner h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 12px;
}

.sell-inner > p,
.sell-content > p {
    color: rgba(255,255,255,0.7);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 40px;
}

.sell-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sell-step {
    background: rgba(255,255,255,0.1);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    width: 200px;
    text-align: center;
    position: relative;
}

.step-num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
}

.step-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.sell-step h3 {
    color: var(--white);
    font-size: 17px;
    margin-bottom: 6px;
}

.sell-step p {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.step-arrow {
    font-size: 24px;
    color: rgba(255,255,255,0.3);
    font-weight: 800;
}

/* ============================================
   TRUST & REVIEWS
   ============================================ */
.trust-section {
    padding: 80px 0;
    background: var(--bg-section);
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.trust-stat {
    text-align: center;
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 28px 20px;
    box-shadow: var(--shadow-sm);
}

.trust-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.trust-stat strong {
    display: block;
    font-size: 28px;
    color: var(--heading-color);
    font-weight: 900;
}

.trust-stat span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    margin-bottom: 12px;
    font-size: 16px;
}

.review-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-color);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    font-size: 32px;
    width: 44px;
    height: 44px;
    background: var(--bg-section);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviewer-info strong {
    display: block;
    font-size: 14px;
}

.reviewer-info span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
    padding: 80px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content .section-badge {
    margin-bottom: 16px;
}

.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-values {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.value-tag {
    background: var(--bg-section);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    color: var(--heading-color);
}

.about-img-wrap {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    -webkit-text-fill-color: #fff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    font-size: 24px;
    transition: var(--transition);
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    padding: 4px 0;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-orange-solid);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

.footer-links a:hover {
    color: var(--accent-orange-solid);
}

/* ============================================
   FAVORITES SIDEBAR
   ============================================ */
.favorites-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.favorites-sidebar.open {
    right: 0;
}

.fav-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.fav-sidebar-header h3 {
    font-size: 18px;
}

.fav-close-btn {
    background: var(--bg-section);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.fav-close-btn:hover {
    background: #e2e8f0;
}

.fav-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.fav-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.fav-empty span {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 8px;
}

.fav-item:hover {
    background: var(--bg-section);
}

.fav-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.fav-item-info {
    flex: 1;
}

.fav-item-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.fav-item-info span {
    font-size: 16px;
    color: var(--accent-orange-solid);
    font-weight: 800;
}

.fav-remove-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.fav-remove-btn:hover {
    opacity: 1;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #fff7ed 0%, #eff6ff 50%, #f0fdf4 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.page-hero p {
    font-size: 17px;
    color: var(--text-muted);
}

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

.breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.breadcrumb a {
    color: var(--accent-orange-solid);
    font-weight: 600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.gallery-main {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.gallery-fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-fav-btn:hover {
    transform: scale(1.15);
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    background: none;
}

.thumb.active {
    border-color: var(--accent-orange-solid);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.deal-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green-solid);
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.product-price {
    font-size: 32px;
    font-weight: 900;
    color: var(--heading-color);
}

.product-original-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-discount {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green-solid);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
}

.product-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 24px;
}

.product-description h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-description p {
    line-height: 1.7;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.detail-item {
    background: var(--bg-section);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.detail-item strong {
    color: var(--heading-color);
}

.product-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-section);
    padding: 20px;
    border-radius: var(--card-radius);
}

.seller-avatar {
    font-size: 36px;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-info {
    flex: 1;
}

.seller-info strong {
    display: block;
    font-size: 16px;
}

.seller-rating {
    font-size: 14px;
}

.seller-rating span {
    color: var(--text-muted);
    font-size: 13px;
}

.seller-verified {
    font-size: 13px;
    color: var(--accent-green-solid);
    font-weight: 700;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--white);
    border-radius: var(--card-radius);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: var(--bg-section);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.chat-msg {
    margin-bottom: 12px;
    max-width: 80%;
}

.chat-msg.seller {
    margin-left: 0;
}

.chat-msg.buyer {
    margin-left: auto;
}

.chat-msg p {
    background: var(--bg-section);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.chat-msg.buyer p {
    background: var(--accent-orange);
    color: var(--white);
    background: linear-gradient(135deg, #ff7a18, #ffb347);
}

.chat-input-wrap {
    display: flex;
    gap: 8px;
}

.chat-input-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.chat-input-wrap input:focus {
    border-color: var(--accent-orange-solid);
}

/* ============================================
   SELL FORM
   ============================================ */
.sell-hero {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
}

.sell-hero h1,
.sell-hero p {
    color: var(--white);
}

.sell-form-section {
    padding: 60px 0 80px;
}

.sell-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.sell-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-section);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.progress-step.active .step-circle {
    background: var(--accent-orange);
    color: var(--white);
}

.progress-step.completed .step-circle {
    background: var(--accent-green);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.progress-step.active .step-label {
    color: var(--accent-orange-solid);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    max-width: 60px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.form-step h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-step > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--heading-color);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    color: var(--heading-color);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange-solid);
    box-shadow: 0 0 0 3px rgba(255, 122, 24, 0.15);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-orange-solid);
    cursor: pointer;
}

.form-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.upload-area {
    border: 3px dashed #e2e8f0;
    border-radius: var(--card-radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-orange-solid);
    background: rgba(255, 122, 24, 0.03);
}

.upload-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.upload-previews {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.upload-preview {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-preview .remove-preview {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-preview {
    display: flex;
    gap: 20px;
    background: var(--bg-section);
    padding: 24px;
    border-radius: var(--card-radius);
    margin-bottom: 24px;
}

.lp-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
    overflow: hidden;
}

.lp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-details h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.lp-price {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent-orange-solid);
    margin-bottom: 8px;
}

.success-message {
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.success-message h2 {
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.success-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   ACCOUNT
   ============================================ */
.account-section {
    padding: 40px 0 80px;
}

.account-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.account-tab {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    background: var(--bg-section);
    color: var(--text-color);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.account-tab.active {
    background: var(--accent-orange);
    color: var(--white);
}

.account-panel {
    display: none;
}

.account-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.auth-form-wrap {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
}

.auth-form-wrap h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 24px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-orange-solid);
    font-weight: 700;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    padding: 60px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.contact-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.contact-card a {
    color: var(--accent-orange-solid);
    font-weight: 700;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.contact-form-wrap {
    background: var(--white);
    padding: 40px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-md);
}

.contact-form-wrap h2 {
    margin-bottom: 24px;
    font-size: 24px;
}

/* ============================================
   LEGAL
   ============================================ */
.legal-section {
    padding: 60px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--accent-orange-solid);
    font-weight: 700;
}

/* ============================================
   CATEGORIES PAGE
   ============================================ */
.categories-page-section {
    padding: 60px 0 80px;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    z-index: 5000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .products-grid,
    .deals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 16px;
        box-shadow: var(--shadow-md);
        z-index: 100;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    body {
        padding-bottom: 72px;
    }

    .search-bar {
        min-width: 0;
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-text {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-right {
        height: 280px;
    }

    .floating-card {
        width: 130px !important;
    }

    .fc-1 { top: 0; left: 5%; }
    .fc-2 { top: 10px; right: 5%; }
    .fc-3 { bottom: 40px; left: 10%; }
    .fc-4 { bottom: 10px; right: 10%; }

    .products-grid,
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-group {
        min-width: 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .about-inner {
        grid-template-columns: 1fr;
    }

    .sell-steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .sell-inner {
        padding: 40px 24px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .gallery-main img {
        height: 300px;
    }

    .product-actions {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .sell-form-wrap {
        padding: 24px;
    }

    .auth-form-wrap {
        padding: 24px;
    }

    .legal-content {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero-right {
        height: 240px;
    }

    .floating-card {
        width: 110px !important;
    }

    .floating-card .card-image,
    .floating-card img {
        height: 80px;
    }

    .fc-info {
        padding: 6px 10px;
    }

    .fc-price {
        font-size: 14px;
    }

    .fc-label {
        font-size: 11px;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .trust-stat {
        padding: 20px 12px;
    }

    .listing-preview {
        flex-direction: column;
    }

    .lp-image {
        width: 100%;
        height: 160px;
    }
}