/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

/* Product Image Container - Ensures responsive images */
.product-image-container {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures full image is visible */
    object-position: center;
}

/* Primary Color Elements */
.btn-primary, .bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

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

/* Custom Button Styles */
.btn-rounded {
    border-radius: 50px !important;
}

/* Cart Count Badge */
.cart-count {
    font-size: 0.6rem;
    position: relative;
    top: -10px;
    left: -5px;
}

/* Product Detail Quantity Input */
.quantity-input {
    max-width: 50px;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Accordion Custom Styles */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(255, 155, 179, 0.1);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Checkout Steps */
.border-primary {
    border-color: var(--primary-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .fixed-bottom {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Animation for Add to Cart */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.bounce {
    animation: bounce 1s;
}
/* Add to style.css */
.category-image-container {
    width: 100%;
    height: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Make sure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile-specific styles */
@media (max-width: 767px) {
    .category-image-container {
        height: 60px;
    }
    
    .product-image-container {
        padding-top: 100%; /* Square aspect ratio */
    }
    
    /* Ensure forms are mobile-friendly */
    input, select, textarea {
        font-size: 16px !important; /* Prevent zooming on iOS */
    }
}
