/* ================= RESET & ROOT VARIABLES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-black: #0a0a0a;
  --secondary-black: #1a1a1a;
  --accent-gold: #c9a96e;
  --text-gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--primary-black);
  background: var(--light-gray);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.navbar.scroll-down {
  transform: translateY(-100%);
}

.navbar.scroll-up {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 80px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 250px;
  width: auto;
  transition: var(--transition);
}

.logo-img:hover {
  transform: scale(1.05);
}

.nav-icons {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-icon {
  position: relative;
  color: var(--primary-black);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.nav-icon:hover,
.nav-icon.active {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
}

/* ================= CART SECTION ================= */
.cart-section {
  flex: 1;
  padding: 140px 40px 80px;
}

.cart-container {
  max-width: 1400px;
  margin: 0 auto;
}

.cart-header {
  text-align: center;
  margin-bottom: 50px;
}

.cart-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-black);
}

.cart-subtitle {
  font-size: 16px;
  color: var(--text-gray);
}

.item-count {
  font-weight: 600;
  color: var(--accent-gold);
}

/* ================= CART LAYOUT ================= */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}

/* ================= CART ITEMS ================= */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  background: var(--white);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-30px);
}

.cart-item.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.cart-item:hover {
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

@keyframes slideOut {
  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

/* Item Image */
.item-image {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light-gray);
}

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

/* Item Details */
.item-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.item-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 5px;
}

.item-size,
.item-color {
  font-size: 14px;
  color: var(--text-gray);
}

.item-size span,
.item-color span {
  font-weight: 600;
  color: var(--primary-black);
}

/* Item Quantity */
.item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light-gray);
  padding: 8px 12px;
  border-radius: 10px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--white);
  color: var(--primary-black);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.qty-btn:hover {
  background: var(--accent-gold);
  color: var(--white);
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-black);
  font-family: 'Inter', sans-serif;
}

/* Item Price */
.item-price {
  text-align: right;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* Remove Button */
.remove-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #ffe5e5;
  color: #ff4444;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.remove-btn:hover {
  background: #ff4444;
  color: var(--white);
  transform: scale(1.1);
}

/* ================= EMPTY CART ================= */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  background: var(--white);
  border-radius: 15px;
  text-align: center;
}

.empty-cart i {
  font-size: 80px;
  color: var(--light-gray);
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-black);
}

.empty-cart p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

/* ================= CART SUMMARY ================= */
.cart-summary {
  position: sticky;
  top: 120px;
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-summary.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.summary-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 25px;
  color: var(--primary-black);
}

.summary-details {
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 15px;
}

.summary-row span:first-child {
  color: var(--text-gray);
}

.summary-row span:last-child {
  font-weight: 600;
  color: var(--primary-black);
}

.shipping {
  color: #4caf50 !important;
  font-weight: 600 !important;
}

.summary-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 20px 0;
}

.total-row {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
}

.total-row span:first-child {
  color: var(--primary-black);
  font-weight: 700;
}

.total {
  color: var(--accent-gold) !important;
  font-size: 24px !important;
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  padding: 18px;
  background: var(--accent-gold);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.3);
  margin-bottom: 15px;
}

.checkout-btn:hover {
  background: #b89558;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 169, 110, 0.4);
}

/* Continue Shopping Link */
.continue-shopping,
.continue-shopping-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 10px;
}

.continue-shopping {
  background: var(--accent-gold);
  color: var(--white);
  padding: 15px 30px;
  font-size: 15px;
  margin-top: 20px;
}

.continue-shopping:hover,
.continue-shopping-link:hover {
  color: var(--accent-gold);
  background: var(--light-gray);
}

/* Promo Code Section */
.promo-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
}

.promo-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.promo-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.apply-promo-btn {
  padding: 12px 20px;
  background: var(--primary-black);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.apply-promo-btn:hover {
  background: var(--accent-gold);
}

/* ================= FOOTER ================= */
.footer {
  background: var(--primary-black);
  color: var(--white);
  padding: 30px 0;
  margin-top: auto;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 5px 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 15px 30px;
  }

  .cart-section {
    padding: 120px 20px 60px;
  }

  .cart-title {
    font-size: 36px;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: 15px;
  }

  .item-image {
    width: 80px;
    height: 80px;
    grid-row: 1 / 3;
  }

  .item-details {
    grid-column: 2;
  }

  .item-quantity {
    grid-column: 1 / 2;
    grid-row: 3;
    justify-self: start;
  }

  .item-price {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .remove-btn {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .cart-summary {
    padding: 25px;
  }

  .summary-title {
    font-size: 22px;
  }

  .footer-container {
    padding: 0 30px;
  }
}

@media (max-width: 480px) {
  .cart-title {
    font-size: 28px;
  }

  .item-name {
    font-size: 16px;
  }

  .price {
    font-size: 18px;
  }

  .total {
    font-size: 22px !important;
  }
}

.designer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.designer-link:hover {
  text-decoration: underline;
  color: var(--accent-gold); /* or any accent color you use */
}
@media (max-width: 768px)
{}
  
  /* NAVBAR */
  .nav-container {
    padding: 0 16px;
    height: 60px;
  }
  
  .logo-img {
    height: 140px;
  }
  
  .nav-icons {
    gap: 20px;
  }
  
  .nav-icon {
    font-size: 18px;
  }
  
  .cart-badge {
    font-size: 9px;
    width: 16px;
    height: 16px;
  }