/* Modern E-commerce Styling */

/* Typography */
.letter-spacing-1 {
    letter-spacing: 1px;
}

/* Product Grid Styling */
.product-item {
    transition: all 0.3s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-image-wrapper {
    overflow: hidden;
    border-radius: 0;
    background-color: #f8f9fa;
}

.product-image {
    transition: transform 0.4s ease;
    object-fit: cover;
}

.product-info {
    padding: 0.5rem 0;
}

.product-title {
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.product-category {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 1rem;
    color: #2c2c2c;
    font-weight: 600;
}

/* Category Navigation */
.category-item {
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.category-item:hover {
    border-bottom-color: #2c2c2c;
}

/* Hero Banner */
.hero-banner {
    position: relative;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

/* Navigation */
.navbar {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* Buttons */
.btn {
    border-radius: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: #2c2c2c;
    color: white;
    border-color: #2c2c2c;
}

.btn-dark {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
}

.btn-dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.6rem 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2c2c2c;
    box-shadow: 0 0 0 0.2rem rgba(44, 44, 44, 0.1);
}

/* Cards */
.card {
    border-radius: 0;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        height: 50vh !important;
    }
    
    .hero-banner h1 {
        font-size: 2rem !important;
    }
    
    .product-image-wrapper {
        aspect-ratio: 3/4;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 40vh !important;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem !important;
    }
    
    .col-lg-3.col-md-4.col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Pagination */
.pagination .page-link {
    border-radius: 0;
    border: 1px solid #ddd;
    color: #2c2c2c;
}

.pagination .page-link:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover Effects */
.product-item a {
    color: inherit;
    text-decoration: none;
}

.product-item:hover .product-title {
    color: #007bff;
}

/* Grid Consistency */
.row.g-4 {
    margin-left: -1rem;
    margin-right: -1rem;
}

.row.g-4 > * {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Object Fit Polyfill for older browsers */
.object-fit-cover {
    object-fit: cover;
    font-family: 'object-fit: cover;';
}

/* Top Picks Section */
.top-pick-filter {
    transition: all 0.3s ease;
    border-color: #dee2e6;
}

.top-pick-filter.active {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
}

.top-pick-filter:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
}

.top-picks-container {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.top-pick-item {
    min-width: 280px;
    transition: all 0.3s ease;
}

.top-pick-item.hidden {
    display: none;
}

/* Color dots */
.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* Product overlay effects */
.product-overlay {
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1 !important;
}

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

/* Navigation arrows */
#topPicksPrev, #topPicksNext {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

#topPicksPrev:hover, #topPicksNext:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-pick-item {
        min-width: 250px;
    }
    
    .top-pick-filter {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .top-pick-item {
        min-width: 220px;
    }
}

/* Get Inspired Section */
.inspired-container {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.inspired-card {
    min-width: 320px;
    transition: all 0.3s ease;
}

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

.inspired-card .card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.inspired-card .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Gradient overlay for image cards */
.bg-gradient-dark {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

/* Pride text styling */
.pride-text .badge {
    font-size: 1.2rem;
    padding: 0.5rem 0.8rem;
    margin: 0 0.1rem;
    border-radius: 8px;
    font-weight: bold;
}

/* Navigation buttons for inspired section */
#inspiredPrev, #inspiredNext {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#inspiredPrev:hover, #inspiredNext:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
    transform: scale(1.05);
}

/* Card button styling */
.inspired-card .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.inspired-card .btn:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments for inspired section */
@media (max-width: 768px) {
    .inspired-card {
        min-width: 280px;
    }
    
    .inspired-card .card-img-top {
        height: 250px !important;
    }
    
    #inspiredPrev, #inspiredNext {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .inspired-card {
        min-width: 260px;
    }
    
    .inspired-card .card-img-top {
        height: 220px !important;
    }
    
    .pride-text .badge {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }
}

/* Brands We Love Section */
.brands-container {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.brand-card {
    min-width: 320px;
    transition: all 0.3s ease;
}

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

.brand-card .card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.brand-card .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Navigation buttons for brands section */
#brandsPrev, #brandsNext {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#brandsPrev:hover, #brandsNext:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
    transform: scale(1.05);
}

/* Brand card button styling */
.brand-card .btn {
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-card .btn:hover {
    transform: translateY(-1px);
}

/* Responsive adjustments for brands section */
@media (max-width: 768px) {
    .brand-card {
        min-width: 280px;
    }
    
    .brand-card .card-img-top {
        height: 250px !important;
    }
    
    #brandsPrev, #brandsNext {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .brand-card {
        min-width: 260px;
    }
    
    .brand-card .card-img-top {
        height: 220px !important;
    }
}

/* Great Deals Section */
.deals-container {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.deal-card {
    min-width: 240px;
    transition: all 0.3s ease;
}

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

.deal-card .card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.deal-card .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Quick view button styling */
.quick-view-btn {
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-50%) translateY(20px);
}

.deal-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Navigation buttons for deals section */
#dealsPrev, #dealsNext {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#dealsPrev:hover, #dealsNext:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
    transform: scale(1.05);
}

/* Deal pricing styling */
.deal-card .text-danger {
    font-size: 1.1rem;
}

.deal-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Color dots for deals */
.deal-card .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.deal-card .color-dot:hover {
    transform: scale(1.3);
}

/* Responsive adjustments for deals section */
@media (max-width: 768px) {
    .deal-card {
        min-width: 220px;
    }
    
    #dealsPrev, #dealsNext {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .deal-card {
        min-width: 200px;
    }
    
    .deal-card .card-img-top {
        height: 280px !important;
    }
}

/* Trending Near You Section */
.trending-container {
    transition: transform 0.3s ease;
    scroll-behavior: smooth;
}

.trending-card {
    min-width: 220px;
    transition: all 0.3s ease;
}

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

.trending-card .card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.trending-card .card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Navigation buttons for trending section */
#trendingPrev, #trendingNext {
    width: 40px;
    height: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#trendingPrev:hover, #trendingNext:hover {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    color: white;
    transform: scale(1.05);
}

/* Trending pricing styling */
.trending-card .text-dark {
    font-size: 1rem;
}

.trending-card .text-danger {
    font-size: 1rem;
}

.trending-card .badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Color dots for trending */
.trending-card .color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.trending-card .color-dot:hover {
    transform: scale(1.3);
}

/* Responsive adjustments for trending section */
@media (max-width: 768px) {
    .trending-card {
        min-width: 200px;
    }
    
    #trendingPrev, #trendingNext {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .trending-card {
        min-width: 180px;
    }
    
    .trending-card .card-img-top {
        height: 250px !important;
    }
    
    .trending-card .card-body {
        padding: 0.75rem !important;
    }
}

