/* =====================================================
   WAI STORE - ACCESSORIES PAGE
   (navbar styles come from navbar.css)
===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #123b75;
    overflow-x: hidden;
    padding-top: 80px; /* space for the fixed navbar */
}

a { text-decoration: none; }
img { max-width: 100%; }

/* CART MESSAGE */
.cart-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1769d1;
    color: white;
    padding: 15px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* =====================================================
   HERO
===================================================== */
.Hero {
    width: 100%;
    height: 460px;
    display: grid;
    grid-template-columns: 45% 55%;
    background-color: #0c2d63;
    overflow: hidden;
}

.hero-content {
    padding: 40px 7%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-label {
    width: fit-content;
    padding: 8px 18px;
    margin-bottom: 15px;
    background-color: #ff6b00;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.hero-content h1 { margin-bottom: 15px; color: white; font-size: 48px; line-height: 1.05; }

.hero-content p {
    max-width: 520px;
    margin-bottom: 20px;
    color: #e8eef7;
    font-size: 15px;
    line-height: 1.5;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-buttons a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 25px;
    background-color: #ff6b00;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.hero-buttons a:hover { background-color: #e85d00; transform: translateY(-2px); }
.hero-buttons a:nth-child(2) { background-color: transparent; border: 1px solid white; }
.hero-buttons a:nth-child(2):hover { background-color: white; color: #123b75; }

.hero-benefits {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.benefit { display: flex; flex-direction: column; gap: 5px; }
.benefit strong { color: white; font-size: 12px; white-space: nowrap; }
.benefit span { color: #cbd7e8; font-size: 10px; line-height: 1.4; }

.hero-slider { width: 100%; height: 460px; display: flex; overflow: hidden; position: relative; }
.hero-slider img { width: 100%; height: 100%; flex-shrink: 0; object-fit: cover; object-position: center; }

/* =====================================================
   SHOP BY CATEGORY
===================================================== */
.shoppingsection1 {
    width: 100%;
    padding: 70px 5%;
    background-color: #f7f9fc;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.shoppingsection1 > h2 {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    color: #123b75;
    font-size: 34px;
    text-align: center;
}

.category-card {
    min-width: 0;
    padding: 30px;
    background-color: white;
    border: 1px solid #e3e7ed;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10); }

.category-icon {
    width: 100%;
    height: 230px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f7fa;
}
.category-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.category-card:hover .category-icon img { transform: scale(1.05); }

.category-card h3 { margin-bottom: 12px; color: #123b75; font-size: 21px; }
.category-card p { max-width: 450px; margin: 0 auto 20px; color: #667085; font-size: 13px; line-height: 1.6; }

.category-card a:not(.category-icon) {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 20px;
    background-color: #ff6b00;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.category-card a:not(.category-icon):hover { background-color: #e85d00; transform: translateY(-2px); }

/* =====================================================
   HEADPHONE BRAND CARDS
===================================================== */
#headphone-brands.shoppingsection1 {
    display: block;
    padding: 65px 5% 75px;
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
}

#headphone-brands > h2 { margin-bottom: 35px; color: #123b75; font-size: 34px; text-align: center; }

.headphone-brands-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.headphone-brands-container .category-card {
    width: 100%;
    min-width: 0;
    min-height: 340px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(18, 59, 117, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.headphone-brands-container .category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 12px 28px rgba(18, 59, 117, 0.12);
}

.headphone-brands-container .category-card .category-icon {
    width: 100%;
    height: 175px;
    flex-shrink: 0;
    margin: 0 0 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border: 1px solid #edf0f5;
    border-radius: 13px;
    overflow: hidden;
}

.headphone-brands-container .category-card a.category-icon {
    padding: 12px;
    color: inherit;
    background: #f7f9fc;
    border-radius: 13px;
    transform: none;
}

.headphone-brands-container .category-card .category-icon img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.headphone-brands-container .category-card:hover .category-icon img { transform: scale(1.06); }

.headphone-brands-container .category-card h3 { margin: 0 0 10px; color: #123b75; font-size: 19px; font-weight: 700; line-height: 1.35; }
.headphone-brands-container .category-card p { flex-grow: 1; margin: 0 0 20px; color: #667085; font-size: 13px; line-height: 1.6; }

.headphone-brands-container .category-card > a:last-child {
    width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ff6b00;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: background-color 0.25s ease, transform 0.25s ease;
}
.headphone-brands-container .category-card > a:last-child:hover { background: #e85d00; transform: translateY(-2px); }

/* =====================================================
   PRODUCTS
===================================================== */
.top-deals {
    width: 100%;
    padding: 60px 5% 70px;
    background-color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 25px;
    scroll-margin-top: 90px;
}

.top-deals > h1 { width: 100%; margin-bottom: 15px; color: #123b75; font-size: 36px; text-align: center; }

.top-deals .boxes {
    flex: 0 0 calc((100% - 50px) / 3);
    width: calc((100% - 50px) / 3);
    max-width: calc((100% - 50px) / 3);
    min-width: 0;
    min-height: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.top-deals .boxes:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10); }

.top-deals .boxes img { width: 100%; height: 260px; margin-bottom: 20px; display: block; object-fit: contain; border-radius: 12px; }

.top-deals .boxes h3 { margin-bottom: 10px; color: #0d2f5f; font-size: 17px; line-height: 1.4; }
.top-deals .boxes h3 a { color: #0d2f5f; transition: color 0.3s ease; }
.top-deals .boxes h3 a:hover { color: #ff6b00; }

.top-deals .boxes h2 { margin-bottom: 20px; color: #1769d1; font-size: 23px; }

.top-deals .deal-button {
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border: none;
    border-radius: 24px;
    background-color: #ff6b00;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.top-deals .deal-button:hover { background-color: #e85d00; transform: translateY(-2px); }

#headphone-brands { scroll-margin-top: 90px; }

/* =====================================================
   BEST SELLERS
===================================================== */
.best_sellers { width: 100%; padding: 70px 5%; background-color: #f7f9fc; }
.best-seller-content { max-width: 1200px; margin: auto; text-align: center; }
.best-seller-content > span { color: #ff6b00; font-size: 13px; font-weight: 700; letter-spacing: 2px; }
.best-seller-content h2 { margin: 12px 0; color: #123b75; font-size: 32px; }
.best-seller-content > p { max-width: 550px; margin: 0 auto 40px; color: #667085; font-size: 14px; line-height: 1.6; }

.best-seller-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }

.best-seller-item {
    min-width: 0;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    border: 1px solid #e3e7ed;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.best-seller-item:hover { transform: translateY(-5px); }
.best-seller-item img { width: 100%; height: 220px; object-fit: contain; margin-bottom: 15px; }
.best-seller-item h3 { color: #123b75; font-size: 16px; }

.best-sellers-button {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 15px auto 0;
    padding: 12px 25px;
    display: inline-block;
    background-color: #ff6b00;
    color: white;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.best-sellers-button:hover { background-color: #e85d00; transform: translateY(-2px); }

/* =====================================================
   FOOTER (fallback - footer.css loads after and wins)
===================================================== */
.footer { background-color: #0c2d63; color: white; }
.footer-content { max-width: 1200px; margin: auto; padding: 55px 5%; display: grid; grid-template-columns: 1.5fr 1fr 1.5fr; gap: 50px; }
.footer-brand h3 { margin-bottom: 12px; color: white; font-size: 25px; }
.footer-brand p { color: #cbd7e8; font-size: 13px; }
.footer-links h4, .footer-contact h4 { margin-bottom: 18px; color: white; font-size: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { width: fit-content; color: #cbd7e8; font-size: 13px; transition: 0.3s; }
.footer-links a:hover { color: #ff6b00; }
.footer-contact p { margin-bottom: 10px; color: #cbd7e8; font-size: 13px; }
.footer-bottom { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); text-align: center; }
.footer-bottom p { color: #aebed3; font-size: 12px; }

/* =====================================================
   TABLET (max 1000px)
===================================================== */
@media (max-width: 1000px) {
    .Hero { grid-template-columns: 1fr 1fr; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 13px; }
    .shoppingsection1 { padding: 60px 4%; }
    .top-deals { padding: 55px 4%; gap: 25px; }
    .top-deals .boxes { flex-basis: calc((100% - 25px) / 2); width: calc((100% - 25px) / 2); max-width: calc((100% - 25px) / 2); }
    .headphone-brands-container { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .best-seller-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =====================================================
   PHONES (max 760px) - navbar is ~115px tall
===================================================== */
@media (max-width: 760px) {
    body { padding-top: 115px; }
    .top-deals, #headphone-brands { scroll-margin-top: 125px; }
}

/* =====================================================
   MOBILE (max 700px)
===================================================== */
@media (max-width: 700px) {

    /* HERO */
    .Hero { width: 92%; height: auto; margin: 18px auto 0; border-radius: 18px; grid-template-columns: 1fr; }
    .hero-content { padding: 32px 24px; border-radius: 18px 18px 0 0; }
    .hero-label { font-size: 11px; 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; }
    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; gap: 9px; }
    .hero-buttons a { display: block; width: 100%; text-align: center; padding: 13px 16px; font-size: 14px; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
    .benefit strong { font-size: 13px; white-space: normal; }
    .benefit span { font-size: 11.5px; }
    .hero-slider { height: 240px; border-radius: 0 0 18px 18px; }

    /* CATEGORIES */
    .shoppingsection1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 45px 4% 55px; }
    .shoppingsection1 > h2 { font-size: 27px; margin-bottom: 8px; }
    .category-card { padding: 12px; border-radius: 15px; }
    .category-card:hover { transform: none; }
    .category-icon { height: 130px; margin-bottom: 12px; }
    .category-card h3 { font-size: 14px; line-height: 1.5; margin-bottom: 7px; overflow-wrap: anywhere; }
    .category-card p { font-size: 12px; margin-bottom: 12px; }
    .category-card a:not(.category-icon) { display: block; width: 100%; padding: 11px 5px; font-size: 12px; border-radius: 8px; }

    /* HEADPHONE BRANDS */
    #headphone-brands.shoppingsection1 { padding: 45px 4% 55px; }
    #headphone-brands > h2 { font-size: 27px; margin-bottom: 25px; }
    .headphone-brands-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .headphone-brands-container .category-card { min-height: 0; padding: 12px; border-radius: 14px; }
    .headphone-brands-container .category-card:hover { transform: none; }
    .headphone-brands-container .category-card .category-icon { height: 130px; padding: 8px; margin-bottom: 12px; }
    .headphone-brands-container .category-card h3 { font-size: 14px; margin-bottom: 8px; overflow-wrap: anywhere; }
    .headphone-brands-container .category-card p { font-size: 12px; margin-bottom: 12px; }
    .headphone-brands-container .category-card > a:last-child { padding: 11px 8px; font-size: 12px; }

    /* PRODUCTS */
    .top-deals { padding: 45px 4% 55px; gap: 14px; }
    .top-deals > h1 { font-size: 27px; margin-bottom: 8px; }
    .top-deals .boxes {
        flex: 0 0 calc((100% - 14px) / 2);
        width: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
        min-height: 0;
        padding: 12px;
        border-radius: 14px;
    }
    .top-deals .boxes:hover { transform: none; }
    .top-deals .boxes img { height: 145px; margin-bottom: 12px; }
    .top-deals .boxes h3 { font-size: 13px; margin-bottom: 8px; overflow-wrap: anywhere; }
    .top-deals .boxes h2 { font-size: 16px; margin-bottom: 12px; overflow-wrap: anywhere; }
    .top-deals .deal-button { padding: 12px 5px; font-size: 12px; border-radius: 8px; }

    /* BEST SELLERS */
    .best_sellers { padding: 45px 4%; }
    .best-seller-content h2 { font-size: 26px; line-height: 1.3; }
    .best-seller-content > p { font-size: 13.5px; margin-bottom: 25px; }
    .best-seller-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .best-seller-item { padding: 12px; }
    .best-seller-item:hover { transform: none; }
    .best-seller-item img { height: 130px; margin-bottom: 10px; }
    .best-seller-item h3 { font-size: 13px; line-height: 1.5; }
    .best-sellers-button { font-size: 14px; padding: 13px 26px; }

    /* FOOTER */
    .footer-content { grid-template-columns: 1fr; gap: 30px; padding: 45px 8%; }

    .cart-message { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); max-width: 92%; text-align: center; animation: none; }
}

/* =====================================================
   SMALL PHONES (max 380px)
===================================================== */
@media (max-width: 380px) {
    .hero-content { padding: 28px 18px; }
    .hero-content h1 { font-size: 27px; }
    .hero-slider { height: 200px; }

    .shoppingsection1 { gap: 11px; }
    .category-icon { height: 110px; }

    .headphone-brands-container { gap: 11px; }
    .headphone-brands-container .category-card .category-icon { height: 110px; }

    .top-deals { gap: 11px; }
    .top-deals .boxes {
        flex-basis: calc((100% - 11px) / 2);
        width: calc((100% - 11px) / 2);
        max-width: calc((100% - 11px) / 2);
        padding: 10px;
    }
    .top-deals .boxes img { height: 125px; }
    .top-deals .boxes h3 { font-size: 12px; }
    .top-deals .boxes h2 { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}