/* Import fonts */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&display=swap');


/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Mono', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #363642;
    background-color: #F6F5F3;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

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

.content {
    margin-top: 20px;
}
/* Navigation Logo */
.nav-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    vertical-align: middle;
    object-fit: contain;
}

.nav-title {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .nav-logo {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }
}

.welcome-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 2rem;
    object-fit: contain;
}
/* Main Navigation */
.main-nav {
    background: #fe552e;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    color: rgb(98, 98, 98);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reset-session {
    background-color: #ffffff;
    color: #fe552e;
    border: none;
    cursor: pointer;
}

.reset-session:hover {
    background-color: #c0392b;
}

/* Category Navigation */
.category-nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}
.nav-title {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.category-menu {
    display: flex;
    justify-content: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-item {
    position: relative;
}

.category-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.category-link:hover {
    color: #fe552e;
}

.category-link.active {
    color: #fe552e;
    font-weight: bold;
}

/* Category Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    min-width: 200px;
    z-index: 1000;
    transform: translateY(10px);
}

.level-2 .submenu {
    left: 100%;
    top: 0;
}

.category-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Link Colors */
a {
    color: #fe552e; /* Change from default to your primary color */
}

a:hover {
    color: #e54a29; /* Darker shade on hover */
}

/* Breadcrumbs */

.breadcrumbs {
    padding: 20px 0;
    color: #666;
}

.breadcrumbs a {
    color: #fe552e;
    text-decoration: none;
}

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

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Product Cards */
.product-card {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 5px;
    transition: transform 0.2s;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Product Images */
.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 4px;
}

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

/* Product Detail Page */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.product-detail .product-image {
    height: 400px;
}

.product-info h1 {
    margin-bottom: 1rem;
}

.categories {
    margin-top: 2rem;
}

.categories p {
    margin-bottom: 0.5rem;
}

/* Product Info Section */
.product-info {
    padding: 20px;
}

.product-info h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-info .brand {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.product-info .price {
    font-size: 1.6rem;
    color: #fe552e;
    font-weight: 600;
    margin: 20px 0;
}

/* Product Section with Description */
.product-section {
    margin: 30px 0;
    padding: 25px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.description {
    color: #444;
    line-height: 1.6;
}

.description h1,
.description h2,
.description h3 {
    margin: 15px 0;
    color: #333;
}

.description p {
    margin: 12px 0;
}

.description ul,
.description ol {
    margin: 12px 0;
    padding-left: 20px;
}

.description li {
    margin: 8px 0;
}

/* Welcome/Landing Page */
.welcome-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fe552e, #ff7a57);
    color: white;
    padding: 2rem;
}

.welcome-content {
    text-align: center;
    max-width: 800px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.welcome-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.start-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    background: white;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Recommendations Section */
.recommendations-section {
    margin: 4rem 0 6rem 0;
    position: relative; /* For absolute positioning of arrows */
}

.recommendations-section h2 {
    margin: 3rem 0 1.5rem;
    font-size: 1.5rem;
    color: #333;
    padding: 0;
}

/* Swiper Container */
.swiper {
    width: 100%;
    padding: 20px 0; /* Removed side padding to allow arrows to be outside */
    position: relative;
    margin: 0;
    overflow: visible;
}

/* Fixed size for slides */
.swiper-slide {
    height: 100%;
    width: 250px !important; /* Fixed width for all cards */
}

/* Product Card Styling */
.swiper .product-card {
    margin: 0;
    height: 350px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.swiper .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Product Links */
.swiper .product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image Container */
.swiper .product-image {
    width: 100%;
    height: 200px;
    min-height: 200px; /* Ensure consistent height */
    margin: 0;
    background: #f8f8f8;
}

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

/* Product Text Content */
.swiper .product-card h3 {
    margin: 12px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

.swiper .product-card p {
    margin: 0 12px 12px;
    font-size: 0.85rem;
    color: #666;
}

/* Navigation Arrows */
.swiper-button-next,
.swiper-button-prev {
    width: 32px;
    height: 32px;
    opacity: 0.7;
    transition: all 0.2s ease;
    color: #fe552e !important; /* Force override Swiper's default color */
    top: 45%; /* Center with cards */
}

/* Position arrows outside */
.swiper-button-prev {
    left: -45px;
}

.swiper-button-next {
    right: -45px;
}


/* Make arrow icons smaller and cleaner */
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px;
    font-weight: bold;
}

/* Hover state */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

/* Pagination */
.swiper-pagination {
    position: absolute;
    bottom: -30px !important; /* Move pagination below the carousel */
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #fe552e;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recommendations-section {
        margin: 3rem 0 4rem 0;
    }

    .recommendations-section h2 {
        padding: 0 20px;
        font-size: 1.3rem;
    }

    .swiper {
        padding: 20px 30px;
    }

    .swiper .product-image {
        height: 150px;
    }
}

/* Add to Cart Button */
.add-to-cart-btn {
    padding: 1rem 2rem;
    background: #fe552e;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 2rem;
}

.add-to-cart-btn:hover {
    background: #e54a29;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .swiper {
        padding: 20px 30px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Search Container */
.search-container {
    flex: 1;
    max-width: 600px;
    margin: 0 20px;
}

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

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-button {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 4px;
    color: #fe552e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}


/* Search Results Page */
.search-results-header {
    margin: 2rem 0;
}

.search-results-header h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #666;
    font-size: 0.95rem;
}

.error-message {
    color: #e74c3c;
    padding: 1rem;
    background: #fdf2f0;
    border-radius: 4px;
    margin: 1rem 0;
}

/* Search Container Updates */
.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.search-button {
    padding: 10px 16px;
    background: white;
    border: none;
    border-radius: 4px;
    color: #fe552e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.ai-search-button {
    padding: 10px 20px;
    background: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    color: #fe552e;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-search-button:hover {
    background: rgba(48, 48, 48, 0.9);
    transform: translateY(-1px);
}

/* AI Search Results Specific Styles */
.no-products {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 1rem 0;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results p {
    color: #666;
    font-size: 1.1rem;
}

/* Recommendations Section for AI Search */
.recommendations-section {
    margin: 3rem 0;
    position: relative;
}

.recommendations-section:first-child {
    margin-top: 2rem;
}

.recommendations-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.4rem;
    color: #333;
    padding: 0;
    border-bottom: 2px solid #fe552e;
    padding-bottom: 0.5rem;
}

/* Swiper Container Adjustments for AI Search */
.recommendations-section .swiper {
    width: 100%;
    padding: 20px 0;
    position: relative;
    margin: 0;
    overflow: visible;
}

/* Enhanced responsive adjustments for search form */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-button,
    .ai-search-button {
        width: 100%;
        padding: 12px;
    }
    
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .search-container {
        width: 100%;
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .search-form {
        gap: 8px;
    }
    
    .search-button,
    .ai-search-button {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-nav .container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .search-container {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-buttons {
        width: 100%;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
    }
}

/* Minimal CSS fix for carousel overflow - add to your main.css */

/* Container overflow fix for AI Search carousels */
.recommendations-section {
    overflow: hidden; /* Prevent items from overflowing the section */
    position: relative;
}

/* Ensure swiper doesn't overflow its container */
.container {
    overflow: hidden; /* Prevent horizontal scroll on main container */
}

/* Mobile responsive fix */
@media (max-width: 768px) {
    .recommendations-section {
        margin: 2rem 0;
    }
}