/* Shop Styles */
.shop-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  text-align: center;
}

.shop-hero h1 {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-size: 36px;
  color: #4a90e2;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-hero p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

.shop-content {
  background: #fff;
  padding: 60px 0;
}

.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.shop-filters {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.shop-filters h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 20px;
  color: #213;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group h4 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 16px;
  color: #213;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
}

.filter-option span {
  font-size: 14px;
  color: #666;
}

.shop-main {
  min-height: 600px;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e0e0;
}

.shop-header h2 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 24px;
  color: #213;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sort-options select {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #213;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #e0e0e0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 16px;
  color: #213;
  margin: 0 0 12px;
  line-height: 1.4;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: #4a90e2;
  margin: 0 0 16px;
}

.add-to-cart-btn {
  width: 100%;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 8px;
}

.add-to-cart-btn:hover {
  background: #357abd;
}

.view-product-btn {
  display: block;
  text-align: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s;
}

.view-product-btn:hover {
  background: #f8f9fa;
  color: #213;
}

/* Cart Styles */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.cart-header h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 20px;
  color: #213;
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
}

/* Visible larger close icon across all pages */
.close-cart{
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-cart::before{
  content: '×';
  font-size: 28px;
  line-height: 1;
  color: #333;
}
.close-cart:hover::before{
  color: #000;
}

.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  margin-right: 12px;
  border-radius: 6px;
  overflow: hidden;
}

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

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #213;
  margin: 0 0 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 14px;
  color: #4a90e2;
  font-weight: 700;
  margin: 0;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.quantity-btn {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
}

.quantity-input {
  width: 40px;
  text-align: center;
  border: 1px solid #e0e0e0;
  border-left: none;
  border-right: none;
  height: 24px;
  font-size: 12px;
}

.remove-item {
  background: #ff4444;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  margin-left: 8px;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  background: #f8f9fa;
}

.cart-total {
  font-size: 18px;
  margin-bottom: 16px;
  text-align: center;
}

.checkout-btn {
  width: 100%;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
}

.checkout-btn:hover {
  background: #357abd;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .shop-hero {
    padding: 60px 0;
  }
  
  .shop-hero h1 {
    font-size: 28px;
  }
  
  .shop-hero p {
    font-size: 16px;
  }
  
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .shop-filters {
    position: static;
    order: 2;
  }
  
  .shop-main {
    order: 1;
  }
  
  .shop-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  
  .product-info h3 {
    font-size: 15px;
  }
  
  .product-price {
    font-size: 16px;
  }
}

/* Product Page Styles */
.product-hero {
  background: #f8f9fa;
  padding: 20px 0;
}

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

.breadcrumb a {
  color: #4a90e2;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.product-detail {
  background: #fff;
  padding: 60px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  background: #f8f9fa;
}

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

.product-info h1 {
  font-family: "Merriweather", serif;
  font-weight: 900;
  font-size: 32px;
  color: #213;
  margin: 0 0 16px;
  line-height: 1.3;
}

.product-info .product-price {
  font-size: 24px;
  font-weight: 700;
  color: #4a90e2;
  margin: 0 0 32px;
}

.product-description {
  margin-bottom: 40px;
}

.product-description h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  font-size: 20px;
  color: #213;
  margin: 0 0 16px;
}

.product-description p {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
  margin: 0 0 16px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.product-features li {
  font-size: 16px;
  color: #213;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-actions {
  border-top: 2px solid #e0e0e0;
  padding-top: 32px;
}

.quantity-selector {
  margin-bottom: 24px;
}

.quantity-selector label {
  display: block;
  font-weight: 700;
  color: #213;
  margin-bottom: 8px;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
}

.quantity-controls button {
  background: #f8f9fa;
  border: 2px solid #e0e0e0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  color: #213;
}

.quantity-controls button:hover {
  background: #e0e0e0;
}

.quantity-controls input {
  width: 80px;
  text-align: center;
  border: 2px solid #e0e0e0;
  border-left: none;
  border-right: none;
  height: 40px;
  font-size: 16px;
  font-weight: 700;
}

.product-actions .add-to-cart-btn {
  width: 100%;
  background: #4a90e2;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 16px;
}

.product-actions .add-to-cart-btn:hover {
  background: #357abd;
}

.back-to-shop {
  display: block;
  text-align: center;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s;
}

.back-to-shop:hover {
  background: #f8f9fa;
  color: #213;
}

/* Mobile Product Page Styles */
@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .product-gallery {
    position: static;
  }
  
  .main-image {
    height: 300px;
  }
  
  .product-info h1 {
    font-size: 24px;
  }
  
  .product-info .product-price {
    font-size: 20px;
  }
  
  .product-description h3 {
    font-size: 18px;
  }
  
  .product-description p {
    font-size: 15px;
  }
  
  .product-features li {
    font-size: 15px;
  }
}
.header-actions .cart{background:none;border:0;padding:6px;cursor:pointer;position:relative}

/* Cart Actions Layout */
.cart-actions {
  display: flex;
  gap: 12px;
}

.clear-cart-btn {
  flex: 1;
  background: #ff4444;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.3s;
}

.clear-cart-btn:hover {
  background: #cc3333;
}

.cart-actions .checkout-btn {
  flex: 2;
  margin-bottom: 0;
}

/* Mobile Cart Actions */
@media (max-width: 768px) {
  .cart-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .cart-actions .checkout-btn {
    flex: 1;
  }
}