/**
 * Magecom Package
 *
 * Home Page Styles
 */

.Home-page-content {
    margin: 0 auto;
    max-width: 100%;
}

/* Home Slider Styles */
.Home-slider-section {
    margin-bottom: 40px;
}

.slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.slider-item {
    flex: 0 0 auto;
    position: relative;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.slider-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.slider-image {
    width: 100%;
    height: auto;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
}

.slider-title {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

/* Home Banner Styles */
.Home-banner-section {
    margin-bottom: 40px;
}

.banner-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.banner-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: white;
}

.banner-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

/* CMS Content Section */
.cms-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slider-container {
        gap: 10px;
    }

    .slider-item {
        min-width: 250px;
    }

    .banner-container {
        grid-template-columns: 1fr;
    }

    .slider-title,
    .banner-title {
        font-size: 18px;
    }
}


/* Categories grid styles */
.home-category-list {
    margin: 1.5rem 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.category-item a {
    color: inherit;
    text-decoration: none;
    display: block;
    height: 100%;
}
.category-image {
    width: 100%;
    padding-top: 66.666%; /* 3:2 ratio */
    position: relative;
    overflow: hidden;
    background: #f7f7f7;
}
.category-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}
.category-info {
    padding: 0.75rem 0.75rem 1rem;
}
.category-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}
.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    .category-info { padding: 0.5rem; }
}

/* Products grid - mirror of categories */
.home-product-list { margin: 1.5rem 0; }
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.product-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    display: flex;
    flex-direction: column;
}
.product-item a { color: inherit; text-decoration: none; display: block; height: 100%; }
.product-image { width: 100%; padding-top: 100%; position: relative; overflow: hidden; background: #f7f7f7; }
.product-image img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; width: auto; height: auto; }
.product-info { padding: 0.75rem; }
.product-name { margin: 0; font-size: 1rem; font-weight: 600; color: #222; }
.product-price { padding: 0.5rem 0.75rem 1rem; color: #111; font-weight: 600; }
.product-item:hover { transform: translateY(-4px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

/* Top hero slider styles */
.home-hero-section { position: relative; margin: 0 0 1.5rem; }
.home-hero-section .hero-slide { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 1rem; }
.home-hero-section .hero-slide img { width: 100%; height: auto; display: block; object-fit: cover; }
.home-hero-section .hero-content {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 1.25rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.15));
}
.home-hero-section .hero-content h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.home-hero-section .hero-ctas { margin-top: 0.75rem; display:flex; gap:0.5rem; flex-wrap:wrap; }
.home-hero-section .hero-ctas a {
    display:inline-block; padding:0.5rem 0.9rem; border-radius:4px; text-decoration:none; color:#fff; background:rgba(0,0,0,0.35);
}
.home-hero-section .hero-ctas a:first-child { background: #ff6b00; color: #fff; }

@media (min-width: 768px) {
    .home-hero-section .hero-content { padding: 2rem 3rem; max-width: 50%; }
    .home-hero-section .hero-content h2 { font-size: 2rem; }
}



