/* Vendor CSS for Organic Grocery Store */
/* Bootstrap and other vendor styles will be loaded from CDN */

/* Custom vendor overrides */
.btn-yellow {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-yellow:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}

.fs-7 {
    font-size: 0.75rem !important;
}

.lh-1 {
    line-height: 1 !important;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Preloader */
.preloader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product grid styles */
.product-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.product-item figure {
    margin-bottom: 15px;
}

.product-item figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Category carousel */
.category-carousel .swiper-slide {
    text-align: center;
}

.category-carousel .swiper-slide img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

/* Banner blocks */
.banner-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 40px 0;
}

.banner-ad {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.banner-ad.large {
    grid-column: span 2;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

/* Newsletter section */
.bg-secondary {
    background-color: #6c757d !important;
}

/* Footer styles */
.footer-menu h5 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-menu .nav-link {
    color: #adb5bd;
    padding: 5px 0;
}

.footer-menu .nav-link:hover {
    color: #fff;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-blocks {
        grid-template-columns: 1fr;
    }
    
    .banner-ad.large {
        grid-column: span 1;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
}

/* Offcanvas styles */
.offcanvas {
    max-width: 400px;
}

.menu-list .nav-item {
    border-bottom: 1px dashed #dee2e6;
}

.menu-list .nav-item:last-child {
    border-bottom: none;
}

/* Search bar */
.search-bar {
    background: #f8f9fa;
    border-radius: 25px;
    padding: 10px 20px;
}

/* Product rating */
.rating svg {
    margin-right: 2px;
}

/* Button styles */
.btn-link {
    text-decoration: none;
    font-weight: 600;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Zoom effect for images */
.zoom-effect {
    overflow: hidden;
}

.zoom-effect img {
    transition: transform 0.3s ease;
}

.zoom-effect:hover img {
    transform: scale(1.05);
}

/* Swiper navigation buttons */
.swiper-buttons {
    display: flex;
    gap: 10px;
}

.swiper-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Section headers */
.section-header {
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0;
}

/* Product grid responsive */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 993px) and (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1201px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
