/* === General Reset & Typography === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: #0d1428; /* ডার্ক নেভি ব্যাকগ্রাউন্ড */
    font-family: 'Poppins', sans-serif; 
    color: #ffffff; 
}
.container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* === Header === */
.main-header { background: #0d1428; padding: 15px 0; border-bottom: 2px solid #e74c3c; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo h1 { font-size: 24px; font-weight: 800; color: #fff; }
.logo h1 span { color: #e74c3c; }
.main-nav ul { display: flex; list-style: none; gap: 25px; }
.main-nav ul li a { color: #a0b1d3; font-size: 14px; font-weight: 500; }
.main-nav ul li a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.balance-badge { background: #1a233a; color: #e74c3c; padding: 6px 15px; border-radius: 20px; font-weight: 600; font-size: 13px; }

/* === Hero Slider === */
.hero-slider-section { margin-top: 20px; }
.slider-container { position: relative; width: 100%; height: 320px; overflow: hidden; border-radius: 12px; }
.slider-wrapper { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.slide { min-width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); color: #fff; border: none; padding: 12px 16px; cursor: pointer; z-index: 10; border-radius: 4px; font-size: 20px; }
.prev-btn { left: 15px; } .next-btn { right: 15px; }
.dots-container { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; }
.dot.active { background: #e74c3c; }

/* === Section Headers === */
.section-block { padding: 40px 0; margin-top: 10px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-header h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.view-all { color: #4db6ac; font-size: 14px; font-weight: 500; }
.view-all:hover { color: #fff; }

/* === Product Card Grid (WooCommerce Loop) === */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }

/* === Single Product Card Design === */
.product-card { 
    background: #1a233a; 
    border-radius: 12px; 
    padding: 10px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }

.card-img { 
    position: relative; 
    width: 100%;
    aspect-ratio: 1 / 1; /* বর্গাকার ইমেজ */
    border-radius: 8px;
    overflow: hidden;
}
.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Price Badge (Top Right, Red) */
.card-img .price-badge { 
    position: absolute; 
    top: 8px; 
    right: 8px; 
    background: #e74c3c; 
    color: #fff;
    padding: 2px 8px; 
    border-radius: 4px; 
    font-size: 11px; 
    font-weight: 600; 
    z-index: 2;
}

/* Out of Stock Badge (Middle, Full Width Red) */
.status-overlay.out-of-stock {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: #e74c3c;
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
}

/* Product Info */
.card-info { padding-top: 12px; }
.card-info h4 { 
    font-size: 14px; 
    font-weight: 600; 
    color: #fff;
    line-height: 1.4;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-info .stars { color: #f39c12; font-size: 12px; }
.card-info .stars span { color: #7a8aaa; margin-left: 4px; }

/* === App Top Up Grid (Different Layout for App Icons) === */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.app-card { 
    background: #1a233a; 
    border-radius: 12px; 
    padding: 20px 15px; 
    text-align: center; 
}
.app-logo { 
    width: 70px; height: 70px; 
    background: #fff; border-radius: 12px; 
    margin: 0 auto 10px; 
    overflow: hidden;
}
.app-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.app-details h4 { font-size: 14px; color: #fff; margin-bottom: 5px; }
.app-details .stars { color: #f39c12; font-size: 12px; }
.app-details .buy-btn { 
    display: inline-block; margin-top: 10px; 
    background: #ff6b6b; color: #fff; 
    font-size: 11px; padding: 5px 15px; 
    border-radius: 20px; font-weight: 600;
}
.app-details .buy-btn:hover { background: #e74c3c; }

/* === View More Button === */
.text-center { text-align: center; margin-top: 25px; }
.view-more-btn { 
    background: transparent; 
    border: 1px solid #2b3a61; 
    color: #fff; 
    padding: 10px 40px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-size: 14px; 
    transition: 0.3s;
}
.view-more-btn:hover { background: #2b3a61; }

/* === Our Services === */
.services-section { background: #0d1428; padding: 60px 0; border-top: 1px solid #1a233a; }
.services-header { flex-direction: column; align-items: center; text-align: center; border-bottom: none; margin-bottom: 40px; }
.sub-title { font-size: 12px; color: #4db6ac; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-box { background: #1a233a; padding: 25px; border-radius: 10px; text-align: center; border: 1px solid #25324d; }
.service-box h3 { font-size: 16px; margin-bottom: 8px; color: #fff; }
.service-box p { font-size: 13px; color: #7a8aaa; }

/* === Footer === */
.footer-widgets { background: #090f20; padding: 50px 0; border-top: 1px solid #1a233a; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; color: #fff; }
.footer-col ul, .footer-col p { list-style: none; color: #7a8aaa; font-size: 14px; line-height: 1.8; }
.footer-col ul li { margin-bottom: 5px; }
.social-icons { color: #fff; }

/* === Responsive for Mobile === */
@media (max-width: 992px) {
    .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .app-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
}
@media (max-width: 480px) {
    .product-grid, .app-grid, .service-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .slider-container { height: 180px; }
}