* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #1a2b4c;
    --accent-gold: #c6a43f;
    --bg-soft: #f8f9fa;
    --card-white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-light: #eef2f6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    background-color: var(--bg-soft);
    color: var(--text-dark);
}

.app-container {
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-soft);
    padding-bottom: 70px;
}

/* ========== হেডার ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 20px 20px;
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-navy);
}

.header-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ========== সাইডবার ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background-color: var(--card-white);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header h3 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    font-weight: 600;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--primary-navy);
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ========== ক্যাটাগরি গ্রিড ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.category-card {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-card.active {
    border-color: var(--accent-gold);
    background-color: #fff9e6;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.category-badge {
    font-size: 0.65rem;
    background-color: #e9ecf0;
    color: var(--text-light);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* ========== সাব-ক্যাটাগরি ========== */
.subcategory-panel {
    margin-top: 16px;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
    display: none;
}

.subcategory-panel.active {
    display: block;
}

.subcategory-title {
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.subcategory-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.subcategory-btn {
    background-color: white;
    border: 1px solid #e0e6ed;
    padding: 12px 8px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.subcategory-btn:hover {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* ========== প্রাইস রেঞ্জ ========== */
.price-range-container {
    padding: 8px 0;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 20px 16px;
    border: 1px solid var(--border-light);
}

.price-display {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-navy), #2a3b5c);
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 auto 20px;
    display: inline-block;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(26,43,76,0.2);
    letter-spacing: 1px;
}

.price-slider {
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: linear-gradient(to right, #e0e6ed, var(--accent-gold));
    outline: none;
    -webkit-appearance: none;
    margin: 20px 0 16px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(198,164,63,0.4);
    border: 3px solid white;
}

.price-values {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.75rem;
    padding: 0 4px;
}

/* ========== সাইজ গ্রিড ========== */
.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-light);
}

.size-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid #e0e6ed;
    background: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn.active {
    background-color: var(--primary-navy);
    color: white;
    border-color: var(--primary-navy);
}

/* ========== ওভারলে ========== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay.active {
    display: block;
}

/* ========== স্লাইডার ========== */
.slider-section {
    padding: 16px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.slide {
    flex: 0 0 100%;
}

.slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.dot.active {
    background-color: white;
    width: 24px;
    border-radius: 10px;
}

/* ========== অফার ========== */
.offers-section {
    padding: 0 16px 16px;
}

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

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

.offer-card {
    min-width: 140px;
    padding: 14px 18px;
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.offer-gold { background: linear-gradient(135deg, #f9e5b7, #e4c580); }
.offer-blue { background: linear-gradient(135deg, #d4e4ff, #b8d0f0); }
.offer-green { background: linear-gradient(135deg, #d4f0d4, #b8e0b8); }

.offer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-navy);
    opacity: 0.8;
    margin-bottom: 4px;
}

.offer-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-navy);
}

/* ========== প্রোডাক্ট ========== */
.products-section {
    padding: 0 16px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

.view-all {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.products-slider-container {
    overflow-x: auto;
    scrollbar-width: none;
}

.products-slider-container::-webkit-scrollbar {
    display: none;
}

.products-slider-wrapper {
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
}

.product-slide-card {
    flex: 0 0 auto;
    width: 160px;
}

.product-card {
    background-color: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    aspect-ratio: 3/4;
    background-color: #f0f2f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 12px 10px 14px;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
}

/* প্রোডাক্ট নামের লিংক (ডিটেলস পৃষ্ঠায় নিয়ে যাবে) */
.product-name-link {
    text-decoration: none;
    color: inherit;
}

.product-name-link:hover {
    color: var(--accent-gold);
}

/* অ্যাড টু কার্ট ছোট বাটন (পুরোনো ক্লাস) */
.add-to-cart-small {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}

.add-to-cart-small:hover {
    background: #2a3b5c;
}

/* অ্যাড টু কার্ট বাটন (নতুন ক্লাস) */
.add-to-cart-btn {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: #2a3b5c;
}

/* ========== লোকেশন ========== */
.location-section {
    padding: 0 16px 24px;
}

.location-card {
    background-color: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.location-icon {
    width: 54px;
    height: 54px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.location-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 6px;
}

.location-address {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-navy);
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========== হোয়াটসঅ্যাপ ========== */
.connect-section {
    background: linear-gradient(135deg, var(--primary-navy), #2a3b5c);
    margin: 0 16px 24px;
    padding: 28px 20px;
    border-radius: 24px;
    color: white;
}

.connect-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.4;
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.whatsapp-input-group {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 40px;
    overflow: hidden;
}

.whatsapp-prefix {
    background-color: #f0f2f5;
    padding: 14px 18px;
    color: #25D366;
    font-weight: 600;
}

.whatsapp-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* ========== সোশ্যাল ========== */
.social-section {
    padding: 0 16px 24px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-icon {
    width: 54px;
    height: 54px;
    background-color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: transform 0.2s, background-color 0.2s;
}

/* ========== ফুটার ========== */
.footer {
    padding: 0 16px 24px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    background-color: white;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========== বটম নেভ ========== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background-color: white;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 14px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    border-top: 1px solid var(--border-light);
    z-index: 100;
    border-radius: 20px 20px 0 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.7rem;
    gap: 4px;
    transition: color 0.2s;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item.active {
    color: var(--accent-gold);
}

/* ========== কার্ট পৃষ্ঠা ========== */
.cart-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary-navy);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #2a3b5c;
}

/* ========== প্রোডাক্ট ডিটেইল ========== */
.product-detail {
    padding: 20px;
}

/* মডাল স্টাইল (নতুন যোগ) */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: transparent;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 25px;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--primary-navy);
}

.modal-product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

#modalProductImage {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

#modalProductName {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

#modalProductPrice {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.modal-body {
    padding: 10px 0;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

#sizeSelect, #quantity {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 20px;
    font-size: 1rem;
    transition: 0.2s;
}

#sizeSelect:focus, #quantity:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.quantity-selector {
    margin: 20px 0;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    animation: fadeIn 0.3s;
}

#noSizeMessage {
    background: #f8fafc;
    padding: 12px;
    border-radius: 12px;
    margin: 15px 0;
    color: var(--text-light);
}