/* ===== GLOBAL STYLES ===== */
:root {
    --primary: #000000;
    --secondary: #333333;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f5f5f5;
    --dark: #1f2937;
    --gray: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 0.5rem;
    --radius-lg: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: #ffffff;
    color: var(--dark);
    min-height: 100vh;
    padding-bottom: 70px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== NOTICE BANNER ===== */
.notice-banner {
    color: white;
    padding: 12px 0;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    position: relative;
    z-index: 999;
}

/* ===== PC HEADER ===== */
.pc-header {
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.header-top {
    padding: 15px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    flex-shrink: 0;
}

.site-logo {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

/* Search Bar in PC Header */
.search-box {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 15px;
    background: var(--light);
    transition: all 0.3s;
    color: var(--dark);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 18px;
}

/* Support Icon */
.support-icon {
    background: #25D366;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    flex-shrink: 0;
}

.support-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-login:hover {
    background: #e8e8e8;
    border-color: #cccccc;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #0ca678;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
}

/* User Menu */
.user-menu {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.user-avatar:hover {
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 1001;
    border: 1px solid var(--border);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-item {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border-bottom: 1px solid var(--light);
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item i {
    width: 20px;
    color: var(--gray);
}

/* ===== MOBILE HEADER ===== */
.mobile-header {
    display: none;
    background: #ffffff;
    padding: 15px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.mobile-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

/* ===== FLOATING NAVIGATION BAR ===== */
.floating-nav {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 20px;
    padding: 8px 12px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: slideUpFloatingNav 0.5s ease-out;
}

@keyframes slideUpFloatingNav {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.floating-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2px;
}

.floating-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gray);
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s;
    flex: 1;
    min-width: 0;
}

.floating-nav-btn.active {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

.floating-nav-btn i {
    font-size: 18px;
    margin-bottom: 4px;
}

.floating-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

.floating-nav-btn:hover {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 25px 0 80px;
    min-height: calc(100vh - 200px);
}

/* ===== STORES PAGE ===== */
.stores-page {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stores-page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.stores-page-title i {
    color: var(--primary);
}

.stores-grid-page {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .stores-grid-page {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stores-grid-page {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .stores-grid-page {
        grid-template-columns: 1fr;
    }
}

.store-card-page {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.store-card-page:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.store-card-page-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow);
}

.store-card-page-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-card-page-id {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    font-family: monospace;
}

.store-card-page-status {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto;
}

.store-card-page-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-card-page-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== STORE VIEW HEADER ===== */
.store-view-header {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.store-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

@media (max-width: 768px) {
    .store-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

.store-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.store-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow);
}

.store-info {
    flex: 1;
    min-width: 0;
}

.store-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.store-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-badge {
    background: var(--primary);
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
}

.store-status.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-status.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.store-status i {
    font-size: 8px;
}

.store-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-item {
    background: var(--light);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--border);
}

.meta-item-content {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary);
}

.store-description {
    color: var(--gray);
    line-height: 1.6;
    margin-top: 12px;
    font-size: 14px;
}

/* ===== FEATURED STORES ===== */
.featured-stores {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--primary);
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.store-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.store-card-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    border: 3px solid #ffffff;
    box-shadow: var(--shadow);
}

.store-card-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-card-badge {
    background: var(--primary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 400px;
    position: relative;
}

@media (max-width: 768px) {
    .product-card {
        height: 160px;
        flex-direction: row;
        border-radius: 10px;
        position: relative;
    }
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Fixed Product Image Container */
.product-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .product-image {
        width: 140px;
        height: 160px;
        flex-shrink: 0;
        border-radius: 10px 0 0 10px;
    }
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-sold {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Product Type Badge */
.product-type-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 1;
}

/* Product ID Badge with Copy Button */
.product-id-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.product-id-badge:hover {
    background: rgba(0,0,0,0.9);
    transform: scale(1.05);
}

.product-id-badge i {
    font-size: 10px;
    opacity: 0.9;
}

.product-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .product-content {
        width: calc(100% - 140px);
        padding: 8px 10px 8px 8px;
        justify-content: space-between;
        position: relative;
    }
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--dark);
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .product-name {
        font-size: 14px;
        height: 38px;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        max-width: 90%;
    }
}

.product-price-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .product-price-row {
        margin-bottom: 4px;
        max-width: 90%;
    }
}

.price-bdt {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 768px) {
    .price-bdt {
        font-size: 15px;
    }
}

.price-usd {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 2px;
}

/* Store Row with Badge */
.product-store-row {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

@media (max-width: 768px) {
    .product-store-row {
        margin-bottom: 4px;
        padding-bottom: 4px;
        max-width: 90%;
    }
}

.store-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.store-link:hover {
    color: var(--primary);
}

.store-link img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .store-link img {
        width: 18px;
        height: 18px;
    }
}

.store-link-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .store-link-text {
        font-size: 11px;
    }
}

/* Store Badge in Product Card */
.store-badge-small {
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .store-badge-small {
        font-size: 8px;
        padding: 2px 5px;
    }
}

.store-badge-small.verified {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.store-badge-small.premium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.store-badge-small.regular {
    background: rgba(107, 114, 128, 0.1);
    color: var(--gray);
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Payment Type Badge */
.payment-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.payment-type-badge.cod {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.payment-type-badge.online {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.payment-type-badge i {
    font-size: 10px;
}

/* Guest Badge */
.guest-badge {
    background: #8b5cf620;
    color: #8b5cf6;
    border: 1px solid #8b5cf640;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Buy Button - Desktop */
.buy-btn {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    box-shadow: var(--shadow);
}

/* Buy Button - Mobile (Circular on right side) */
@media (max-width: 768px) {
    .product-card {
        position: relative;
        overflow: visible;
    }
    
    .buy-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
        margin: 0;
        font-size: 0;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        z-index: 5;
        border: 2px solid white;
        min-width: 44px;
        max-width: 44px;
        flex-shrink: 0;
    }
    
    .buy-btn i {
        font-size: 18px;
        margin: 0;
    }
    
    .buy-btn:hover {
        transform: translateY(-50%) scale(1.1);
        background: var(--secondary);
    }
    
    /* Adjust product content to make space for circular button */
    .product-content {
        padding-right: 55px;
    }
    
    /* For free product button */
    .buy-btn[style*="background: #10b981"] {
        background: #10b981 !important;
    }
    
    .buy-btn[style*="background: #10b981"]:hover {
        background: #0ca678 !important;
    }
    
    /* For disabled button */
    .buy-btn:disabled {
        background: #cccccc !important;
        cursor: not-allowed;
    }
    
    .buy-btn:disabled i {
        font-size: 16px;
    }
    
    /* Adjust for very small screens */
    @media (max-width: 380px) {
        .buy-btn {
            width: 40px;
            height: 40px;
            min-width: 40px;
            max-width: 40px;
            right: 5px;
        }
        
        .buy-btn i {
            font-size: 16px;
        }
        
        .product-content {
            padding-right: 48px;
        }
    }
}

.buy-btn:hover:not(:disabled) {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .buy-btn:hover:not(:disabled) {
        transform: translateY(-50%) scale(1.1);
    }
}

.buy-btn:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .buy-btn:disabled {
        transform: translateY(-50%);
    }
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-container {
    text-align: center;
    margin: 40px 0;
}

.load-more-btn {
    background: #ffffff;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 14px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
}

.load-more-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-item {
    list-style: none;
}

.page-link {
    display: block;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover {
    background: var(--light);
    border-color: var(--gray);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ===== NO PRODUCTS MESSAGE ===== */
.no-products {
    text-align: center;
    padding: 50px 30px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    grid-column: 1 / -1;
}

.no-products i {
    font-size: 60px;
    color: var(--border);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--dark);
}

.no-products p {
    color: var(--gray);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
}

/* ===== BACK BUTTON ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--dark);
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    font-size: 14px;
}

.back-btn:hover {
    background: var(--light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-5px);
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
    border: 1px solid var(--border);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-btn:hover {
    background: #e8e8e8;
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    background: #ffffff;
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
    background: #fafafa;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Address Example Box */
.address-example {
    background: #f0f8ff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    border-left: 3px solid var(--info);
    color: var(--dark);
}

.address-example strong {
    color: var(--info);
}

/* Payment Method Styles */
.payment-method-group {
    margin: 15px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    background: var(--light);
    border-color: var(--primary);
}

.payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.payment-option label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
}

.payment-option i {
    width: 24px;
    color: var(--primary);
}

.cod-message {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--success);
}

.cod-message i {
    color: var(--success);
    margin-right: 8px;
}

/* Product Info Box */
.product-info-box {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.product-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.product-price-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price-main {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.product-price-secondary {
    font-size: 14px;
    color: var(--gray);
    margin-top: 2px;
}

.product-type-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

.product-type-tag.physical {
    background: var(--primary);
    color: white;
}

.product-type-tag.digital {
    background: var(--gray);
    color: white;
}

/* Product URL Box */
.product-url-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ddd;
}

.product-url-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    font-family: monospace;
    outline: none;
}

.copy-url-btn {
    background: #000;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-url-btn:hover {
    background: #333;
}

/* Total Amount Box */
.total-amount-box {
    background: var(--light);
    padding: 18px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 18px;
}

/* Store Login Button */
.store-login-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    box-shadow: var(--shadow);
}

.store-login-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== NOTIFICATION STYLES ===== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid;
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.info {
    border-left-color: #3b82f6;
}

.notification i {
    font-size: 20px;
}

.notification.success i {
    color: #10b981;
}

.notification.error i {
    color: #ef4444;
}

.notification.info i {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 14px;
    color: #666;
}

.notification-close {
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s;
}

.notification-close:hover {
    color: #333;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== PRODUCT POPUP MODAL ===== */
.product-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.product-popup-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: popupZoomIn 0.4s ease;
}

@keyframes popupZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-popup-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.product-popup-header h3 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-popup-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.product-popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.product-popup-body {
    padding: 24px;
}

.product-id-display {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 12px;
}

.product-id-display .id-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-id-display .id-value {
    font-size: 24px;
    font-weight: bold;
    font-family: monospace;
    color: #000;
    letter-spacing: 1px;
}

.product-preview-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px 0;
}

.product-preview-mini img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.product-preview-mini .info {
    flex: 1;
}

.product-preview-mini .name {
    font-weight: 600;
    margin-bottom: 5px;
}

.product-preview-mini .price {
    color: #000;
    font-weight: 700;
}

/* ===== ALERT STYLES ===== */
.alert {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 2001;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* ===== BADGE STYLES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.unpaid {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .pc-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }
    
    .main-content {
        padding: 15px 0 80px;
    }
    
    .store-view-header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .stores-page {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .stores-page-title {
        font-size: 22px;
    }
    
    .featured-stores {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .load-more-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .back-btn {
        margin-bottom: 15px;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .floating-nav {
        bottom: 10px;
        width: 95%;
        padding: 6px 10px;
        border-radius: 18px;
    }
    
    .floating-nav-btn {
        padding: 6px 10px;
    }
    
    .floating-nav-btn i {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .floating-nav-btn span {
        font-size: 9px;
    }
    
    .notification {
        min-width: 250px;
        max-width: 300px;
        padding: 12px 15px;
    }
}

@media (min-width: 769px) {
    .mobile-header {
        display: none !important;
    }
    
    .pc-header {
        display: block;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    .product-card {
        height: 150px;
    }
    
    .product-image {
        width: 120px;
        height: 150px;
    }
    
    .product-content {
        width: calc(100% - 120px);
        padding: 6px 48px 6px 8px;
    }
    
    .product-name {
        font-size: 13px;
        height: 36px;
        max-width: 100%;
    }
    
    .price-bdt {
        font-size: 14px;
    }
    
    .price-usd {
        font-size: 10px;
    }
    
    .store-link {
        font-size: 10px;
    }
    
    .store-link img {
        width: 16px;
        height: 16px;
    }
    
    .floating-nav-btn i {
        font-size: 14px;
    }
    
    .floating-nav-btn span {
        font-size: 8px;
    }
    
    .buy-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        right: 5px;
    }
    
    .buy-btn i {
        font-size: 16px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}