/* Home page sections copied from approved static design */
.hero-slider { position: relative; height: 550px; overflow: hidden; }
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}
.hero-slide .slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
}
.slide-text { color: #fff; max-width: 600px; }
.slide-text h2 { font-size: 42px; font-weight: 700; margin-bottom: 15px; line-height: 1.2; color: #fff; }
.slide-text p { font-size: 18px; margin-bottom: 25px; opacity: 0.9; color: #fff; }
.slide-text .btn-primary,
.slide-text .btn-outline { margin-right: 10px; }
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active { background: #e67e22; }

.product-categories { padding: 80px 0; background: #f9f9f9; }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.category-card .cat-image { height: 200px; overflow: hidden; }
.category-card .cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.category-card:hover .cat-image img { transform: scale(1.1); }
.category-card .cat-content { padding: 25px; text-align: center; }
.category-card h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 10px; }
.category-card p { font-size: 14px; color: #777; margin-bottom: 15px; }
.cat-link { color: #e67e22; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.cat-link:hover { text-decoration: underline; }

.about-section { padding: 80px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-image { position: relative; }
.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}
.about-content .subtitle {
    color: #e67e22;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.about-content p { color: #666; margin-bottom: 15px; font-size: 15px; }
.about-content .btn-primary { margin-top: 15px; }

.stats-section { background: #1a1a2e; padding: 60px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item { color: #fff; }
.stat-item .number {
    font-size: 42px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 8px;
}
.stat-item .label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

.why-section { padding: 80px 0; background: #f9f9f9; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.why-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}
.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #fef3e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon img { width: 35px; height: 35px; object-fit: contain; }
.why-card h3 { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 12px; }
.why-card p { font-size: 14px; color: #777; line-height: 1.7; }

.partners-section { padding: 60px 0; }
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    align-items: center;
}
.partner-logo {
    text-align: center;
    padding: 15px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }
.partner-logo img { max-height: 50px; width: auto; margin: 0 auto; }

.featured-products { padding: 80px 0; background: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}
.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}
.product-image {
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-content { padding: 20px; }
.product-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}
.product-content p {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-section { padding: 80px 0; background: #1a1a2e; color: #fff; }
.service-section .section-title h2 { color: #fff; }
.service-section .section-title p { color: rgba(255, 255, 255, 0.7); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service-item {
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}
.service-item:hover {
    border-color: #e67e22;
    background: rgba(230, 126, 34, 0.05);
}
.service-item .service-icon {
    font-size: 36px;
    color: #e67e22;
    margin-bottom: 15px;
}
.service-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.service-item p { font-size: 14px; color: rgba(255, 255, 255, 0.7); line-height: 1.7; }

.news-section { padding: 80px 0; background: #f9f9f9; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}
.news-card:hover { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); }
.news-image { height: 180px; overflow: hidden; }
.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.news-card:hover .news-image img { transform: scale(1.1); }
.news-content { padding: 20px; }
.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}
.news-meta .category { color: #e67e22; font-weight: 600; }
.news-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
    line-height: 1.4;
}
.news-content h3 a { color: inherit; }
.news-content p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-date { margin-top: 15px; font-size: 12px; color: #aaa; }

.cta-section {
    padding: 80px 0;
    background: #e67e22;
    color: #fff;
    text-align: center;
}
.cta-section h2 { font-size: 32px; font-weight: 700; margin-bottom: 15px; color: #fff; }
.cta-section p { font-size: 16px; margin-bottom: 25px; opacity: 0.9; color: #fff; }
.cta-section .btn-outline { border-color: #fff; }
.cta-section .btn-outline:hover { background: #fff; color: #e67e22; }

@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(4, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .slide-text h2 { font-size: 28px; }
    .categories-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: repeat(3, 1fr); }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .cta-section .btn-outline { display: block; max-width: 220px; margin: 10px auto 0 !important; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .service-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Fix WooCommerce product grid layout on homepage (clean rewrite) */
.featured-products .products-grid { display: block; }
.featured-products .products-grid .woocommerce { width: 100%; }

/* WooCommerce clearfix pseudo-elements become stray grid items -> hide them */
.featured-products .products-grid ul.products::before,
.featured-products .products-grid ul.products::after {
    display: none !important;
    content: none !important;
}

.featured-products .products-grid ul.products,
.featured-products .products-grid ul.products.columns-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* override every WooCommerce float/width/clear rule on the cards */
.featured-products .products-grid ul.products li.product,
.featured-products .products-grid ul.products.columns-4 li.product,
.featured-products .products-grid ul.products li.product.first,
.featured-products .products-grid ul.products li.product.last {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 25px !important;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    display: flex !important;
    flex-direction: column;
    text-align: center;
}
.featured-products .products-grid ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.featured-products .products-grid ul.products li.product img {
    width: 100% !important;
    height: auto;
    border-radius: 8px;
    margin: 0 0 15px !important;
}
.featured-products .products-grid ul.products li.product h2 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 10px 0 15px;
    line-height: 1.4;
    flex-grow: 1;
}
.featured-products .products-grid ul.products li.product .button,
.featured-products .products-grid ul.products li.product .added_to_cart {
    display: inline-block;
    margin-top: auto !important;
    padding: 12px 25px;
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.featured-products .products-grid ul.products li.product .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(230,126,34,0.3);
}

@media (max-width: 1200px) {
    .featured-products .products-grid ul.products,
    .featured-products .products-grid ul.products.columns-4 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
    .featured-products .products-grid ul.products,
    .featured-products .products-grid ul.products.columns-4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .featured-products .products-grid ul.products,
    .featured-products .products-grid ul.products.columns-4 { grid-template-columns: 1fr !important; }
}
