/* ================= বেসিক রিসেট ও ফন্ট ================= */
:root {
    --primary-maroon: #8c274c;
    --dark-maroon: #6e1c3a;
    --bg-pink: #fff7f9;
    --card-bg: #ffffff;
    --border-soft: #f0dce2;
    --text-dark: #2c1e24;
    --text-muted: #7a666e;
    --shadow-soft: 0 4px 12px rgba(140, 39, 76, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Hind Siliguri', 'Poppins', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    background-color: var(--bg-pink);
    color: var(--text-dark);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px; /* মোবাইলে প্রিমিয়াম স্ট্যান্ডার্ড সাইজ */
    margin: 0 auto;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
    position: relative;
    padding-bottom: 62px; /* বটম নেভিগেশনের জায়গা */
}

/* ================= টপ অ্যানাউন্সমেন্ট বার ================= */
.top-banner {
    background-color: var(--primary-maroon);
    color: #ffffff;
    text-align: center;
    font-size: 12.5px;
    font-weight: 500;
    padding: 8px 12px;
    line-height: 1.4;
}

/* ================= মেইন হেডার ================= */
.main-header {
    background-color: var(--bg-pink);
    padding: 12px 15px 14px;
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(240, 220, 226, 0.6);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-maroon);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-maroon);
    line-height: 1;
}

.logo-text span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.track-btn {
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    color: var(--primary-maroon);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.icon-badge {
    position: relative;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 2px;
}

.icon-badge .badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background-color: var(--primary-maroon);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
}

/* ================= সার্চ বার ================= */
.search-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 30px;
    padding: 4px 5px 4px 16px;
    box-shadow: 0 2px 8px rgba(140, 39, 76, 0.04);
}

.search-container input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-dark);
    background: transparent;
}

.search-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-maroon);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= মূল কন্টেন্ট ও ক্যাটাগরি ================= */
.main-content {
    flex: 1; /* নিচের অবাঞ্ছিত ফাঁকা গ্যাপ দূর করবে */
    padding: 10px 15px 25px;
}

.category-section {
    margin-bottom: 22px;
}

.category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.cat-btn {
    background-color: #ffffff;
    color: var(--text-dark);
    border: 1px solid var(--border-soft);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.cat-btn.active {
    background-color: var(--primary-maroon);
    color: #ffffff;
    border-color: var(--primary-maroon);
}

.special-offer-wrap {
    display: flex;
    justify-content: center;
}

.special-btn {
    background-color: #ffeef3;
    color: var(--primary-maroon);
    border: 1px solid #f5c6d4;
    padding: 8px 24px;
    font-weight: 700;
}

.special-btn.active {
    background-color: var(--primary-maroon);
    color: #ffffff;
}

/* ================= প্রোডাক্ট সেকশন ================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.section-header h2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-maroon);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.empty-state {
    grid-column: span 2;
    text-align: center;
    padding: 45px 15px;
    color: var(--text-muted);
    font-size: 14.5px;
}
/* ================= প্রিমিয়াম প্রোডাক্ট কার্ড ================= */
.product-card {
    background-color: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
}

.prod-img-wrap {
    position: relative;
    width: 100%;
    height: 165px;
    background-color: #fdf2f5;
    overflow: hidden;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wish-icon-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-maroon);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.prod-info {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prod-cat {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.prod-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    margin-top: auto;
}

.current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-maroon);
}

.old-price {
    font-size: 12px;
    color: #9e8e94;
    text-decoration: line-through;
}

.prod-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-add-cart {
    width: 100%;
    padding: 6px;
    border-radius: 8px;
    border: 1px solid var(--primary-maroon);
    background-color: #ffffff;
    color: var(--primary-maroon);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-order-now {
    width: 100%;
    padding: 7px;
    border-radius: 8px;
    border: none;
    background-color: var(--primary-maroon);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ================= ফুটার (ফাঁকা গ্যাপ ছাড়া) ================= */
.main-footer {
    background-color: var(--primary-maroon);
    color: #ffffff;
    text-align: center;
    padding: 14px 10px;
    font-size: 12.5px;
    margin-top: auto;
}

.admin-badge {
    background-color: #ffffff;
    color: var(--primary-maroon);
    border: none;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
    cursor: pointer;
}

/* ================= ফ্লোটিং হেল্প বাটন ================= */
.floating-help-btn {
    position: fixed;
    bottom: 75px;
    right: calc(50% - 225px);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--primary-maroon);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(140, 39, 76, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    z-index: 95;
}

@media (max-width: 480px) {
    .floating-help-btn {
        right: 15px;
    }
}

.floating-help-btn i {
    font-size: 16px;
    margin-bottom: 1px;
}

/* ================= বটম নেভিগেশন বার ================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 600;
    gap: 3px;
}

.nav-item i {
    font-size: 17px;
}

.nav-item.active {
    color: var(--primary-maroon);
}

/* ================= মডাল (পপ-আপ) ডিজাইন ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background-color: var(--primary-maroon);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 16px;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 16px;
    overflow-y: auto;
}

/* হেল্প কার্ড ও বাটন */
.help-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.contact-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-pink);
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    font-size: 13px;
    color: var(--text-dark);
}

.contact-info span {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-maroon);
}

.contact-actions {
    display: flex;
    gap: 6px;
}

.call-btn, .wa-btn {
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.call-btn {
    background-color: var(--primary-maroon);
}

.wa-btn {
    background-color: #25D366;
}

/* ফর্ম ও ইনপুট স্টাইল */
.checkout-form input, .checkout-form textarea, .wa-select,
.admin-form input, .admin-form select, #trackInput {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13.5px;
    outline: none;
}

.select-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.primary-order-btn {
    width: 100%;
    padding: 11px;
    background-color: var(--primary-maroon);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 10px 0;
    border-top: 1px dashed var(--border-soft);
    border-bottom: 1px dashed var(--border-soft);
    margin-bottom: 12px;
}

.cart-item-row, .admin-prod-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
}

.delete-btn {
    background-color: #e63946;
    color: #ffffff;
    border: none;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 11px;
    cursor: pointer;
}

.divider {
    margin: 15px 0;
    border: none;
    border-top: 1px solid var(--border-soft);
}
