/* Import theme styles */
@import "theme.css";

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  overflow-x: hidden;
  width: 100%;
}

/* Main Content Styles */
main {
  padding: 30px 0;
}

/* Banner Section */
.banner {
  width: 100%;
}

.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/pattern.png");
  opacity: 0.1;
}

.banner h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ef4444;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.btn:hover {
  background-color: #ef4444;
}

/* Section Styles */
section {
  margin-bottom: 40px;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-color);
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  text-align: center;
  padding: 30px 20px;
  color: var(--danger-color);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.error-message i {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

/* Product Card Styles - Enhanced */
.product-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  min-height: 280px;
  padding-bottom: 10px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Force images to be properly contained within the card */
.product-card .product-image {
  width: 100%;
  flex: 0 0 auto;
  display: block !important;
  margin-bottom: 8px;
}

/* Additional fix for image display */
.product-card .product-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.product-card .product-image img {
  position: static !important;
  /* Remove absolute positioning */
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain; /* Add this line */
}

/* Override any conflicting styles */
.product-grid .product-card .product-image {
  flex: 0 0 auto;
  height: 180px !important;
}

/* Make sure links don't interfere with image display */
.product-card a {
  text-decoration: none;
  color: inherit;
}

.search-box:focus {
  outline: none !important;
  border-color: #aaa !important;
}

/* Special handling for placeholder images - updated */
.product-image img[src*="placeholder"] {
  object-fit: contain !important;
  padding: 20px;
  width: auto !important;
  height: auto !important;
  max-height: 80% !important;
  max-width: 80% !important;
  margin: auto !important;
}

/* Base product image styles - reusable across the site */
.product-image {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  height: 180px;
  width: 100%;
  margin-bottom: 8px;
}

/* Product grid/card specific overrides */
.product-card .product-image {
  flex: 0 0 auto;
  padding: 10px;
}

.product-card .product-details {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: 5px 12px 10px;
}

.product-card .product-title {
  margin-bottom: 8px;
  min-height: 48px;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.1rem;
}

.product-card .card-bottom {
  margin-top: auto;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Remove reviews from product cards in grid view */
.product-card .product-rating {
  display: none;
}

/* Compact pricing display */
.product-card .price-container {
  margin-top: 2.5rem;
  margin-bottom: 5px;
}

/* Product actions and buttons for wishlist and quick view */
.product-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: white;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, color 0.2s;
}

.action-button:hover {
  background-color: var(--primary-color);
  color: white;
}

.action-button.active {
  background-color: var(--accent-color);
  color: white;
}

/* Specific styles for wishlist button */
.wishlist-button.active i {
  color: white;
}

.wishlist-button:not(.active):hover i {
  color: white;
}

/* Touch device specific adjustments for product actions */
@media (hover: none) {
  .product-actions {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive adjustments for product cards */
@media screen and (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    min-height: 260px;
  }

  .product-card .product-image {
    height: 160px !important;
  }
}

/* Product badge (sale, new, etc.) */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ef4444;
  color: white;
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 4px;
  z-index: 2;
  font-weight: 500;
}

.badge-sale {
  background-color: #ef4444;
}

/* Product detail page specific styles */
.product-page .product-image {
  aspect-ratio: auto;
  height: auto;
  min-height: 400px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 20px;
}

.product-page .product-image img {
  max-height: 500px;
  object-fit: contain;
  /* Always use contain for product detail */
  width: auto;
  max-width: 100%;
}

/* Cart specific styles */
.cart-item .product-image,
.wishlist-item-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  margin-bottom: 0;
}

.cart-item .product-image img,
.wishlist-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .product-image {
    height: 180px !important;
  }
}

@media screen and (max-width: 480px) {
  .product-image-gallery .main-image {
    min-height: 250px;
  }

  .product-image-gallery .main-image img {
    max-height: 300px;
  }

  .product-thumbnails .thumbnail {
    width: 50px;
    height: 50px;
  }
}

/* Product details section layout */
.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 2rem 0;
  background-color: #fff;
  border-radius: 8px;
  padding: 2rem;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #333;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.product-meta span {
  color: #666;
  font-size: 0.9rem;
  background-color: #f7f7f7;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.product-rating i {
  color: #f8c123;
}

.product-rating span {
  color: #666;
  margin-left: 0.5rem;
}

.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
}

.product-options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.purchase-options {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 1rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background: #e9e9e9;
}

#product-quantity {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
}

.product-page .add-to-cart-btn,
.product-page .add-to-wishlist-btn {
  padding: 10px 20px;
  margin-right: 10px;
  display: inline-flex;
  width: auto;
  margin-top: 15px;
}

/* Product Tabs */
.product-tabs {
  margin-bottom: 40px;
}

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

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-pane {
  display: none;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--box-shadow);
}

.tab-pane.active {
  display: block;
}

