/* ========================================
   LAES HOMEPAGE STYLES
   Modern Ecommerce Design (Amazon-like)
   ======================================== */

/* Variables are loaded from theme-variables.php (admin panel) */
/* Removed hardcoded :root block — colors are now fully dynamic */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Hero Section */
.hero-slider-container {
    position: relative;
    overflow: hidden;
    min-height: 75vh;
    /* Increased from 600px for impact */
    background: var(--hero-bg);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1 !important;
    z-index: 5;
}

.hero-slide.active .slide-text-col>* {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-slide.active .slide-text-col h1 {
    animation-delay: 0.1s;
}

.hero-slide.active .slide-text-col p {
    animation-delay: 0.2s;
}

.hero-slide.active .slide-text-col .btn {
    animation-delay: 0.3s;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 6s linear;
}

.hero-slide.active .slide-bg {
    transform: scale(1.05);
    /* Subtle zoom effect */
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: none;
}

.slide-content-wrapper {
    /* gap removed to prevent bootstrap column wrap */
    padding-top: 60px;
}

@media (max-width: 991px) {
    .hero-slider-container {
        aspect-ratio: 3/4;
        min-height: 70vh !important;
        padding-bottom: 0px;
    }

    .slide-content-wrapper {
        flex-direction: column !important;
        text-align: center;
        gap: 20px;
        padding-top: 30px;
    }

    .slide-text-col {
        align-items: center !important;
        margin: 0 auto;
    }

    .slide-image-col img {
        max-height: 350px;
    }
}

@media (max-width: 576px) {
    .slide-content-wrapper {
        padding-top: 20px;
    }

    .slide-text-col h1.display-4 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 20px !important;
    }

    .slide-image-col img {
        max-height: 250px;
    }
}

