/* Shop Page Navy Blue Theme */
/* Override default colors with navy theme */

/* Product Grid Styling */
.shop_grid_product_area {
    background: var(--white-primary);
}

.single-product-wrapper {
    background: var(--white-primary);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.single-product-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

/* Product Image Container */
.product-img {
    position: relative;
    overflow: hidden;
    background: var(--white-secondary);
}

.product-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-image, none);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    opacity: 0.3;
    z-index: 1;
}

.product-img img {
    position: relative;
    z-index: 2;
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

/* Product Info */
.product-info {
    padding: 20px;
    background: var(--white-primary);
}

.product-info h6 {
    color: var(--navy-primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Product Description */
.product-description {
    padding: 20px;
    background: var(--white-primary);
    border-radius: 0 0 15px 15px;
}

.product-description span {
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.product-description h6 {
    color: var(--navy-primary);
    font-weight: 600;
    margin: 10px 0;
    font-size: 1.1rem;
    line-height: 1.4;
    padding: 0;
}

.product-description a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.product-description a:hover {
    color: var(--gold-accent);
}

/* Hover Content */
.hover-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--white-accent);
}

.hover-content .btn {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: var(--gradient-navy) !important;
    color: var(--white-primary) !important;
    border: none !important;
    text-align: center !important;
    display: inline-block !important;
    line-height: 1.5;
    vertical-align: middle;
}

.hover-content .btn:hover {
    background: var(--navy-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    color: var(--white-primary) !important;
    text-decoration: none;
}

.product-info .price {
    color: var(--gold-accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Add to Cart Button */
.add-to-cart,
.add-to-cart-btn,
.essence-btn,
.btn.essence-btn {
    background: var(--gradient-navy) !important;
    color: var(--white-primary) !important;
    border: none !important;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
    vertical-align: middle;
}

.add-to-cart:hover,
.add-to-cart-btn:hover,
.essence-btn:hover,
.btn.essence-btn:hover {
    background: var(--navy-accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
    color: var(--white-primary) !important;
    text-decoration: none;
}

/* Override any existing button styles */
.btn.essence-btn[style*="color:white"],
.btn.essence-btn.add-to-cart-btn,
a.btn.essence-btn {
    background: var(--gradient-navy) !important;
    color: var(--white-primary) !important;
    border: none !important;
    text-align: center !important;
    display: inline-block !important;
    width: 100% !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Specific override for buttons with IDs */
a[class*="btn"][id] {
    background: var(--gradient-navy) !important;
    color: var(--white-primary) !important;
    border: none !important;
    text-align: center !important;
    display: inline-block !important;
    width: 100% !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
}

/* Filter Sidebar */
.shop_sidebar_area {
    background: var(--white-primary);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    padding: 25px;
    margin-left: -75px;
    position: relative;
    left: -50px;
}

.widget-title {
    color: var(--navy-primary);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Removed the underline from widget title */
/* .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold-accent);
    border-radius: 2px;
} */

/* Filter Labels */
.filter-label {
    color: var(--navy-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

/* Dropdown Styling */
.nice-select {
    border: 2px solid var(--navy-light);
    border-radius: 8px;
    background: var(--white-primary);
    color: var(--navy-primary);
}

.nice-select:hover {
    border-color: var(--gold-accent);
}

.nice-select .current {
    color: var(--navy-primary);
}

.nice-select .list {
    border: 2px solid var(--navy-light);
    border-radius: 8px;
    background: var(--white-primary);
}

.nice-select .option {
    color: var(--navy-primary);
    transition: all 0.2s ease;
}

.nice-select .option:hover {
    background: var(--gold-accent);
    color: var(--white-primary);
}

.nice-select .option.selected {
    background: var(--navy-primary);
    color: var(--white-primary);
}

/* Search Input */
.dropdown-search input {
    border: 2px solid var(--navy-light);
    border-radius: 8px;
    background: var(--white-primary);
    color: var(--navy-primary);
}

.dropdown-search input:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Filter Buttons */
.filter-buttons .btn-primary {
    background: var(--gradient-navy);
    border: none;
    color: var(--white-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-buttons .btn-primary:hover {
    background: var(--navy-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.filter-buttons .btn-outline-secondary {
    border: 2px solid var(--navy-light);
    color: var(--navy-primary);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-buttons .btn-outline-secondary:hover {
    background: var(--navy-primary);
    color: var(--white-primary);
    transform: translateY(-2px);
}

/* Selected Filters */
.selected-filters {
    background: var(--white-secondary);
    border: 1px solid var(--navy-light);
    border-radius: 10px;
    padding: 15px;
}

.filter-tag {
    background: var(--gradient-navy);
    color: var(--white-primary);
    border-radius: 20px;
    padding: 5px 12px;
    margin: 2px;
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Pagination */
.pagination .page-link {
    color: var(--navy-primary);
    border: 1px solid var(--navy-light);
    background: var(--white-primary);
}

.pagination .page-link:hover {
    background: var(--navy-primary);
    color: var(--white-primary);
    border-color: var(--navy-primary);
}

.pagination .page-item.active .page-link {
    background: var(--navy-primary);
    border-color: var(--navy-primary);
    color: var(--white-primary);
}

/* Breadcrumb */
.breadcrumb {
    background: var(--white-secondary);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: var(--navy-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gold-accent);
    font-weight: 600;
}

/* Sort Options */
.sort-options {
    background: var(--white-primary);
    border: 1px solid var(--navy-light);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--navy-primary);
}

.sort-options:focus {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Product Count */
.product-count {
    color: var(--navy-primary);
    font-weight: 600;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .shop_sidebar_area {
        margin-bottom: 30px;
        padding: 20px;
        margin-left: 0;
        left: 0;
    }
    
    .single-product-wrapper {
        margin-bottom: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-description {
        padding: 15px;
    }
    
    .product-description h6 {
        font-size: 1rem;
        margin: 8px 0;
    }
    
    .product-description span {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }
    
    .hover-content {
        margin-top: 12px;
        padding-top: 12px;
    }
    
    .hover-content .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* Hover Effects */
.single-product-wrapper:hover .product-img img {
    transform: scale(1.05);
}

/* Focus States */
.nice-select:focus,
.dropdown-search input:focus,
.sort-options:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Disabled States */
.nice-select.disabled,
.dropdown-search input:disabled {
    background: var(--white-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Success States */
.filter-applied {
    border-color: var(--gold-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Error States */
.filter-error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.2);
}
