/* ============================================================
   AstroMall.css  –  Product & Shop styles only
   NOTE: Navbar, logo & btn-chat-astro styles come from
         style.css / newcss.css / app.min.css – NOT redefined here
         to avoid theme conflicts.
   ============================================================ */

/* ── AstroMall Theme tokens ─────────────────────────────── */
:root {
    --am-primary: #102866;
    --am-primary-dark: #0b1d4a;
    --am-primary-light: #1a3a8f;
    --am-gold: #d4a017;
    --am-gold-light: #f0c040;
    --am-bg-light: #f5f7fc;
    --am-text-dark: #2c2c2c;
    --am-border: #dde3f0;
    --am-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body {
    background: var(--am-bg-light);
}

/* ===== CART/SIGN-IN buttons color fix in top-navbar ===== */
#beforeloginIcon .btn-chat-astro.outline {
    border-color: var(--am-primary) !important;
    color: #ffffff !important;
}

#beforeloginIcon .btn-chat-astro.outline:hover {
    background: var(--am-primary) !important;
    color: #fff !important;
}

/* ===== HERO BANNER ===== */
.shop-hero {
    background: linear-gradient(135deg, #0a1628 0%, #102866 50%, #0a1628 100%);
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1602523961358-f9f03dd557db?w=1400&q=40') center/cover;
    opacity: 0.10;
}

.shop-hero .container {
    position: relative;
}

.shop-hero h1 {

    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

.shop-hero h1 span {
    color: var(--am-gold-light);
}

.shop-hero p {
    color: #c0ccde;
    font-size: 15px;
    margin-top: 8px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: #fff;
    padding: 14px 0;
    border-bottom: 1px solid var(--am-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--am-border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--am-primary);
    color: #fff;
    border-color: var(--am-primary);
}

/* ===== SECTION HEADINGS ===== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-head h2 {

    font-size: 1.5rem;
    font-weight: 700;
    color: var(--am-text-dark);
    position: relative;
}

.section-head h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--am-primary);
    border-radius: 2px;
    margin-top: 6px;
}

.section-head a {
    font-size: 13px;
    color: var(--am-primary);
    font-weight: 600;
    text-decoration: none;
}

.section-head a:hover {
    text-decoration: underline;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--am-card-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(16, 40, 102, 0.18);
}

.product-card .badge-cashback {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f6a623, #e8870a);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-align: center;
    line-height: 1.3;
    z-index: 2;
}

.product-card .badge-selling {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1e8c3a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    z-index: 2;
}

.product-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    background: #eef1f9;
}

.product-img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.product-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 500;
    font-size: 14px;
    color: #222;
    margin-bottom: 6px;
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-stars {
    color: #f5a623;
    font-size: 12px;
}

.product-reviews {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
}

.product-price {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-current {
    font-weight: 700;
    font-size: 17px;
    color: #222;
}

.price-original {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.price-off {
    font-size: 11px;
    color: #1e8c3a;
    font-weight: 700;
}

.product-footer {
    padding: 0 14px 14px;
}

.btn-add {
    width: 100%;
    background: var(--am-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add:hover {
    background: var(--am-primary-dark);
}

.qty-control {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--am-primary);
}

.qty-btn {
    background: var(--am-primary);
    color: #fff;
    border: none;
    width: 38px;
    height: 36px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--am-primary-dark);
}

.qty-num {
    flex: 1;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--am-primary);
    background: #eef1f9;
    border: none;
    outline: none;
}

/* ===== SHOP BY PURPOSE ===== */
.purpose-section {
    padding: 50px 0 40px;
    background: #fff;
}

.purpose-card {
    background: #f0f3fb;
    border-radius: 16px;
    padding: 20px 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
}

.purpose-card:hover {
    border-color: var(--am-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(16, 40, 102, 0.12);
}

.purpose-card img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.purpose-card p {
    font-weight: 700;
    font-size: 13px;
    color: #333;
    margin: 0;
}

/* ===== PRODUCT SECTION ===== */
.products-section {
    padding: 50px 0 30px;
    background: var(--am-bg-light);
}

.products-section.alt-bg {
    background: #fff;
}

/* ===== OWL CAROUSEL NAV – proper chevron icons ===== */
.owl-theme .owl-nav [class*="owl-"] {
    width: 38px !important;
    height: 38px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
    border: 1.5px solid var(--am-border) !important;
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    margin: 0 4px !important;
    line-height: 1 !important;
    padding: 0 !important;
}

/* Hide the default < > span text */
.owl-theme .owl-nav [class*="owl-"] span {
    display: none !important;
}

/* Inject Font Awesome chevrons */
.owl-theme .owl-nav .owl-prev::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    content: "\f053" !important;
    font-size: 14px !important;
    color: var(--am-primary);
}

.owl-theme .owl-nav .owl-next::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    content: "\f054" !important;
    font-size: 14px !important;
    color: var(--am-primary);
}

.owl-theme .owl-nav [class*="owl-"]:hover {
    background: var(--am-primary) !important;
    border-color: var(--am-primary) !important;
}

.owl-theme .owl-nav [class*="owl-"]:hover::before {
    color: #fff !important;
}

.owl-carousel .owl-nav {
    margin-top: 16px;
    text-align: center;
}

/* Dots */
.owl-theme .owl-dots .owl-dot span {
    background: #c5cfe8 !important;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--am-primary) !important;
}

/* ===== FOOTER ===== */
#footer {
    background: linear-gradient(180deg, #1e2a4a 0%, #0d1528 100%);
    margin-top: 40px;
}

.footer-link {
    color: #bfbfbf;
    text-decoration: none;
}

.footer-link:hover {
    color: #fff;
}

#footer p {
    color: #bfbfbf;
    font-size: 14px;
}

/* ===== CART FAB ===== */
.cart-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

.cart-fab a {
    width: 56px;
    height: 56px;
    background: var(--am-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 18px rgba(16, 40, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
    position: relative;
}

.cart-fab a:hover {
    transform: scale(1.1);
    background: var(--am-primary-dark);
}

.cart-fab .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--am-gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

@media (max-width: 576px) {
    .shop-hero h1 {
        font-size: 1.5rem;
    }

    .section-head h2 {
        font-size: 1.2rem;
    }
}