:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color: #213547;
  background-color: #ffffff;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3 {
  margin-top: 0;
}.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  z-index: 100;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  color: #333;
}

.search-bar button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
}

.search-bar button:hover {
  color: #222;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-login:hover {
  background-color: #f5f5f5;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-link {
  color: #c53030;
  text-decoration: none;
  font-weight: 600;
  margin-right: 1rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid #c53030;
  border-radius: 4px;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.admin-link:hover {
  background-color: #c53030;
  color: white;
}

.user-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  position: relative;
}

.user-dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  /* Removed margin-top to close the gap */
  padding-top: 0.5rem;
  background-color: transparent;
  /* Wrapper is transparent */
  min-width: 200px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.1s;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-size: 0.95rem;
  text-align: left;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-divider {
  height: 1px;
  background-color: #eee;
  margin: 0;
}

.cart-icon {
  position: relative;
  cursor: pointer;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #e53e3e;
  color: white;
  font-size: 0.75rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content-wrapper {
  display: flex;
  flex: 1;
  padding: 2rem;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.category-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.category-list li {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  color: #555;
}

.category-list li:hover,
.category-list li.active {
  background-color: #e9ecef;
  color: #222;
  font-weight: 500;
}

.page-content {
  flex: 1;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: #222;
}

/* Sidebar Subcategories */
.category-item-container {
  display: flex;
  flex-direction: column;
}

.category-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  color: #555;
}

.category-main:hover,
.category-main.active {
  background-color: #e9ecef;
  color: #222;
  font-weight: 500;
}

.category-name {
  flex: 1;
}

.toggle-icon {
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.toggle-icon:hover {
  color: #555;
}

.subcategory-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f1f3f5;
  /* Slightly darker than sidebar for contrast */
  border-radius: 4px;
  overflow: hidden;
}

.subcategory-list li {
  padding: 0.5rem 1rem 0.5rem 2rem;
  /* Indented */
  font-size: 0.9rem;
  color: #666;
  border-radius: 0;
}

.subcategory-list li:hover,
.subcategory-list li.active-sub {
  background-color: #e2e6ea;
  color: #222;
  font-weight: 500;
}

/* Home Page Layout */
.home-container {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.home-content {
  flex: 1;
  width: 100%;
  /* Ensure it takes full width when needed */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main-content-wrapper {
    padding: 1rem;
    flex-direction: column;
  }

  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .home-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 1rem;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sort-select {
    width: 100%;
  }
}/* Product Card */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    width: 100%;
    height: 250px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.product-title {
    font-size: 1rem;
    margin: 0.25rem 0 0.5rem;
    font-weight: 600;
    line-height: 1.4;
    flex: 1;
    /* Pushes bottom down */
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 0.5rem;
}

.review-count {
    font-size: 0.75rem;
    color: #888;
    margin-left: 4px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #222;
}

.btn-add-cart {
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-add-cart:hover {
    background-color: #444;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    border-color: #222;
    color: #222;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9f9f9;
}

/* Detail Page */
.product-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.btn-back {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    color: #666;
    padding: 0;
}

.btn-back:hover {
    color: #222;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.breadcrumbs span:hover {
    text-decoration: underline;
    color: #000;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 500px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 4px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    background: #fff;
    padding: 4px;
    opacity: 0.7;
    transition: all 0.2s;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: #222;
    opacity: 1;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.detail-image-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-image-wrapper>img {
    width: 100%;
    border-radius: 8px;
    background: #f4f4f4;
}

.additional-images {
    display: flex;
    gap: 1rem;
}

.additional-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.additional-images img:hover {
    opacity: 1;
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-tag {
    color: #888;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.detail-info .price {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin: 1rem 0 2rem;
}

.detail-info .description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.btn-add-cart-large {
    background-color: #e53e3e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    justify-content: center;
}

.btn-add-cart-large:hover {
    background-color: #c53030;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-info h1 {
        font-size: 1.75rem;
    }

    .detail-info .price {
        font-size: 1.5rem;
        margin: 0.5rem 0 1.5rem;
    }

    /* Reviews Section */
    .reviews-section h3 {
        margin-bottom: 2rem;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

/* Reviews Section */
.reviews-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 1.5rem 0;
}

.review-item:first-child {
    padding-top: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.review-rating {
    margin-bottom: 0.75rem;
    display: flex;
    gap: 2px;
}

.review-comment {
    color: #555;
    line-height: 1.6;
}

.review-form-container {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.review-form-container h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.rating-input {
    margin-bottom: 1.5rem;
}

.rating-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.star-rating-select {
    display: flex;
    gap: 0.25rem;
}

.star-input:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.comment-input textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.comment-input textarea:focus {
    outline: none;
    border-color: #222;
}

.btn-submit-review {
    background-color: #222;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-submit-review:hover {
    background-color: #444;
}

.review-login-prompt {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: #666;
}.cart-container {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-container h1 {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: #f4f4f4;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-details h3 {
    margin: 0;
    font-size: 1.1rem;
}

.cart-item-category {
    color: #888;
    font-size: 0.85rem;
}

.cart-item-price {
    font-weight: 600;
    color: #222;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.btn-qty {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: background 0.1s;
}

.btn-qty:hover:not(:disabled) {
    background-color: #e9ecef;
}

.btn-qty:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-value {
    padding: 0 0.8rem;
    font-weight: 500;
    min-width: 2rem;
    text-align: center;
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-remove:hover {
    color: #e53e3e;
    background-color: #fff5f5;
}

/* Summary Box */
.cart-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #555;
}

.summary-divider {
    height: 1px;
    background-color: #e2e8f0;
    margin: 1rem 0;
}

.summary-row.total {
    font-weight: 700;
    color: #222;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-checkout {
    width: 100%;
    background-color: #222;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background-color: #444;
}

/* Empty State */
.cart-empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.cart-empty-container h2 {
    margin-bottom: 0.5rem;
}

.btn-continue {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    text-decoration: none;
    color: white;
    background: #222;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .cart-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cart-item-image {
        width: 100%;
        height: 200px;
    }

    .cart-item-details {
        width: 100%;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .btn-qty {
        width: 40px;
        height: 40px;
    }

    .cart-container h1 {
        font-size: 1.5rem;
    }
}.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-box {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #222;
    outline: none;
}

.btn-auth {
    width: 100%;
    background-color: #222;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 1.5rem;
}

.btn-auth:hover {
    background-color: #444;
}

.auth-link {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.auth-link a {
    color: #222;
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.auth-error {
    background-color: #fee2e2;
    color: #c53030;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}/* Existing styles */
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0 3rem 0;
    width: 100%;
}

.step-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 1rem;
    color: #999;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    /* Ensure z-index works */
    z-index: 2;
}

.step-title {
    font-weight: 500;
    font-size: 0.9rem;
    display: none;
}

@media (min-width: 768px) {
    .step-title {
        display: block;
        background-color: #fff;
        position: relative;
        z-index: 5;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-left: -0.5rem;
        /* Pull back to cover the gap */
        border-radius: 4px;
    }
}

.step-line {
    position: absolute;
    right: -50%;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 2px;
    background-color: #f0f0f0;
    z-index: -1;
    /* Place behind everything */
}

/* Active State */
.step-item.active {
    color: #222;
}

.step-item.active .step-icon {
    background-color: #222;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Completed State */
.step-item.completed {
    color: #065f46;
}

.step-item.completed .step-icon {
    background-color: #d1fae5;
    color: #065f46;
}

.step-item.completed .step-line {
    background-color: #d1fae5;
}

/* Checkout Page Layout */
.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem 4rem 1rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.guest-option-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.checkout-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: white;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-back:hover {
    background-color: #f9fafb;
}

.btn-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: #059669;
    /* Green for go */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-next:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Shipping & Payment Options */
.options-grid {
    display: grid;
    gap: 1rem;
}

.option-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.option-card:hover {
    border-color: #059669;
    background-color: #f0fdf4;
}

.option-card.selected {
    border-color: #059669;
    background-color: #f0fdf4;
    box-shadow: 0 0 0 1px #059669;
}

.option-radio {
    margin-right: 1rem;
    accent-color: #059669;
    width: 1.2rem;
    height: 1.2rem;
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    border-radius: 6px;
    margin-right: 1rem;
    color: #4b5563;
}

.option-card.selected .option-icon {
    background-color: #d1fae5;
    color: #065f46;
}

.option-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.option-price {
    font-weight: 600;
    color: #059669;
}

/* Order Summary Box */
.order-summary-box {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.25rem;
    color: #111;
    margin-top: 1rem;
    margin-bottom: 0;
}

.summary-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1rem 0;
}/* Summary Page Specific */
.summary-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.summary-section {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 6px;
}

.summary-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.summary-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.summary-item-name {
    font-weight: 500;
}

.summary-item-quantity {
    font-size: 0.85rem;
    color: #6b7280;
}

.summary-item-price {
    font-weight: 600;
    color: #059669;
}

.info-box {
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.6;
}

.btn-confirm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-confirm:hover {
    background-color: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Success Page */
.success-page {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 2rem;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    color: #059669;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.order-number {
    background-color: #f0fdf4;
    border: 1px solid #d1fae5;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.success-info {
    color: #6b7280;
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-home,
.btn-orders {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-home {
    background-color: #059669;
    color: white;
}

.btn-home:hover {
    background-color: #047857;
}

.btn-orders {
    background-color: white;
    color: #059669;
    border: 1px solid #059669;
}

.btn-orders:hover {
    background-color: #f0fdf4;
}.admin-container {
    display: flex;
    min-height: calc(100vh - 80px);
    /* Adjust based on navbar height */
}

.admin-sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    flex-shrink: 0;
}

.admin-sidebar h2 {
    color: #ecf0f1;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.admin-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-sidebar nav a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-sidebar nav a:hover {
    background-color: #34495e;
    color: white;
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background-color: #f5f6fa;
    overflow-y: auto;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* Table Styles for Management Pages */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    margin-right: 0.5rem;
    padding: 0.25rem;
    border-radius: 4px;
}

.action-btn.edit {
    color: #3498db;
}

.action-btn.delete {
    color: #e74c3c;
}

.action-btn:hover {
    background-color: #eee;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-add {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Category Manager */
.admin-cat-item {
    background: white;
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-sub-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    border-top: 1px solid #eee;
}

.admin-sub-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0 0.5rem 2rem;
    border-bottom: 1px solid #f9f9f9;
    color: #555;
    font-size: 0.9rem;
}

.admin-sub-item:last-child {
    border-bottom: none;
}/* App specific styles can go here if needed, keeping it clean for now */
.app-container {
  min-height: 100vh;
  padding-top: 80px;
  /* Space for fixed navbar */
}