/* ==========================================
   CLEVERFINDMARKET - TECH GADGET THEME
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1320px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    background: var(--gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    background: var(--gradient);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    color: #fbbf24;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(255,255,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

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

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

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    padding: 20px 32px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-item i {
    font-size: 32px;
    color: #fbbf24;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* ==========================================
   CATEGORY FILTER
========================================== */
.category-filter {
    padding: 40px 0;
    background: white;
}

.category-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 10px 24px;
    border: 2px solid var(--gray-light);
    background: white;
    color: var(--dark);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.category-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.category-count {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
}

/* ==========================================
   PRODUCTS GRID
========================================== */
.products {
    padding: 60px 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.section-title i {
    color: var(--primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.product-card.hidden {
    display: none;
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--light);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient);
    color: white;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
    z-index: 10;
}

.product-info {
    padding: 24px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 14px;
}

.product-rating span {
    color: var(--dark);
    font-weight: 600;
    margin-left: 4px;
}

.product-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.product-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.6;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-price {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-views {
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
    justify-content: center;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}

/* ==========================================
   PRODUCT DETAIL PAGE
========================================== */
.product-detail {
    padding: 80px 0 60px;
    background: var(--light);
    min-height: 100vh;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--gray);
    flex-wrap: wrap;
    font-weight: 600;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.product-detail-image {
    position: sticky;
    top: 100px;
}

.product-detail-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.product-category-badge {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.product-detail-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--dark);
    line-height: 1.2;
}

.product-detail-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 18px;
}

.product-detail-rating span {
    color: var(--dark);
    font-weight: 700;
    margin-left: 4px;
}

.views-count {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
}

.product-detail-price {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary);
}

.price-label {
    display: block;
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-description h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.product-detail-description p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.product-features {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    margin-bottom: 32px;
}

.product-features h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.product-features ul {
    list-style: none;
}

.product-features li {
    padding: 10px 0;
    color: var(--gray);
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.product-features li:last-child {
    border-bottom: none;
}

/* Reviews Section */
.reviews-section {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--light);
}

.reviews-header h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
}

.reviews-summary {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rating-number {
    font-size: 64px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-stars {
    font-size: 24px;
    color: #fbbf24;
}

.rating-count {
    color: var(--gray);
    font-size: 14px;
    font-weight: 600;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    background: var(--light);
    border-radius: 16px;
    border-left: 4px solid var(--primary);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

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

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--dark);
}

.review-date {
    font-size: 13px;
    color: var(--gray);
}

.review-rating {
    color: #fbbf24;
    font-size: 16px;
}

.review-text {
    color: var(--gray);
    line-height: 1.7;
}

/* ==========================================
   CONTACT & LEGAL PAGES
========================================== */
.page-hero {
    background: var(--gradient);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
}

.contact-section,
.legal-section {
    padding: 60px 0;
}

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

.contact-form,
.legal-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-form h2,
.legal-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.contact-info-item i {
    font-size: 28px;
    color: var(--primary);
}

.contact-info-item h4 {
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: var(--gray);
    font-size: 14px;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-weight: 600;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid var(--success);
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.legal-content h2 {
    margin-top: 48px;
    margin-bottom: 20px;
}

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

.legal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 48px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
    .product-detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 4px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}
