@import url('https://fonts.googleapis.com/css2?family=Kumbh+Sans:wght@400;700&display=swap');

/* ---------- GLOBAL RESET ---------- */
.sw-product-page * {
  box-sizing: border-box;
  font-family: 'Andika', sans-serif;
  margin: 0;
  padding: 0;
}
.sw-product-page {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 80px;
  padding: 80px 8%;
  background: #fff;
}

/* ---------- LEFT: PRODUCT GALLERY ---------- */
.sw-product-page .left {
  position: sticky;
  top: 72px;
  height: calc(100vh - 75px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.sw-product-page .woocommerce-product-gallery {
  width: 100%;
  text-align: center;
}
.sw-product-page .woocommerce-product-gallery__image img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sw-product-page .woocommerce-product-gallery__image img:hover {
  opacity: 0.9;
}

/* Thumbnails */
.sw-product-page .flex-control-thumbs {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.sw-product-page .flex-control-thumbs li {
  list-style: none;
}
.sw-product-page .flex-control-thumbs img {
  width: 90px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sw-product-page .flex-control-thumbs img:hover {
  opacity: 0.7;
}
.sw-product-page .flex-control-thumbs .flex-active img {
  outline: 3px solid hsl(26, 100%, 55%);
  opacity: 0.6;
}

/* ---------- RIGHT: SUMMARY ---------- */
.sw-product-page .right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 20px;
}
.sw-product-page .right h1,
.sw-product-page .right .product_title {
	font-family: 'Tribeca', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin: 10px 0 20px;
  color: hsl(220, 13%, 13%);
}
.sw-product-page .right .price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}
.sw-product-page .right .price .amount {
  font-size: 32px;
  font-weight: 700;
}
.sw-product-page .right .woocommerce-Price-currencySymbol {
  font-size: 22px;
}
.sw-product-page .right .woocommerce-Price-currencySymbol,
.sw-product-page .right .price del {
  color: hsl(220, 14%, 75%);
}

/* ---------- VARIATIONS ---------- */
.sw-product-page .variations select {
  padding: 10px;
  border: 1px solid hsl(220, 14%, 75%);
  border-radius: 6px;
  margin-bottom: 15px;
  width: 100%;
  font-size: 16px;
  background: hsl(223, 64%, 98%);
}
.sw-product-page .label {
  font-weight: 700;
  margin-right: 10px;
}

/* ---------- QUANTITY ---------- */
.sw-product-page .quantity {
  display: inline-flex;
  align-items: center;
  background: hsl(223, 64%, 98%);
  border-radius: 10px;
  padding: 10px;
  margin-right: 10px;
}
.sw-product-page .quantity .qty {
  width: 60px;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}
.sw-product-page .quantity button,
.sw-product-page .quantity .plus,
.sw-product-page .quantity .minus {
  background: none;
  border: none;
  color: hsl(26, 100%, 55%);
  font-size: 22px;
  cursor: pointer;
  width: 32px;
}

/* ---------- CUSTOM QUANTITY BUTTONS ---------- */
.sw-product-page .quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}

.sw-product-page .quantity-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(223, 64%, 98%);
  border-radius: 10px;
  width: 150px;
  height: 50px;
  padding: 0 10px;
}

.sw-product-page .quantity-box button {
  background: none;
  border: none;
  color: hsl(26, 100%, 55%);
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
  width: 40px;
}

.sw-product-page .quantity-box input.qty {
  border: none;
  background: transparent;
  width: 50px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: hsl(220, 13%, 13%);
}

.sw-product-page .quantity-box button:hover {
  color: hsl(25, 100%, 94%);
}

.sw-product-page .single_add_to_cart_button {
  height: 50px;
}

/* ---------- ADD TO CART BUTTON ---------- */
.sw-product-page .single_add_to_cart_button {
  background: hsl(26, 100%, 55%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border: none;
  padding: 15px 25px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sw-product-page .single_add_to_cart_button:hover {
  background: hsl(25, 100%, 94%);
  color: hsl(26, 100%, 55%);
}

/* ---------- PRODUCT TABS AS ACCORDION ---------- */
.sw-product-page .product-tabs {
  margin-top: 40px;
}

.sw-product-page .wc-tabs {
  display: none; /* hide the default tab headers */
}

/* accordion container */
.sw-product-page .wc-tab {
  border-top: 1px solid #ddd;
  padding: 0;
}

.sw-product-page .wc-tab::before {
  content: attr(id);
  display: block;
  font-weight: 700;
  color: hsl(220, 13%, 13%);
  padding: 18px 0;
  cursor: pointer;
  position: relative;
  text-transform: capitalize;
}

/* the accordion arrow */
.sw-product-page .wc-tab::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 22px;
  color: hsl(26, 100%, 55%);
  transition: transform 0.2s ease;
}

/* when open */
.sw-product-page .wc-tab.open::after {
  content: '–';
}

/* accordion body hidden by default */
.sw-product-page .wc-tab > *:not(:first-child) {
  display: none;
}

.sw-product-page .wc-tab.open > *:not(:first-child) {
  display: block;
  padding: 15px 0 25px;
  color: hsl(219, 9%, 45%);
  line-height: 1.7;
}

/* ---------- LIGHTBOX OVERLAY ---------- */
.sw-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.sw-lightbox.active {
  display: flex;
}
.sw-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 15px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sw-product-page {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 5%;
  }
  .sw-product-page .left {
    position: relative;
    height: auto;
  }
  .sw-product-page .woocommerce-product-gallery__image img {
    max-width: 100%;
  }
  .sw-product-page .right h1 {
    font-size: 32px;
  }
}
