* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

header nav a {
    color: white;
    font-weight: 500;
}

header nav a:hover {
    color: #3498db;
}

.breadcrumb {
    background-color: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
}

.breadcrumb a {
    color: #007bff;
    margin-right: 0.5rem;
}

.breadcrumb span {
    color: #666;
}

.categories {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.categories h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.categories ul {
    list-style: none;
}

.categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.categories li:last-child {
    border-bottom: none;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    flex: 1 1 calc(25% - 1.5rem);
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card a {
    color: inherit;
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.placeholder-img {
    font-size: 4rem;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    min-height: 2.5rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #2980b9;
}

/* Product Detail Page */
.product-detail {
    display: flex;
    gap: 3rem;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-large {
    flex: 1;
    max-width: 500px;
}

.placeholder-img-large {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 10rem;
}

.product-info {
    flex: 1;
}

.product-info h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price-large {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 2rem;
}

.product-description {
    margin-bottom: 2rem;
}

.product-description h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}


.product-description p {
    color: #555;
    margin-bottom: 1rem;
}

.add-to-cart-large {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-large:hover {
    background-color: #2980b9;
}

.product-gallery {
    margin-bottom: 1.5rem;
}

.main-swiper {
    width: 100%;
    max-width: 500px;
}

.main-swiper img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.main-swiper .swiper-button-prev,
.main-swiper .swiper-button-next {
    color: #ffffff; /* arrow color */
}

.main-swiper .swiper-pagination-bullet {
    background: #cccccc;
    opacity: 1;
}

.main-swiper .swiper-pagination-bullet-active {
    background: #3498db;
}

/* Status box styling (updated for both buttons) */
.user-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fa;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.user-status-box button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.user-status-box #login-btn {
  background: #28a745;   /* nice green */
  color: white;
}

.user-status-box #logout-btn {
  background: #dc3545;   /* red */
  color: white;
}

.user-status-box span#user-info {
  color: #000000 !important;  
  font-weight: 600;           
}