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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fffaf8;
  color: #493735;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 8%;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 15px #00000008;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #754b50;
  text-decoration: none;
}

.logo span {
  color: #d99ba5;
}

.navbar nav {
  display: flex;
  gap: 32px;
}

.navbar nav a,
.cart-link {
  text-decoration: none;
  color: #62494a;
  font-size: 14px;
  font-weight: 500;
}

.navbar nav a:hover {
  color: #c27d89;
}

.cart-link {
  border: 1px solid #e8c7c9;
  padding: 10px 18px;
  border-radius: 25px;
}

#cart-count {
  background: #d99ba5;
  color: white;
  padding: 2px 7px;
  border-radius: 50%;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  padding: 75px 8%;
  background: #f8e9e8;
}

.hero-content {
  max-width: 540px;
}

.eyebrow {
  color: #b77b83;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.2;
  color: #533b3d;
  margin-bottom: 22px;
}

.hero h1 span {
  color: #bf858d;
}

.hero-description {
  line-height: 1.9;
  color: #81696a;
  margin-bottom: 30px;
  font-size: 14px;
}

.main-button {
  display: inline-block;
  text-decoration: none;
  background: #a96f78;
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 13px;
  transition: 0.3s;
  border: none;
}

.main-button:hover {
  background: #80535b;
  transform: translateY(-3px);
}

.hero-image img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 180px 180px 15px 15px;
}

.categories,
.products-section {
  padding: 75px 8%;
}

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2,
.about-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: #593f41;
  margin-bottom: 12px;
}

.section-heading > p:last-child {
  color: #927c7b;
  font-size: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  background: #f7e9e8;
  border-radius: 15px;
  padding: 28px 12px;
  text-align: center;
  text-decoration: none;
  color: #684d4e;
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  background: #f0d9d9;
}

.category-card span {
  font-size: 35px;
}

.category-card h3 {
  font-size: 13px;
  margin-top: 12px;
}

.products-section {
  background: #fff;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 35px;
}

.filter-btn {
  padding: 10px 20px;
  border: 1px solid #e8c7c9;
  border-radius: 25px;
  background: white;
  color: #75595a;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.filter-btn.active,
.filter-btn:hover {
  background: #a96f78;
  color: white;
  border-color: #a96f78;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  border: 1px solid #f1e6e3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px #704b4b15;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #f8eeeb;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  margin-bottom: 8px;
}

.product-info p {
  color: #ad7b7e;
  font-size: 12px;
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-weight: 600;
  font-size: 14px;
}

.add-btn {
  border: none;
  background: #f3dfe0;
  color: #744e53;
  padding: 9px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
}

.add-btn:hover {
  background: #d9a5aa;
  color: white;
}

.about-section {
  text-align: center;
  padding: 75px 15%;
  background: #f8e9e8;
}

.about-section > p:not(.eyebrow) {
  color: #806b6b;
  line-height: 1.9;
  max-width: 650px;
  margin: 15px auto 25px;
  font-size: 14px;
}

footer {
  text-align: center;
  padding: 35px 15px;
  background: #493638;
  color: #f8e9e8;
}

footer .logo {
  color: white;
}

footer p {
  font-size: 12px;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 50px 6%;
  }

  .hero-image img {
    height: 300px;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .navbar {
    padding: 15px 4%;
    flex-wrap: wrap;
    gap: 15px;
  }

  .navbar nav {
    gap: 12px;
  }

  .navbar nav a {
    font-size: 11px;
  }
}

@media (max-width: 450px) {
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 30px;
  }
}
.account-section {
  padding: 80px 20px;
  background: #f8e9e8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.account-card {
  background: white;
  width: 100%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 35px #704b4b12;
}

.account-logo {
  font-family: 'Playfair Display', serif;
  font-size: 35px;
  font-weight: bold;
  color: #754b50;
  text-align: center;
  margin-bottom: 25px;
}

.account-logo span {
  color: #d99ba5;
}

.account-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  text-align: center;
  margin-bottom: 10px;
}

.account-subtitle {
  text-align: center;
  font-size: 12px;
  color: #927c7b;
  margin-bottom: 25px;
}

.account-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.account-tab {
  flex: 1;
  padding: 12px;
  border: 1px solid #e8c7c9;
  background: white;
  color: #75595a;
  border-radius: 25px;
  cursor: pointer;
  font-family: inherit;
}

.account-tab.active {
  background: #a96f78;
  color: white;
}

.account-card label {
  display: block;
  font-size: 12px;
  margin: 15px 0 7px;
  color: #684d4e;
}

.account-card input {
  width: 100%;
  padding: 13px;
  border: 1px solid #ead9d8;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
}

.account-card input:focus {
  border-color: #b77b83;
}

.account-submit {
  width: 100%;
  margin-top: 25px;
  padding: 14px;
  border: none;
  border-radius: 25px;
  background: #a96f78;
  color: white;
  font-family: inherit;
  cursor: pointer;
}

.account-message {
  text-align: center;
  color: #a96f78;
  font-size: 13px;
  margin-top: 15px;
}

.demo-note {
  text-align: center;
  color: #999;
  font-size: 10px;
  margin-top: 20px;
}

[hidden] {
  display: none !important;
}


/* GIFTORA - Product Details Page */

.details-section {
  padding: 75px 8%;
  background: #fffaf8;
}

.details-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px #704b4b12;
}

#detail-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 15px;
}

.details-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #593f41;
  margin-bottom: 12px;
}

#detail-category {
  color: #b77b83;
  font-size: 13px;
  margin-bottom: 15px;
}

#detail-price {
  color: #a96f78;
  font-size: 24px;
  margin-bottom: 20px;
}