/* Reviews Section */
.reviews-container {
  margin-bottom: 30px;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-date {
  color: #999;
  font-size: 0.9rem;
}

.review-rating {
  margin-bottom: 10px;
  color: var(--warning-color);
}

.review-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.review-content {
  line-height: 1.5;
  color: #555;
}

/* Additional Responsive Styles for Search and Wishlist */
@media screen and (max-width: 992px) {
  .search-grid {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-sidebar {
    order: 2;
    margin-top: 1.5rem;
  }

  .search-content {
    order: 1;
  }

  .search-controls {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .results-count-display {
    order: 1;
    width: 100%;
  }

  .search-sort {
    order: 2;
    flex: 1;
  }

  .view-options {
    order: 3;
  }

  .product-list-item {
    flex-direction: column;
  }

  .product-list-image {
    width: 100%;
    height: 200px;
  }

  .product-image {
    height: 180px !important;
  }

  .product-image img {
    max-height: 180px !important;
  }

  .product-card {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: 480px) {
  .search-results-section {
    padding: 2rem 0;
  }

  .filter-section {
    padding: 1rem;
  }

  .product-image {
    height: 140px !important;
  }

  .product-image img {
    max-height: 140px !important;
  }

  .product-page .product-image {
    height: 300px;
  }

  .product-page .product-details {
    grid-template-columns: 1fr;
  }
}

/* Wishlist Responsive Styles */
@media screen and (max-width: 992px) {
  .wishlist-items {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .wishlist-item {
    padding: 1.2rem;
  }
}

@media screen and (max-width: 768px) {
  .wishlist-section {
    padding: 3rem 0;
  }

  .wishlist-items {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
  }

  .wishlist-item-image {
    height: 160px;
    margin-bottom: 1rem;
  }

  .wishlist-item-name {
    font-size: 1.1rem;
  }

  .original-price {
    font-size: 0.9rem;
  }

  .empty-wishlist h2 {
    font-size: 1.8rem;
  }

  .empty-wishlist p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .wishlist-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .wishlist-item {
    padding: 1rem;
  }

  .wishlist-item-name {
    font-size: 1rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .wishlist-item-actions {
    padding-top: 1rem;
  }

  .add-to-cart-btn,
  .remove-wishlist-btn {
    height: 38px;
  }

  .add-to-cart-btn {
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .wishlist-section {
    padding: 2rem 0;
  }

  .wishlist-items {
    grid-template-columns: 1fr;
  }

  .empty-icon {
    font-size: 4rem;
  }

  .empty-wishlist h2 {
    font-size: 1.6rem;
  }

  .empty-wishlist p {
    font-size: 0.95rem;
  }
}

/* Wishlist Page Styles */
.wishlist-section {
  padding: 2rem 0;
}

.wishlist-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wishlist-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wishlist-summary-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.wishlist-total-items,
.wishlist-total-price strong {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.wishlist-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1rem;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wishlist-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-item-image {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f9;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
}

.wishlist-item-image img {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f9;
  border-radius: 8px;
  overflow: hidden;
  padding: 12px;
}

.wishlist-item:hover .wishlist-item-image img {
  transform: scale(1.05);
}

.wishlist-item-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.wishlist-item-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9rem;
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.wishlist-item-actions button {
  cursor: pointer;
}

.add-to-cart-btn {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.remove-wishlist-btn {
  background: none;
  border: none;
  color: #888;
  font-size: 1rem;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.remove-wishlist-btn:hover {
  color: #ff4a2b;
}

.empty-wishlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.empty-icon {
  font-size: 3rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.empty-wishlist h2 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.empty-wishlist p {
  margin-bottom: 1.5rem;
  color: #666;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .wishlist-item {
    grid-template-columns: 80px 1fr;
  }

  .wishlist-item-actions {
    grid-column: span 2;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
  }

  .wishlist-summary-content {
    flex-direction: column;
    align-items: flex-start;
  }

  #add-all-to-cart {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 480px) {
  .wishlist-item-image {
    width: 70px;
    height: 70px;
  }

  .wishlist-item-name {
    font-size: 0.9rem;
  }
}

/* Cart Page Styles */
.cart-section {
  padding: 2rem 0;
}

.cart-container {
  margin-bottom: 2rem;
}

.cart-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.cart-header-item {
  padding: 0 0.5rem;
}

.cart-item-list {
  border: 1px solid #eee;
  border-top: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-image {
  border-radius: 4px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  font-weight: 500;
}

.item-price,
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  font-size: 0.9rem;
}

.quantity-btn:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

.quantity-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
}

.remove-item:hover {
  color: #e74c3c;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.cart-coupon input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 180px;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #e9e9e9;
}

/* Cart Summary Styles */
.cart-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.cart-summary h2 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  border-top: 1px solid #ddd;
  border-bottom: none;
  margin-top: 1rem;
  padding-top: 1rem;
}

@media (min-width: 992px) {
  .cart-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
  }

  .cart-container {
    grid-column: 1;
  }

  .cart-summary {
    grid-column: 2;
    margin-top: 0;
    position: sticky;
    top: 100px;
  }
}

/* Recommended Products Styles */

.recommended-products h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
}

@media screen and (max-width: 480px) {
}

/* Additional Cart Styles */

.checkout-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.checkout-btn:hover {
  background-color: #ef4444;
}

.cart-empty {
  text-align: center;
  padding: 30px 20px;
}

.cart-empty i {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 15px;
}

.cart-empty p {
  margin-bottom: 20px;
  color: #666;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color, #ef4444);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark, #ef4444);
}

/* Responsive Cart Item Styles */
@media (max-width: 768px) {
  .cart-header {
    grid-template-columns: 3fr 1fr 1fr 0.5fr;
  }

  .cart-header-item.price-col {
    display: none;
  }

  .cart-item {
    grid-template-columns: 3fr 1fr 1fr 0.5fr;
  }

  .item-price {
    display: none;
  }

  .cart-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-coupon,
  .cart-coupon input {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .cart-header {
    grid-template-columns: 2fr 1fr 0.5fr;
  }

  .cart-header-item.quantity-col {
    display: none;
  }

  .cart-item {
    grid-template-columns: 2fr 1fr 0.5fr;
    gap: 0.5rem;
  }

  .quantity-selector {
    display: none;
  }

  .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .product-image {
    width: 60px;
    height: 60px;
  }

  .shipping-option label {
    font-size: 0.9rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  /* High z-index to appear above everything */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  width: 400px;
  max-width: 90%;
  position: relative;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close:hover {
  color: #333;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-color);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.google-btn:hover {
  background-color: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

/* Create placeholder background for empty images */
img[src$="placeholder.png"]:before {
  content: "\f03e";
  /* FontAwesome image icon */
  font-family: "Font Awesome 5 Free";
  font-size: 2rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
}

.category-image img[src="assets/images/placeholder.png"] {
  background-color: #f0f0f0;
  position: relative;
}

.category-image img[src="assets/images/placeholder.png"]::after {
  content: "\f03e";
  /* FontAwesome image icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Promotions Banner */
.promotions-banner {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.promotions-banner.hidden {
  display: none;
}

.promotions-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.promotion-slide {
  display: none;
  padding: 0 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

.promotion-slide.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promotion-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.banner-image {
  flex: 0 0 300px;
  height: 100px;
  overflow: hidden;
  border-radius: 4px;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promotion-text {
  flex: 1;
  margin-right: 2rem;
}

.promotion-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.promotion-text p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.discount-badge {
  display: inline-block;
  background-color: var(--accent-color, #ef4444);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
}

.promotion-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.promotion-code code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

.promotion-timer {
  text-align: right;
  min-width: 200px;
}

.promotion-timer span {
  display: block;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}

.countdown {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  font-family: monospace;
}

.countdown span {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  min-width: 2rem;
  text-align: center;
}

.banner-link:hover {
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for promotions banner */
@media (max-width: 768px) {
  .promotion-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .banner-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .promotion-text {
    margin-right: 0;
  }

  .promotion-timer {
    text-align: center;
    margin-top: 1rem;
  }

  .countdown {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .promotions-banner {
    padding: 0.5rem 0;
  }

  .promotion-slide {
    padding: 0 1rem;
  }

  .promotion-text h2 {
    font-size: 1.2rem;
  }

  .countdown {
    font-size: 0.9rem;
  }

  .countdown span {
    min-width: 1.5rem;
    padding: 0.15rem 0.3rem;
  }
}

.promotion-wrapper {
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  padding: 1rem;
}

.promotion-wrapper:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

.promotion-wrapper:active {
  transform: translateY(0);
}

.promotion-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.promotion-content::after {
  content: "\f105";
  /* FontAwesome arrow right icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.promotion-wrapper:hover .promotion-content::after {
  opacity: 1;
  transform: translateX(5px);
}

/* Highlight animation for sections */
.highlight-section {
  animation: highlight-pulse 1s ease;
}

@keyframes highlight-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(0, 123, 255, 0.2);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
  }
}

/* Order Confirmation Styles */
.order-confirmation {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirmation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.confirmation-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.confirmation-header p {
  color: #666;
  font-size: 1.1rem;
}

.order-details,
.order-details h2,
.shipping-details h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: #666;
  font-weight: 500;
}

.info-row .value {
  color: #333;
  font-weight: 600;
}

.order-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.order-actions .btn-primary,
.order-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 2rem;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  z-index: 1000;
  animation: slideIn 0.3s ease-out;
}

.notification.info {
  background-color: #ef4444;
}

.notification.success {
  background-color: #4caf50;
}

.notification.error {
  background-color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Stock Indicator */
.product-stock {
  margin: 5px 0;
  font-size: 0.85rem;
}

.stock-indicator {
  font-size: 0.9rem;
  margin: 8px 0;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.stock-indicator.in-stock {
  background-color: #e6f4ea;
  color: #1e7e34;
}

.stock-indicator.out-of-stock {
  background-color: #f8d7da;
  color: #ef4444;
}

/* Product gallery styles */

.product-image-gallery .main-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  margin-bottom: 15px;
}

.product-image-gallery .main-image img {
  max-height: 500px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

.product-thumbnails .thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.product-thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails .thumbnail:hover {
  opacity: 0.9;
}

.product-thumbnails .thumbnail.active {
  border-color: var(--primary-color, #4a90e2);
  opacity: 1;
}

/* Responsive gallery adjustments */
@media screen and (max-width: 768px) {
  .product-image-gallery .main-image {
    min-height: 300px;
  }

  .product-image-gallery .main-image img {
    max-height: 350px;
  }

  .product-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 480px) {
  .product-image-gallery .main-image {
    min-height: 250px;
  }

  .product-image-gallery .main-image img {
    max-height: 300px;
  }

  .product-thumbnails .thumbnail {
    width: 50px;
    height: 50px;
  }
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #333;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.product-meta span {
  color: #666;
  font-size: 0.9rem;
  background-color: #f7f7f7;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.product-rating i {
  color: #f8c123;
}

.product-rating span {
  color: #666;
  margin-left: 0.5rem;
}

.product-options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.purchase-options {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 1rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background: #e9e9e9;
}

#product-quantity {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
}

.product-page .add-to-cart-btn,
.product-page .add-to-wishlist-btn {
  padding: 10px 20px;
  margin-right: 10px;
  display: inline-flex;
  width: auto;
  margin-top: 15px;
}

/* Product Tabs */
.product-tabs {
  margin-bottom: 40px;
}

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

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.tab-btn.active {
  border-bottom-color: var(--primary-color);
  color: var(--primary-color);
}

.tab-pane {
  display: none;
  padding: 20px;
  background: #fff;
  border-radius: 4px;
  box-shadow: var(--box-shadow);
}

.tab-pane.active {
  display: block;
}

/* Reviews Section */
.reviews-container {
  margin-bottom: 30px;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-date {
  color: #999;
  font-size: 0.9rem;
}

.review-rating {
  margin-bottom: 10px;
  color: var(--warning-color);
}

.review-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.review-content {
  line-height: 1.5;
  color: #555;
}

/* Additional Responsive Styles for Search and Wishlist */
@media screen and (max-width: 992px) {
  .search-grid {
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-sidebar {
    order: 2;
    margin-top: 1.5rem;
  }

  .search-content {
    order: 1;
  }

  .search-controls {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .results-count-display {
    order: 1;
    width: 100%;
  }

  .search-sort {
    order: 2;
    flex: 1;
  }

  .view-options {
    order: 3;
  }

  .product-list-item {
    flex-direction: column;
  }

  .product-list-image {
    width: 100%;
    height: 200px;
  }

  .product-image {
    height: 180px !important;
  }

  .product-image img {
    max-height: 180px !important;
  }
}

@media screen and (max-width: 480px) {
  .search-results-section {
    padding: 2rem 0;
  }

  .filter-section {
    padding: 1rem;
  }

  .product-image {
    height: 140px !important;
  }

  .product-image img {
    max-height: 140px !important;
  }

  .product-page .product-image {
    height: 300px;
  }

  /* Wishlist Responsive Styles */
  @media screen and (max-width: 992px) {
    .wishlist-items {
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 1.5rem;
    }

    .wishlist-item {
      padding: 1.2rem;
    }
  }

  @media screen and (max-width: 768px) {
    .wishlist-section {
      padding: 3rem 0;
    }

    .wishlist-items {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 1.25rem;
    }

    .wishlist-item-name {
      font-size: 1.1rem;
    }

    .original-price {
      font-size: 0.9rem;
    }

    .empty-wishlist h2 {
      font-size: 1.8rem;
    }

    .empty-wishlist p {
      font-size: 1rem;
    }
  }

  @media screen and (max-width: 576px) {
    .wishlist-items {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }

    .wishlist-item {
      padding: 1rem;
    }

    .wishlist-item-name {
      font-size: 1rem;
      -webkit-line-clamp: 1;
      line-clamp: 1;
    }

    .wishlist-item-actions {
      padding-top: 1rem;
    }

    .add-to-cart-btn,
    .remove-wishlist-btn {
      height: 38px;
    }

    .add-to-cart-btn {
      font-size: 0.9rem;
    }
  }

  @media screen and (max-width: 480px) {
    .wishlist-section {
      padding: 2rem 0;
    }

    .wishlist-items {
      grid-template-columns: 1fr;
    }

    .empty-icon {
      font-size: 4rem;
    }

    .empty-wishlist h2 {
      font-size: 1.6rem;
    }

    .empty-wishlist p {
      font-size: 0.95rem;
    }
  }

  /* Wishlist Page Styles */
  .wishlist-section {
    padding: 2rem 0;
  }

  .wishlist-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .wishlist-summary {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }

  .wishlist-summary-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .wishlist-total-items,
  .wishlist-total-price strong {
    color: var(--primary-color);
    font-size: 1.2rem;
  }

  .wishlist-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .wishlist-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 1rem;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .wishlist-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .wishlist-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
  }

  .wishlist-item-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .original-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
  }

  .wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }

  .wishlist-item-actions button {
    cursor: pointer;
  }

  .add-to-cart-btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  .remove-wishlist-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.2s ease;
  }

  .remove-wishlist-btn:hover {
    color: #ff4a2b;
  }

  .empty-wishlist {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
  }

  .empty-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
  }

  .empty-wishlist h2 {
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .empty-wishlist p {
    margin-bottom: 1.5rem;
    color: #666;
  }

  .hidden {
    display: none;
  }

  @media (max-width: 768px) {
    .wishlist-item {
      grid-template-columns: 80px 1fr;
    }

    .wishlist-item-actions {
      grid-column: span 2;
      flex-direction: row;
      justify-content: space-between;
      width: 100%;
      margin-top: 1rem;
    }

    .wishlist-summary-content {
      flex-direction: column;
      align-items: flex-start;
    }

    #add-all-to-cart {
      width: 100%;
      margin-top: 0.5rem;
    }
  }

  .wishlist-item-name {
    font-size: 0.9rem;
  }
}

/* Cart Page Styles */
.cart-section {
  padding: 2rem 0;
}

.cart-container {
  margin-bottom: 2rem;
}

.cart-header {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
}

.cart-header-item {
  padding: 0 0.5rem;
}

.cart-item-list {
  border: 1px solid #eee;
  border-top: none;
}

.cart-item {
  display: grid;
  grid-template-columns: 3fr 1fr 1fr 1fr 0.5fr;
  padding: 1rem;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.product-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-image {
  border-radius: 4px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  font-weight: 500;
}

.item-price,
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: fit-content;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #777;
  font-size: 0.9rem;
}

.quantity-btn:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
}

.quantity-input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  text-align: center;
  font-size: 0.9rem;
}

.remove-item:hover {
  color: #e74c3c;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem 0;
  border-top: 1px solid #eee;
}

.cart-coupon input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 180px;
}

.btn-secondary {
  padding: 0.5rem 1rem;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background-color: #e9e9e9;
}

/* Cart Summary Styles */
.cart-summary {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.cart-summary h2 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.summary-row.total {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  border-top: 1px solid #ddd;
  border-bottom: none;
  margin-top: 1rem;
  padding-top: 1rem;
}

@media (min-width: 992px) {
  .cart-section {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
  }

  .cart-container {
    grid-column: 1;
  }

  .cart-summary {
    grid-column: 2;
    margin-top: 0;
    position: sticky;
    top: 100px;
  }
}

/* Recommended Products Styles */

.recommended-products h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
}

@media (max-width: 768px) {
}

@media screen and (max-width: 480px) {
}

/* Additional Cart Styles */

.cart-empty {
  text-align: center;
  padding: 30px 20px;
}

.cart-empty i {
  font-size: 40px;
  color: #ccc;
  margin-bottom: 15px;
}

.cart-empty p {
  margin-bottom: 20px;
  color: #666;
}

.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color, #ef4444);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-dark, #ef4444);
}

/* Responsive Cart Item Styles */
@media (max-width: 768px) {
  .cart-header {
    grid-template-columns: 3fr 1fr 1fr 0.5fr;
  }

  .cart-header-item.price-col {
    display: none;
  }

  .cart-item {
    grid-template-columns: 3fr 1fr 1fr 0.5fr;
  }

  .item-price {
    display: none;
  }

  .cart-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .cart-coupon,
  .cart-coupon input {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .cart-header {
    grid-template-columns: 2fr 1fr 0.5fr;
  }

  .cart-header-item.quantity-col {
    display: none;
  }

  .cart-item {
    grid-template-columns: 2fr 1fr 0.5fr;
    gap: 0.5rem;
  }

  .quantity-selector {
    display: none;
  }

  .product-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .product-image {
    width: 60px;
    height: 60px;
  }

  .shipping-option label {
    font-size: 0.9rem;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  /* High z-index to appear above everything */
  justify-content: center;
  align-items: center;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 30px;
  width: 400px;
  max-width: 90%;
  position: relative;
  animation: fadeIn 0.3s;
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-color);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 15px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;
}

.google-btn:hover {
  background-color: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-btn img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

/* Mobile responsiveness for modal */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

/* Create placeholder background for empty images */
img[src$="placeholder.png"]:before {
  content: "\f03e";
  /* FontAwesome image icon */
  font-family: "Font Awesome 5 Free";
  font-size: 2rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
}

.category-image img[src="assets/images/placeholder.png"] {
  background-color: #f0f0f0;
  position: relative;
}

.category-image img[src="assets/images/placeholder.png"]::after {
  content: "\f03e";
  /* FontAwesome image icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 2rem;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.promotion-slide {
  display: none;
  padding: 0 2rem;
  animation: fadeIn 0.5s ease-in-out;
}

.promotion-slide.active {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promotion-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.promotion-text {
  flex: 1;
  margin-right: 2rem;
}

.promotion-text h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.promotion-text p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.discount-badge {
  display: inline-block;
  background-color: var(--accent-color, #ef4444);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
}

.promotion-code {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.promotion-code code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

/* Responsive styles for promotions banner */
@media (max-width: 768px) {
  .promotion-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .promotion-text {
    margin-right: 0;
  }
}

.promotion-slide {
  padding: 0 1rem;
}

.promotion-text h2 {
  font-size: 1.2rem;
}

.promotion-wrapper {
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
  padding: 1rem;
}

.promotion-wrapper:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.1);
}

.promotion-wrapper:active {
  transform: translateY(0);
}

.promotion-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  position: relative;
}

.promotion-content::after {
  content: "\f105";
  /* FontAwesome arrow right icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 1rem;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.promotion-wrapper:hover .promotion-content::after {
  opacity: 1;
  transform: translateX(5px);
}

/* Highlight animation for sections */
.highlight-section {
  animation: highlight-pulse 1s ease;
}

/* Order Confirmation Styles */
.order-confirmation {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.confirmation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  font-size: 4rem;
  color: #ef4444;
  margin-bottom: 1rem;
}

.confirmation-header h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.confirmation-header p {
  color: #666;
  font-size: 1.1rem;
}

.order-details,
.order-details h2,
.shipping-details h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: #666;
  font-weight: 500;
}

.info-row .value {
  color: #333;
  font-weight: 600;
}

.order-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.order-actions .btn-primary,
.order-actions .btn-secondary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Product gallery styles */

.product-image-gallery .main-image {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  margin-bottom: 15px;
}

.product-image-gallery .main-image img {
  max-height: 500px;
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

.product-thumbnails .thumbnail {
  width: 70px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.product-thumbnails .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbnails .thumbnail:hover {
  opacity: 0.9;
}

.product-thumbnails .thumbnail.active {
  border-color: var(--primary-color, #4a90e2);
  opacity: 1;
}

/* Responsive gallery adjustments */
@media screen and (max-width: 768px) {
  .product-image-gallery .main-image {
    min-height: 300px;
  }

  .product-image-gallery .main-image img {
    max-height: 350px;
  }

  .product-thumbnails .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media screen and (max-width: 480px) {
  .product-image-gallery .main-image {
    min-height: 250px;
  }

  .product-image-gallery .main-image img {
    max-height: 300px;
  }

  .product-thumbnails .thumbnail {
    width: 50px;
    height: 50px;
  }
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.3;
  color: #333;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.product-meta span {
  color: #666;
  font-size: 0.9rem;
  background-color: #f7f7f7;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.product-rating i {
  color: #f8c123;
}

.product-rating span {
  color: #666;
  margin-left: 0.5rem;
}

.product-options-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}

.purchase-options {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 1rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.quantity-btn:hover {
  background: #e9e9e9;
}

#product-quantity {
  width: 50px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
}

.action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.add-to-cart-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
  background-color: #ef4444;
}

.add-to-wishlist-btn {
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.add-to-wishlist-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}

.product-description {
  margin-top: 2rem;
  line-height: 1.7;
  color: #555;
  border-top: 1px solid #f0f0f0;
  padding-top: 1.5rem;
}

@media screen and (max-width: 992px) {
  .product-details {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .product-details {
    padding: 1rem;
  }

  .action-buttons {
    flex-direction: column;
  }

  .product-info h1 {
    font-size: 1.5rem;
  }

  .product-price {
    font-size: 1.5rem;
  }
}

/* Account Page Styles */
.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.account-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.account-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

@media (max-width: 768px) {
  .account-content {
    grid-template-columns: 1fr;
  }
}

/* Account Page Additional Styles */
#not-logged-in {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

#not-logged-in .fas {
  font-size: 48px;
  color: #ef4444;
  margin-bottom: 20px;
}

#not-logged-in p {
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  color: #666;
}

#login-redirect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
}

#login-redirect-btn .fab {
  margin-right: 10px;
}

#account-content-container {
  display: none;
}

#logout-btn,
#admin-link {
  display: none;
}

#no-addresses-message {
  display: none;
}

#add-address-btn {
  margin-top: 20px;
}

/* Account page specific styles */
#logout-btn,
#admin-link,
#no-addresses-message {
  display: none;
}

#add-address-btn {
  margin-top: 20px;
}

/* Account page additional styles */
.start-shopping-link,
#address-to-delete {
  font-size: 14px;
  margin-top: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 4px;
}

/* Enhanced Product Pricing Styles */

.regular-price {
  color: #666;
  text-decoration: line-through;
  font-size: 14px;
}

.discount-badge {
  display: inline-block;
  padding: 2px 6px;
  background-color: #ef4444;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.sign-in-prompt i {
  color: #ef4444;
}

.sign-in-prompt a {
  color: #ef4444;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.sign-in-prompt a:hover {
  text-decoration: underline;
}

/* Enhanced Sign-in Modal Styles */
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: #374151;
  font-size: 14px;
}

.benefits-list i {
  color: #ef4444;
  width: 20px;
  text-align: center;
}

.sign-in-header h2 {
  color: #333;
  margin-bottom: 16px;
}

.sign-in-header p {
  color: #666;
  font-size: 14px;
  margin-bottom: 8px;
}

.sign-in-btn:hover {
  background-color: #f8f9fa;
}

.sign-in-btn.google {
  border-color: #ef4444;
  color: #ef4444;
}

.sign-in-btn.google:hover {
  background-color: #f8f9fa;
}

.sign-in-btn img {
  width: 24px;
  height: 24px;
}

.sign-in-divider::before,
.sign-in-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.sign-in-divider span {
  padding: 0 12px;
}

.add-to-cart-btn.disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

.add-to-cart-btn.disabled:hover {
  background-color: #ccc;
  transform: none;
}

/* Subscribe Button Styles */
.subscribe-btn {
  padding: 0.75rem 1.5rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s, transform 0.1s;
  font-weight: 500;
}

.subscribe-btn:hover {
  background-color: #357abd;
  transform: translateY(-1px);
}

.subscribe-btn:active {
  transform: translateY(0);
}

.subscribe-btn i {
  font-size: 0.9rem;
}

/* Subscribe button in product cards */
.product-card .subscribe-btn {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Subscribe button in product detail page */
.product-page .subscribe-btn {
  padding: 10px 20px;
  margin-right: 10px;
  display: inline-flex;
  width: auto;
  margin-top: 15px;
}

/* Fulfillment Method Styles */
.fulfillment-group-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  margin: 20px 0 10px 0;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #dee2e6;
}

.fulfillment-group-header h3 {
  font-size: 18px;
  color: #333;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
}

.fulfillment-group-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Add icons for different fulfillment methods */
.fulfillment-group-header h3::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 10px;
  width: 24px;
  height: 24px;
  text-align: center;
  display: inline-block;
}

.fulfillment-group-header[data-method="CUSTOMER_PICKUP"] h3::before {
  content: "\f07a";
  /* shopping bag */
  color: #2196f3;
}

.fulfillment-group-header[data-method="SHIP_TO_STORE"] h3::before {
  content: "\f0d1";
  /* truck */
  color: #4caf50;
}

.fulfillment-group-header[data-method="STORE_DELIVERY"] h3::before {
  content: "\f0d1";
  /* truck */
  color: #ff9800;
}

.fulfillment-group-header[data-method="DROP_SHIP"] h3::before {
  content: "\f0d1";
  /* truck */
  color: #ff5722;
}

.fulfillment-group-header[data-method="UNAVAILABLE"] h3::before {
  content: "\f05e";
  /* ban */
  color: #f44336;
}

.fulfillment-group-items {
  margin-bottom: 30px;
  background-color: white;
  border-radius: 0 0 8px 8px;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Make each cart item in a group slightly different */
.fulfillment-group-items .cart-item {
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
  padding: 15px 10px;
  display: flex;
  align-items: center;
}

.fulfillment-group-items .cart-item:last-child {
  border-bottom: none;
}

/* Style adjustments for each fulfillment method */
.fulfillment-group-items[data-method="CUSTOMER_PICKUP"] {
  border-left: 4px solid #2196f3;
}

.fulfillment-group-items[data-method="SHIP_TO_STORE"] {
  border-left: 4px solid #4caf50;
}

.fulfillment-group-items[data-method="STORE_DELIVERY"] {
  border-left: 4px solid #ff9800;
}

.fulfillment-group-items[data-method="DROP_SHIP"] {
  border-left: 4px solid #ff5722;
}

.fulfillment-group-items[data-method="UNAVAILABLE"] {
  border-left: 4px solid #f44336;
  opacity: 0.8;
}

/* Logo and Location Container Styles */
.standard-logo {
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.standard-logo img {
  height: 75px;
  width: auto;
  margin: 0 auto;
}

.location-bar span {
  margin-left: 5px;
  color: #000;
}

.location-bar .city,
.location-bar .status {
  font-weight: bold;
  color: #000;
}

/* Store Info Container Styles */

.store-info {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 40px;
  padding: 0 20px;
}

.info-section {
  text-align: right;
}

.info-section h3 {
  color: #333;
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.info-section h3 i {
  color: #2196f3;
}

.info-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-section ul li {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
  line-height: 1.4;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
  position: relative;
}

.payment-modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 10px;
}

/* Checkout and Order Summary Styles */
.checkout-summary {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.order-items {
  margin-bottom: 20px;
}

.order-total {
  border-top: 1px solid #dee2e6;
  padding-top: 10px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.grand-total {
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid #dee2e6;
}

/* Order Method Group Styles */
.order-method-group {
  margin-bottom: 15px;
  border-left: 3px solid #e0e0e0;
  padding-left: 10px;
}

.order-method-group .method-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  padding-bottom: 4px;
  border-bottom: 1px solid #e0e0e0;
}

.order-method-group .method-items {
  margin-left: 10px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

/* Specific method colors for order groups */
.order-method-group[data-method="CUSTOMER_PICKUP"] {
  border-left-color: #2196f3;
}

.order-method-group[data-method="SHIP_TO_STORE"] {
  border-left-color: #4caf50;
}

.order-method-group[data-method="STORE_DELIVERY"] {
  border-left-color: #ff9800;
}

.order-method-group[data-method="DROP_SHIP"] {
  border-left-color: #ff5722;
}

.order-method-group[data-method="UNAVAILABLE"] {
  border-left-color: #f44336;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stripe Payment Element Styles */
#payment-element {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  z-index: 1001;
  animation: slideIn 0.3s ease-out;
}

.notification.info {
  background-color: #2196f3;
}

.notification.error {
  background-color: #f44336;
}

/* Cart UI Visibility Styles */
.cart-summary,
.cart-actions,
.cart-empty {
  display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .store-info {
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
  }

  .fulfillment-group-header {
    padding: 10px 15px;
  }

  .fulfillment-group-items {
    padding: 0 5px;
  }

  .fulfillment-group-items .cart-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 5px;
  }

  .cart-item-image {
    width: 100%;
    margin-bottom: 10px;
  }

  .cart-item-details {
    width: 100%;
  }

  .cart-item-total {
    width: 100%;
    text-align: right;
    margin-top: 10px;
  }

  .form-row {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 15px;
  }
}

/* Cart Sidebar Fulfillment Styles */
.sidebar-fulfillment-header {
  padding: 8px 12px;
  background-color: #f8f9fa;
  margin-top: 10px;
}

.sidebar-fulfillment-header h4 {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.sidebar-fulfillment-items {
  margin-bottom: 10px;
}

.sidebar-fulfillment-header.fulfillment-group-header {
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}

.cart-sidebar-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.cart-sidebar-item:last-child {
  border-bottom: none;
}

.cart-sidebar-item .cart-item-image {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.cart-sidebar-item .cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-sidebar-item .cart-item-details {
  flex: 1;
}

.cart-sidebar-item .cart-item-name {
  font-size: 0.9rem;
  margin: 0 0 5px 0;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-sidebar-item .cart-item-price {
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.cart-sidebar-item .sale-price {
  color: #ef4444;
  font-weight: 600;
}

.cart-sidebar-item .original-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.8rem;
  margin-left: 5px;
}

.cart-sidebar-item .cart-item-quantity {
  display: flex;
  align-items: center;
}

.cart-sidebar-item .quantity-decrease,
.cart-sidebar-item .quantity-increase {
  width: 22px;
  height: 22px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-sidebar-item .quantity-value {
  padding: 0 8px;
  font-size: 0.85rem;
}

.cart-sidebar-item .remove-cart-item {
  background: none;
  border: none;
  color: #999;
  padding: 5px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.8rem;
}

.cart-sidebar-item .remove-cart-item:hover {
  color: #ef4444;
}

/* Red Navigation Bar with Hamburger */

.hamburger-menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  margin-right: 18px;
  cursor: pointer;
  padding: 0;
  position: absolute;
  left: 20px;
}

.hamburger-menu span {
  display: block;
  width: 28px;
  height: 4px;
  background: #ffffff;
  margin: 3px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Quantity control layout */
.quantity-control {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  max-width: 120px;
}

.quantity-control .quantity-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.quantity-control .decrease {
  border-radius: 4px 0 0 4px;
}

.quantity-control .increase {
  border-radius: 0 4px 4px 0;
}

.quantity-control .quantity-input {
  width: 40px;
  height: 32px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 14px;
}

/* Update cart item layout */
.cart-item-controls {
  display: flex;
  flex-direction: row;
  gap: 10px;
}

@media (max-width: 768px) {
  .quantity-control {
    margin: 0 auto 10px;
  }
}

/* Payment Form Styles */

.search-container {
  flex: 1;
  margin: 0 20px;
}

.search-button {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

/* Store location bar */

/* Checkout progress */
.checkout-progress {
  display: flex;
  justify-content: center;
  background-color: #f5f5f5;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.progress-step {
  margin: 0 15px;
  padding: 5px 10px;
  color: #666;
  position: relative;
}

.progress-step.active {
  color: #000;
  font-weight: 500;
}

/* Payment form */
.main-container {
  display: flex;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.payment-section {
  flex: 1;
  padding: 20px;
}

.order-summary-section {
  flex: 1;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
  margin-left: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.order-summary {
  max-width: 500px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 500;
}

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

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

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.row {
  display: flex;
  gap: 15px;
}

.col {
  flex: 1;
}

/* Billing address */
.billing-address {
  margin-top: 30px;
}

/* Order summary */
.order-summary-item {
  display: flex;
  margin-bottom: 15px;
}

.item-image {
  width: 70px;
  height: 70px;
  background-color: #eee;
  border-radius: 4px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.item-image i {
  font-size: 30px;
  color: #999;
}

.item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.item-details {
  flex: 1;
}

.item-title {
  font-weight: 500;
  margin-bottom: 5px;
}

.item-quantity {
  color: #666;
  font-size: 14px;
}

.item-price {
  font-weight: 500;
  color: #ef4444;
}

.order-totals {
  margin-top: 20px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.order-total {
  font-size: 20px;
  font-weight: 700;
  margin-top: 15px;
  color: #333;
}

/* Submit button */
.btn-next {
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 20px;
  cursor: pointer;
  float: right;
  margin-top: 45px;
  transition: background-color 0.3s;
}

.btn-next:hover {
  background-color: #e02424;
}

/* Payment form error message */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border-left: 4px solid #c62828;
}

/* Responsive styles for payment form */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .order-summary-section {
    margin-left: 0;
    margin-top: 20px;
  }

  .row {
    flex-direction: column;
    gap: 10px;
  }
}

#order-items-container {
  margin-bottom: 15px;
}

.product-thumbnail {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Adjust responsive layout for order summary */
@media (max-width: 768px) {
  .order-summary-section {
    max-width: 100%;
  }

  .item-image {
    width: 60px;
    height: 60px;
  }

  .item-title {
    font-size: 14px;
  }
}

/* Account Lookup Page Styles */
.account-lookup-page {
  padding: 40px 0;
  background-color: #f9f9f9;
}

.account-lookup-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.account-lookup-form {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.account-lookup-form h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 24px;
  text-align: center;
}

.form-description {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 500;
}

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

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.form-feedback {
  display: none;
  margin-top: 5px;
  font-size: 14px;
}

.form-feedback.error {
  color: #dc3545;
  display: block;
}

.form-feedback.success {
  color: #28a745;
  display: block;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #dc2626;
}

.submit-btn.loading {
  position: relative;
  color: transparent;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background-color: #28a745;
  color: white;
}

.notification.error {
  background-color: #dc3545;
  color: white;
}

.back-to-login {
  text-align: center;
  margin-top: 20px;
}

.back-to-login a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.back-to-login a:hover {
  text-decoration: underline;
}

.wishlist-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.wishlist-loading .spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

.wishlist-loading p {
  color: #666;
  font-size: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.wishlist-loading.hidden {
  display: none !important;
}

button.stock-indicator.out-of-stock {
  border-color: #f8d7da;
  border: 1px solid #f8d7da;
}
