:root {
    --primary-color: #ff3d68;
    --secondary-color: #4a90e2;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --admin-dark-bg: #1e1e2d;
    --admin-dark-surface: #2c2c3e;
    --admin-dark-accent: var(--primary-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Bengali', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav a:hover, .nav a.cart-btn:hover, .nav a.wishlist-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.cart-btn, .wishlist-btn {
    position: relative;
}

.cart-count, .wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.wishlist-count {
     background: #3498db;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background: var(--gradient);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* Hero Section */
.hero { display: flex; align-items: center; min-height: 90vh; position: relative; padding: 4rem 0; overflow: hidden; background: linear-gradient(135deg, rgba(255, 61, 104, 0.05) 0%, rgba(74, 144, 226, 0.05) 100%); }
.hero .container { display: flex; align-items: center; position: relative; width: 100%; height: 100%; }
.hero-content { flex: 1; z-index: 2; position: relative; padding-right: 3rem; animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero-content h2 { font-size: 4.5rem; margin-bottom: 1.5rem; text-shadow: 3px 3px 6px rgba(0,0,0,0.15); line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 700; letter-spacing: -1px; }
.hero-content p { font-size: 1.6rem; margin-bottom: 2.5rem; color: #2c3e50; line-height: 1.7; text-shadow: 1px 1px 3px rgba(0,0,0,0.08); font-weight: 400; opacity: 0.9; }
.cta-btn { background: var(--gradient); color: white; border: none; padding: 1.2rem 3rem; font-size: 1.2rem; border-radius: 50px; cursor: pointer; transition: all 0.4s ease; box-shadow: 0 10px 30px rgba(255, 61, 104, 0.4); font-weight: 700; position: relative; overflow: hidden; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; }
.cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); transition: left 0.6s; }
.cta-btn:hover::before { left: 100%; }
.cta-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 15px 40px rgba(255, 61, 104, 0.6); }
.hero-background { position: absolute; top: 0; right: 0; width: 65%; height: 100%; background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%); border-radius: 60px 0 0 60px; z-index: 1; box-shadow: inset -15px 0 40px rgba(74, 144, 226, 0.15); backdrop-filter: blur(15px); animation: slideInRight 1.2s ease-out; }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
.hero-image { position: absolute; top: 50%; right: 3%; transform: translateY(-50%); width: 55%; height: 85%; border-radius: 35px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,0.2); z-index: 2; border: 4px solid rgba(255, 255, 255, 0.4); animation: slideInRight 1.5s ease-out; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; filter: brightness(1.1) contrast(1.15) saturate(1.1); }
.hero-image:hover img { transform: scale(1.08); }
.hero-image:hover { box-shadow: 0 40px 90px rgba(0,0,0,0.3); border-color: rgba(255, 255, 255, 0.6); }

