/* Products Grid Styles - Scoped to avoid global leaks */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 350px);
    grid-auto-rows: 400px;
    gap: 24px;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px;
}

.product-tile {
    width: 350px !important;
    height: 285px !important;
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-tile:hover,
.product-tile:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    outline: none;
}

.product-img {
    height: 220px !important;
    width: 100%;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    padding: 20px 16px 16px 16px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
}

.overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    z-index: 2;
}

.tile-overlay {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: top 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.product-tile:hover .tile-overlay,
.product-tile:focus .tile-overlay {
    top: 0;
}

.overlay-text {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    margin: 0 0 20px 0;
    max-width: 300px;
}

.view-more {
    color: #f97316;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-more:after {
    content: "→";
    font-size: 1.2rem;
}

.view-more:hover {
    color: #ea580c;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 350px);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .product-tile {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }
}

.products-header {
    text-align: center;
    margin: 60px 0;
}

.badge-yellow {
    background-color: #FFFBE6;
    color: #D97706;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* Page-specific CSS limited to ≤20 lines */
.product-carousel {
    width: 500px;
    height: 500px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}
@media (max-width: 991.98px) {
    .product-carousel {
        max-width: 100%;
        height: auto;
    }
}
.product-hero-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
}
@media (max-width: 767.98px) {
    .product-hero-row {
        flex-direction: column;
    }
}

/* ===========================================
   PRODUCT INDIVIDUAL PAGE INLINE CSS EXTRACTION
   =========================================== */
.product-carousel-container {
    width: 500px;
    height: 500px;
}

.product-carousel-image {
    object-fit: cover;
}


/* 
    related-products
*/

.related-products ul{
    list-style-type: none
}

.related-products li{
    padding: 0;
    text-transform: capitalize;
    position: relative;
    text-align: justify;
}

.related-products li::before{
    content: "";
    width: 20px;
    height: 20px;
    left: -30px;
    top: 4px;
    position: absolute;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="%23F97316"><path d="M 16 3 C 8.800781 3 3 8.800781 3 16 C 3 23.199219 8.800781 29 16 29 C 23.199219 29 29 23.199219 29 16 C 29 14.601563 28.8125 13.207031 28.3125 11.90625 L 26.6875 13.5 C 26.886719 14.300781 27 15.101563 27 16 C 27 22.101563 22.101563 27 16 27 C 9.898438 27 5 22.101563 5 16 C 5 9.898438 9.898438 5 16 5 C 19 5 21.695313 6.195313 23.59375 8.09375 L 25 6.6875 C 22.699219 4.386719 19.5 3 16 3 Z M 27.28125 7.28125 L 16 18.5625 L 11.71875 14.28125 L 10.28125 15.71875 L 15.28125 20.71875 L 16 21.40625 L 16.71875 20.71875 L 28.71875 8.71875 Z"></path></svg>');
}


.related-products li a{
    text-decoration: none;
    color: var(--ics-gray-800);
    transition: color 0.3s ease;
}

.related-products li a:hover{
    color: var(--ics-orange-500);
}