/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Navbar */
header {
    background: #385163;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 30px;
}

header h2 { font-size: 24px; }

header a {
    color: white;
    text-decoration: none;
    background: #dc3545;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    transition: 0.3s;
}

header a:hover { background: #bd2130; }

/* Logo Styles */
.logo-container { display: flex; align-items: center; }
.site-logo { max-height: 60px; max-width: 200px; object-fit: contain; display: block; }
.default-logo-text { font-size: 24px; font-weight: bold; color: white; }

/* Forms & Inputs */
input, textarea, select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

/* Login/Registration Page Styles */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #e9ecef;
    padding: 40px 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 480px;
}

.auth-box h2 { text-align: center; margin-bottom: 20px; color: #0056b3; }
.btn-login { background: #0056b3; color: white; }
.btn-login:hover { background: #004085; }
.btn-register { background: #28a745; color: white; margin-top: 10px; }
.btn-register:hover { background: #218838; }

/* Horizontal Product List Layout */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.product-card-horizontal {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    display: flex;
    align-items: center; 
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-horizontal:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-img-box {
    width: 150px;
    min-width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.product-details-horizontal {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-details-horizontal h3 { font-size: 20px; color: #111; margin-bottom: 8px; }
.product-details-horizontal .desc { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 15px; }

.product-meta-horizontal {
    display: flex;
    gap: 25px;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.product-meta-horizontal .price { color: #d9534f; font-weight: bold; font-size: 18px; }
.product-meta-horizontal .moq { background: #e9ecef; color: #333; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; }

/* Admin Panel Tables & Panels */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

th, td { padding: 12px 15px; text-align: left; font-size: 14px; white-space: nowrap; }
th { background-color: #343a40; color: white; }
tr:nth-child(even) { background-color: #f2f2f2; }

/* ==========================================================================
    অ্যাডমিন প্যানেলের টেবিলের শেষের কলাম (Actions) ডেক্সটপে ডানপাশে নেওয়ার জন্য 
   ========================================================================== */
@media (min-width: 769px) {
    .table-responsive table th:last-child, 
    .table-responsive table td:last-child {
        text-align: right;
        padding-right: 25px;
    }
}

.btn-approve {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    display: inline-block;
}
.btn-approve:hover { background: #218838; }

.admin-form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.table-link {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
}
.table-link:hover { text-decoration: underline; }

/* ==========================================================================
    Floating WhatsApp Button Design
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;  
    background-color: #25D366; 
    color: #ffffff !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999; 
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1); 
    background-color: #128C7E; 
}

/* ==========================================================================
    Responsive Media Queries (মোবাইল ও রেসপন্সিভ ফিক্স)
   ========================================================================== */
@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    .product-img-box {
        width: 100px;
        min-width: 100px;
        height: 100px;
    }
    .product-details-horizontal {
        padding: 12px;
    }
    .product-details-horizontal h3 {
        font-size: 16px;
    }
    .product-meta-horizontal .price {
        font-size: 15px;
    }
}