:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --accent-color: #ffc107;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
}

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

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
}

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

/* Search Bar */
.search-form {
    position: relative;
    margin: 0 15px;
}

.search-input {
    border-radius: 20px;
    padding-left: 15px;
    padding-right: 40px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    width: 200px;
}

.search-input:focus {
    width: 250px;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.1);
    border-color: var(--primary-color);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 5px 10px;
}

.search-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 991px) {
    .search-form {
        margin: 15px 0;
        width: 100%;
    }
    .search-input {
        width: 100%;
    }
    .search-input:focus {
        width: 100%;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1550009158-9ebf69173e03?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Service Cards */
.service-card {
    padding: 40px;
    border-radius: 15px;
    background: var(--light-bg);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    background: var(--primary-color);
    color: white;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: white;
}

/* Contact Section */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
    padding: 10px 18px;
    margin: 0 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

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

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}


/* Smooth filter animations */
.product-item {
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

.product-item.d-none {
    display: none !important;
}

/* Active button style enhancement */
.btn-group .btn.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-color: #0a58ca;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

.btn-group .btn {
    transition: all 0.2s ease;
}

.btn-group .btn:hover:not(.active) {
    background: #e9ecef;
    transform: translateY(-1px);
}

/* No results message */
.no-results {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* loader */
/* Optional: Dim background while loading */
#product_details_container.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}
#product_details_container.loading #product_loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Optional: Smooth fade for loader */
#product_loader {
    transition: opacity 0.3s ease;
}
#product_loader.d-none {
    opacity: 0;
    pointer-events: none;
}

/* cart */
/* === Cart Page Styles === */
/* === Cart Page Styles (Sabukky Design) === */
.cart-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cart-item {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-item:last-child { border-bottom: none; }
.cart-img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}
.cart-item-info { flex-grow: 1; min-width: 0; }
.cart-item-title {
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-category {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: capitalize;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px 8px;
}
.qty-btn {
    width: 28px; height: 28px;
    border-radius: 8px;
    border: none;
    background: white;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.qty-btn:hover { background: #0d6efd; color: white; }
.remove-btn {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}
.remove-btn:hover { text-decoration: underline; }
.summary-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 20px;
}
.checkout-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}
.checkout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Cart Badge Styling */
.cart-badge {
    font-size: 0.7rem !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 3px 5px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.nav-link:hover .cart-badge {
    transform: scale(1.1);
}
/* Hide badge when empty */
.cart-badge[data-count="0"],
.cart-badge:empty {
    display: none !important;
}


/* Modal button hover effect */
#checkoutModal .checkout-btn {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    transition: all 0.3s ease;
}
#checkoutModal .checkout-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.25);
}
#checkoutModal .checkout-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Form input focus */
#checkoutModal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}