.slide-image-col img {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    animation: float 4s ease-in-out infinite;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Hero Badge Pill */
.hero-badge-wrapper {
    display: flex;
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.5px;
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge i {
    color: var(--accent-color);
}

/* Hero Title Highlight */
.hero-title-highlight {
    color: var(--accent-color);
    background: linear-gradient(135deg, #febd69, #ff9f43);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Description */
.hero-description {
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.85;
}

.text-center .hero-description {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Stats Row */
.hero-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    margin-top: 4px;
    text-transform: capitalize;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero-primary {
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(254, 189, 105, 0.35);
    transition: all 0.3s ease;
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(254, 189, 105, 0.5);
    filter: brightness(1.1);
}

.btn-hero-secondary {
    font-weight: 700;
    letter-spacing: 0.5px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 25px;
    }

    .hero-stat-value {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }
}


/* Benefits Section */
.benefits-section {
    background: var(--benefits-bg);
    padding: 80px 0;
}

.benefits-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.benefits-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 992px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 189, 105, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: color-mix(in srgb, var(--benefit-icon-color, var(--primary-color)) 15%, transparent);
    color: var(--benefit-icon-color, var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: all 0.4s;
    position: relative;
    z-index: 1;
}

.benefit-card:hover .benefit-icon {
    background: var(--benefit-icon-color, var(--primary-color));
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.benefit-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Payment Banner */
.payment-banner {
    background: linear-gradient(135deg, #232f3e 0%, #1a2530 100%);
    color: #fff;
    padding: 15px 0;
    /* Reduced padding for sleeker look */
    text-align: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.payment-secure,
.payment-methods,
.payment-webpay {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Payment Icons (Circles) */
.pay-icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pay-icon:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* Shipping Banner */
.shipping-banner {
    background: linear-gradient(135deg, var(--shipping-bg) 0%, #e65a2d 100%);
    color: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Ensure container is flex */
    justify-content: center;
}

.shipping-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    padding: 0 20px;
}

.shipping-banner i {
    font-size: 2.5rem;
    /* Larger truck icon */
    background: rgba(255, 255, 255, 0.2);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.shipping-text {
    text-align: left;
    line-height: .9;
}

.shipping-text span:first-child {
    font-size: 1.5rem;
    /* Replaces display-6 */
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.shipping-text span:last-child {
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Common shadow for banners */
.shipping-banner,
.payment-banner {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .payment-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .payment-secure,
    .payment-methods,
    .payment-webpay {
        justify-content: center;
    }

    .shipping-content {
        flex-direction: column;
        text-align: center;
    }

    .shipping-text {
        text-align: center;
    }
}


/* Solutions Section (Blur Effect) */
.solutions-section {
    background: #f9f9f9;
    padding: 80px 0 40px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

.solutions-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    /* Covers the bottom half of the products */
    background: linear-gradient(to top, #f9f9f9 20%, rgba(249, 249, 249, 0.8) 60%, transparent 100%);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding-top: 50px;
}

.solutions-blur-overlay .btn {
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 700;
    letter-spacing: 1px;
}

.solutions-blur-overlay .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4) !important;
}

/* Categories Grid (Replaces Strip) */
.categories-section {
    background: #fcfcfc;
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    padding: 25px 15px;
    background: #fff;
    border-radius: 16px;
    transition: all 0.3s;
    border: 1px solid #eee;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cat-item:hover {
    background: #fff;
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cat-item i {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.cat-item:hover i {
    color: var(--primary-color);
}

.cat-item span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* Products Section */
.products-section {
    background: var(--products-bg);
    padding: 50px 0;
}

.section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.section-top h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-top a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Section */
.about-section {
    background: var(--about-bg, #fff);
    padding: 70px 0;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .about-wrapper {
        grid-template-columns: 1fr;
    }
}

.about-image-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-image-box img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.about-image-box .overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    max-width: calc(100% - 40px);
}

.about-image-box .overlay h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.about-image-box .overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--about-contrast, var(--text-primary));
}

.about-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 0;
    border-bottom: none;
    flex-wrap: wrap;
}

.about-tabs button {
    background: #f1f3f5;
    border: none;
    padding: 10px 24px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    top: 0;
    font-size: 0.95rem;
}

.about-tabs button:hover {
    background: #e9ecef;
    color: var(--text-primary);
}

.about-tabs button.active {
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 6px 15px rgba(254, 189, 105, 0.4);
    border-bottom: none;
    transform: translateY(-2px);
}

.about-tab-content {
    display: none;
    padding: 10px 0;
    color: var(--text-secondary);
    line-height: 1.8;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

.about-tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.about-value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.about-value-item:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.about-value-icon {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.about-value-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.about-value-text span {
    font-size: 0.85rem;
    line-height: 1.4;
    display: block;
}

@media (max-width: 576px) {
    .about-values-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    background: var(--contact-bg);
    padding: 70px 0;
    color: var(--contact-contrast, #fff);
}

.contact-section h2,
.contact-section h4 {
    color: var(--contact-contrast, #fff);
}

.contact-section p {
    color: var(--contact-text-muted, rgba(255, 255, 255, 0.7));
}

.contact-section h2 span {
    color: var(--accent-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    width: 45px;
    height: 45px;
    background: var(--contact-input-bg, rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.contact-form-box {
    background: var(--contact-input-bg, rgba(255, 255, 255, 0.05));
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--contact-border, rgba(255, 255, 255, 0.1));
}

.contact-form-box h3 {
    color: var(--contact-contrast, #fff);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--contact-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    background: var(--contact-input-bg, rgba(0, 0, 0, 0.2));
    color: var(--contact-contrast, #fff);
    margin-bottom: 15px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.4);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: scale(1.02);
}

/* Payment Banner */
.payment-banner {
    background: var(--secondary-color);
    padding: 40px 20px;
    text-align: center;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-logos {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    opacity: 0.8;
}

.payment-logos i {
    font-size: 2.5rem;
}

/* Slider Button Override */
.hero-slide .btn:hover {
    transform: scale(1.05) !important;
    filter: brightness(1.1);
}