/* style.css */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --brand-color: #ca4e79;
}

body {
    background-color: #fffdf8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    padding-top: 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--brand-color) !important;
}

h1, h2, .section-title {
    color: var(--brand-color);
}

.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
}

.btn-outline-primary {
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.btn-outline-primary:hover {
    background-color: var(--brand-color);
    color: #fff;
}

.navbar-brand img {
    max-height: 60px;
    object-fit: contain;
}

.scrollable-row::-webkit-scrollbar {
    height: 8px;
}
.scrollable-row::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.scrollable-row::-webkit-scrollbar-track {
    background: transparent;
}
.scroll-section {
    scroll-behavior: smooth;
}
.card {
    border: 1px solid #eee;
    border-radius: 10px;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.02);
}

section.bg-light {
  background-color: #f8f9fa;
}

section h2 {
  font-size: 2rem;
}

section p.lead {
  font-size: 1.1rem;
}

/* Additional Styles for Enhanced Design */
.navbar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    background-color: #fffdf8 !important;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1534452203293-494d7ddbf7e0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 300;
    text-align: center;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--brand-color);
    margin: 15px auto;
}

.product-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.product-image {
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-actions {
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    transform: translateY(0);
}

.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.category-btn {
    background: white;
    border: 1px solid #eaeaea;
    padding: 10px 20px;
    border-radius: 30px;
    transition: var(--transition);
    font-weight: 500;
}

.category-btn:hover, .category-btn.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

.btn-view {
    background: var(--brand-color);
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-view:hover {
    background: var(--secondary-color);
    color: white;
}

.btn-inquire {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-inquire:hover {
    background: white;
    color: var(--brand-color);
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 15px;
    text-align: center;
}

.testimonial-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-container {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 4px solid var(--light-bg);
}

.value-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
    border-radius: 12px;
    height: 100%;
}

.value-card:hover {
    background: white;
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--brand-color);
    margin-bottom: 20px;
}

/* FIXED: Single footer declaration */
footer {
    background: var(--primary-color) !important;
    color: white;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--brand-color);
    transform: translateY(-3px);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-color);
    color: white;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.image-container {
    overflow: hidden;
    position: relative;
}

/* Compact Category Styles */
.compact-category-section {
    padding: 40px 0;
}

.compact-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.compact-category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.compact-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.compact-category-image {
    width: 100%;
    object-fit: cover;
}

.compact-category-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.compact-category-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--brand-color);
}

.compact-category-desc {
    color: var(--light-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.compact-category-btn {
    background: var(--brand-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: var(--transition);
    align-self: flex-start;
}

.compact-category-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.compact-category-count {
    background: var(--light-bg);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-left: 10px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert {
    margin-bottom: 0;
    border-radius: 0;
}

/* Bootstrap utility classes */
.display-4 {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
}

.fw-light {
    font-weight: 300 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* Button styles */
.btn-light {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-light:hover {
    color: #000;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.btn-dark {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.btn-dark:hover {
    color: #fff;
    background-color: #1a1e21;
    border-color: #1a1e21;
}

.btn-outline-dark {
    color: #212529;
    border-color: #212529;
}

.btn-outline-dark:hover {
    color: #fff;
    background-color: #212529;
    border-color: #212529;
}

.btn-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-outline-light:hover {
    color: #000;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

/* Additional component styles */
.product-image-container {
    position: relative;
    overflow: hidden;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.bg-primary {
    background-color: var(--brand-color) !important;
}

.text-white {
    color: #fff !important;
}

/* Ensure proper spacing */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-4 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* NEW: Object fit utility classes */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .category-filter {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .compact-category-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        margin-top: 15px;
    }
    
    .navbar-nav .btn {
        margin-top: 10px;
    }
    
    .testimonial-card {
        margin: 10px 0;
    }
    
    .value-card {
        margin-bottom: 20px;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    section p.lead {
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
    
    /* Mobile image height adjustments */
    .product-image-container {
        height: 250px !important;
    }
    
    .compact-category-image {
        height: 200px;
    }
    
    /* Add to your existing CSS */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.product-image-container {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Force images to respect their natural dimensions */
img {
    max-width: 100%;
    height: auto;
}

/* Specific styling for product images */
.product-image {
    transition: all 0.3s ease;
    max-height: 250px;
    width: auto !important;
    margin: 0 auto;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .product-image-container {
        height: 200px !important;
    }
    
    .product-image {
        max-height: 180px;
    }
}

/* Prevent Bootstrap from forcing image widths */
.card-img-top {
    width: auto !important;
    max-width: 100%;
}
}