.product-search-container { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); margin: 2rem 0; }
.product-search-box { display: flex; gap: 1rem; align-items: center; }
.product-search-box input { flex: 1; padding: 1rem; border: 2px solid #ffeef8; border-radius: 50px; font-size: 1.1rem; font-family: inherit; transition: all 0.3s ease; }
.product-search-box input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 15px rgba(255, 61, 104, 0.3); }
.search-btn { background: var(--gradient); color: white; border: none; padding: 1rem 2rem; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; }
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 61, 104, 0.4); }
.clear-search-btn { background: #6c757d; color: white; border: none; padding: 1rem 1.5rem; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
.clear-search-btn:hover { background: #5a6268; transform: translateY(-2px); }

.featured-products, .models-section, .related-products { padding: 4rem 0; background: white; margin: 2rem 0; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.featured-products h2, .models-section h2, .related-products h2, #models-gallery-page h1 { text-align: center; color: var(--primary-color); font-size: 2.5rem; font-weight: 700; margin-bottom: 3rem; }

.products-grid, .models-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }

.product-card, .model-card { background: white; border-radius: 1rem; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; display: flex; flex-direction: column; position: relative; }
.product-card:hover, .model-card:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.product-card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex-grow: 1; }
.product-card img, .model-card img { width: 100%; height: 250px; object-fit: cover; }
.model-card img { height: 350px; }
.model-card .model-info { padding: 1rem; text-align: center; }
.model-card .model-info h3 { color: var(--primary-color); }
.model-card .model-info p { color: #555; font-size: 0.9rem; }
.product-info { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-info p { flex-grow: 1; }
.product-info h3 { color: var(--primary-color); margin-bottom: 0.5rem; font-size: 1.2rem; }
.product-info .price { font-size: 1.4rem; font-weight: bold; color: var(--secondary-color); margin-bottom: 1rem; }
.product-info .price .original-price { font-size: 1rem; text-decoration: line-through; color: #95a5a6; margin-right: 0.5rem; }
.product-info p { color: #34495e; margin-bottom: 1rem; }
.product-id { font-size: 0.9rem; color: #999; margin-bottom: 0.5rem; }
.order-btn { background: var(--gradient); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; width: 100%; text-decoration: none; display: inline-block; text-align: center; }
.order-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 61, 104, 0.4); }
.product-actions { display: flex; gap: 0.5rem; margin-top: auto; padding-top: 1rem; }
.add-to-cart-btn { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; flex: 1; }
.add-to-cart-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4); }

.wishlist-btn-card { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.8); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: #ccc; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
.wishlist-btn-card:hover { background: white; transform: scale(1.1); }
.wishlist-btn-card.active { color: #e74c3c; }

.out-of-stock-label { background: #e74c3c; color: white; padding: 0.8rem 1.5rem; border-radius: 50px; text-align: center; font-weight: bold; }
button:disabled { background: #95a5a6 !important; cursor: not-allowed !important; box-shadow: none !important; transform: none !important; }

/* === নতুন কার্ট স্টাইল === */
#cart-modal {
    display: block; /* Always block, but visibility controlled by opacity and transform */
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s ease;
    background: rgba(0,0,0,0.5);
}
#cart-modal.active {
    visibility: visible;
    opacity: 1;
}
#cart-modal .cart-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}
#cart-modal.active .cart-content {
    transform: translateX(0);
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}
.cart-header .close-btn {
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #888;
}
.cart-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.cart-item-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.cart-item-details h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}
.cart-item-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}
.cart-quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.cart-quantity-selector button {
    background: #f5f5f5;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}
.cart-quantity-selector span {
    padding: 0 1rem;
    font-weight: 500;
}
.cart-item-total {
    text-align: right;
    font-weight: bold;
}
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.cart-subtotal span:first-child {
    color: #555;
}
.cart-subtotal span:last-child {
    font-weight: bold;
}
.cart-checkout-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0;
}
.cart-empty-message {
    text-align: center;
    padding: 4rem 1rem;
    color: #777;
}

/* === নতুন এবং আধুনিক কুপন বক্সের ডিজাইন === */
.coupon-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.coupon-section input {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}
.coupon-section input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 61, 104, 0.3);
}
.coupon-section button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}
.coupon-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-detail-actions { display: flex; gap: 1rem; margin-top: 2rem; }
.product-detail-actions .cta-btn { flex: 2; }
.product-detail-actions .add-to-cart-btn { flex: 1; }

.category-filter { display: flex; justify-content: center; gap: 1rem; margin: 2rem 0; flex-wrap: wrap; }
.filter-btn { background: white; color: var(--primary-color); border: 2px solid var(--primary-color); padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background: var(--primary-color); color: white; }

.product-controls { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0; padding: 1rem; background: white; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.product-controls label { font-weight: 500; color: #2c3e50; }
.product-controls select { padding: 0.8rem; border: 2px solid #dee2e6; border-radius: 8px; font-family: inherit; font-size: 1rem; }

.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin: 3rem 0; }
.contact-card { background: white; padding: 2rem; border-radius: 15px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.3s ease; cursor: pointer; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.contact-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }
.contact-card h3 { color: var(--primary-color); margin-bottom: 1rem; }
.contact-card a { color: var(--secondary-color); text-decoration: none; font-weight: 500; }
.order-form { background: white; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: 3rem; }
.order-form h2 { color: var(--primary-color); text-align: center; margin-bottom: 2rem; }
.order-form form { display: grid; gap: 1rem; }
.order-form input, .order-form textarea { padding: 1rem; border: 2px solid #dee2e6; border-radius: 8px; font-family: inherit; }
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--primary-color); }
.order-form button { background: var(--gradient); color: white; border: none; padding: 1rem; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.search-results-info { background: #e8f5e8; color: #155724; padding: 1rem; border-radius: 8px; margin: 1rem 0; text-align: center; }
.no-results { background: #f8d7da; color: #721c24; padding: 2rem; border-radius: 8px; text-align: center; margin: 2rem 0; }
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow-y: auto; }
.modal-content { background: white; margin: 5% auto; padding: 2rem; border-radius: 15px; width: 90%; max-width: 500px; position: relative; }
.close { position: absolute; right: 1rem; top: 1rem; font-size: 2rem; cursor: pointer; color: var(--primary-color); }

/* === Gorgeous Input Fields for Modal === */
#customer-order-form .input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden; /* Important for border-radius */
}
#customer-order-form .input-group i {
    padding: 0 15px;
    color: #888;
    background-color: #f8f9fa;
    align-self: stretch;
    display: flex;
    align-items: center;
    border-right: 1px solid #ddd;
    transition: all 0.3s ease;
}
#customer-order-form .input-group input {
    border: none;
    outline: none;
    padding: 15px;
    flex-grow: 1;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
}
#customer-order-form .input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 61, 104, 0.3);
}
#customer-order-form .input-group:focus-within i {
    color: var(--primary-color);
    background-color: #fff8fa;
}


