/* Modern Home Page Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 20px 80px;
    margin-bottom: 0;
}

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

.hero-title {
    font-size: 42px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Search Form */
.search-form {
    margin-bottom: 28px;
    position: relative;
    z-index: 100;
}

.search-wrapper {
    display: flex;
    max-width: 580px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 101;
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 24px;
    font-size: 15px;
    outline: none;
    background: transparent;
    font-weight: 300;
}

.search-input::placeholder {
    color: #9ca3af;
    font-weight: 300;
}

.search-btn {
    background: #dd4814;
    color: white;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border: 0px;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.search-btn:hover {
    background: #c23d0f;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.3px;
}

.btn-primary-large:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-secondary-large {
    background: transparent;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.3px;
}

.btn-secondary-large:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Main Content */
.main-content {
    padding: 0;
}

/* Section backgrounds for dark theme */
.recent-products {
    background: #1e293b;
    padding: 60px 20px 80px;
    margin-bottom: 0;
    width: 100%;
}

.popular-categories {
    background: #0f172a;
    padding: 60px 20px 80px;
    margin-bottom: 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    width: 100%;
}

.stats-section {
    background: #1e293b;
    padding: 60px 20px 80px;
    margin-bottom: 0;
    width: 100%;
}

.stats-section .stats-grid {
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 12px;
    padding: 48px 32px;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.15);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 400;
    color: #f1f5f9;
    margin: 0;
    letter-spacing: -0.3px;
}

.view-all {
    color: #14b8a6;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 10px;
    color: #5eead4;
}

/* Products Grid */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

.product-card {
    background: #334155;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    border: 1px solid #475569;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.2);
    text-decoration: none;
    border-color: #14b8a6;
}

.product-image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Modern camera icon placeholder */
.product-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-icon {
    font-size: 48px;
    color: rgba(20, 184, 166, 0.3);
    pointer-events: none;
}


.product-info {
    padding: 12px;
}

.product-title {
    font-size: 13px;
    font-weight: 400;
    color: #e2e8f0;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 16px;
    font-weight: 500;
    color: #14b8a6;
    margin: 0;
}

/* Categories Grid */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

.category-card {
    background: #334155;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #475569;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #14b8a6;
    box-shadow: 0 8px 20px rgba(20, 184, 166, 0.25);
    text-decoration: none;
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 32px;
    color: white;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(20, 184, 166, 0.3);
}

.category-card h3 {
    font-size: 14px;
    font-weight: 400;
    color: #cbd5e1;
    margin: 0;
}

.view-all-categories {
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    width: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border: 1px solid #14b8a6;
    color: #14b8a6;
    border-radius: 6px;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-outline:hover {
    background: #14b8a6;
    color: #0f172a;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Stats Section */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

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

.stat-number {
    font-size: 40px;
    font-weight: 400;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

/* Search Suggestions */
#search_suggestion_holder {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.8) !important;
    margin-top: 8px !important;
    max-height: 320px !important;
    overflow-y: auto !important;
    z-index: 10000 !important;
    list-style: none !important;
    padding: 8px 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

#search_suggestion_holder[style*="display: block"] {
    display: block !important;
}

#search_suggestion_holder::-webkit-scrollbar {
    width: 8px;
}

#search_suggestion_holder::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 0 12px 12px 0;
}

#search_suggestion_holder::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

#search_suggestion_holder::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

#search_suggestion_holder a {
    text-decoration: none !important;
    display: block !important;
    color: inherit !important;
}

#search_suggestion_holder li {
    padding: 14px 20px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #e2e8f0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 8px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    text-shadow: none !important;
    -webkit-text-shadow: none !important;
    -moz-text-shadow: none !important;
    text-align: left !important;
}

#search_suggestion_holder li::before {
    content: "\f002";
    font-family: FontAwesome;
    font-size: 12px;
    color: #64748b !important;
    width: 16px;
    text-align: center;
}

#search_suggestion_holder li:hover,
#search_suggestion_holder li.selected {
    background: #334155 !important;
    color: #14b8a6 !important;
}

#search_suggestion_holder li:hover::before,
#search_suggestion_holder li.selected::before {
    color: #14b8a6 !important;
}

/* Modern Footer */
.modern-footer {
    background: #1e293b;
    padding: 48px 20px 32px;
    margin-top: 0;
    border-top: 1px solid #334155;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #dd4814;
}

.footer-copyright {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

.footer-copyright p {
    margin: 8px 0;
}

.footer-dev a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dev a:hover {
    color: #dd4814;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 70px 20px 60px;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }

    .search-wrapper {
        flex-direction: column;
        border-radius: 8px;
    }

    #search_suggestion_holder {
        max-height: 240px;
        border-radius: 8px;
        margin-top: 4px;
    }

    #search_suggestion_holder li {
        padding: 12px 16px;
        font-size: 13px;
        margin: 0 4px;
    }

    .search-input {
        padding: 14px 20px;
    }

    .search-btn {
        padding: 14px 20px;
        border-radius: 0 0 8px 8px;
    }

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

    .btn-primary-large,
    .btn-secondary-large {
        width: 100%;
        justify-content: center;
    }

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

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

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

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon i {
        font-size: 28px;
    }

    .category-card {
        padding: 18px 12px;
    }

    .category-card h3 {
        font-size: 13px;
    }

    .stats-grid {
        gap: 24px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

    .modern-footer {
        padding: 32px 20px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .footer-copyright {
        font-size: 13px;
    }
}

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

    .hero-subtitle {
        font-size: 14px;
    }

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

    .product-image {
        height: 150px;
    }

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

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