.product-page {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}
.product-gallery {
  display: flex;
  flex: 1;
  gap: 12px;
}
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thumbnails img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
}
.thumbnails img:hover {
  border-color: #333;
}
.main-image img {
  width: 450px;
  height: 450px;
  object-fit: contain;
  border-radius: 10px;
  background: #f5f5f5;
}
.mobile-gallery {
  display: none;
  margin-bottom: 15px;
}
.mobile-gallery img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fafafa;
  transition: all 0.3s ease;
}

.mobile-gallery img.zoomed {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoom-thumbnails {
  display: none;
  margin-bottom: 10px;
  justify-content: center;
  gap: 8px;
}
.zoom-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 6px;
}
.details {
  flex: 1;
}
.details h1 {
  margin: 0 0 10px;
}
.rating {
  margin: 6px 0;
}
.price {
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0;
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  position: sticky;
  bottom: 0;
}
.actions button {
  flex: 1;
  font-size: 16px;
  padding: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
  font-family: inherit;
}
.actions button img {
  vertical-align: sub;
}
.add {
  background: #8f5336;
  color: #fff;
  font-weight: bold;
}
.buy {
  background: #117949;
  color: #fff;
  font-weight: bold;
}
.psize {
  margin: 8px 0;
  color: #8f5336;
}
.delivery {
  color: #222;
  font-size: 15px;
  margin: 15px 0;
}
.delivery span {
  font-weight: bold;
}
.features {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  text-align: center;
}
.feature {
  flex: 1;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature span {
  display: block;
  font-size: 14px;
  font-weight: 500;
  font-variant: all-small-caps;
  color: #2162a1;
}
.variant-box {
  display: inline-block;
  margin: 10px 0;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}
.variant-box.active {
  border: 1px solid #117949;
}
.qty-wrap {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 4px 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.qty-btn {
  width: 31px;
  height: 31px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: transform 80ms ease, box-shadow 120ms ease;
}
.qty-btn:active {
  transform: scale(0.96);
}
.qty-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.qty-value {
  min-width: 48px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}
.qty-btn:focus {
  outline: 3px solid rgba(66, 153, 225, 0.25);
  outline-offset: 2px;
}

#loginModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.checkout-container {
  max-width: 450px;
  margin: 0px auto;
  background: #fff;
  padding: 15px;
  border: 1px solid #ddd;
  height: 100vh;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-top: 10px;
}

.checkout-header .left {
  font-size: 22px;
  font-weight: 800;
  font-variant: all-small-caps;
}

.checkout-header .left i {
  margin-right: 6px;
  color: #117949;
}

.checkout-header .right .login-btn {
  padding: 8px 14px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  font-weight: bold;
  font-variant: all-small-caps;
  font-size: 17px;
}

.checkout-header .right .login-btn:hover {
  background: #117949;
  color: #fff;
  border: 1px solid #117949;
}

.form-row input {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  font-size: 14px;
  margin-bottom: 15px;
}

.form-row.two-col {
  display: flex;
  gap: 10px;
}

.form-row.two-col input {
  flex: 1;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.form-col {
  flex: 1;
}

.submit-btn {
  width: 100%;
  padding: 12px 0;
  background: #117949;
  border: 1px solid #117949;
  border: none;
  border-radius: 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  font-variant: all-small-caps;
}

.submit-btn:hover {
  background: #000;
  border: 1px solid #00;
}

#loginModal .close-btn {
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  margin-top: 2px;
  margin-right: 2px;
}
#loginModal .close-btn:hover {
  color: #117949;
}

@media (min-width: 768px){
	.mobile-gallery{
	display: none !important;
}
}

@media (max-width: 768px) {
  .product-page {
    flex-direction: column;
    padding: 12px;
  }
  .product-gallery {
    display: none !important;
  }
  .mobile-gallery {
    display: block;
  }
  .actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
}