/* ==========================================================================
   Gold Investments - Custom Styles
   ========================================================================== */

:root {
    --gold-color: #b19e6c;
    --gold-dark: #9a8556;
    --gold-light: #c4b380;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    line-height: 1.6;
}

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

.bg-gold {
    background-color: var(--gold-color) !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-gold {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
    color: #fff;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(177, 158, 108, 0.3);
}

.btn-gold:active,
.btn-gold:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Top Bar
   ========================================================================== */

.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--gold-color) !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--gold-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--gold-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--gold-color);
    padding-left: 1.25rem;
}

.dropdown-header {
    color: var(--gold-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cart Button */
#cartButton {
    position: relative;
}

#cartCount {
    background-color: var(--gold-color);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section h1 {
    line-height: 1.2;
}

.hero-section img {
    animation: fadeInUp 0.8s ease;
}

/* ==========================================================================
   Product Cards & Grid
   ========================================================================== */

.category-box {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.category-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.product-list a {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.product-list a:hover {
    color: var(--gold-color) !important;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

/* Product Image Flip Effect */
.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.product-image-front {
    opacity: 1;
    z-index: 2;
}

.product-image-back {
    opacity: 0;
    z-index: 1;
}

.product-card:hover .product-image-front {
    opacity: 0;
}

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

.product-card-body {
    padding: 1.25rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #333;
    transition: color 0.3s ease;
}

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

.product-price {
    font-size: 1.25rem;
    color: var(--gold-color);
}

.product-quantity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid #dee2e6;
}

/* Quantity Controls */
.qty-minus,
.qty-plus {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Features & Info Sections
   ========================================================================== */

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.cart-page .table {
    margin-bottom: 0;
}

.cart-page .img-thumbnail {
    border: 1px solid #dee2e6;
}

.cart-qty-input {
    max-width: 60px;
}

.remove-from-cart {
    transition: all 0.3s ease;
}

.remove-from-cart:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   Filter Sidebar
   ========================================================================== */

.filter-sidebar {
    position: sticky;
    top: 100px;
}

.filter-sidebar .form-check-input:checked {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
}

.filter-sidebar a {
    transition: all 0.3s ease;
}

.filter-sidebar a:hover {
    padding-left: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: auto;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: var(--gold-color);
    padding-left: 0.5rem;
}

.footer .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.footer .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold-color);
    color: #fff;
}

.footer .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer .form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer .form-check-input:checked {
    background-color: var(--gold-color);
    border-color: var(--gold-color);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--gold-color) !important;
    transform: translateY(-3px);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 991.98px) {
    .category-image img {
        height: 200px;
    }

    .product-title {
        font-size: 0.9rem;
        min-height: auto;
    }

    .filter-sidebar {
        position: relative;
        top: 0;
    }
}

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

    .hero-section .lead {
        font-size: 1rem;
    }

    .category-box {
        margin-bottom: 1.5rem;
    }

    .product-card-body {
        padding: 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.shadow-gold {
    box-shadow: 0 4px 12px rgba(177, 158, 108, 0.2) !important;
}

.border-gold {
    border-color: var(--gold-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}
