/* ========================================
   NIKKI VIBE - MODERN DARK HERO DESIGN
   ======================================== */

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

:root {
    --primary-dark: #1a2332;
    --primary-light: #ffffff;
    --accent-green: #00d084;
    --text-dark: #000000;
    --text-light: #666666;
    --border-light: #f0f0f0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* ========== TOP BAR ========== */
.top-bar {
    background: linear-gradient(90deg, #00d084 0%, #00b870 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
}

/* ========== NAVBAR ========== */
.navbar {
    background-color: var(--primary-light);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    flex: 1;
    margin-left: 60px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
}

.nav-link:hover {
    color: var(--accent-green);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-search, .btn-cart, .btn-auth {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
}

.btn-search:hover, .btn-cart:hover, .btn-auth:hover {
    transform: scale(1.15);
    color: var(--accent-green);
}

.btn-search svg, .btn-cart svg, .btn-auth svg {
    width: 20px;
    height: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* ========== HERO CAROUSEL SECTION ========== */
.hero {
    background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.carousel-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    height: 600px;
}

.carousel-slide {
    display: none;
    animation: fadeIn 0.5s ease-in;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    display: flex;
}

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

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-text {
    flex: 0 0 auto;
    color: white;
    padding: 60px;
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    background-color: white;
    color: var(--primary-dark);
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    width: fit-content;
}

.hero-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    flex: 0 0 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    overflow: hidden;
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: slideIn 0.5s ease-out;
}

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

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* ========== CATEGORIES SECTION ========== */
.categories {
    padding: 80px 20px;
    background-color: var(--primary-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--text-dark);
}

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

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-light);
}

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

.category-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    padding: 20px 20px 10px;
    color: var(--text-dark);
}

.category-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* ========== PRODUCTS SECTION ========== */
.products {
    padding: 80px 20px;
    background-color: #f9f9f9;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.search-input, .sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.search-input:focus, .sort-select:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.1);
}

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

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

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

.product-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 60px;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 10px;
}

.product-rating {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-seller {
    font-size: 12px;
    color: var(--text-light);
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

/* ========== WHY CHOOSE US SECTION ========== */
.why-us {
    padding: 80px 20px;
    background-color: var(--primary-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a2332 0%, #2d3e50 100%);
    color: white;
}

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

.newsletter-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.newsletter-content p {
    font-size: 16px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.newsletter-btn {
    padding: 12px 30px;
    background-color: var(--accent-green);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #00b870;
    transform: translateY(-2px);
}

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

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

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

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

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

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--accent-green);
}

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

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-dark);
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--accent-green);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
}

.modal-info h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.modal-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.modal-rating {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-green);
    margin: 20px 0;
}

.modal-seller {
    padding: 15px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin: 20px 0;
}

.add-to-cart-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--accent-green);
    color: var(--text-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background-color: #00b870;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .hero-text {
        width: 60% !important;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 15px;
        font-size: 12px;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 400px;
        padding: 30px 0;
    }

    .hero-content {
        position: relative;
        height: 100%;
    }

    .hero-text {
        width: 100% !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        padding: 40px 20px;
        background: transparent !important;
        z-index: 15;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.4;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .hero-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100%;
        z-index: 10;
        opacity: 1;
    }

    .hero-image img {
        max-width: 100%;
    }

    .carousel-dots {
        bottom: 20px;
        z-index: 20;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

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

    .category-card {
        border-radius: 8px;
    }

    .category-card h3 {
        font-size: 16px;
        padding: 15px 15px 8px;
    }

    .category-card p {
        font-size: 12px;
        padding: 0 15px 15px;
    }

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

    .product-card {
        border-radius: 8px;
    }

    .product-image {
        height: 150px;
        font-size: 40px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 25px 20px;
        border-radius: 8px;
    }

    .feature-icon {
        height: 100px;
        margin-bottom: 15px;
    }

    .feature-image {
        max-height: 80px;
    }

    .feature-card h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .modal-info h2 {
        font-size: 20px;
    }

    .modal-price {
        font-size: 24px;
    }

    .newsletter-section {
        padding: 40px 20px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        font-size: 14px;
        padding: 10px;
    }

    .newsletter-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .search-input, .sort-select {
        width: 100%;
        padding: 10px 12px;
        font-size: 14px;
    }

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

    .footer-col h4 {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .footer-col ul li a {
        font-size: 13px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 8px 10px;
        font-size: 11px;
    }

    .navbar {
        padding: 10px 15px;
    }

    .navbar-header {
        gap: 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-image {
        height: 28px;
    }

    .navbar-actions {
        gap: 10px;
    }

    .navbar-actions button {
        font-size: 18px;
        padding: 5px;
    }

    .hero {
        min-height: 350px;
        padding: 0;
    }

    .carousel-container {
        height: 350px;
    }

    .hero-text {
        width: 100% !important;
        padding: 30px 15px !important;
        background: transparent !important;
    }

    .hero-title {
        font-size: 20px;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 15px;
        line-height: 1.4;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .hero-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .category-card {
        border-radius: 6px;
    }

    .category-image-wrapper {
        height: 150px;
    }

    .category-card h3 {
        font-size: 14px;
        padding: 12px 12px 6px;
    }

    .category-card p {
        font-size: 11px;
        padding: 0 12px 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-card {
        border-radius: 6px;
    }

    .product-image {
        height: 120px;
        font-size: 30px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-rating {
        font-size: 11px;
    }

    .product-seller {
        font-size: 11px;
        padding-top: 8px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px 15px;
        border-radius: 6px;
    }

    .feature-icon {
        height: 80px;
        margin-bottom: 12px;
    }

    .feature-image {
        max-height: 60px;
    }

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

    .feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .newsletter {
        padding: 30px 15px;
    }

    .newsletter-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .newsletter-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 8px;
    }

    .newsletter-input {
        font-size: 13px;
        padding: 10px 12px;
    }

    .newsletter-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .modal-content {
        width: 95%;
        max-width: none;
    }

    .modal-body {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }

    .close-btn {
        font-size: 24px;
        right: 15px;
        top: 15px;
    }

    .modal-info h2 {
        font-size: 18px;
    }

    .modal-price {
        font-size: 20px;
    }

    .add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
    }

    .footer {
        padding: 40px 15px 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-col h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }

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

    .footer-col ul li a {
        font-size: 12px;
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 15px;
    }

    .products {
        padding: 40px 15px;
    }

    .why-us {
        padding: 40px 15px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .search-input, .sort-select {
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 13px;
        padding: 6px 10px;
    }
}
