:root {
    --primary-color: #C98910;
    --primary-hover: #a87009;
    --dark-color: #000000;
    --light-bg: #f8f9fa;
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fa-brands-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/fa-regular-400.woff2') format('woff2');
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

.bg-primary, .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

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

.text-primary {
    color: var(--primary-color) !important;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
}

.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #333 100%);
    color: white;
    padding: 100px 0;
    margin-bottom: 50px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section .btn {
    padding: 12px 40px;
    font-size: 1.1rem;
}

.category-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    z-index: 1;
}

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

.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.image-zoom-container img {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.image-zoom-container:hover img {
    transform: scale(1.1);
}

.image-zoom-lens {
    position: absolute;
    border: 2px solid var(--primary-color);
    width: 100px;
    height: 100px;
    pointer-events: none;
    display: none;
}

.image-zoom-result {
    position: absolute;
    border: 1px solid #d4d4d4;
    width: 300px;
    height: 300px;
    background-color: white;
    background-repeat: no-repeat;
    z-index: 1000;
    display: none;
    top: 0;
    right: -310px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

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

.quantity-input {
    max-width: 120px;
}

.cart-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item img {
    max-width: 100px;
    height: auto;
}

.cart-summary {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 5rem;
    color: #ccc;
    margin-bottom: 20px;
}

.admin-sidebar {
    background: var(--dark-color);
    min-height: calc(100vh - 56px);
    color: white;
}

.admin-sidebar .nav-link {
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
}

.table-actions {
    white-space: nowrap;
}

.table-actions .btn {
    padding: 5px 10px;
    font-size: 0.875rem;
    margin-right: 5px;
}

.image-preview {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

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

    .image-zoom-result {
        display: none !important;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-item img {
        max-width: 80px;
    }
}

.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);
    color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 137, 16, 0.25);
}

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

.page-link {
    color: var(--primary-color);
}

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

.offer-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    display: flex;
    align-items: center;
}

.offer-content {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.offer-content h1 {
    font-weight: bold;
    margin-bottom: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .offer-slide {
        height: 300px;
    }

    .offer-content h1 {
        font-size: 2rem;
    }
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rating-stars {
    color: #ffa500;
    font-size: 1.2rem;
}

.rating-stars i {
    margin-right: 2px;
}

.review-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    font-size: 2rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    color: #ddd;
    cursor: pointer;
    padding: 0 5px;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffa500;
}

.average-rating {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.rating-breakdown {
    font-size: 0.9rem;
}

.rating-bar {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
