/* Base styling to mimic koreanglowbeauty.in product layout */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fce7f3;
  color: #1f2937;
  /* Sticky footer: keep footer at bottom on short pages (like login/signup). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Advanced auth styles (login/signup) */
.auth-shell {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.10);
}

.auth-title {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  color: #111827;
}

.auth-subtitle {
  margin: 8px 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.auth-field {
  margin-bottom: 12px;
}

.auth-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: #fff;
}

.auth-input:focus {
  border-color: rgba(236, 72, 153, 0.60);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.auth-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.auth-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.auth-actions {
  margin-top: 10px;
}

.auth-links {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #6b7280;
}

.auth-links a {
  color: #ec4899;
  font-weight: 800;
}

/* Super attractive checkout form */
.checkout-form {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(1200px 500px at -10% -30%, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0) 60%),
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 100%);
  box-shadow:
    0 18px 45px rgba(17, 24, 39, 0.10),
    0 1px 0 rgba(255,255,255,0.7) inset;
}

.checkout-grid-2,
.checkout-grid-3 {
  display: grid;
  gap: 12px;
}

.checkout-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.checkout-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.checkout-field {
  margin-bottom: 12px;
}

.checkout-form label {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid rgba(229, 231, 235, 1);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.checkout-form textarea {
  min-height: 110px;
  resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: rgba(236, 72, 153, 0.60);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: #9ca3af;
}

@media (max-width: 768px) {
  .checkout-grid-2 {
    grid-template-columns: 1fr;
  }
  .checkout-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Responsive auth layout */
@media (max-width: 600px) {
  .auth-shell {
    width: min(100%, 92%);
    padding: 0 8px;
  }

  .auth-card {
    padding: 14px;
    border-radius: 14px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-subtitle {
    font-size: 13px;
  }

  .auth-links {
    justify-content: center;
    gap: 10px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand span {
  display: inline-block;
}

.nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #ec4899;
}

.product-hero {
  padding: 18px 0 30px;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

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

.product-img {
  border: 1px solid #e5e7eb;
  min-height: 420px;
  height: auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 14px;
}

.product-img img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 680px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-gallery {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  background: transparent;
}

.gallery-main {
  width: 100%;
  min-height: 440px;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.gallery-main img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 680px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.thumb-btn {
  border: 1px solid #e5e7eb;
  background: transparent;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
  min-width: 96px;
  height: 72px;
  overflow: hidden;
  flex-shrink: 0;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.pill-offer {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 12px;
}

.pill-offer b {
  color: #ef4444;
}

.meta {
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

.meta .k {
  color: #6b7280;
  font-weight: 600;
  margin-right: 8px;
}

.product-title {
  font-size: 26px;
  margin: 0 0 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0;
}

.price-now {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
}

.price-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
  font-weight: 600;
}

.option-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.field label {
  font-weight: 700;
  font-size: 13px;
  color: #374151;
  display: block;
  margin-bottom: 6px;
}

select,
input[type="number"] {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.quantity-row input[type="number"] {
  width: 74px;
  text-align: center;
  height: 44px;
  padding: 0;
}

.quantity-step {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.quantity-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-remove-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
  color: #111827;
}

.cart-remove-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-box {
  flex: 1;
}

.add-buy-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-cta {
  flex: 0 0 auto;
  min-width: 190px;
  border-radius: 9999px;
  padding: 14px 18px;
  border: 0;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,0.08);
}

.btn-cta.secondary {
  background: linear-gradient(180deg, #ec4899 0%, #db2777 100%);
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
}

.btn-cta span {
  text-transform: none;
}

.btn-cart span {
  font-size: 15px;
}

.btn-buy span {
  font-size: 15px;
}

.whatsapp-row {
  margin-top: 18px;
}

.whatsapp-btn {
  width: 100%;
  border-radius: 9999px;
  padding: 14px 18px;
  background: #22c55e;
  color: white;
  font-weight: 800;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.section-title {
  margin-top: 26px;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.desc-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  margin-top: 12px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

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

.photo-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  height: 210px;
}

.photo-item.animate {
  animation: popUp 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.photo-item.animate:nth-child(1) {
  animation-delay: 0s;
}

.photo-item.animate:nth-child(2) {
  animation-delay: 0s;
}

.photo-item.animate:nth-child(3) {
  animation-delay: 0s;
}

.photo-item.animate:nth-child(4) {
  animation-delay: 0s;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

/* Pop Up Animation */
@keyframes popUp {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation — grid keeps logo left, menu button right on all widths */
@media (max-width: 768px) {
  .topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    width: 100%;
  }

  .brand {
    grid-column: 1;
    min-width: 0;
    justify-self: start;
  }

  .hamburger {
    grid-column: 2;
    display: flex;
    justify-self: end;
    flex-shrink: 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    width: min(200px, calc(100vw - 32px));
    max-width: 220px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    border-radius: 4px;
  }

  .nav a:hover {
    background: #f3f4f6;
  }
}

/* Reviews Section */
.reviews-section {
  margin-top: 26px;
}

.reviews-title {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

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

.review-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  background: #f9fafb;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 10px;
}

.review-name {
  font-weight: 700;
  color: #111827;
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  background: #111827;
  color: #ffffff;
  padding: 24px 0;
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
}

.footer p {
  margin: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* Mobile Responsive - Extra Small Screens */
@media (max-width: 600px) {
  .container {
    width: min(100%, 95%);
    margin: 0 auto;
  }

  .topbar {
    padding: 10px 0;
  }

  .brand span {
    display: none;
  }

  .product-title {
    font-size: 20px;
  }

  .price-now {
    font-size: 20px;
  }

  .price-old {
    font-size: 12px;
  }

  .meta {
    font-size: 12px;
  }

  .pill-offer {
    font-size: 12px;
    padding: 8px 10px;
  }

  .gallery-main {
    min-height: 300px;
    padding: 10px;
  }

  .gallery-main img {
    max-height: min(65vh, 520px);
  }

  .product-img {
    min-height: 300px;
    padding: 10px;
  }

  .product-img img {
    max-height: min(65vh, 520px);
  }

  .thumb-btn {
    min-width: 76px;
    height: 58px;
  }

  .section-title {
    font-size: 16px;
    margin-top: 20px;
  }

  .desc-card {
    padding: 12px;
    margin-top: 10px;
  }

  .field label {
    font-size: 12px;
    margin-bottom: 4px;
  }

  select,
  input[type="number"] {
    padding: 8px 10px;
    font-size: 13px;
  }

  .quantity-step {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .quantity-row input[type="number"] {
    width: 60px;
    height: 38px;
  }

  .add-buy-row {
    gap: 10px;
    margin-top: 12px;
  }

  .btn-cta {
    min-width: 140px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .btn-icon {
    width: 28px;
    height: 28px;
  }

  .btn-icon svg {
    width: 14px !important;
    height: 14px !important;
  }

  .whatsapp-btn {
    padding: 12px 14px;
    font-size: 13px;
  }

  .whatsapp-row {
    margin-top: 12px;
  }

  .option-row {
    gap: 8px;
    margin-top: 12px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .photo-item {
    height: 200px;
  }

  .reviews-container {
    grid-template-columns: 1fr;
  }

  .review-card {
    padding: 12px;
  }

  .review-name {
    font-size: 13px;
  }

  .review-text {
    font-size: 12px;
  }
}

/* Tablet Responsive - Medium Screens */
@media (max-width: 768px) {
  .product-title {
    font-size: 22px;
  }

  .price-now {
    font-size: 22px;
  }

  .gallery-main {
    min-height: 360px;
  }

  .gallery-main img,
  .product-img img {
    max-height: min(70vh, 600px);
  }

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

/* Checkout: state / city autocomplete */
.checkout-autocomplete-wrap {
  position: relative;
}

.checkout-autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  max-height: 220px;
  overflow-y: auto;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.12);
}

.checkout-autocomplete-dropdown li {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #111827;
}

.checkout-autocomplete-dropdown li:hover,
.checkout-autocomplete-dropdown li[aria-selected="true"] {
  background: #fce7f3;
}