/* === ADMIN DARK THEME START === */
.admin-panel { background: var(--admin-dark-bg); color: #fff; }
.admin-header { background: var(--admin-dark-surface); color: white; padding: 2rem; margin-bottom: 2rem; border-radius: 15px; display: flex; justify-content: space-between; align-items: center; }
.admin-header button { background: rgba(255,255,255,0.2); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; }
.admin-notification-btn { font-size: 1.5rem; background: none; border: none; color: white; cursor: pointer; padding: 0.5rem; }
.admin-notification-count { position: absolute; top: -5px; right: -5px; background: #e74c3c; color: white; font-size: 12px; border-radius: 50%; padding: 2px 6px; display: none; }
#admin-notification-list ul { list-style: none; padding: 0; }
#admin-notification-list li { background: var(--admin-dark-bg); padding: 1rem; border-radius: 5px; margin-bottom: 0.5rem; }
.admin-tabs { display: flex; justify-content: center; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn { background: none; border: none; padding: 1rem 2rem; cursor: pointer; color: #ccc; border-bottom: 3px solid transparent; transition: all 0.3s ease; }
.tab-btn.active, .tab-btn:hover { color: var(--admin-dark-accent); border-bottom-color: var(--admin-dark-accent); }
.admin-tab { display: none; padding: 2rem 0; }
.admin-tab.active { display: block; }
.admin-section { background: var(--admin-dark-surface); padding: 2rem; margin-bottom: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.admin-section h2 { color: var(--admin-dark-accent); border-bottom: 1px solid #444; padding-bottom: 1rem; margin-bottom: 1rem;}
.admin-form { display: grid; gap: 1rem; }
.admin-form input, .admin-form select, .admin-form textarea { padding: 0.8rem; border: 2px solid #444; border-radius: 8px; font-family: inherit; transition: border-color 0.3s ease; background: var(--admin-dark-bg); color: #fff; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--admin-dark-accent); }
.admin-form button { background: var(--gradient); color: white; border: none; padding: 1rem; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: all 0.3s ease; }
.admin-form button:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 61, 104, 0.4); }
.admin-product-item, .admin-customer-image-item { background: var(--admin-dark-surface); padding: 1rem; margin-bottom: 1rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.admin-product-info h4, .admin-customer-image-info h4 { color: var(--admin-dark-accent); margin-bottom: 0.5rem; }
.admin-product-actions, .admin-customer-image-actions { display: flex; gap: 0.5rem; }
.admin-product-actions button, .admin-customer-image-actions button { padding: 0.5rem 1rem; border: none; border-radius: 5px; cursor: pointer; transition: all 0.3s ease; }
.edit-btn { background: #007bff; color: white; }
.delete-btn { background: #dc3545; color: white; }
.edit-btn:hover, .delete-btn:hover { transform: translateY(-2px); }
.admin-customer-image-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 5px; margin-right: 1rem; }
/* === ADMIN DARK THEME END === */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 2rem 0; }
.product-detail-image-gallery { display: flex; flex-direction: column; gap: 1rem; }
.main-product-image { width: 100%; height: 500px; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); cursor: zoom-in; }
.product-image-thumbnails { display: flex; gap: 1rem; justify-content: center; }
.thumbnail-img { width: 80px; height: 80px; object-fit: cover; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: border-color 0.3s ease; }
.thumbnail-img:hover, .thumbnail-img.active { border-color: var(--primary-color); }

.product-detail-info { padding: 2rem; }
.product-detail-info h1 { color: var(--primary-color); font-size: 2.5rem; margin-bottom: 1rem; }
.product-detail-info .price { font-size: 2rem; color: var(--secondary-color); font-weight: bold; margin-bottom: 2rem; }
.product-detail-info .price .original-price { font-size: 1.5rem; text-decoration: line-through; color: #95a5a6; margin-right: 1rem; }
.product-detail-info .description { font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; color: #34495e; }
.product-features { margin-bottom: 2rem; }
.product-features h3 { color: var(--primary-color); margin-bottom: 1rem; }
.product-features ul { list-style: none; padding-left: 0; }
.product-features li { padding: 0.5rem 0; border-bottom: 1px solid #eee; color: #34495e; }
.product-delivery-info { margin-bottom: 2rem; background: #f8f9fa; padding: 1.5rem; border-radius: 10px; border-left: 4px solid var(--primary-color); }
.product-delivery-info h3 { color: var(--primary-color); margin-bottom: 1rem; font-size: 1.2rem; }
.delivery-item { padding: 0.8rem 0; border-bottom: 1px solid #e9ecef; color: #34495e; line-height: 1.6; }
.delivery-item:last-child { border-bottom: none; }
.delivery-item strong { color: #495057; display: inline-block; min-width: 150px; }
textarea { width: 100%; padding: 12px; border: 2px solid #e9ecef; border-radius: 8px; font-family: inherit; font-size: 14px; line-height: 1.5; resize: vertical; transition: border-color 0.3s ease; }
textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 61, 104, 0.1); }
.delivery-item:last-child { white-space: pre-line; }
.back-btn { background: #6c757d; color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 50px; cursor: pointer; margin-bottom: 2rem; text-decoration: none; display: inline-block; }
.search-box { display: flex; gap: 1rem; margin-bottom: 2rem; }
.search-box input { flex: 1; padding: 0.8rem; border: 2px solid #dee2e6; border-radius: 8px; font-family: inherit; }
.search-box button { background: var(--primary-color); color: white; border: none; padding: 0.8rem 1.5rem; border-radius: 8px; cursor: pointer; }
.category-management, .coupon-management { display: grid; gap: 1rem; margin-bottom: 2rem; }
.category-item, .coupon-item { display: flex; justify-content: space-between; align-items: center; background: var(--admin-dark-surface); padding: 1rem; border-radius: 8px; }
.category-item button, .coupon-item button { background: #dc3545; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; }
.success-message, .error-message { position: fixed; top: 20px; right: 20px; z-index: 9999; padding: 1rem 1.5rem; border-radius: 10px; color: white; font-weight: 500; animation: slideInRight 0.3s ease; }
.success-message { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3); }
.error-message { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3); }

/* === নতুন স্টাইল === */
.option-group { margin: 1.5rem 0; }
.option-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #333; }
.size-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-btn { padding: 0.5rem 1rem; border: 1px solid #ccc; background: white; cursor: pointer; border-radius: 5px; transition: all 0.2s ease; }
.size-btn.active, .size-btn:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.quantity-selector { display: flex; align-items: center; border: 1px solid #ccc; width: fit-content; border-radius: 5px; overflow: hidden; }
.quantity-selector button { background: #f1f1f1; border: none; padding: 0.5rem 1rem; cursor: pointer; font-size: 1.2rem; }
.quantity-selector span { padding: 0.5rem 1.5rem; font-weight: bold; }
.size-guide { margin-top: 2rem; background: #f9f9f9; padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--secondary-color); }
.size-guide h3 { margin-bottom: 0.5rem; }
.size-guide p { white-space: pre-line; line-height: 1.8; }

.shipping-method { display: flex; align-items: center; padding: 1rem; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 0.5rem; cursor: pointer; transition: all 0.2s ease; }
.shipping-method:has(input:checked) { border-color: var(--primary-color); background: #fff8fa; }
.shipping-method input { margin-right: 1rem; width: 18px; height: 18px; }
.shipping-method label { flex-grow: 1; font-weight: 500; }
#order-summary .summary-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #eee; }
#order-summary .summary-item:last-child { border-bottom: none; }
#order-summary .summary-item.total { font-weight: bold; font-size: 1.2rem; color: var(--primary-color); }
#order-summary .product-summary { gap: 1rem; }
#order-summary .product-summary img { border-radius: 5px; }
#order-summary .product-summary div { display: flex; flex-direction: column; flex-grow: 1; }
#order-summary .product-summary span { font-size: 0.9rem; }
/* === শেষ === */

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
.fade-in { animation: fadeIn 0.5s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
.hero-content { animation: slideInLeft 1s ease-out; }
.hero-image { animation: slideInRight 1s ease-out 0.3s both; }
.reviews-section { margin-top: 3rem; padding: 2rem; background: rgba(255, 255, 255, 0.1); border-radius: 20px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); }
.reviews-section h2 { color: #2c3e50; font-size: 2rem; margin-bottom: 2rem; text-align: center; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.review-form { background: rgba(255, 255, 255, 0.9); padding: 2rem; border-radius: 15px; margin-bottom: 2rem; box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1); }
.review-form h3 { color: #2c3e50; margin-bottom: 1.5rem; font-size: 1.3rem; }
.review-form input, .review-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border: 2px solid rgba(102, 126, 234, 0.2); border-radius: 10px; font-size: 1rem; transition: all 0.3s ease; background: rgba(255, 255, 255, 0.9); }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255, 61, 104, 0.1); }
.review-form textarea { min-height: 120px; resize: vertical; }
.rating-input { margin-bottom: 1rem; }
.rating-input label { display: block; margin-bottom: 0.5rem; color: #2c3e50; font-weight: 500; }
.stars { display: flex; gap: 0.5rem; }
.stars i { font-size: 1.5rem; color: #ddd; cursor: pointer; transition: all 0.3s ease; }
.stars i:hover, .stars i.active { color: #ffd700; transform: scale(1.1); }
.review-form button { background: var(--gradient); color: white; padding: 1rem 2rem; border: none; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-weight: 600; }
.review-form button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 61, 104, 0.3); }
.reviews-list { max-height: 500px; overflow-y: auto; }
.review-item { background: rgba(255, 255, 255, 0.9); padding: 1.5rem; border-radius: 15px; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); border-left: 4px solid var(--primary-color); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.reviewer-info { display: flex; align-items: center; gap: 1rem; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient); display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.2rem; }
.reviewer-name { font-weight: 600; color: #2c3e50; }
.review-date { color: #666; font-size: 0.9rem; }
.review-rating { display: flex; gap: 0.2rem; }
.review-rating i { color: #ffd700; font-size: 1rem; }
.product-card-rating { display: flex; gap: 0.2rem; margin-bottom: 0.5rem; color: #ffd700; }
.review-comment { color: #2c3e50; line-height: 1.6; margin-top: 1rem; }
.delete-review-btn { background: #e74c3c; color: white; border: none; padding: 0.5rem 1rem; border-radius: 20px; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; }
.delete-review-btn:hover { background: #c0392b; transform: scale(1.05); }
.no-reviews { text-align: center; color: #666; padding: 2rem; font-style: italic; }
.admin-reviews-tab { display: none; }
.admin-reviews-tab.active { display: block; }
.review-admin-item { background: rgba(255, 255, 255, 0.9); padding: 1.5rem; border-radius: 15px; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); border-left: 4px solid var(--primary-color); }
.review-admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-product-info { font-size: 0.9rem; color: #666; margin-bottom: 0.5rem; }
.about-us-page h1 { color: var(--primary-color); }
.video-section { margin: 2rem 0; background: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.video-responsive { position: relative; overflow: hidden; padding-top: 56.25%; border-radius: 10px; }
.video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.about-text-section { background: #fff; padding: 2rem; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); line-height: 1.8; color: #34495e; font-size: 1.1rem; }

.order-list-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.order-card { background: var(--admin-dark-surface); padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: #fff; border-left: 5px solid; }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid #444; padding-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;}
.order-card-id { font-weight: bold; color: var(--admin-dark-accent); }
.order-card-date { font-size: 0.9rem; color: #aaa; }
.order-card-customer p, .order-card-products p, .order-card-payment p { margin: 0.5rem 0; color: #ddd; }
.order-card-customer strong, .order-card-products strong, .order-card-payment strong { color: #ccc; }
.order-card-products ul { list-style: none; padding-left: 0; margin-top: 0.5rem; }
.order-card-products li { background: var(--admin-dark-bg); padding: 0.5rem; border-radius: 5px; margin-bottom: 0.3rem; }
.order-card-total { text-align: right; font-size: 1.2rem; font-weight: bold; color: var(--admin-dark-accent); margin-top: 1rem; }
.order-card-actions { margin-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.order-status-selector { padding: 0.5rem; border-radius: 5px; border: 1px solid #444; background: var(--admin-dark-bg); color: #fff; }
.invoice-btn { background: #007bff; color: white; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; text-decoration: none; }
.status-badge { padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; font-weight: bold; color: #fff; }
.status-badge.pending { background-color: #f1c40f; }
.status-badge.processing { background-color: #3498db; }
.status-badge.shipped { background-color: #e67e22; }
.status-badge.delivered { background-color: #2ecc71; }
.status-badge.cancelled { background-color: #e74c3c; }
.order-card.status-pending { border-color: #f1c40f; }
.order-card.status-processing { border-color: #3498db; }
.order-card.status-shipped { border-color: #e67e22; }
.order-card.status-delivered { border-color: #2ecc71; }
.order-card.status-cancelled { border-color: #e74c3c; }

.my-orders-list { display: flex; flex-direction: column; gap: 1rem; }
.my-order-item { background: #fff; padding: 1.5rem; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-left: 5px solid; }
.my-order-item.status-pending { border-color: #f1c40f; }
.my-order-item.status-processing { border-color: #3498db; }
.my-order-item.status-shipped { border-color: #e67e22; }
.my-order-item.status-delivered { border-color: #2ecc71; }
.my-order-item.status-cancelled { border-color: #e74c3c; }
.my-order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; flex-wrap: wrap; gap: 1rem; }
.my-order-id { font-weight: bold; color: var(--primary-color); }
.my-order-status { text-transform: capitalize; }

/* === NEW LIVE CHAT STYLE === */
.live-chat-button {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: transform 0.3s ease;
}
.live-chat-button:hover {
    transform: scale(1.1);
}

.chat-box {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    transition: transform 0.3s ease;
}
.chat-box.active {
    transform: scale(1);
}
.chat-box-header {
    background: var(--gradient);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}
.chat-box-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-box-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}
.chat-box-links a:hover {
    background-color: #f1f1f1;
}
.chat-box-links a i {
    font-size: 1.5rem;
}
.fa-whatsapp { color: #25D366; }
.fa-facebook-messenger { color: #00B2FF; }
/* === END LIVE CHAT STYLE === */

.admin-btn { display: none !important; }

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: space-around;
    padding: 5px 0;
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; text-decoration: none; color: #6c757d; padding: 5px 0; transition: color 0.3s ease; }
.bottom-nav a i { font-size: 1.4rem; margin-bottom: 4px; }
.bottom-nav a span { font-size: 0.75rem; font-weight: 500; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--primary-color); }

/* === NEW: Report & Invoice Styles === */
.report-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.report-table-container { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.report-table th, .report-table td { padding: 0.8rem; border: 1px solid #444; text-align: left; }
.report-table th { background-color: #3c3c4e; }
.invoice-modal-content { max-width: 800px; }
.invoice-box { padding: 2rem; border: 1px solid #eee; font-size: 1rem; color: #555; }
.invoice-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 1rem; margin-bottom: 2rem; }
.invoice-header .logo-title h1 { color: var(--primary-color); margin: 0; }
.invoice-header .logo-title p { margin: 0; }
.invoice-details { text-align: right; }
.invoice-customer-details { margin-bottom: 2rem; }
.invoice-table { width: 100%; border-collapse: collapse; }
.invoice-table th, .invoice-table td { padding: 0.8rem; border-bottom: 1px solid #eee; }
.invoice-table th { background: #f9f9f9; text-align: left; }
.invoice-total { margin-top: 2rem; text-align: right; }
.invoice-actions { text-align: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #eee; }

@media print {
    body * { visibility: hidden; }
    .invoice-box, .invoice-box * { visibility: visible; }
    .invoice-box { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 10px; border: none; }
    .invoice-actions { display: none; }
    .report-to-print, .report-to-print * { visibility: visible; }
    .report-to-print { position: absolute; left: 0; top: 0; width: 100%; }
}
/* === END: Report & Invoice Styles === */

/* Video Section Start */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.video-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.video-card-info {
    padding: 1.5rem;
}
.video-card-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.video-card-info p {
    color: #34495e;
    font-size: 1rem;
}
.admin-video-item {
     background: var(--admin-dark-surface); padding: 1rem; margin-bottom: 1rem; border-radius: 8px; display: flex; justify-content: space-between; align-items: center;
}
/* Video Section End */

/* Customer Settings Start */
.settings-form-container, .settings-info-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}
.settings-form-container h2, .settings-info-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.settings-form {
    display: grid;
    gap: 1rem;
}
.settings-form input {
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
}
.settings-form button {
     background: var(--gradient); color: white; border: none; padding: 1rem; border-radius: 8px; cursor: pointer; font-size: 1.1rem;
}
.stat-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border-left: 5px solid var(--primary-color);
}
.stat-card h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
}
.stat-card p {
    color: #6c757d;
}
.purchased-products-list li {
    padding: 0.8rem;
    background: #f8f9fa;
    margin-bottom: 0.5rem;
    border-radius: 5px;
}
/* Customer Settings End */

/* Payment Tracking & Admin Reports Start */
.order-card-payment {
    background: var(--admin-dark-bg);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}
.order-card-payment-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.order-card-payment-field input {
    width: 80px;
    padding: 0.3rem;
    background: #444;
    color: white;
    border: 1px solid #666;
    border-radius: 4px;
}
.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: #f1f3f5;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}
.payment-info-item {
    text-align: center;
}
.payment-info-item strong {
    display: block;
    color: #2c3e50;
}
.payment-info-item span {
    font-size: 1.2rem;
    font-weight: bold;
}
.due-amount {
    color: #e74c3c;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.report-stat-card {
    background: var(--admin-dark-surface);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}
.report-stat-card h3 {
    font-size: 2.5rem;
    color: var(--admin-dark-accent);
    margin: 0;
}
.report-stat-card p {
    color: #ccc;
    margin-top: 0.5rem;
}
.report-controls input[type="date"] {
    padding: 0.8rem;
    border: 2px solid #444;
    border-radius: 8px;
    background: var(--admin-dark-bg);
    color: #fff;
    color-scheme: dark;
}
/* Payment Tracking & Admin Reports End */

@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .container { padding: 0 10px; }
    .bottom-nav { display: flex; }
    .mobile-menu, .mobile-nav { display: none !important; }
    .header .container { padding: 0 15px; }
    .logo h1 { font-size: 1.5rem; }
    .logo p { font-size: 0.8rem; }
    .header .nav { display: flex; gap: 0.5rem; }
    .header .nav a { display: none; }
    .header .nav a.cart-btn, .header .nav a.wishlist-btn { display: flex; padding: 0.5rem; font-size: 1.2rem; }
    .hero { padding: 0; min-height: auto; display: block; }
    .hero .container { padding: 0; max-width: 100%; }
    .hero-content, .hero-background { display: none; }
    .hero-image { position: static; transform: none; width: 100%; height: auto; border-radius: 0; box-shadow: none; border: none; margin: 0; }
    .hero-image img { border-radius: 0; height: auto; width: 100%; }
    .featured-products { margin-top: 1rem; padding-top: 2rem; border-radius: 0; }
    .featured-products h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
    .products-grid, .models-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 5px; }
    .product-card { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
    .product-card img { height: 180px; }
    .product-info { padding: 1rem; }
    .product-info h3 { font-size: 1rem; line-height: 1.4; min-height: 40px; }
    .product-info .price { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .product-info p { display: none; }
    .product-id { font-size: 0.8rem; }
    .product-actions { flex-direction: column; gap: 0.5rem; }
    .order-btn, .add-to-cart-btn { padding: 0.6rem 1rem; font-size: 0.9rem; border-radius: 20px; }
    .product-detail { grid-template-columns: 1fr; }
    .admin-tabs { flex-direction: column; }
    .search-box, .product-search-box { flex-direction: column; }
    .reviews-section { padding: 1rem; }
    .review-form { padding: 1.5rem; }
    .review-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .stars i { font-size: 1.2rem; }
    .live-chat-button { bottom: 70px; }
    .chat-box { bottom: 140px; }
    #cart-modal .cart-content { max-width: 90%; }
}

@media (max-width: 480px) {
    .products-grid { gap: 0.8rem; }
    .product-card img { height: 160px; }
    .product-info h3 { font-size: 0.9rem; }
    .product-info .price { font-size: 1.1rem; }
    .order-btn, .add-to-cart-btn { font-size: 0.8rem; padding: 0.5rem 0.8rem; }
}