/**
 * ScriptBazaar - Main Stylesheet
 * Premium Digital Marketplace Theme
 */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --accent: #f97316;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Announcement Bar */
.announcement-bar {
    background: var(--dark);
    color: var(--white);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    overflow: hidden;
}

.marquee {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announcement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.announcement-item i {
    color: var(--accent);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 1rem 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo i {
    font-size: 1.25rem;
}

.logo span {
    color: var(--accent);
}

.header-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.header-search input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.header-actions > a {
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}

.header-actions > a:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    font-weight: 600;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.25rem;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Category Navigation */
.category-nav {
    background: var(--light);
    padding: 0.6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.category-nav ul {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--white);
    border-radius: var(--radius-sm);
    color: var(--dark);
    font-weight: 500;
    font-size: 0.85rem;
    transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
    background: var(--primary);
    color: var(--white);
}

.category-nav i {
    font-size: 0.8rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-white:hover {
    background: var(--light);
    color: var(--primary-dark);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-feature i {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-feature span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Hero Image Area */
.hero-image {
    position: relative;
    min-height: 350px;
}

/* Floating Cards */
.floating-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xl);
    color: var(--dark);
    position: absolute;
}

.floating-card.card-1 {
    top: 20px;
    right: 20px;
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-2 {
    bottom: 40px;
    left: 0;
    animation: float 3s ease-in-out infinite 1s;
}

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

.floating-card .icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.floating-card h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.floating-card p {
    color: var(--gray);
    font-size: 0.8rem;
    margin: 0;
}

/* Stats Bar */
.stats-bar {
    background: var(--dark);
    padding: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.85rem;
}

/* Section Styles */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.view-all {
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--primary-dark);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tabs button {
    padding: 0.5rem 1rem;
    border: none;
    background: var(--light);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tabs button.active,
.filter-tabs button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--light);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #e0f2fe, #cffafe);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

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

.product-image-link i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-image i {
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
}

.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.4rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-hot {
    background: #ef4444 !important;
    color: #fff !important;
}

.badge-hot i {
    font-size: 0.7rem;
}

.badge-sale {
    background: var(--success);
    color: var(--white);
}

.badge-new {
    background: var(--primary);
    color: var(--white);
}

.product-quick-view {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.product-quick-view button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    padding: 0 !important;
    border: none !important;
    background: #fff !important;
    border-radius: 4px !important;
    color: #333 !important;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12) !important;
    transition: all 0.2s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

.product-quick-view button i {
    font-size: 12px !important;
    line-height: 1 !important;
    color: inherit !important;
}

.product-quick-view button:hover {
    background: #f97316 !important;
    color: #fff !important;
}

.product-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.product-title a {
    color: var(--dark);
}

.product-title a:hover {
    color: var(--primary);
}

.product-author {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.product-author a {
    color: var(--dark);
    font-weight: 500;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--light);
    margin-top: auto;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.product-price .old-price {
    font-size: 0.85rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 0.4rem;
    font-weight: 400;
}

.product-stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.product-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-stats i {
    color: var(--accent);
}

/* Features Section */
.features-section {
    background: var(--light);
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--gray);
    margin: 0;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: 100%;
}

.testimonial-rating {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
}

.author-info h5 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-info span {
    color: var(--gray);
    font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 25px;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand span {
    color: var(--accent);
}

.footer-text {
    color: var(--gray);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    margin-right: 0.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-newsletter {
    background: transparent;
    padding: 0;
}

.footer-newsletter h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--white);
    font-weight: 600;
}

.footer-newsletter p {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.newsletter-form {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    min-width: 0;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

.footer-bottom p {
    color: var(--gray);
    margin: 0;
    font-size: 0.85rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

.payment-methods i {
    font-size: 1.5rem;
    color: var(--gray);
    margin-left: 0.6rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Forms */
.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
}

.alert-danger,
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #854d0e;
}

.alert-info {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}

/* Cards */
.card {
    border: 1px solid var(--light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    background: var(--light);
    border-bottom: 1px solid var(--light);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--light);
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--gray);
}

.breadcrumb-item.active {
    color: var(--dark);
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: none;
    padding: 0.6rem 1rem;
    color: var(--dark);
    border-radius: var(--radius-sm);
}

.page-link:hover {
    background: var(--light);
}

.page-item.active .page-link {
    background: var(--primary);
}

/* Auth Pages */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    width: 100%;
    overflow: hidden;
}

.auth-header {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.auth-header h1 span {
    color: var(--primary);
}

.auth-body {
    padding: 2rem;
}

.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--light);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Dashboard */
.dashboard-sidebar {
    background: var(--dark);
    min-height: 100vh;
    padding: 1.5rem;
}

.dashboard-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-nav li {
    margin-bottom: 0.25rem;
}

.dashboard-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius);
    transition: var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.dashboard-nav a i {
    width: 20px;
}

.dashboard-content {
    padding: 2rem;
    background: var(--light);
    min-height: 100vh;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.stat-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem;
}

.stat-card p {
    color: var(--gray);
    margin: 0;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1199px) {
    .hero h1 {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .header-search {
        display: none;
    }

    .header-actions {
        gap: 1rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-image {
        display: none;
    }

    .section {
        padding: 40px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .logo {
        font-size: 1.25rem;
    }

    .header-actions > a span {
        display: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .product-image {
        height: 160px;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .auth-card {
        border-radius: var(--radius-lg);
    }

    .auth-body {
        padding: 1.5rem;
    }
}

/* Wishlisted product button state */
.product-quick-view button.wishlisted,
.product-quick-view button.wishlisted:hover {
    background: #dc3545 !important;
    color: #fff !important;
}
.product-quick-view button.wishlisted i {
    color: #fff !important;
}

/* Hero Image */
.hero-img {
    max-width: 100%;
    height: auto;
    
    
    animation: float 6s ease-in-out infinite;
}

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

/* Fix header spacing */
.header-main .container {
    justify-content: space-between;
}

.header-search {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.header-actions {
    margin-left: auto;
}

/* ========================================
   ENHANCED MOBILE STYLES
   ======================================== */

/* Mobile Header Improvements */
@media (max-width: 991px) {
    .announcement-bar {
        font-size: 0.75rem;
        padding: 0.4rem 0;
    }
    
    .header-main {
        padding: 0.75rem 0;
    }
    
    .category-nav {
        display: none;
    }
    
    .category-nav ul {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .category-nav ul::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Hero Mobile Optimization */
    .hero {
        padding: 30px 0;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero h1 {
        font-size: 1.35rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn-white,
    .hero-buttons .btn-outline-white {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .hero-feature {
        font-size: 0.8rem;
    }
    
    .hero-feature i {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .hero-feature span {
        font-size: 0.8rem;
    }
    
    /* Stats Bar Mobile */
    .stats-bar {
        padding: 25px 0;
    }
    
    .stat-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Sections Mobile */
    .section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .view-all {
        font-size: 0.85rem;
    }
    
    /* Category Cards Mobile */
    .feature-card {
        padding: 1rem;
    }
    
    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.5rem;
    }
    
    .feature-card .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-card h4 {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .feature-card p {
        font-size: 0.75rem;
    }
    
    /* Product Cards Mobile */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-content {
        padding: 0.75rem;
    }
    
    .product-category {
        font-size: 0.7rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .product-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-author {
        font-size: 0.75rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .product-price .old-price {
        font-size: 0.8rem;
    }
    
    .product-stats {
        font-size: 0.7rem;
    }
    
    .product-stats span {
        margin-right: 0.5rem;
    }
    
    /* Quick view buttons hidden on mobile - use tap to view */
    .product-quick-view {
        display: none;
    }
    
    /* Filter Tabs Mobile */
    .filter-tabs {
        gap: 0.35rem;
        margin-top: 0.5rem;
    }
    
    .filter-tabs button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Features Section Mobile */
    .features-section .feature-card {
        text-align: center;
    }
    
    .features-section .feature-icon {
        margin: 0 auto 0.75rem;
    }
    
    /* CTA Section Mobile */
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.35rem;
        margin-bottom: 0.75rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .cta-content .btn-white {
        padding: 0.75rem 2rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-about {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-links {
        margin-bottom: 1.5rem;
    }
    
    .footer-links h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-links ul li {
        margin-bottom: 0.35rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        gap: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
    .hero h1 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .hero-feature span {
        font-size: 0.7rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
}

/* Mobile Bottom Navigation (Optional Enhancement) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

@media (max-width: 767px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--gray);
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        text-decoration: none;
    }
    
    .mobile-bottom-nav a i {
        font-size: 1.25rem;
        margin-bottom: 0.2rem;
    }
    
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover {
        color: var(--primary);
    }
    
    /* Add padding to body for bottom nav */
    body {
        padding-bottom: 60px;
    }
    
    /* Hide some header elements on mobile */
    .header-actions > a.d-mobile-none {
        display: none !important;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
    }
    
    .btn-white:hover,
    .btn-outline-white:hover {
        transform: none;
    }
    
    /* Larger tap targets */
    .filter-tabs button {
        min-height: 44px;
    }
    
    .category-nav a {
        min-height: 44px;
    }
}

/* ========================================
   MOBILE HEADER FIXES
   ======================================== */

@media (max-width: 991px) {
    /* Fix header layout on mobile */
    .header-main .container {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .logo img {
        height: 32px !important;
    }
    
    /* Hide header actions items on mobile */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .header-actions > a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    
    .header-actions > a span {
        display: none;
    }
    
    .header-actions .btn-primary {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Mobile menu toggle inside header properly */
    .mobile-menu-toggle {
        margin-left: 0.5rem;
        padding: 0.4rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .header-main {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .logo img {
        height: 28px !important;
    }
    
    /* Hide Sign In text and Start Selling button on small mobile */
    .header-actions > a:not([href*=cart]) {
        display: none;
    }
    
    .header-actions > a[href*=cart] {
        display: flex;
    }
    
    .header-actions .btn-primary {
        display: none;
    }
    
    .header-actions .dropdown {
        display: none;
    }
    
    /* Only show cart icon on mobile header */
    .header-actions {
        gap: 0.25rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .logo {
        font-size: 0.9rem;
    }
    
    .logo i {
        font-size: 1rem;
    }
    
    .logo img {
        height: 26px !important;
    }
    
    .announcement-bar {
        font-size: 0.7rem;
        padding: 0.35rem 0;
    }
}

/* Fix hamburger menu position - CRITICAL */
@media (max-width: 991px) {
    .header-main .container.d-flex {
        max-width: 100%;
        overflow: hidden;
    }
    
    .header-actions {
        flex: 0 0 auto;
        max-width: 200px;
        overflow: hidden;
    }
    
    /* Keep hamburger visible and inside */
    .mobile-menu-toggle {
        flex-shrink: 0;
        order: 99;
    }
}

@media (max-width: 767px) {
    /* Simplify header on mobile - show only logo, cart, hamburger */
    .header-main .container.d-flex {
        gap: 0.5rem;
    }
    
    .header-actions {
        max-width: none;
        flex: 0 0 auto;
    }
    
    /* Hide everything except cart in header-actions */
    .header-actions > a:not([href*="cart"]),
    .header-actions > .btn,
    .header-actions > .dropdown {
        display: none !important;
    }
    
    /* Show only cart */
    .header-actions > a[href*="cart"] {
        display: inline-flex !important;
        padding: 0.5rem;
    }
}

/* ========================================
   MOBILE REDESIGN - PROFESSIONAL LOOK
   ======================================== */

@media (max-width: 767px) {
    /* Cleaner Hero Section */
    .hero {
        padding: 35px 15px;
        background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #0284c7 100%);
    }
    
    .hero h1 {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.35;
        margin-bottom: 12px;
    }
    
    .hero p {
        font-size: 0.95rem;
        opacity: 0.95;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* Better Hero Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn-white {
        background: #fff;
        color: #0ea5e9;
        padding: 14px 24px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
        border: none;
    }
    
    .hero-buttons .btn-outline-white {
        background: transparent;
        color: #fff;
        padding: 13px 24px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.95rem;
        border: 2px solid rgba(255,255,255,0.6);
    }
    
    /* Hero Features - Horizontal Scroll */
    .hero-features {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 25px;
        flex-wrap: wrap;
    }
    
    .hero-feature {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.15);
        padding: 8px 12px;
        border-radius: 20px;
    }
    
    .hero-feature i {
        width: auto;
        height: auto;
        background: none;
        font-size: 0.85rem;
    }
    
    .hero-feature span {
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    /* Stats Bar - More Compact */
    .stats-bar {
        padding: 20px 10px;
        background: #0f172a;
    }
    
    .stats-bar .row {
        margin: 0;
    }
    
    .stat-item {
        padding: 8px 5px;
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    
    .stat-item:last-child {
        border-right: none;
    }
    
    .stat-value {
        font-size: 1.3rem;
        font-weight: 800;
        background: linear-gradient(135deg, #0ea5e9, #22c55e);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-label {
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #94a3b8;
    }
    
    /* Section Headers */
    .section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .section-title {
        font-size: 1.2rem;
        font-weight: 700;
    }
    
    .view-all {
        font-size: 0.85rem;
        font-weight: 600;
    }
    
    /* Category Cards - Grid Layout */
    .feature-card {
        padding: 15px 10px;
        border-radius: 12px;
        text-align: center;
        background: #fff;
        border: 1px solid #e2e8f0;
        transition: all 0.2s;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        background: #f8fafc;
    }
    
    .feature-card .feature-icon {
        width: 45px;
        height: 45px;
        margin: 0 auto 8px;
        border-radius: 12px;
    }
    
    .feature-card .feature-icon i {
        font-size: 1.1rem;
    }
    
    .feature-card h4 {
        font-size: 0.8rem;
        font-weight: 600;
        margin-bottom: 2px;
        color: #0f172a;
    }
    
    .feature-card p {
        font-size: 0.7rem;
        color: #64748b;
        margin: 0;
    }
    
    /* Product Cards - Enhanced Mobile */
    .product-card {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e2e8f0;
        background: #fff;
        margin-bottom: 15px;
    }
    
    .product-card:active {
        transform: scale(0.99);
    }
    
    .product-image {
        height: 150px;
        position: relative;
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-badges {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 2;
    }
    
    .product-badges .badge {
        font-size: 0.65rem;
        padding: 4px 8px;
        border-radius: 4px;
    }
    
    .product-content {
        padding: 12px;
    }
    
    .product-category {
        font-size: 0.7rem;
        color: #0ea5e9;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 4px;
    }
    
    .product-title {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 4px;
        color: #0f172a;
    }
    
    .product-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .product-author {
        font-size: 0.75rem;
        color: #64748b;
        margin-bottom: 8px;
    }
    
    .product-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }
    
    .product-price {
        font-size: 1.05rem;
        font-weight: 700;
        color: #0f172a;
    }
    
    .product-price .old-price {
        font-size: 0.75rem;
        color: #94a3b8;
        text-decoration: line-through;
        margin-right: 5px;
    }
    
    .product-stats {
        display: flex;
        gap: 10px;
        font-size: 0.7rem;
        color: #64748b;
    }
    
    .product-stats i {
        color: #fbbf24;
    }
    
    /* Filter Tabs - Pill Style */
    .filter-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 5px 0 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .filter-tabs button {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
        background: #f1f5f9;
        color: #475569;
        border: none;
    }
    
    .filter-tabs button.active {
        background: #0ea5e9;
        color: #fff;
    }
    
    /* Features Section */
    .features-section {
        background: #f8fafc;
    }
    
    .features-section .feature-card {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    /* CTA Section */
    .cta-section {
        padding: 40px 20px;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .cta-content h2 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 10px;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        opacity: 0.8;
        margin-bottom: 20px;
    }
    
    .cta-content .btn-white {
        padding: 14px 32px;
        border-radius: 50px;
        font-weight: 600;
    }
    
    /* Bottom Navigation Enhancement */
    .mobile-bottom-nav {
        background: #fff;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        padding: 8px 0 12px;
        border-top: 1px solid #e2e8f0;
    }
    
    .mobile-bottom-nav a {
        color: #64748b;
        font-size: 0.65rem;
        font-weight: 500;
    }
    
    .mobile-bottom-nav a i {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .mobile-bottom-nav a.active {
        color: #0ea5e9;
    }
    
    .mobile-bottom-nav a.active i {
        transform: scale(1.1);
    }
    
    /* Footer Mobile */
    .footer {
        padding: 30px 0 80px;
        background: #0f172a;
    }
    
    .footer-about {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-about .logo {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .footer-about p {
        font-size: 0.85rem;
        color: #94a3b8;
    }
    
    .footer-links {
        margin-bottom: 20px;
    }
    
    .footer-links h5 {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 12px;
        color: #fff;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        color: #94a3b8;
        display: block;
        padding: 4px 0;
    }
    
    .social-links {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        color: #fff;
    }
}

/* Small phones */
@media (max-width: 374px) {
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn-white,
    .hero-buttons .btn-outline-white {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .stat-value {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.6rem;
    }
    
    .product-image {
        height: 130px;
    }
}
