/* Google Fonts */
:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #0f172a;
    --text-color: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--secondary-color);
}

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

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

.bg-primary-subtle {
    background-color: #eef2ff !important;
}

.bg-info-subtle {
    background-color: #e0f2fe !important;
}

.text-info {
    color: #0ea5e9 !important;
}

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

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

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

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

.transition-all {
    transition: all var(--transition-normal);
}

.text-white-hover:hover {
    color: white !important;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

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

.nav-link {
    color: var(--text-color) !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

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

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

.search-bar input {
    width: 250px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.search-bar input:focus {
    width: 300px;
    background-color: white;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 76px);
    /* Adjust based on navbar height */
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.blob-shape {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #c7d2fe 0%, #e0e7ff 100%);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob-anim 8s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.6;
}

@keyframes blob-anim {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

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

.hero-image-col:hover .hero-img {
    transform: scale(1.02);
}

.btn-hover-lift {
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3) !important;
}

/* Product Cards */
.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: transparent;
}

.product-img-wrapper {
    height: 280px;
    padding: 1rem;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

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

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.add-to-cart-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 80%;
}

.product-img-wrapper:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Modals & Offcanvas */
.modal-content,
.offcanvas {
    border-radius: 1rem;
    border: none;
}

.offcanvas-header {
    background-color: var(--bg-light);
}

.cart-item {
    transition: background-color var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: var(--bg-light);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: white;
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.quantity-selector input[type="number"]::-webkit-inner-spin-button,
.quantity-selector input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-modal-img {
    max-height: 400px;
    transition: transform 0.3s ease;
}

.product-modal-img:hover {
    transform: scale(1.05);
}

/* Inputs & Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Toasts */
.toast {
    background-color: white;
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.toast-body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

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

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .blob-shape {
        width: 300px;
        height: 300px;
    }

    .add-to-cart-btn {
        opacity: 1;
        position: static;
        transform: none;
        width: 100%;
        margin-top: 1rem;
    }

    .product-img-wrapper:hover .add-to-cart-btn {
        transform: none;
    }
}

/* Custom Banner Styles */
.hero-banner-img {
    width: 100%;
    height: 100%;
    /* Natural scaling ensures no cropping */
}