/* E-commerce Flow Styles */
:root {
  --color-primary: #caa25d; /* Gold */
  --color-background: #f8f3ea; /* Beige */
  --color-text: #333333;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
}
.btn:hover {
  background-color: #b08d51;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(202, 162, 93, 0.4);
}

/* Collections List */
.page-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 40px;
  margin: 40px 0;
}
.collection-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}
.collection-card-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 350px;
}
.collection-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.collection-card-image-wrap:hover .collection-card-image {
  transform: scale(1.05);
}
.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
  color: #fff;
}
.collection-card-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 15px;
}

/* Single Collection */
.collection-banner {
  height: 300px;
  background-color: #222;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.collection-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.collection-banner-content {
  position: relative;
  z-index: 1;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.1);
}
.wishlist-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.product-card-info {
  padding: 20px;
  text-align: center;
}
.product-card-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
}
.product-card-title a {
  text-decoration: none;
  color: inherit;
}
.product-card-price {
  margin-bottom: 15px;
}
.price {
  color: var(--color-primary);
  font-weight: 600;
}
.compare-price {
  color: #999;
  font-size: 0.9em;
  margin-left: 8px;
}
.btn-quick-add {
  width: 100%;
  padding: 10px;
  font-size: 14px;
}

/* Product Details */
.product-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 60px 0;
}
.main-product-image {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.product-thumbnails {
  display: flex;
  gap: 15px;
}
.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbnail:hover {
  border-color: var(--color-primary);
}
.product-title {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 15px;
}
.product-price-wrapper {
  font-size: 24px;
  margin-bottom: 30px;
}
.product-compare-price {
  color: #999;
  font-size: 18px;
  margin-left: 10px;
}
.product-variants {
  margin-bottom: 20px;
}
.variant-option {
  margin-bottom: 15px;
}
.variant-option label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.variant-option select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}
.product-quantity {
  margin-bottom: 30px;
}
.product-quantity label {
  display: block;
  margin-bottom: 5px;
}
.product-quantity input {
  width: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}
.btn-buy-now {
  background-color: #222;
}
.btn-buy-now:hover {
  background-color: #000;
  box-shadow: none;
}
.product-description {
  line-height: 1.8;
  color: #555;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.active {
  right: 0;
}
.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}
.cart-drawer-header h2 {
  font-family: var(--font-heading);
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}
.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}
.cart-item-details {
  flex: 1;
}
.cart-item-title-row {
  display: flex;
  justify-content: space-between;
}
.cart-item-title {
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text);
}
.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 20px;
}
.cart-item-variant {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}
.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 20px;
  overflow: hidden;
}
.cart-item-qty button {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
}
.cart-item-qty input {
  width: 30px;
  text-align: center;
  border: none;
  pointer-events: none;
}
.cart-item-price {
  font-weight: 600;
  color: var(--color-primary);
}
.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  background: #fafafa;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.cart-taxes {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin-bottom: 15px;
}
.btn-checkout {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

/* Responsive */
@media (max-width: 992px) {
  .collection-list-grid, .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-details-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .collection-list-grid, .product-grid {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}
