:root {
    --primary: #1e40af; /* Deep Royal Blue */
    --primary-hover: #1e3a8a;
    --secondary: #3b82f6;
    --bg-light: #f8fafc; /* Clean ultra-light background */
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Navbar */
.store-navbar {
    background-color: var(--card-bg);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-logo {
    width: 36px;
    height: 36px;
}

.store-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    line-height: 1.2;
}

.store-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cart-btn {
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: var(--card-bg);
    padding: 0;
}

.cart-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
}

/* Hero Section */
.store-hero {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-main);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.hero-heading {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-heading .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Chips */
.category-section {
    margin: 1.5rem 0;
}

.category-chips {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.category-chips::-webkit-scrollbar {
    height: 4px;
}

.category-chips::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.chip {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.chip:hover {
    background: #e2e8f0;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.2);
}

/* Combo Card */
.combo-card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.combo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px -5px rgba(0, 0, 0, 0.08);
}

.combo-image-wrapper {
    height: 180px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.combo-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
}

.combo-image-wrapper i {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.combo-discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: white;
    font-weight: 800;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.combo-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.combo-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    color: var(--text-main);
}

.combo-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.combo-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.combo-price-section {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.combo-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.combo-mrp {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.15rem;
}

.combo-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.btn-detail {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem;
}

.btn-detail:hover {
    background: #e2e8f0;
}

.btn-add {
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem;
}

.btn-add:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-purchased {
    background: var(--success);
    border: none;
    color: white;
    font-weight: 600;
    grid-column: span 2;
    cursor: default;
}

/* Detail Modal */
.combo-modal-header {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
    text-align: center;
}

.combo-modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.combo-modal-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.book-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg-light);
}

.book-list-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1rem;
}

.book-list-title {
    font-weight: 600;
    margin: 0;
}

/* Drawers */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.cart-drawer, .txn-drawer {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1050;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.cart-drawer.open, .txn-drawer.open {
    right: 0;
}

.cart-header, .txn-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h4, .txn-header h4 {
    margin: 0;
    font-weight: 700;
}

.cart-body, .txn-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 700;
    color: var(--primary);
}

.cart-empty, .txn-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Txn Item */
.txn-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.txn-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.txn-status {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}
.txn-status.success { background: #d1fae5; color: #047857; }
.txn-status.pending { background: #fef3c7; color: #b45309; }
.txn-status.failed { background: #fee2e2; color: #b91c1c; }

.txn-combos {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Floating Buttons */
.floating-buttons-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.whatsapp-float, .telegram-float {
    width: 50px;
    height: 50px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.whatsapp-float {
    background-color: #25d366;
}

.telegram-float {
    background-color: #0088cc;
}

.whatsapp-float:hover, .telegram-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.store-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cart-drawer, .txn-drawer {
        width: 100%;
        right: -100%;
    }
    .hero-heading { font-size: 1.5rem; }
    .hero-desc { font-size: 0.9rem; }
    .store-hero { padding: 2rem 1rem; }
    .brand-logo { width: 28px; height: 28px; }
    .store-brand { font-size: 0.9rem; }
    .store-tagline { font-size: 0.65rem; }
    .cart-btn { width: 34px; height: 34px; }
    .cart-btn i { font-size: 1rem !important; }
}
