/* Base styles */ * { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #333; background-color: #f9f9f9; }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

/* Enhanced Navigation Search Bar */
.navbar .search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.navbar .search-container form {
    display: flex;
    width: 100%;
}

.navbar .search-container .autocomplete-container {
    flex-grow: 1;
    position: relative;
}

.navbar .search-container input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.navbar .search-container input[type="text"]:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.2);
    outline: none;
}

.navbar .search-container button {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    transition: background-color 0.3s ease;
}

.navbar .search-container button:hover {
    background-color: #c9302c;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    margin-left: auto;
}

/* Autocomplete dropdown styling */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.autocomplete-item:hover {
    background-color: #f5f5f5;
}

/* Collapsible Filters */
.filters-wrapper {
    position: relative;
    width: 100%;
}

.filter-toggle {
    display: none;
    background-color: #4a90a0;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.filter-toggle:hover {
    background-color: #347585;
}

.filter-toggle i {
    margin-right: 5px;
}

.filter-count {
    color: #666;
    font-weight: normal;
}

.filters {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    width: 250px;
}

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

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.apply-filters {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-filters:hover {
    background-color: #c9302c;
}

.clear-filters {
    background-color: transparent;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background-color: #f5f5f5;
}

.slider-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 100px 50px;
    color: #fff;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #d9534f;
    color: white;
}

.btn-primary:hover {
    background-color: #c9302c;
}

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

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

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 3;
}

.prev-slide, .next-slide {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
    background: rgba(255,255,255,0.5);
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background-color: white;
}

/* Art Categories */
.art-categories {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.category-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
}

.category-card h3 {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    margin: 0;
    font-size: 1.5rem;
    z-index: 2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Featured Collections */
.featured-collections {
    padding: 80px 0;
}

.collections-slider {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    overflow-x: hidden;
}

.collection-card {
    min-width: calc(33.333% - 20px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.collection-info {
    padding: 20px;
}

.collection-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.collection-info p {
    color: #666;
    margin-bottom: 15px;
}

.view-collection {
    display: inline-block;
    color: #d9534f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-collection:hover {
    color: #c9302c;
}

.slider-arrows {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.prev-collection, .next-collection {
    background-color: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.prev-collection:hover, .next-collection:hover {
    background-color: #e0e0e0;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .navbar .container {
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: none;
        width: 100%;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: left;
    }
    
    .navbar .search-container {
        order: 3;
        margin: 15px 0 0;
        max-width: 100%;
        width: 100%;
    }
    
    .auth-links {
        order: 4;
        margin: 15px 0 0;
        width: 100%;
        justify-content: center;
    }
    
    /* Filter adjustments */
    .filter-sort-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .filters-wrapper {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .filter-toggle {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 80%;
        max-width: 300px;
        z-index: 2000;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding-top: 60px;
        border-radius: 0;
    }
    
    .filters.active {
        display: block;
    }
    
    .filters-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 300px;
        background-color: white;
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
        z-index: 2001;
    }
    
    .close-filters {
        display: block;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 1999;
    }
    
    .filter-overlay.active {
        display: block;
    }
}

@media (max-width: 576px) {
    .filters {
        width: 85%;
    }
    
    .filters-header {
        width: 85%;
    }
    
    .sort-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-options {
        margin-top: 10px;
    }
    
    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* Homepage Carousel Styles (scoped, non-conflicting) */
.homepage-carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 48px auto 48px auto;
  padding: 0 16px;
  max-width: 1200px;
}
.homepage-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-width: 320px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px rgba(0,0,0,0.08);
  overflow: hidden;
  padding: 24px 24px 40px 24px;
  margin: 0 auto;
}
.homepage-carousel .carousel-slide {
  display: none;
  width: 100%;
  height: 380px;
  border-radius: 16px;
  overflow: hidden;
  background: #f5f5f5;
  align-items: center;
  justify-content: center;
}
.homepage-carousel .carousel-slide.active {
  display: flex;
}
.homepage-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.homepage-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.18);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.homepage-carousel .carousel-control.prev {
  left: 16px;
}
.homepage-carousel .carousel-control.next {
  right: 16px;
}
.homepage-carousel .carousel-control:hover {
  background: rgba(0,0,0,0.32);
}
.homepage-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
}
.homepage-carousel .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e0e0;
  cursor: pointer;
  transition: background 0.2s;
}
.homepage-carousel .dot.active {
  background: #4a90a0;
}
@media (max-width: 600px) {
  .homepage-carousel {
    padding: 10px 2px 32px 2px;
    max-width: 98vw;
  }
  .homepage-carousel .carousel-slide {
    height: 180px;
  }
}
