/* =========================================================
   GLOWZY HOUSE — CART / WISHLIST / CHECKOUT / ABOUT
   ========================================================= */
:root {
  --g-gold: #b8864b;
  --g-gold-dark: #986a36;
  --g-gold-soft: #d9b77f;
  --g-brown: #34251e;
  --g-text: #6f5748;
  --g-muted: #8d7a6d;
  --g-cream: #fffaf5;
  --g-cream2: #f7eee7;
  --g-white: #fff;
  --g-border: rgba(184, 134, 75, 0.2);
  --g-shadow: 0 12px 35px rgba(55, 38, 27, 0.08);
  --g-shadow2: 0 20px 50px rgba(55, 38, 27, 0.13);
}

body {
  font-family: Poppins, sans-serif;
  background: var(--g-cream);
  color: var(--g-brown);
}
a {
  transition: 0.2s ease;
}
.nav-icons a {
  position: relative;
}
.cart-count,
.wishlist-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -9px;
  right: -10px;
  border-radius: 999px;
  background: var(--g-gold);
  color: #fff;
  font:
    600 9px/1 Poppins,
    sans-serif;
}

/* Common page hero */
.cart-hero,
.wishlist-hero,
.checkout-hero {
  min-height: 330px;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(52, 37, 30, 0.54), rgba(52, 37, 30, 0.54)),
    url("../images/hero.jpg") center/cover no-repeat;
}
.cart-hero h1,
.wishlist-hero h1,
.checkout-hero h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(48px, 7vw, 70px);
  line-height: 1;
  font-weight: 600;
}
.cart-hero p,
.wishlist-hero p,
.checkout-hero p {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
}

