/* Navigation */
.main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav-container {
    display: flex;
    gap: 24px;
    padding: 0 20px;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-item {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    padding: 8px 0;
}

.nav-item:hover {
    color: #333;
}

.nav-item.active {
    color: #e41e31;
    border-bottom: 2px solid #e41e31;
}

.new-badge {
    background-color: #4ecdc4;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px;
    width: 95%;
}

.page-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #333;
}

.page-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Category Tags */
.category-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    align-items: center;
}

.tag {
    background-color: #8b5cf6;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.tag:hover {
    background-color: #7c3aed;
}

.tag.active {
    background-color: #6d28d9;
}

.tag-arrow {
    font-size: 18px;
    color: #666;
    cursor: pointer;
}

/* Filters */
.filters {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.filter-btn {
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background-color: #e5e5e5;
}

.sort-dropdown {
    margin-left: auto;
}

.sort-dropdown select {
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

/* Redbubble Product Grid */
.rb-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    margin: 24px 0 40px;
    width: 100%;
}

/* Product Card Styles */
.rb-product-card {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    overflow: hidden;
}

/* Removed card hover effect */

.rb-product-image-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
}

.rb-grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    transform-origin: center center;
}

.rb-product-card:hover .rb-grid-image {
    transform: scale(1.15);
}

.rb-heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.2s ease;
    z-index: 2;
}

.rb-heart-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

.rb-heart-btn.liked {
    color: #e41e31;
}

.rb-product-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rb-product-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.6em;
    /* Standard line-clamp for better browser support */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-product-meta {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    gap: 4px;
}

.rb-artist-name {
    font-size: 13px;
    color: #666;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--rb-text-primary); /* Matches the home page price color */
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .image-grid {
        gap: 24px 16px;
    }
}

@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 20px;
    }
    
    .grid-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .image-grid {
        gap: 20px 16px;
    }
    
    .grid-image {
        height: 280px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .artist-name, .price {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }
    
    .grid-image {
        height: 200px;
    }
    
    .product-title {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 2px;
    }
    
    .artist-name, .price {
        font-size: 12px;
    }
    
    .heart-btn {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}



.fan-art-product-image {
    position: relative;
    aspect-ratio: 4/5;
    background-color: #f5f5f5;
    overflow: hidden;
    height: 220px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.heart-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.heart-btn:hover {
    background-color: #ffffff;
    color: #e41e31;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    margin: 12px 0 4px 0;
    color: #333;
    line-height: 1.4;
}

.product-artist {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.current-price {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 12px;
    color: #666;
    text-decoration: line-through;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.page-info {
    font-size: 14px;
    color: #666;
}

.next-btn {
    background-color: #e41e31;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.next-btn:hover {
    background-color: #c41e31;
}

/* Search Section */
.search-section {
    margin-bottom: 48px;
}

.search-section h2 {
    font-size: var(--rb-font-size-lg);
    color: var(--rb-text-primary);
    font-weight: var(--rb-font-weight-semibold);
}

.search-section p {
    font-size: var(--rb-font-size-sm);
    color: var(--rb-text-primary);
    font-weight: var(--rb-font-weight-semibold);
    margin-bottom: 20px;
}

.search-container-bottom {
    display: flex;
    max-width: 600px;
    margin-bottom: 24px;
    border: 2px solid var(--rb-border-light);
    border-radius: 10px;
    padding: 12px 20px;
    background: var(--rb-light-gray);
}

.search-container-bottom input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
}

.search-container-bottom input::placeholder {
    color: var(--rb-text-secondary);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #e41e31;
    text-decoration: none;
}

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

/* Description */
.description {
    margin-bottom: 48px;
}

.description p {
    font-size: var(--rb-font-size-sm);
    color: #666;
    line-height: 1.6;
}

.product-title, .product-artist, .product-price {
  display: block !important;
  color: #111 !important;
  background: #fff !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1000 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-container {
        margin: 0;
        max-width: 100%;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 20px 10px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .category-tags {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
    
    .filters {
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
