/* ========================================
   SPIZZI BEAUTY - Main Stylesheet
   ======================================== */

/* Variables */
:root {
    --primary-color: #d4a574;
    --primary-dark: #c49464;
    --secondary-color: #333333;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
}

/* Base */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Header */
.top-bar {
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.85rem;
    padding: 8px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar .nav-link:hover {
    color: var(--primary-color);
}

/* Search */
.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.product-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.product-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card .wishlist-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Category Cards */
.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.category-card img {
    transition: transform 0.5s ease;
}

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

.category-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: #fff;
}

/* Filters Sidebar */
.filter-section {
    margin-bottom: 25px;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

/* Price Range */
.price-range input[type="range"] {
    width: 100%;
    accent-color: var(--primary-color);
}

/* Product Detail */
.product-gallery .main-image {
    border-radius: 10px;
    overflow: hidden;
}

.product-gallery .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-gallery .thumbnail:hover,
.product-gallery .thumbnail.active {
    border-color: var(--primary-color);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-selector button {
    border: none;
    background: var(--light-bg);
    padding: 10px 15px;
    cursor: pointer;
}

.quantity-selector input {
    border: none;
    text-align: center;
    width: 60px;
    padding: 10px 0;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #fff;
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #222;
    padding: 15px 0;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.newsletter-section .form-control {
    border-radius: 25px 0 0 25px;
}

.newsletter-section .btn {
    border-radius: 0 25px 25px 0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-radius: 5px;
    margin: 0 3px;
}

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

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 165, 116, 0.25);
}

/* Alerts */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .product-card .card-img-top {
        height: 150px;
    }
}