/* Cart */
.cart-section {
  width: min(1180px, 90%);
  margin: 65px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
#cart-items {
  min-height: 120px;
  padding: 10px 24px;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--g-shadow);
}
.cart-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee6df;
}
.cart-item:last-child {
  border-bottom: 0;
}
.cart-item img {
  width: 105px;
  height: 105px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--g-cream2);
}
.cart-item h3 {
  margin: 0 0 5px;
  font:
    600 25px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
.cart-item p {
  margin: 0 0 8px;
  color: var(--g-muted);
  font-size: 11px;
}
.cart-item .price,
.cart-item-price {
  color: var(--g-gold-dark);
  font-weight: 700;
  font-size: 16px;
}
.cart-item button {
  border: 0;
  background: none;
  color: var(--g-text);
  font-size: 11px;
  cursor: pointer;
}
.cart-item button:hover {
  color: #a33d3d;
}
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}
.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--g-border);
  border-radius: 7px;
  background: #fff;
}
.quantity-controls span {
  min-width: 22px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.cart-summary {
  padding: 27px;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--g-shadow);
  position: sticky;
  top: 110px;
}
.cart-summary h2 {
  margin: 0 0 20px;
  font:
    600 31px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
.cart-summary h3 {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #eee6df;
  font-size: 17px;
}
.checkout-btn,
.continue-shopping,
.empty-state a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.checkout-btn {
  background: var(--g-gold);
  border: 1px solid var(--g-gold);
  color: #fff;
}
.checkout-btn:hover {
  background: var(--g-gold-dark);
}
.continue-shopping {
  border: 1px solid var(--g-border);
  color: var(--g-gold-dark);
  background: #fff;
}
.empty-cart,
.empty-state {
  max-width: 700px;
  margin: 65px auto;
  padding: 55px 25px;
  text-align: center;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--g-shadow);
}
.empty-cart h2,
.empty-state h2 {
  margin: 0 0 8px;
  font:
    600 32px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
.empty-cart p,
.empty-state p {
  color: var(--g-muted);
  font-size: 13px;
}

/* Wishlist */
.wishlist-section {
  width: min(1180px, 90%);
  margin: 65px auto 80px;
}
#wishlist-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}
.wishlist-card {
  overflow: hidden;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--g-shadow);
  transition: 0.28s ease;
}
.wishlist-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--g-shadow2);
}
.wishlist-card img {
  width: 100%;
  height: 280px;
  display: block;
  object-fit: cover;
  background: var(--g-cream2);
}
.wishlist-info {
  padding: 20px;
}
.wishlist-info h3 {
  margin: 0 0 7px;
  font:
    600 27px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
.wishlist-price {
  margin-bottom: 16px;
  color: var(--g-gold-dark);
  font-size: 17px;
  font-weight: 700;
}
.wishlist-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.wishlist-actions button {
  min-height: 43px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.wishlist-add {
  background: var(--g-gold);
  border: 1px solid var(--g-gold);
  color: #fff;
}
.wishlist-add:hover {
  background: var(--g-gold-dark);
}
.wishlist-remove {
  background: #fff;
  border: 1px solid var(--g-border);
  color: var(--g-text);
}
.wishlist-remove:hover {
  color: #a33d3d;
}

/* Checkout */
.checkout-section {
  width: min(1120px, 90%);
  margin: 65px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.checkout-form,
.order-summary {
  padding: 30px;
  border: 1px solid var(--g-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--g-shadow);
}
.checkout-form h2,
.order-summary h2 {
  margin: 0 0 22px;
  font:
    600 32px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
#checkoutForm input,
#checkoutForm textarea {
  width: 100%;
  margin-bottom: 13px;
  padding: 14px 15px;
  border: 1px solid var(--g-border);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: var(--g-brown);
  font:
    400 13px Poppins,
    sans-serif;
}
#checkoutForm textarea {
  min-height: 115px;
  resize: vertical;
}
#checkoutForm input:focus,
#checkoutForm textarea:focus {
  border-color: var(--g-gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 75, 0.1);
}
.payment-title {
  margin: 10px 0 10px;
  font-size: 13px;
}
.payment-method {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.payment-method label {
  font-size: 12px;
  color: var(--g-text);
  cursor: pointer;
}
.bank-details {
  margin: 10px 0 18px;
  padding: 17px;
  border-radius: 10px;
  background: #fff8ef;
  border: 1px solid var(--g-border);
}
.bank-details h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.bank-details p {
  margin: 5px 0;
  color: var(--g-text);
  font-size: 11px;
}
.place-order {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--g-gold);
  border-radius: 9px;
  background: var(--g-gold);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.place-order:hover {
  background: var(--g-gold-dark);
}
#checkout-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 11px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee6df;
}
.checkout-item img {
  width: 62px;
  height: 62px;
  border-radius: 9px;
  object-fit: cover;
}
.checkout-item h4 {
  margin: 0;
  font:
    600 20px/1.1 "Cormorant Garamond",
    Georgia,
    serif;
}
.checkout-item p {
  margin: 3px 0 0;
  color: var(--g-muted);
  font-size: 10px;
}
.checkout-item strong {
  color: var(--g-gold-dark);
  font-size: 12px;
}
.order-summary > h3 {
  padding-top: 16px;
  border-top: 1px solid #eee6df;
  font-size: 17px;
}

/* About */
.about-page {
  width: min(1180px, 90%);
  min-height: 600px;
  margin: 0 auto;
  padding: 90px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-image {
  overflow: hidden;
  border-radius: 20px;
  background: var(--g-cream2);
  box-shadow: var(--g-shadow2);
}
.about-image img {
  width: 100%;
  height: 520px;
  display: block;
  object-fit: cover;
}
.about-content > span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--g-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
}
.about-content h1 {
  margin: 0 0 18px;
  font:
    600 clamp(42px, 5vw, 60px)/1.03 "Cormorant Garamond",
    Georgia,
    serif;
}
.about-content p {
  margin: 0 0 15px;
  color: var(--g-text);
  font-size: 14px;
  line-height: 1.85;
}
.about-content .btn {
  display: inline-flex;
  margin-top: 8px;
  padding: 13px 24px;
  border-radius: 9px;
  background: var(--g-gold);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.about-content .btn:hover {
  background: var(--g-gold-dark);
  transform: translateY(-2px);
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  max-width: 320px;
  padding: 13px 18px;
  border-radius: 10px;
  background: var(--g-brown);
  color: #fff;
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer cleanup */
.footer {
  position: relative;
}
.footer-bottom {
  margin-top: 25px;
}

/* Responsive */
@media (max-width: 950px) {
  .cart-section,
  .checkout-section {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  #wishlist-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 65px 0;
  }
  .about-image img {
    height: 420px;
  }
}
@media (max-width: 620px) {
  .cart-hero,
  .wishlist-hero,
  .checkout-hero {
    min-height: 280px;
    padding: 65px 18px;
  }
  .cart-hero h1,
  .wishlist-hero h1,
  .checkout-hero h1 {
    font-size: 48px;
  }
  .cart-section,
  .wishlist-section,
  .checkout-section {
    width: calc(100% - 36px);
    margin: 45px auto 60px;
  }
  #cart-items {
    padding: 7px 15px;
  }
  .cart-item {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 12px;
  }
  .cart-item img {
    width: 75px;
    height: 75px;
  }
  .cart-item .cart-actions {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
  }
  #wishlist-items {
    grid-template-columns: 1fr;
  }
  .wishlist-card img {
    height: 285px;
  }
  .wishlist-actions {
    grid-template-columns: 1fr;
  }
  .checkout-form,
  .order-summary {
    padding: 21px;
  }
  .about-page {
    width: calc(100% - 36px);
    padding: 50px 0;
  }
  .about-image img {
    height: 350px;
  }
  .about-content h1 {
    font-size: 43px;
  }
}
/* =========================================================
   GLOWZY HOUSE — CART FINAL POLISH
   ========================================================= */

/* Cart product image wrapper */
.cart-product-image {
  width: 105px;
  height: 105px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--g-cream2);
}

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