/* Hero Slideshow */
.hero-slides {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide.prev {
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* Hero Navigation */
.hero-prev, .hero-next {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.hero-prev:hover, .hero-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Indicators */
.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

.hero-indicator:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.8);
}

/* Animation for content */
.hero-slide h1, .hero-slide p, .hero-slide .btn {
    animation: slideInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.hero-slide p {
    animation-delay: 0.2s;
}

.hero-slide .btn {
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reset animation for non-active slides */
.hero-slide:not(.active) h1,
.hero-slide:not(.active) p,
.hero-slide:not(.active) .btn {
    animation: none;
    opacity: 0;
    transform: translateY(30px);
}

/* Mobile responsiveness for hero */
@media (max-width: 768px) {
    .hero-prev, .hero-next {
        display: none !important;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-slide p {
        font-size: 1.1rem !important;
    }
}

/* Search Box Styling */
.navbar .form-control {
    border: 2px solid #e91e63 !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar .form-control:focus {
    border-color: #c2185b !important;
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25) !important;
}

.navbar .input-group .form-control {
    border-right: none !important;
}

.navbar .input-group .btn {
    border: 2px solid #e91e63 !important;
    border-left: none !important;
}

/* Sign In Button Styling */
#signInBtn, #accountMenuBtn {
    background: none !important;
    border: none !important;
    color: #2c2c2c !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    padding: 0.5rem 0 !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.95rem !important;
}

#signInBtn:hover, #accountMenuBtn:hover {
    color: #000 !important;
    text-decoration: none !important;
}

#signInBtn .fas.fa-user-circle,
#accountMenuBtn .fas.fa-user-circle {
    font-size: 1.1rem;
}

#signInBtn .fas.fa-chevron-down,
#accountMenuBtn .fas.fa-chevron-down {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Sign In Modal Styling */
#signInModal .modal-content {
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

#signInModal .modal-header {
    padding: 1.25rem 1.25rem 0.5rem 1.25rem;
}

#signInModal .modal-body {
    padding: 0.5rem 1.25rem 1.25rem 1.25rem;
}

#signInModal .modal-title {
    color: #2c2c2c;
    font-size: 0.95rem;
    line-height: 1.4;
}

#signInModal .btn-dark {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
    border-radius: 4px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

#signInModal .btn-dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

#signInModal h6 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

#signInModal a {
    font-size: 0.85rem;
    padding: 0.4rem 0;
    transition: color 0.2s ease;
}

#signInModal a:hover {
    color: #000 !important;
}

#signInModal .fas {
    width: 16px;
    font-size: 0.8rem;
    color: #666;
}

/* Modal backdrop styling */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Mobile responsiveness for modal */
@media (max-width: 576px) {
    #signInModal .modal-dialog {
        max-width: 90vw !important;
        margin: 1rem auto;
    }
    
    #signInModal .modal-content {
        max-height: 90vh;
    }
}