/* =========================================
   WAI STORE - HOMEPAGE
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: #F8FAFC; color: #1E293B; overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s ease; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }

/* TOP ORANGE LINE */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: #FF6B00;
    z-index: 2000;
}

/* LANGUAGE SWITCHER */
.language-switcher { display: flex; gap: 5px; }
.language-switcher button {
    border: 1px solid #1769D1;
    background: white;
    color: #1769D1;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}
.language-switcher button:hover { background: #1769D1; color: white; }

/* =========================================
   NAVBAR - DESKTOP
========================================= */
.navbar {
    position: fixed;
    top: 5px; left: 0;
    width: 100%;
    height: 70px;
    padding: 0 35px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1261C9;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.logo-icon {
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF6B00;
    color: white;
    border-radius: 6px;
    flex-shrink: 0;
}

.nav-logo span span { color: #FF6B00; }

.nav-links { display: flex; align-items: center; gap: 30px; }

.nav-links a {
    position: relative;
    color: #1F2937;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #FF6B00; }

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0; bottom: -10px;
    width: 100%; height: 2px;
    background: #FF6B00;
}

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-search {
    display: flex;
    align-items: center;
    width: 205px;
    height: 35px;
    margin: 0;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
}
.nav-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 15px;
    border: none;
    outline: none;
    margin: 0;
    font-size: 11px;
}
.nav-search input:focus { box-shadow: none; }
.nav-search button {
    width: 38px; min-width: 38px;
    height: 100%;
    padding: 0; margin: 0;
    border: none;
    border-radius: 0;
    background: #FF6B00;
    color: white;
}
.nav-search button:hover { background: #123FA5; transform: none; }

.nav-icon { position: relative; color: #1F2937; font-size: 22px; }
.nav-icon:hover { color: #FF6B00; }

.cart-icon span {
    position: absolute;
    top: -8px; right: -10px;
    width: 16px; height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF6B00;
    color: white;
    border-radius: 50%;
    font-size: 9px;
}

/* CART NOTIFICATION */
.cart-notification {
    position: fixed;
    right: 25px; bottom: 25px;
    z-index: 9999;
    max-width: calc(100% - 40px);
    padding: 14px 22px;
    background: #1769D1;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18);
    font-size: 14px;
    font-weight: 600;
}

/* =========================================
   HERO - DESKTOP
========================================= */
.Hero {
    width: 100%;
    min-height: 550px;
    margin-top: 75px;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    background: #FF6B00;
}

.hero-content {
    min-width: 0;
    min-height: 550px;
    padding: 50px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: #FF6B00;
    color: white;
    position: relative;
    z-index: 5;
}

.hero-label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    background: #123FA5;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content h1 {
    max-width: 500px;
    margin-bottom: 20px;
    color: white;
    font-size: 48px;
    line-height: 1.1;
}

.hero-content > p {
    max-width: 470px;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.hero-buttons a {
    display: inline-block;
    padding: 11px 20px;
    background: #123FA5;
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}
.hero-buttons a:last-child { background: transparent; border: 1px solid white; }
.hero-buttons a:hover { background: white; color: #123FA5; transform: translateY(-2px); }

.hero-benefits { display: flex; flex-wrap: wrap; gap: 20px; }
.benefit { display: flex; flex-direction: column; gap: 5px; }
.benefit strong { color: white; font-size: 12px; }
.benefit span { color: rgba(255, 255, 255, 0.75); font-size: 10px; }

/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 550px;
    overflow: hidden;
    background: white;
}

.hero-slider img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    animation: heroImageChange 12s infinite;
}
.hero-slider img:nth-child(1) { animation-delay: 0s; }
.hero-slider img:nth-child(2) { animation-delay: 4s; }
.hero-slider img:nth-child(3) { animation-delay: 8s; }

@keyframes heroImageChange {
    0% { opacity: 0; }
    8% { opacity: 1; }
    28% { opacity: 1; }
    36% { opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================
   SHOP BY CATEGORY
========================================= */
.shoppingsection1 {
    width: 100%;
    padding: 90px 8%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.shoppingsection1 h2 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 42px;
    color: #0F172A;
    margin-bottom: 20px;
}

.shoppingsection1 .category-card {
    min-width: 0;
    padding: 25px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: 0.3s ease;
    cursor: pointer;
}
.shoppingsection1 .category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-icon { width: 100%; margin-bottom: 20px; }
.category-icon img { width: 100%; height: 200px; object-fit: contain; border-radius: 12px; }

.shoppingsection1 h3 { font-size: 22px; color: #2563EB; margin-bottom: 15px; }
.shoppingsection1 p { color: #64748B; line-height: 1.7; font-size: 14px; margin-bottom: 20px; }

.shoppingsection1 .category-card a {
    display: inline-block;
    background: #F97316;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
}
.shoppingsection1 .category-card a:hover { background: #EA580C; }

/* =========================================
   FEATURED PRODUCT
========================================= */
.featured_products { width: 100%; padding: 60px 5%; background: white; }

.featured_products > h1 { margin-bottom: 35px; color: #123FA5; font-size: 34px; }

.featured_products .product-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.featured_products .product-image {
    min-width: 0;
    min-height: 500px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    overflow: hidden;
}

.featured_products .product-image img {
    width: 90%;
    max-width: 500px;
    max-height: 450px;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.featured_products .product-card:hover .product-image img { transform: scale(1.03); }

.featured_products .product-info {
    min-width: 0;
    min-height: 500px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: white;
}

.product-category {
    width: fit-content;
    max-width: 100%;
    padding: 7px 15px;
    margin-bottom: 20px;
    background: #FF6B00;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured_products .product-info h3 {
    color: #123FA5;
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 20px;
    overflow-wrap: anywhere;
}

.featured_products .product-info p {
    max-width: 450px;
    margin-bottom: 25px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.featured_products .product-info .featured-product-price {
    color: #FF6B00;
    font-size: 27px;
    margin-bottom: 25px;
}

.featured_products .product-info a {
    display: inline-block;
    width: fit-content;
    padding: 13px 28px;
    background: #FF6B00;
    color: white;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
}
.featured_products .product-info a:hover { background: #123FA5; transform: translateY(-3px); }

/* =========================================
   BEST SELLERS
========================================= */
.best_sellers { width: 100%; padding: 80px 5%; background: white; }
.best-seller-content { max-width: 1200px; margin: 0 auto; text-align: center; }

.best-seller-content > span {
    display: inline-block;
    margin-bottom: 15px;
    color: #FF6B00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.best-seller-content h2 {
    max-width: 600px;
    margin: 0 auto 15px;
    color: #123FA5;
    font-size: 38px;
    line-height: 1.2;
}

.best-seller-content > p {
    max-width: 550px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.best-seller-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.best-seller-item {
    min-width: 0;
    min-height: 350px;
    padding: 25px;
    background: white;
    border: 1px solid #EEEEEE;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s ease;
}
.best-seller-item:hover {
    transform: translateY(-8px);
    border-color: #FF6B00;
    box-shadow: 0 12px 30px rgba(18, 63, 165, 0.12);
}

.best-seller-item img {
    width: 100%;
    max-width: 250px;
    height: 220px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: 0.3s ease;
}
.best-seller-item:hover img { transform: scale(1.04); }

.best-seller-item h3 { color: #123FA5; font-size: 17px; line-height: 1.4; }

.best-seller-content .deal-button {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 30px;
    background: #FF6B00;
    color: white;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
}
.best-seller-content .deal-button:hover { background: #123FA5; transform: translateY(-2px); }

/* =========================================
   TABLET (max 900px)
========================================= */
@media (max-width: 900px) {

    /* NAVBAR */
    .navbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "logo actions" "links links";
        align-items: center;
        gap: 4px 12px;
        height: auto;
        min-height: 0;
        padding: 8px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
    }

    .nav-logo { grid-area: logo; min-width: 0; }
    .nav-logo a { font-size: 19px; }

    .nav-actions { grid-area: actions; justify-content: flex-end; gap: 10px; min-width: 0; }

    .nav-search { width: clamp(120px, 30vw, 200px); max-width: 100%; height: 40px; }
    .nav-search input { font-size: 16px; } /* stops iPhone auto-zoom */
    .nav-search button { width: 42px; min-width: 42px; font-size: 18px; }

    .nav-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .cart-icon span { top: 4px; right: 2px; }

    .nav-links {
        grid-area: links;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        display: flex;
        gap: 22px;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding: 0 0 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links a { flex-shrink: 0; padding: 10px 2px; font-size: 13px; }
    .nav-links a.active::after { bottom: 0; }

    .cart-notification {
        left: 50%;
        right: auto;
        bottom: 20px;
        transform: translateX(-50%);
        text-align: center;
    }

    /* HERO */
    .Hero { grid-template-columns: 1fr; height: auto; margin-top: 115px; }
    .hero-content { min-height: 0; padding: 45px 7%; }
    .hero-content h1 { font-size: clamp(34px, 5vw, 44px); }
    .hero-slider { height: clamp(280px, 48vw, 420px); }

    /* CATEGORIES */
    .shoppingsection1 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 65px 5%; gap: 20px; }
    .shoppingsection1 h2 { font-size: 36px; }
    .shoppingsection1 .category-card { padding: 20px; }
    .category-icon img { height: 180px; }

    /* FEATURED */
    .featured_products { padding: 50px 5%; }
    .featured_products .product-card { grid-template-columns: 1fr; }
    .featured_products .product-image { min-height: 350px; }
    .featured_products .product-info { min-height: 0; padding: 35px 25px; align-items: center; text-align: center; }
    .featured_products .product-info p { margin-left: auto; margin-right: auto; }
    .featured_products .product-info a { margin: 0 auto; }

    /* BEST SELLERS */
    .best_sellers { padding: 60px 5%; }
    .best-seller-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .best-seller-item { min-height: 300px; padding: 20px; }
}

/* =========================================
   MOBILE (max 700px)
========================================= */
@media (max-width: 700px) {

    /* HERO */
    .Hero { width: 92%; margin: 115px auto 0; min-height: 0; border-radius: 18px; grid-template-columns: 1fr; }
    .hero-content { min-height: 0; padding: 32px 24px; border-radius: 18px 18px 0 0; }
    .hero-label { font-size: 11px; margin-bottom: 14px; padding: 6px 13px; }
    .hero-content h1 { font-size: clamp(28px, 7vw, 35px); line-height: 1.2; margin-bottom: 14px; }
    .hero-content > p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; gap: 9px; margin-bottom: 22px; }
    .hero-buttons a { width: 100%; text-align: center; padding: 13px 16px; font-size: 14px; }

    .hero-benefits { flex-direction: row; flex-wrap: wrap; gap: 14px 20px; }
    .benefit { gap: 3px; }
    .benefit strong { font-size: 13px; }
    .benefit span { font-size: 11.5px; }

    .hero-slider { height: 240px; border-radius: 0 0 18px 18px; }

    /* CATEGORIES */
    .shoppingsection1 { width: 92%; margin: 0 auto; padding: 45px 0 55px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .shoppingsection1 h2 { grid-column: 1 / -1; font-size: 27px; margin-bottom: 8px; }
    .shoppingsection1 .category-card { min-width: 0; padding: 12px; border-radius: 15px; box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07); }
    .shoppingsection1 .category-card:hover { transform: none; }

    .category-icon { width: 100%; margin-bottom: 12px; padding: 5px; background: linear-gradient(135deg, #F8FAFC, #FFFFFF); border-radius: 12px; }
    .category-icon img { width: 100%; height: 145px; object-fit: contain; border-radius: 10px; }

    .shoppingsection1 h3 { font-size: 14px; line-height: 1.5; margin-bottom: 7px; overflow-wrap: anywhere; }
    .shoppingsection1 p { font-size: 12px; line-height: 1.6; margin-bottom: 12px; }
    .shoppingsection1 .category-card a { display: block; width: 100%; padding: 11px 5px; text-align: center; font-size: 12px; border-radius: 7px; }

    /* FEATURED */
    .featured_products { padding: 40px 4%; }
    .featured_products > h1 { font-size: 27px; margin-bottom: 22px; text-align: center; }
    .featured_products .product-card { grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06); }
    .featured_products .product-image { min-height: 210px; padding: 15px; }
    .featured_products .product-image img { width: 100%; max-height: 210px; }
    .featured_products .product-info { min-height: 0; padding: 22px 18px 26px; align-items: flex-start; text-align: left; }
    .product-category { font-size: 11px; padding: 6px 12px; margin-bottom: 12px; }
    .featured_products .product-info h3 { font-size: 21px; line-height: 1.4; margin-bottom: 12px; }
    .featured_products .product-info p { font-size: 13.5px; line-height: 1.7; margin-bottom: 15px; }
    .featured_products .product-info .featured-product-price { font-size: 21px; margin-bottom: 16px; }
    .featured_products .product-info a { width: 100%; padding: 13px 15px; text-align: center; font-size: 14px; margin: 0; }

    /* BEST SELLERS */
    .best_sellers { padding: 45px 4%; }
    .best-seller-content > span { font-size: 12px; margin-bottom: 10px; }
    .best-seller-content h2 { font-size: 26px; line-height: 1.3; margin-bottom: 12px; }
    .best-seller-content > p { font-size: 13.5px; line-height: 1.7; margin-bottom: 25px; }
    .best-seller-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
    .best-seller-item { min-width: 0; min-height: 0; padding: 12px; border-radius: 14px; }
    .best-seller-item:hover { transform: none; }
    .best-seller-item img { width: 100%; height: 145px; object-fit: contain; margin-bottom: 12px; }
    .best-seller-item h3 { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
    .best-seller-content .deal-button { margin-top: 10px; padding: 13px 26px; font-size: 14px; }
}

/* =========================================
   VERY SMALL PHONES (max 380px)
========================================= */
@media (max-width: 380px) {

    .navbar { padding-left: 8px; padding-right: 8px; }
    .nav-logo a { font-size: 15px; }
    .nav-search { width: 120px; }
    .nav-actions { gap: 6px; }

    .hero-content { padding: 28px 18px; }
    .hero-content h1 { font-size: 27px; }
    .hero-slider { height: 200px; }

    .shoppingsection1 { gap: 11px; }
    .shoppingsection1 h2 { font-size: 24px; }
    .shoppingsection1 .category-card { padding: 10px; }
    .category-icon img { height: 125px; }
    .shoppingsection1 h3 { font-size: 13px; }
    .shoppingsection1 p { font-size: 11.5px; }

    .featured_products .product-image { min-height: 180px; }
    .featured_products .product-image img { max-height: 180px; }

    .best-seller-products { gap: 11px; }
    .best-seller-item { padding: 10px; }
    .best-seller-item img { height: 125px; }
    .best-seller-item h3 { font-size: 12px; }
}

/* ACCESSIBILITY */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}