.cart-item:hover .cart-product-image img {
  transform: scale(1.04);
}

/* Product information */
.cart-product-info {
  min-width: 0;
}

.cart-product-info h3 {
  word-break: break-word;
}

.cart-product-info p {
  letter-spacing: 0.2px;
}

/* Quantity controls */
.quantity-controls {
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--g-border);
  border-radius: 9px;
  background: #fffaf6;
}

.quantity-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  color: var(--g-brown) !important;
  font-size: 17px !important;
  line-height: 1;
  transition: 0.2s ease;
}

.quantity-controls button:hover {
  background: var(--g-gold) !important;
  color: #fff !important;
}

.quantity-controls span {
  min-width: 28px;
  font-size: 12px;
  color: var(--g-brown);
}

/* Cart right side */
.cart-actions {
  min-width: 100px;
  text-align: right;
}

.cart-actions strong {
  display: block;
  margin-bottom: 10px;
  color: var(--g-gold-dark);
  font-size: 14px;
  white-space: nowrap;
}

.cart-actions .remove-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0;
  color: #8d6f62;
  font-size: 11px;
  transition: 0.2s ease;
}

.cart-actions .remove-item:hover {
  color: #a33d3d;
}

/* Cart summary */
.cart-summary {
  overflow: hidden;
}

.cart-summary h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.cart-summary h3 span {
  color: var(--g-gold-dark);
  white-space: nowrap;
}

.cart-summary .checkout-btn {
  width: 100%;
  transition: 0.25s ease;
}

.cart-summary .checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(184, 134, 75, 0.2);
}

/* Empty cart */
.empty-cart {
  margin: 25px auto;
  padding: 50px 25px;
  box-shadow: none;
  border: 0;
}

.empty-cart-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--g-cream2);
  color: var(--g-gold);
  font-size: 27px;
}

.empty-cart h2 {
  font-size: 34px;
}

.empty-cart p {
  max-width: 420px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.empty-cart .checkout-btn {
  width: fit-content;
  min-width: 170px;
  margin: 20px auto 0;
  gap: 8px;
}

/* Better focus accessibility */
.quantity-controls button:focus-visible,
.remove-item:focus-visible,
.checkout-btn:focus-visible {
  outline: 2px solid var(--g-gold);
  outline-offset: 3px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {
  .cart-item {
    grid-template-columns: 95px minmax(0, 1fr) auto;
  }

  .cart-product-image {
    width: 95px;
    height: 95px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {
  #cart-items {
    padding: 5px 14px;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 0;
  }

  .cart-product-image {
    width: 72px;
    height: 72px;
    border-radius: 10px;
  }

  .cart-product-info h3 {
    font-size: 22px;
    line-height: 1.05;
    margin-bottom: 4px;
  }

  .cart-product-info p {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .cart-item-price {
    font-size: 14px;
  }

  .quantity-controls {
    margin-top: 8px;
  }

  .quantity-controls button {
    width: 28px;
    height: 28px;
  }

  .cart-actions {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
  }

  .cart-actions strong {
    margin: 0;
    font-size: 13px;
  }

  .cart-actions .remove-item {
    font-size: 10px;
  }

  .cart-summary {
    padding: 22px 19px;
  }

  .cart-summary h2 {
    font-size: 28px;
  }

  .cart-summary h3 {
    font-size: 15px;
  }

  .empty-cart {
    margin: 20px auto;
    padding: 42px 14px;
  }

  .empty-cart h2 {
    font-size: 30px;
  }

  .empty-cart p {
    font-size: 12px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {
  .cart-section {
    width: calc(100% - 28px);
  }

  #cart-items {
    padding-left: 11px;
    padding-right: 11px;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .cart-product-image {
    width: 64px;
    height: 64px;
  }

  .cart-product-info h3 {
    font-size: 20px;
  }

  .cart-actions strong {
    font-size: 12px;
  }

  .empty-cart {
    padding-left: 8px;
    padding-right: 8px;
  }
}
/* ==========================================
   CONTACT FORM MESSAGE
   ========================================== */

#formMessage {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 20px;
  transition: 0.25s ease;
}

#formMessage.success {
  color: #3e7d58;
}

#formMessage.error {
  color: #b54e4e;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}
