/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #0066cc;
}

.btn {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn:hover {
    background: #0055aa;
}

/* Header Styles */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

.cart-count {
    background: #ff5500;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

/* Hero Section */
.hero {
    background: #0066cc;
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

/* Category Sections */
.category-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.category-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h3 {
    padding: 10px 15px;
    font-size: 16px;
}

.product-card p {
    padding: 0 15px 10px;
    font-weight: bold;
    color: #0066cc;
}

.product-card .btn {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
    text-align: center;
}

.view-all {
    display: block;
    text-align: center;
    margin-top: 20px;
}

/* Cart Page */
.cart-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-items th, .cart-items td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-items th {
    background: #f5f5f5;
}

.cart-items img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: fit-content;
}

.cart-summary h2 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="radio"] {
    margin-right: 10px;
}

#cart-totals p {
    margin: 10px 0;
}

#cart-totals .total {
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
}

/* Checkout Page */
.checkout-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.order-summary, .payment-method {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.order-summary h2, .payment-method h2 {
    margin-bottom: 20px;
}

.payment-method input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* Product Page */
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-image {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.product-details {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-details h1 {
    margin-bottom: 15px;
    color: #0066cc;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    color: #0066cc;
}

.product-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.add-to-cart-form {
    margin-top: 30px;
}

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

.quantity-selector input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}

/* Login & Register Forms */
.auth-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.auth-form h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #0066cc;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-submit {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.admin-nav a {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 4px;
}

.admin-nav a.active {
    background: #0066cc;
    color: white;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 10px;
    color: #666;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.product-form, .user-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.product-form h2, .user-form h2 {
    margin-bottom: 20px;
}

.product-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.product-list table, .user-list table, .order-list table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-list th, .user-list th, .order-list th,
.product-list td, .user-list td, .order-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.product-list th, .user-list th, .order-list th {
    background: #f5f5f5;
}

.product-list img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.btn.edit {
    background: #009900;
}

.btn.delete {
    background: #cc0000;
}

.btn.cancel {
    background: #666;
    margin-left: 10px;
}

.message {
    padding: 10px 15px;
    margin-bottom: 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
}

/* Order Complete Page */
.order-complete {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.order-complete h1 {
    color: #0066cc;
    margin-bottom: 20px;
}

.order-complete p {
    margin-bottom: 15px;
}

.whatsapp-btn {
    background: #25D366;
    margin: 20px 0;
}

.whatsapp-btn:hover {
    background: #1da851;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-container, .checkout-container, .product-page {
        grid-template-columns: 1fr;
    }
    
    .admin-stats {
        grid-template-columns: 1fr;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
    }
}
/* Bid Page Styles */
.bid-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.bid-product {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bid-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.bid-info {
    margin: 20px 0;
}

.bid-info div {
    margin-bottom: 10px;
}

.bid-status .active {
    color: #009900;
}

.bid-status .completed {
    color: #cc0000;
}

.bid-status .pending {
    color: #666;
}

.bid-form {
    margin-top: 30px;
}

.bid-form .error {
    color: #cc0000;
    margin-bottom: 15px;
}

.bid-history {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Bids Page */
.bids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.bid-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bid-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.bid-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.bid-card p {
    margin-bottom: 8px;
    color: #666;
}

.bid-card .btn {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

/* Admin Auction Styles */
.auction-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.auction-form h2 {
    margin-bottom: 20px;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.status-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}

.status-actions .btn.active {
    background: #0066cc;
}
/* Groups Page Styles */
.groups-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.group-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom: 3px solid #0066cc;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.group-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.group-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
}

.group-price {
    margin: 10px 0;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discount {
    color: #009900;
    font-weight: bold;
}

.group-progress {
    margin: 15px 0;
}

.progress-bar-container {
    height: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 5px;
}

.progress-bar {
    height: 100%;
    background: #0066cc;
    border-radius: 5px;
}

.group-time {
    margin: 10px 0;
    color: #666;
}

/* Group Page Styles */
.group-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.group-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.group-image img {
    width: 100%;
    border-radius: 8px;
}

.price-comparison {
    margin: 20px 0;
}

.price-comparison div {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    max-width: 300px;
}

.group-actions {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #1da851;
}

.group-description {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.group-comments {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.comment-form {
    margin-bottom: 30px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comments-list {
    margin-top: 20px;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

.username {
    font-weight: bold;
    color: #333;
}

/* Admin Group Styles */
.group-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.group-form .form-group {
    margin-bottom: 15px;
}

.group-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.group-form input[type="text"],
.group-form input[type="number"],
.group-form select,
.group-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.group-list table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.group-list th, .group-list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.group-list th {
    background: #f5f5f5;
}
.status-scheduled { color: #ff9800; font-weight: bold; }
.status-active { color: #4caf50; font-weight: bold; }
.status-ended { color: #f44336; font-weight: bold; }
/* Payment Gateway Styles */
.payment-gateway-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.payment-gateway-info h4 {
    color: #0066cc;
    margin-bottom: 10px;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.payment-methods img {
    height: 30px;
    width: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

.gateway-btn {
    background: #0066cc;
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.gateway-btn:hover {
    background: #0055aa;
}

/* Payment Options Layout */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background: white;
    transition: all 0.3s ease;
}
* Delivery Selection Styles */
.delivery-selection {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.delivery-selection h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.delivery-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    transition: all 0.3s ease;
}

.delivery-option:hover {
    border-color: #0066cc;
}

.delivery-label {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.delivery-label input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.delivery-info {
    flex: 1;
}

.delivery-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.delivery-info p {
    margin: 2px 0;
    color: #666;
    font-size: 14px;
}

.delivery-charge {
    color: #0066cc !important;
    font-weight: bold;
}

/* Selected delivery option */
.delivery-option input[type="radio"]:checked + .delivery-info {
    color: #0066cc;
}

.delivery-option input[type="radio"]:checked ~ .delivery-info h4 {
    color: #0066cc;
}

.delivery-option input[type="radio"]:checked {
    accent-color: #0066cc;
}

/* Update button */
.update-btn {
    background: #0066cc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.update-btn:hover {
    background: #0055aa;
}

.update-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Order Details */
.order-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.order-details h3 {
    margin-bottom: 10px;
    color: #333;
}

.order-details p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.order-details .total {
    font-size: 18px;
    font-weight: bold;
    color: #0066cc;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 15px;
}

/* Payment Icons */
.payment-icon {
    font-size: 24px;
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .delivery-label {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .delivery-label input[type="radio"] {
        margin-bottom: 10px;
    }
    
    .payment-options {
        gap: 15px;
    }
}

.payment-option:hover {
    border-color: #0066cc;
    box-shadow: 0 2px 10px rgba(0,102,204,0.1);
}