/* Shop Page - 2025 Modern UI/UX Design */

/* CSS Variables for 2025 Design */
:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 16px 64px rgba(0, 0, 0, 0.15);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --border-radius-modern: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.navbar{
        background-color: rgba(0, 0, 0, 0.98) !important;
}
/* Shop page body padding for fixed navbar */
body.shop-page {
    padding-top: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Modern Hero Section */
.shop-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.shop-hero::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Modern Layout */
.shop-main-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

/* Modern Glass Filters Sidebar */
.sidebar-filters {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-modern);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 100px;
    transition: var(--transition-smooth);
}

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

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.filter-option:hover {
    background: rgba(212, 175, 55, 0.1);
}

.filter-option input {
    margin-right: 0.75rem;
    accent-color: var(--primary-gold);
    transform: scale(1.2);
}

.filter-option label {
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.filter-option:hover label {
    color: var(--primary-black);
}

.shop-title {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.shop-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

/* Filters Section */
.filters-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.filter-select {
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: var(--white);
    transition: var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary-gold);
    outline: none;
}

.results-info {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-btn {
    background: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-btn.active {
    background: var(--primary-gold);
    color: var(--white);
}

/* Modern Products Grid */
.products-section {
    padding: 0;
}

/* Products grid now uses Bootstrap grid system for better compatibility */

/* 2025 Modern Product Card */
.product-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-modern);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

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

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
    border-radius: var(--border-radius-modern) var(--border-radius-modern) 0 0;
    z-index: 2;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: brightness(1) contrast(1.1);
}

.product-card:hover .product-image {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) contrast(1.2);
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 3;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-gold);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-badge.sale {
    background: var(--danger);
}

.product-badge.new {
    background: var(--success);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-black);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: scale(1.1);
}

/* Modern Product Content */
.product-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
}

.product-brand {
    color: var(--primary-gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.product-title {
    font-family: var(--font-secondary);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
    line-height: 1.3;
    flex: 1;
    letter-spacing: -0.02em;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.product-title a:hover {
    color: var(--primary-gold);
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.product-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 400;
}

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

.price-current {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-gold);
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.price-original {
    font-size: 1.1rem;
    color: var(--medium-gray);
    text-decoration: line-through;
    opacity: 0.7;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Modern Action Buttons */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, var(--primary-gold) 0%, #b8941f 100%);
    color: var(--white);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.quick-view-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--primary-gold);
    padding: 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
    font-weight: 600;
}

.quick-view-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* List View Styles */
.products-grid.list-view .product-card {
    flex-direction: row;
    height: auto;
}

.products-grid.list-view .product-image-wrapper {
    width: 250px;
    height: 200px;
    flex-shrink: 0;
}

.products-grid.list-view .product-content {
    padding: 2rem;
}

.products-grid.list-view .product-title {
    font-size: 1.5rem;
}

.products-grid.list-view .product-description {
    display: block;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid #e9ecef;
    color: var(--primary-black);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--white);
}

/* Sidebar Filters */
.sidebar-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    position: sticky;
    top: 120px;
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option input {
    margin-right: 0.5rem;
}

.filter-option label {
    color: var(--medium-gray);
    cursor: pointer;
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop-title {
        font-size: 2.5rem;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    /* Products grid uses Bootstrap grid system for better compatibility */
    
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .sidebar-filters {
        position: static;
    }
}

@media (max-width: 576px) {
    .shop-hero {
        padding: 100px 0 60px;
    }
    
    .shop-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .filters-section {
        padding: 1rem 0;
    }
}
