/* Men's Page Specific Styles */

/* Filters Section */
.filters-section {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    /* position: sticky; */
    top: 4rem;
    z-index: 40;
    box-shadow: var(--shadow-soft);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.filters-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}

.filter-toggle-btn {
    display: none;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    gap: 0.5rem;
    align-items: center;
    transition: var(--transition-smooth);
}

.filter-toggle-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

.filters-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
    color: var(--foreground);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(161, 98, 98, 0.1);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

/* Products Section */
.products-section {
    padding: 4rem 0;
    background: var(--background);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.products-info h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.products-count {
    color: var(--muted-foreground);
    font-size: 1rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: var(--shadow-soft);
}

.view-btn {
    padding: 0.75rem;
    border: none;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: var(--transition-smooth);
}

.view-btn.active,
.view-btn:hover {
    background: var(--accent);
    color: white;
}

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

.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

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

.products-grid.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 280px;
    background: var(--secondary);
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 0.75rem;
    margin-right: 2rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.product-badge.new {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
}

.product-badge.sale {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.product-badge.featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-info {
    padding: 1.5rem;
}

.products-grid.list-view .product-info {
    padding: 0;
    flex: 1;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.product-description {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text {
    color: var(--muted-foreground);
    font-size: 0.85rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: var(--muted-foreground);
    text-decoration: line-through;
}

.discount-badge {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Quick View Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: white;
    border-radius: 1.5rem;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-premium);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-content {
    display: flex;
    min-height: 500px;
}

.modal-image {
    flex: 1;
    position: relative;
    background: var(--secondary);
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-details {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-description {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.modal-options {
    margin-bottom: 2rem;
}

.size-selector,
.color-selector {
    margin-bottom: 1.5rem;
}

.size-selector label,
.color-selector label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.size-options,
.color-options {
    display: flex;
    gap: 0.75rem;
}

.size-btn {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.size-btn:hover,
.size-btn.selected {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.color-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.color-btn:hover,
.color-btn.selected {
    transform: scale(1.1);
    box-shadow: var(--shadow-soft);
}

.modal-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-premium);
    z-index: 1000;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-header h3 {
    color: var(--primary);
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: var(--transition-smooth);
}

.cart-close:hover {
    background: var(--secondary);
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted-foreground);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-options {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-btn {
    background: var(--secondary);
    border: none;
    border-radius: 0.25rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quantity-btn:hover {
    background: var(--accent);
    color: white;
}

.quantity-display {
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    transition: var(--transition-smooth);
}

.remove-btn:hover {
    color: #ef4444;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
}

.cart-total {
    margin-bottom: 1.5rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.total-main {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--accent);
    color: white;
    font-size: 0.75rem;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-width: 200px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

.newsletter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.newsletter-content {
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form .btn {
    padding: 1rem 1.5rem;
    white-space: nowrap;
}

/* Active State for Navigation */
.nav-links a.active {
    color: burlywood;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .modal-content {
        flex-direction: column;
    }
    
    .modal-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .filter-toggle-btn {
        display: flex;
    }
    
    .filters-container {
        display: none;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filters-container.active {
        display: flex;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: stretch;
    }
    
    .filter-actions .btn {
        flex: 1;
    }
    
    .products-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .products-grid.list-view .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: none;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-details {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.text-success {
    color: #22c55e;
}

.text-error {
    color: #ef4444;
}

.bg-success {
    background-color: #22c55e;
}

.bg-error {
    background-color: #ef4444;
}
