
/* Global base styles */
body {
    /* Set the body to take full width but constrain it for mobile views */
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f2f2f2;
    font-family: Arial, sans-serif;
    color: #333;
}
a {
    color: #333;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
/* Container centers the content and gives it a narrow width */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
}
.logo {
    display: block;
    height: 40px;
    margin: 0 auto 10px auto;
}
/* Advertisement bar */
.advertisement {
    background-color: #ffffff;
    text-align: center;
    padding: 5px;
    margin: 10px 0;
    font-size: 0.8rem;
    color: #888;
    border-radius: 4px;
}
/* Navigation bar: vertical stack of buttons */
.nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin-bottom: 10px;
}
.nav a {
    background-color: #f7f7f7;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}
.nav a:hover {
    background-color: #e1e1e1;
}
/* Product list: each card stacked vertically */
.product-card {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}
.product-card img {
    width: 100%;
    display: block;
}
.product-card h3 {
    font-size: 0.95rem;
    margin: 8px 8px 4px 8px;
}
.product-card .price {
    font-size: 0.9rem;
    color: #e74c3c;
    margin: 0 8px 8px 8px;
    font-weight: bold;
}
.product-card .btn {
    display: block;
    text-align: center;
    background-color: #3498db;
    color: #fff;
    padding: 8px;
    margin: 0 8px 8px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.product-card .btn:hover {
    background-color: #2980b9;
}
/* Pagination links */
.pagination {
    text-align: center;
    margin: 15px 0;
    font-size: 0.9rem;
}
.pagination a {
    margin: 0 5px;
    color: #3498db;
}
.pagination strong {
    margin: 0 5px;
}
/* Product detail page */
.product-detail {
    margin-bottom: 20px;
}
.product-detail h1 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-align: center;
}
.product-detail img {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}
.product-detail .price {
    font-size: 1rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}
.rating {
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-align: center;
    color: #f39c12;
}
.options {
    margin-bottom: 10px;
}
.options label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.options select,
.options input[type="number"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 15px;
}
.actions .btn {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}
.actions .buy {
    background-color: #27ae60;
}
.actions .buy:hover {
    background-color: #1e8449;
}
/* Lists in product details */
.product-detail ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.product-detail h3 {
    font-size: 0.95rem;
    margin-bottom: 5px;
}
/* Back link */
.back-link {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Summary box for cart and checkout */
.summary-box {
    margin: 10px 0;
    font-size: 0.85rem;
    width: 100%;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}
.summary-row.total {
    font-weight: bold;
}
.summary-box .label {
    color: #333;
}
.summary-box .value {
    color: #333;
}

/* Item added message */
.item-added {
    font-size: 0.85rem;
    margin: 5px 0;
    color: #333;
}

/* Checkout form fields */
.checkout-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}
.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
/* Checkout button */
.checkout-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.9rem;
}
.checkout-btn:hover {
    background-color: #1e8449;
}

/* Footer links section */
.footer-links {
    text-align: center;
    font-size: 0.8rem;
    margin: 15px 0;
    color: #555;
}
/* Each link in the footer appears on its own line */
.footer-links p {
    margin: 4px 0;
}
.footer-links a {
    color: #3498db;
    text-decoration: none;
}
.footer-links a:hover {
    text-decoration: underline;
}
/* Footer informational text */
.footer-info {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #555;
}

/* Reviews section */
.reviews {
    margin-bottom: 20px;
}
.review {
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 0.85rem;
}
.review:last-child {
    border-bottom: none;
}
.review-rating {
    color: #f39c12;
    font-size: 0.9rem;
}
.review-name {
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 2px;
}

/* Enhanced customer reviews widget */
.customer-reviews {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    margin-top: 20px;
    background-color: #fafafa;
}
.customer-reviews h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}
.customer-reviews .review {
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    font-size: 0.85rem;
}
.customer-reviews .review:last-child {
    border-bottom: none;
}
.customer-reviews .review-rating {
    color: #f39c12;
    font-size: 0.9rem;
}
.customer-reviews .review-name {
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 2px;
}
.customer-reviews .review-form {
    margin-top: 10px;
}
.customer-reviews .rate-label {
    font-size: 0.9rem;
    margin-bottom: 4px;
    display: block;
}
.customer-reviews .rate-stars {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 6px;
}
.customer-reviews textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 60px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    box-sizing: border-box;
}
.customer-reviews .submit-review-btn {
    background-color: #27ae60;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9rem;
    width: 100%;
    cursor: pointer;
}
.customer-reviews .submit-review-btn:hover {
    background-color: #1e8449;
}
.customer-reviews .review-pagination {
    text-align: center;
    margin-top: 10px;
}
.customer-reviews .review-pagination .page {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #333;
}
.customer-reviews .review-pagination .active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}
  
footer.site-footer {
  text-align: center;
  padding: 15px 0;
  background-color: #fff;
  border-top: 1px solid #ddd;
  font-size: 14px;
  color: #555;
}

footer.site-footer .footer-menu {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
}

footer.site-footer .footer-menu li {
  margin: 6px 0;
}

footer.site-footer a {
  text-decoration: none;
}

footer.site-footer a:hover,
footer.site-footer a:focus {
  text-decoration: underline;
  outline: none;
}

footer.site-footer .footer-info {
  margin-top: 12px;
  font-size: 13px;
}



