/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header and Navigation */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Container for Cart and Auth buttons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid white;
}

/* Auth Container Styles */
.auth-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-container button:hover {
    background-color: #0056b3;
}

#logout-button {
    background-color: #dc3545;
}

#logout-button:hover {
    background-color: #c82333;
}

/* --- Styles for Auth Controls Logout Button --- */
#auth-controls button {
    background-color: #e53935 !important; /* Bright red */
    color: #fff !important;
    border: none;
    padding: 12px 20px !important;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 24px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
    display: inline-block !important;
    position: relative !important;
    z-index: 2001 !important;
}
#auth-controls button:hover {
    background-color: #b71c1c !important;
}

/* Main Content */
main {
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Products Section */
.products {
    margin-top: 3rem;
}

.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.product-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-item h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-item .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
}

.product-item p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.product-item button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: #333;
    color: white;
}

/* --- NEW FEATURES: Category Bar, Discount Badge, Gallery Thumbnails, Star Ratings --- */

/* ------ Category Bar ------ */
.category-bar {
    display: flex;
    gap: 1.1rem;
    justify-content: center;
    margin: 2rem 0 2rem 0;
    flex-wrap: wrap;
    position: sticky;
    top: 70px;
    background: #fff;
    padding: 1rem 0 0.5rem 0;
    z-index: 900;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.category-bar button {
    background: #e9ecef;
    color: #007bff;
    border: none;
    border-radius: 16px;
    padding: 0.55rem 1.3rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-bottom: 0.5rem;
}
.category-bar button.active,
.category-bar button:hover {
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

/* ------ Discount Badge ------ */
.discount-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0d6efd;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.99em;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    letter-spacing: 0.03em;
    border: 1px solid #e9ecef;
}

/* ------ Product Images & Thumbnails (Gallery) ------ */
.product-item img.main-img {
    max-width: 90%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.7rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.09);
    transition: box-shadow 0.2s;
}

.product-thumbs {
    margin-top: 0.3rem;
}
.product-thumbs img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 4px;
    border: 2px solid #ddd;
    transition: border 0.2s, box-shadow 0.2s;
}
.product-thumbs img:hover, .product-thumbs img.selected {
    border: 2.5px solid #007bff;
    box-shadow: 0 2px 8px rgba(13,110,253,0.08);
}

/* ------ Star Ratings ------ */
/* Note: Interactive star rating styles (like .rating-stars, .rating-stars i.rated) are in shop.html <style> */
.stars {
    margin: 3px 0 8px 0;
    font-size: 1.18em;
    letter-spacing: 0.02em;
    display: inline-block;
    user-select: none;
}
.stars i.fas.fa-star,
.stars i.fas.fa-star-half-alt {
    color: #FFD700; /* Gold */
    text-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.stars i.far.fa-star {
    color: #ccc;
}
.stars span {
    font-size: 0.95em;
    margin-left: 0.12em;
    color: #555;
}

/* ------ Responsive (Mobile) ------ */
@media (max-width: 800px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 1.2rem;
    }
    .product-item {
        min-height: 320px;
        padding: 1rem 0.5rem 1.2rem 0.5rem;
    }
    .product-item img.main-img {
        height: 135px;
    }
    .category-bar {
        font-size: 0.97em;
        padding: 0.6rem 0 0.3rem 0;
        margin: 1rem 0 1rem 0;
    }
}
/* --- Add these styles to your existing css/shop-style.css file --- */

.verified-badge {
    display: inline-flex; /* Use flexbox for icon and text alignment */
    align-items: center;
    background-color: #3498db; /* A nice blue color */
    color: white;
    padding: 3px 8px;
    border-radius: 12px; /* Pill shape */
    font-size: 0.75em; /* Smaller text */
    font-weight: bold;
    margin-left: 8px; /* Space from seller name */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-badge i {
    margin-right: 5px; /* Space between icon and text */
    font-size: 1.1em; /* Slightly larger icon */
}

/* Base styling for all status badges */
.status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px; /* Pill shape */
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
  text-align: center;
  min-width: 80px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Success/Completed Statuses (Blue) */
.status-completed,
.status-paid,
.status-shipped,
.status-delivered {
  background-color: #2196F3; /* Bright Blue */
}

/* Pending Status (Orange) */
.status-pending_payment,
.status-processing { /* Assuming you might have a 'processing' status */
  background-color: #FF9800; /* Orange */
  color: #333; /* Dark text for contrast on bright background */
}

/* Failure/Cancellation Statuses (Red) */
.status-cancelled,
.status-refunded {
  background-color: #F44336; /* Red */
}

/* Unknown Status (Grey) */
.status-unknown {
  background-color: #9E9E9E; /* Grey */
}

/* Optional: Minor adjustment to order header for better status alignment */
.order-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
