:root {
    --primary: #101010;
    --primary-light: #2a2a2a;
    --accent: #d4af37; /* Gold/Bronze accent */
    --accent-hover: #bfa02c;
    --bg-light: #f9f9f9;
    --bg-dark: #0b0c10;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f3f4f6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Top Bar & Navigation */
.navbar {
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar.scrolled {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Premium Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all var(--transition-speed) ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background-color: var(--accent);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    border: none;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Hero Section */
.hero-carousel .carousel-item {
    height: 75vh;
    min-height: 500px;
    background-color: var(--primary);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.2));
}

.hero-content {
    z-index: 2;
    color: var(--text-light);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--accent);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

/* Category Cards */
.category-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 250px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

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

/* Product Cards */
.product-card {
    border: none;
    border-radius: var(--border-radius);
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-card .img-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: #f6f6f6;
    overflow: hidden;
}

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

.product-card:hover .img-wrapper img {
    transform: scale(1.08);
}

.product-card .badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 30px;
    z-index: 2;
}

.product-card .btn-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: all var(--transition-speed) ease;
    z-index: 2;
}

.product-card .btn-wishlist:hover {
    background-color: #ffffff;
    color: #ef4444;
}

.product-card .btn-wishlist.active {
    color: #ef4444;
}

.product-card .card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card .brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-card .product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.4rem;
}

.product-card .rating-stars {
    color: #ffc000;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.product-card .price-wrapper {
    display: flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 0.75rem;
}

.product-card .price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.product-card .old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.product-card .btn-add-to-cart {
    border-radius: 8px;
    background-color: var(--primary);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.6rem;
    width: 100%;
    transition: all var(--transition-speed) ease;
}

.product-card .btn-add-to-cart:hover {
    background-color: var(--accent);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
}

.custom-toast {
    background: rgba(11, 12, 16, 0.95);
    color: #ffffff;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.custom-toast .toast-icon {
    font-size: 1.25rem;
    color: var(--accent);
}

/* Autocomplete Box */
.search-wrapper {
    position: relative;
}

.autocomplete-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.autocomplete-item {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s;
}

.autocomplete-item:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.autocomplete-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.autocomplete-item .item-details {
    display: flex;
    flex-direction: column;
}

.autocomplete-item .item-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.autocomplete-item .item-price {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
}

/* Footer styling */
footer {
    background-color: var(--bg-dark);
    color: #a0aec0;
}

footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

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

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* Detail Page Custom styling */
.product-gallery-thumb {
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-gallery-thumb.active {
    border-color: var(--accent);
}

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

.zoom-image {
    transition: transform 0.1s ease-out;
}

.spec-table th {
    background-color: var(--bg-light);
    width: 30%;
}

/* Collapsible sidebar chevrons rotation */
.cursor-pointer {
    cursor: pointer;
}
.bi-chevron-down {
    transition: transform 0.2s ease-in-out;
}
[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* Navbar cart count badge colors */
.cart-count-badge {
    background-color: var(--accent) !important;
    color: #ffffff !important;
}