#detail-description {
  color: #806b6b;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.details-info label {
  display: block;
  margin: 15px 0 8px;
  font-size: 13px;
  color: #684d4e;
  font-weight: 500;
}

#detail-quantity {
  width: 100px;
  padding: 12px;
  border: 1px solid #ead9d8;
  border-radius: 10px;
  font-family: inherit;
}

#gift-message {
  width: 100%;
  padding: 13px;
  border: 1px solid #ead9d8;
  border-radius: 10px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 20px;
}

.details-info .main-button {
  cursor: pointer;
}

.back-link {
  display: block;
  margin-top: 20px;
  color: #a96f78;
  text-decoration: none;
  font-size: 13px;
}

.back-link:hover {
  text-decoration: underline;
}

/* Responsive Design */

@media (max-width: 800px) {
  .details-container {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 25px;
  }

  #detail-image {
    height: 300px;
  }

  .details-info h2 {
    font-size: 26px;
  }
}


/* ========================================
   GIFTORA - Shopping Cart Page
   Student 2
======================================== */

.cart-section {
  padding: 75px 8%;
  background: #fffaf8;
  min-height: 70vh;
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Shopping Cart Items */

#cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  padding: 20px;
  border: 1px solid #f1e6e3;
  border-radius: 15px;
  box-shadow: 0 5px 20px #704b4b0a;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #593f41;
  margin-bottom: 8px;
}

.cart-item-price {
  color: #a96f78;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.cart-item-message {
  font-size: 12px;
  color: #806b6b;
  line-height: 1.6;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

/* Quantity Controls */

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

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e8c7c9;
  border-radius: 50%;
  background: #f8e9e8;
  color: #744e53;
  font-size: 18px;
  cursor: pointer;
}

.quantity-btn:hover {
  background: #d9a5aa;
  color: white;
}

.quantity-value {
  font-size: 14px;
  font-weight: 600;
  color: #493735;
}

/* Remove Button */

.remove-btn {
  border: none;
  background: transparent;
  color: #b77b83;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
}

.remove-btn:hover {
  color: #a33d4d;
  text-decoration: underline;
}

/* Order Summary */

.cart-summary {
  background: white;
  padding: 30px;
  border-radius: 18px;
  border: 1px solid #f1e6e3;
  box-shadow: 0 5px 20px #704b4b0a;
}

.cart-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #593f41;
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #806b6b;
}

.total-row {
  border-top: 1px solid #ead9d8;
  padding-top: 20px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 17px;
  color: #493735;
}

#checkout-btn {
  width: 100%;
  margin-top: 15px;
  cursor: pointer;
  text-align: center;
}

.cart-summary .back-link {
  text-align: center;
}

/* Empty Cart */

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 15px;
  color: #806b6b;
  border: 1px solid #f1e6e3;
}

.empty-cart h3 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  color: #593f41;
  margin-bottom: 12px;
}

.empty-cart p {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Responsive Design */

@media (max-width: 900px) {
  .cart-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cart-section {
    padding: 50px 5%;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: 200px;
  }

  .cart-summary {
    padding: 22px;
  }

  .cart-item-info h3 {
    font-size: 18px;
  }
}


/* ========================================
   GIFTORA - Checkout Page
   Student 3
======================================== */

.checkout-section {
  padding: 75px 8%;
  background: #fffaf8;
  min-height: 70vh;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.checkout-form,
.checkout-summary {
  background: white;
  padding: 30px;
  border: 1px solid #f1e6e3;
  border-radius: 18px;
  box-shadow: 0 5px 20px #704b4b0a;
}

.checkout-form h3,
.checkout-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #593f41;
  margin-bottom: 20px;
}

.checkout-form label {
  display: block;
  font-size: 13px;
  margin: 15px 0 8px;
  color: #684d4e;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 13px;
  border: 1px solid #ead9d8;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 13px;
  color: #493735;
  background: white;
}

.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus {
  border-color: #b77b83;
}

.checkout-form textarea {
  resize: vertical;
}

.checkout-form .payment-heading {
  margin-top: 30px;
}

.demo-payment {
  color: #927c7b;
  font-size: 11px;
  margin-top: 12px;
}

.place-order-btn {
  width: 100%;
  margin-top: 25px;
  cursor: pointer;
  font-family: inherit;
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #f1e6e3;
  font-size: 13px;
  color: #806b6b;
}

.checkout-item strong {
  color: #593f41;
}

.checkout-item small {
  display: block;
  margin-top: 5px;
  color: #b77b83;
  overflow-wrap: anywhere;
}

.checkout-summary .summary-row {
  margin-top: 20px;
}

#checkout-total {
  color: #a96f78;
}

#checkout-confirmation {
  max-width: 750px;
  margin: 0 auto;
}

.confirmation-card {
  background: white;
  text-align: center;
  padding: 55px 30px;
  border: 1px solid #f1e6e3;
  border-radius: 20px;
  box-shadow: 0 10px 30px #704b4b12;
}

.success-icon {
  font-size: 55px;
  color: #b77b83;
  margin-bottom: 15px;
}

.confirmation-card h2 {
  font-family: 'Playfair Display', serif;
  color: #593f41;
  font-size: 32px;
  margin-bottom: 15px;
}

.confirmation-card p {
  color: #806b6b;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.confirmation-card #order-number {
  font-weight: 600;
  color: #a96f78;
}

.confirmation-note {
  margin: 20px 0 !important;
}

@media (max-width: 800px) {
  .checkout-container {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
  }
}

@media (max-width: 600px) {
  .checkout-section {
    padding: 50px 5%;
  }

  .checkout-form,
  .checkout-summary {
    padding: 22px;
  }
}
