/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
 Version: 1.0
*/

/* =========================================================
   1. HERO / TITLE (jika masih dipakai di halaman lain)
   ========================================================= */

.ls-sp-hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid #eee;
}

.ls-breadcrumbs {
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ls-bc-item,
.ls-bc-sep {
  opacity: 0.7;
}

.ls-sp-back-link {
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* =========================================================
   2. SINGLE PRODUCT – PAGE WRAPPER & GRID LAYOUT
   ========================================================= */

.ls-sp-page .ls-sp-container,
.ls-sp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px 50px;
}

.ls-sp-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: flex-start;
}

.ls-sp-gallery {
  position: sticky;
  top: 100px; /* sesuaikan dengan tinggi navbar */
}

.ls-sp-summary {
  max-width: 520px;
}

.ls-sp-bottom {
  margin-top: 50px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

/* Typo helper bila pakai class ls-sp-… di template */
.ls-sp-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ls-sp-price-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ls-sp-shortdesc {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ls-sp-meta {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================================================
   HOMEPAGE – HERO + NAV OVERLAY
   ========================================================= */

body.home .ls-hero-wrapper {
  background: transparent;
}

body.home .ls-products-inner{
  padding: 0 10px !important;
}

body.home .ls-products-tabs .ls-tab-label{
  font-size: 16px !important;
  font-weight: 700 !important;
}

body.home .ls-products-tabs .ls-product-info{
  text-align: center !important;
}

body.home .ls-products-tabs .ls-product-title{
  font-size: 11px !important;
  text-align: center !important;
}

/* =========================================================
   3. SINGLE PRODUCT – RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 991px) {
  .ls-sp-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ls-sp-gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .ls-sp-container {
    padding: 24px 12px 40px;
  }

  .ls-sp-title {
    font-size: 22px;
  }
}

/* =========================================================
   4. SINGLE PRODUCT – WOO SUMMARY (VARIATIONS, CART)
   ========================================================= */

/* Variations table lebih rapi */
.single-product .summary .variations {
  width: 100%;
}

.single-product .summary .variations td {
  display: block;
  padding: 0;
}

.single-product .summary .variations td.label {
  font-size: 13px;
  margin-bottom: 4px;
}

.single-product .summary .variations td.value {
  margin-bottom: 10px;
}

/* Dropdown varian simple & lebar */
.single-product .summary select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: 9px 14px;
  font-size: 14px;
}

/* Judul & harga sedikit dibesarkan */
.single-product .summary .product_title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.single-product .summary .price {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* =========================================================
   5. RELATED PRODUCTS – HORIZONTAL SLIDER
   (efek hover gambar kedua diatur di content-product.php)
   ========================================================= */

.related ul.products {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.related ul.products li.product {
  min-width: 200px;
  scroll-snap-align: start;
}

/* Card wrapper basic (backup jika inline CSS tidak ada) */
.ls-card-product {
  list-style: none;
}

.ls-card-link {
  text-decoration: none;
  display: block;
}

.ls-card-image-wrapper {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   6. HIDE REVIEWS TAB (backup jika filter PHP belum jalan)
   ========================================================= */

.woocommerce-tabs ul.tabs li.reviews_tab,
.woocommerce-Tabs-panel--reviews {
  display: none !important;
}

/* =========================================================
   7. SINGLE PRODUCT – CART AREA (QTY + ADD TO CART)
   ========================================================= */

/* Wrapper qty + button */
.single-product .summary form.cart {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
}

/* Qty wrapper */
.single-product .summary form.cart .quantity {
  margin: 0;
}

/* Input qty lebih jelas */
.single-product .summary form.cart .quantity .qty {
  width: 70px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 14px;
  padding: 0 12px;
}

/* Tombol add to cart melebar & modern */
.single-product .summary form.cart .single_add_to_cart_button {
  flex: 1;
  height: 42px;
  border-radius: 999px;
  padding: 0 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Mobile: qty & button ditumpuk */
@media (max-width: 600px) {
  .single-product .summary form.cart {
    flex-direction: column;
    align-items: stretch;
  }

  .single-product .summary form.cart .quantity {
    width: 100%;
  }

  .single-product .summary form.cart .quantity .qty {
    width: 100%;
  }

  .single-product .summary form.cart .single_add_to_cart_button {
    width: 100%;
  }

  .single-product .summary .product_title {
    font-size: 22px;
  }
}

/* =========================================================
   8. SINGLE PRODUCT – FIX QTY & ADD TO CART ALIGNMENT
   ========================================================= */

/* Bungkus qty + button sejajar di desktop */
.single-product .summary form.cart,
.single-product .summary .woocommerce-variation-add-to-cart,
.single-product .summary .variations_button {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
}

/* Kotak qty */
.single-product .summary form.cart .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Input angka qty – dibikin lebar & jelas */
.single-product .summary form.cart .quantity .qty {
  width: 70px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  line-height: 42px !important;
}

/* Tombol add to cart melebar */
.single-product .summary form.cart .single_add_to_cart_button {
  flex: 1 1 auto !important;
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 600 !important;
}

/* Mobile: qty & tombol ditumpuk biar muat */
@media (max-width: 600px) {
  .single-product .summary form.cart,
  .single-product .summary .woocommerce-variation-add-to-cart,
  .single-product .summary .variations_button {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .single-product .summary form.cart .quantity {
    width: 100% !important;
  }

  .single-product .summary form.cart .quantity .qty {
    width: 100% !important;
  }

  .single-product .summary form.cart .single_add_to_cart_button {
    width: 100% !important;
  }
}

/* =========================================================
   8. SINGLE PRODUCT – FIX QTY & ADD TO CART (VARIATIONS)
   ========================================================= */

/* Wrapper untuk qty + tombol pada VARIABLE PRODUCT */
.single-product .summary .single_variation_wrap .woocommerce-variation-add-to-cart,
.single-product .summary .single_variation_wrap .variations_button {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
}

/* Wrapper qty kecil di kiri */
.single-product .summary .single_variation_wrap .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Input angka qty – dibikin lebar & jelas */
.single-product .summary .single_variation_wrap .quantity .qty {
  width: 70px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  line-height: 42px !important;
}

/* Tombol add to cart melebar di kanan */
.single-product .summary .single_variation_wrap .single_add_to_cart_button {
  flex: 1 1 auto !important;
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 600 !important;
}

/* SIMPLE PRODUCT (tanpa variations) – fallback */
.single-product .summary > form.cart:not(.variations_form) {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
}

.single-product .summary > form.cart:not(.variations_form) .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.single-product .summary > form.cart:not(.variations_form) .quantity .qty {
  width: 70px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  line-height: 42px !important;
}

.single-product .summary > form.cart:not(.variations_form) .single_add_to_cart_button {
  flex: 1 1 auto !important;
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 600 !important;
}

/* MOBILE: qty & tombol ditumpuk */
@media (max-width: 600px) {
  .single-product .summary .single_variation_wrap .woocommerce-variation-add-to-cart,
  .single-product .summary .single_variation_wrap .variations_button,
  .single-product .summary > form.cart:not(.variations_form) {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .single-product .summary .single_variation_wrap .quantity,
  .single-product .summary > form.cart:not(.variations_form) .quantity {
    width: 100% !important;
  }

  .single-product .summary .single_variation_wrap .quantity .qty,
  .single-product .summary > form.cart:not(.variations_form) .quantity .qty {
    width: 100% !important;
  }

  .single-product .summary .single_variation_wrap .single_add_to_cart_button,
  .single-product .summary > form.cart:not(.variations_form) .single_add_to_cart_button {
    width: 100% !important;
  }
}

/* =========================================================
   9. SINGLE PRODUCT – QTY & ADD TO CART SUPER OVERRIDE
   ========================================================= */

/* Wrapper form cart (simple & variable) */
.single-product div.product form.cart {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

/* Hilangkan float bawaan theme */
.single-product div.product form.cart .quantity,
.single-product div.product form.cart .single_add_to_cart_button {
  float: none !important;
}

/* Qty wrapper kecil di kiri */
.single-product div.product form.cart .quantity {
  margin: 0 !important;
  flex: 0 0 auto !important;
}

/* Input angka qty */
.single-product div.product form.cart .quantity .qty {
  width: 70px !important;
  height: 42px !important;
  border-radius: 999px !important;
  border: 1px solid #ddd !important;
  text-align: center !important;
  font-size: 14px !important;
  padding: 0 12px !important;
  line-height: 42px !important;
}

/* Tombol add to cart melebar di kanan */
.single-product div.product form.cart .single_add_to_cart_button {
  flex: 1 1 auto !important;
  height: 42px !important;
  border-radius: 999px !important;
  padding: 0 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-weight: 600 !important;
}

/* MOBILE: qty & tombol ditumpuk */
@media (max-width: 600px) {
  .single-product div.product form.cart {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .single-product div.product form.cart .quantity {
    width: 100% !important;
  }

  .single-product div.product form.cart .quantity .qty {
    width: 100% !important;
  }

  .single-product div.product form.cart .single_add_to_cart_button {
    width: 100% !important;
  }
}

/* =========================================================
   ADD TO CART BUTTON — NEW BLACK STYLE
   ========================================================= */

.single-product div.product form.cart .single_add_to_cart_button {
    background: #000 !important;
    color: #fff !important;
    border-radius: 8px !important; /* lebih kotak, tinggal diganti kalau mau */
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    height: auto !important;
    line-height: 1.2 !important;
    border: none !important;
    width: auto !important; /* nanti bisa dibuat full width kalau mau */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.single-product div.product form.cart .single_add_to_cart_button:hover {
    background: #333 !important;
}

/* Untuk tombol 'Select Options', 'Add to Wishlist', dll di loop */
.woocommerce a.button,
.woocommerce button.button {
    border-radius: 8px !important;
}

/* ===========================
   LACENSPORT - CHECKOUT V2
   Layout 2 kolom: form kiri, order kanan
   =========================== */

/* Container utama checkout */
body.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
}

/* FORM CHECKOUT = CARD + GRID 2 KOLOM */
body.woocommerce-checkout .woocommerce form.checkout {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.06);
  padding: 28px 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-column-gap: 40px;
  align-items: flex-start;
}

/* Bar kupon + notice full width di atas grid */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-NoticeGroup {
  grid-column: 1 / -1;
  margin-bottom: 18px;
}

/* Judul CHECKOUT */
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout h1.page-title {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 20px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* -------------------
   FORM KIRI (BILLING + SHIPPING)
   ------------------- */

body.woocommerce-checkout #customer_details {
  grid-column: 1;
  margin: 0;
}

body.woocommerce-checkout .col2-set {
  display: block; /* di dalam kolom kiri jadi vertikal saja, lebih rapi */
}

/* Box tiap section form */
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  padding: 18px 20px 12px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #fafafa;
}

body.woocommerce-checkout #customer_details .col-1 {
  margin-bottom: 18px;
}

/* Heading form */
body.woocommerce-checkout #customer_details h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

/* Label & input */
body.woocommerce-checkout .form-row {
  margin-bottom: 10px;
}

body.woocommerce-checkout .form-row label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  padding: 9px 11px;
  font-size: 13px;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  outline: none;
}

/* -------------------
   KOLOM KANAN (ORDER + PAYMENT)
   ------------------- */

body.woocommerce-checkout #order_review_heading {
  grid-column: 2;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.woocommerce-checkout #order_review {
  grid-column: 2;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #fafafa;
  padding: 18px 18px 20px;
}

/* Tabel ringkasan order */
body.woocommerce-checkout table.shop_table {
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  padding: 9px 11px;
}

/* Box payment (Midtrans, dll) */
body.woocommerce-checkout #payment {
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #f5f3f7;
  padding: 13px 15px 15px;
  margin-top: 16px;
}

/* Tombol PLACE ORDER */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button[type="submit"].button {
  background-color: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button[type="submit"].button:hover {
  background-color: #000000;
}

/* -------------------
   RESPONSIVE MOBILE
   ------------------- */
@media (max-width: 900px) {

  body.woocommerce-checkout .woocommerce form.checkout {
    display: block;
    padding: 20px 16px 24px;
    box-shadow: none;
    border-radius: 12px;
  }

  body.woocommerce-checkout .woocommerce-form-coupon-toggle,
  body.woocommerce-checkout .woocommerce-NoticeGroup {
    margin-bottom: 14px;
  }

  body.woocommerce-checkout #order_review_heading {
    margin-top: 22px;
  }

  body.woocommerce-checkout #order_review {
    margin-top: 8px;
  }
}

/* ===========================
   LACENSPORT - CHECKOUT CLEAN FLEX LAYOUT
   =========================== */

/* Container utama checkout */
body.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
}

/* Judul halaman */
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout h1.page-title {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 0 20px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* FORM CHECKOUT: 2 kolom pakai flex */
body.woocommerce-checkout form.checkout {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.06);
  padding: 26px 30px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

/* Bar kupon / notice full width di atas */
body.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .woocommerce-NoticeGroup {
  width: 100%;
  margin-bottom: 18px;
}

/* -------------------
   KOLOM KIRI: CUSTOMER DETAILS
   ------------------- */

body.woocommerce-checkout #customer_details {
  flex: 1 1 55%;
  margin: 0;
}

/* Matikan layout default col2-set (supaya vertikal) */
body.woocommerce-checkout #customer_details .col2-set {
  margin: 0;
}
body.woocommerce-checkout #customer_details .col2-set:before,
body.woocommerce-checkout #customer_details .col2-set:after {
  content: none !important;
  display: none !important;
}

/* Billing & shipping jadi full width, vertikal */
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 18px 20px 12px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #fafafa;
  margin: 0 0 18px;
}

/* Heading di atas box form */
body.woocommerce-checkout #customer_details h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

/* Form field */
body.woocommerce-checkout .form-row {
  margin-bottom: 10px;
}

body.woocommerce-checkout .form-row label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}

body.woocommerce-checkout .input-text,
body.woocommerce-checkout select,
body.woocommerce-checkout textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #dcdcdc;
  padding: 9px 11px;
  font-size: 13px;
}

body.woocommerce-checkout .input-text:focus,
body.woocommerce-checkout select:focus,
body.woocommerce-checkout textarea:focus {
  border-color: #111111;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  outline: none;
}

/* -------------------
   KOLOM KANAN: ORDER REVIEW + PAYMENT
   ------------------- */

/* Sembunyikan heading asli */
body.woocommerce-checkout #order_review_heading {
  display: none;
}

/* Kotak order review sebagai kolom kanan */
body.woocommerce-checkout #order_review {
  flex: 1 1 38%;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #fafafa;
  padding: 18px 18px 20px;
}

/* Heading baru di dalam card */
body.woocommerce-checkout #order_review::before {
  content: "Your Order";
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

/* Tabel ringkasan order */
body.woocommerce-checkout table.shop_table {
  border-radius: 8px;
  overflow: hidden;
  font-size: 13px;
}

body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
  padding: 9px 11px;
}

/* Box payment (Midtrans, dll) */
body.woocommerce-checkout #payment {
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  background: #f5f3f7;
  padding: 13px 15px 15px;
  margin-top: 16px;
}

/* Tombol Place Order */
body.woocommerce-checkout #place_order,
body.woocommerce-checkout button[type="submit"].button {
  background-color: #111111;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout button[type="submit"].button:hover {
  background-color: #000000;
}

/* -------------------
   RESPONSIVE MOBILE
   ------------------- */
@media (max-width: 900px) {
  body.woocommerce-checkout .woocommerce {
    margin: 20px auto 40px;
    padding: 0 12px;
  }

  body.woocommerce-checkout form.checkout {
    display: block;
    padding: 20px 18px 24px;
    box-shadow: none;
    border-radius: 12px;
  }

  body.woocommerce-checkout #customer_details {
    margin-bottom: 18px;
  }

  body.woocommerce-checkout #order_review {
    width: 100%;
  }

  body.woocommerce-checkout #order_review::before {
    text-align: left;
  }
}

/* ============================
   MY ACCOUNT – JUDUL HALAMAN
   ============================ */

/* Paksa judul punya lebar & posisi yang sama dengan kontainer WooCommerce */
body.woocommerce-account .page-title,
body.woocommerce-account .entry-title,
body.woocommerce-account h1.page-title {
  display: block;
  max-width: 1200px;
  margin: 40px auto 0;     /* sama dengan container di bawahnya */
  padding: 0 16px;         /* padding kiri-kanan sama dengan konten */
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* ============================
   MY ACCOUNT – LAYOUT UTAMA
   ============================ */

.woocommerce-account .woocommerce {
  max-width: 1200px;
  margin: 20px auto 60px;  /* 20px ke bawah dari title */
  padding: 0 16px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  font-size: 14px;
}

/* ============================
   NAVIGASI SAMPING (MENU AKUN)
   ============================ */

.woocommerce-MyAccount-navigation {
  flex: 0 0 220px;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 18px 16px;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation li {
  margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* Hover & menu aktif */
.woocommerce-MyAccount-navigation a:hover {
  background: #111;
  color: #fff;
}

.woocommerce-MyAccount-navigation .is-active a {
  background: #111;
  color: #fff;
}

/* ============================
   KONTEN KANAN
   ============================ */

.woocommerce-MyAccount-content {
  flex: 1;
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.03);
  line-height: 1.7;
}

/* Link di konten */
.woocommerce-MyAccount-content a {
  color: #e91e63;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(233,30,99,0.3);
}

.woocommerce-MyAccount-content a:hover {
  border-bottom-color: transparent;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 768px) {
  body.woocommerce-account .page-title,
  body.woocommerce-account .entry-title,
  body.woocommerce-account h1.page-title {
    margin: 20px auto 0;
    padding: 0 16px;
    font-size: 22px;
  }

  .woocommerce-account .woocommerce {
    flex-direction: column;
    gap: 20px;
    margin: 16px auto 40px;
  }

  .woocommerce-MyAccount-navigation {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 10px;
  }

  .woocommerce-MyAccount-navigation ul {
    display: flex;
    gap: 6px;
    width: max-content;
  }

  .woocommerce-MyAccount-navigation li {
    margin-bottom: 0;
  }

  .woocommerce-MyAccount-navigation a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 13px;
  }

  .woocommerce-MyAccount-content {
    padding: 18px 16px 24px;
  }
}

/* =========================
   Woo My Account – rapetin jarak menu & konten
   ========================= */

/* Biar layoutnya rapi (nav kiri + konten kanan) */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  float: none !important;            /* matiin float bawaan */
}

.woocommerce-account .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content{
  margin-top: 0 !important;
}

/* Wrapper jadi flex biar “nempel” dan gap bisa diatur */
.woocommerce-account .woocommerce{
  display: flex;
  align-items: flex-start;
  gap: 18px;                         /* jarak antar kolom */
}

/* Hapus jarak bawah aneh dari menu */
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin: 0 !important;
  padding: 0 !important;
}

/* Konten jangan punya margin atas */
.woocommerce-account .woocommerce-MyAccount-content{
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  flex: 1;                            /* konten isi sisa lebar */
}

/* Mobile: jadi 1 kolom biar nggak aneh */
@media (max-width: 768px){
  .woocommerce-account .woocommerce{
    display: block;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation{
    margin-bottom: 12px !important;   /* jarak kecil aja */
  }

  /* menu bisa scroll horizontal kalau kepanjangan */
  .woocommerce-account .woocommerce-MyAccount-navigation ul{
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li{
    flex: 0 0 auto;
  }
}

/* =========================================
   FORCE: Rapetin jarak menu vs konten My Account
   (tema/elementor override friendly)
   ========================================= */

/* 1) Pastikan wrapper My Account tidak bikin “kolom kiri tinggi banget” */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  height: auto !important;
  min-height: 0 !important;
}

/* 2) Matikan layout float bawaan yang kadang bikin jarak aneh */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  float: none !important;
  width: 100% !important;
}

/* 3) Ini yang paling sering: margin/padding gede di nav / content */
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 4) Kalau tema kamu bikin jarak lewat “ul” dan “li” */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin: 0 !important;
}

/* 5) Paksa jarak antara nav dan konten jadi kecil */
.woocommerce-account .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content{
  margin-top: 12px !important; /* atur 0–12px sesuai selera */
}

/* 6) Kalau My Account dipasang via Elementor widget, selector ini bantu */
.elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation + .woocommerce-MyAccount-content{
  margin-top: 12px !important;
}

/* =========================================
   My Account — bikin menu jadi baris rapi, tanpa kotak tinggi kosong
   ========================================= */

/* Matikan “panel besar” di navigasi */
.woocommerce-account .woocommerce-MyAccount-navigation{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 0 12px 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Hilangin padding / background dari UL juga (ini yang sering bikin kotaknya jadi gede) */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;

  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
}

/* Biar itemnya ga bikin tinggi aneh */
.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

/* Style tab biar cakep dan konsisten */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: #f2f2f2 !important;
  color: #111 !important;
  text-decoration: none !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Active tab */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: #111 !important;
  color: #fff !important;
}

/* Konten jangan kejeda jauh */
.woocommerce-account .woocommerce-MyAccount-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================================
   FIX: Gap besar antara tab & konten (My Account)
   ========================================= */

/* 1) Pastikan area My Account tidak punya spacer aneh */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-account,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 2) Ini biang kerok paling sering: paragraph/wrapper pertama di konten punya margin-top gede */
.woocommerce-account .woocommerce-MyAccount-content > *:first-child{
  margin-top: 0 !important;
}

/* 3) Kalau kontennya dibungkus Elementor container/section yang kasih jarak */
.woocommerce-account .elementor-widget-container,
.woocommerce-account .elementor-section,
.woocommerce-account .elementor-container,
.woocommerce-account .elementor-column,
.woocommerce-account .elementor-widget-wrap,
.woocommerce-account .e-con,
.woocommerce-account .e-con-inner{
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 4) Paksa jarak antara nav dan konten jadi rapet */
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin-bottom: 12px !important; /* kecilin lagi kalau mau: 6px / 0 */
}

.woocommerce-account .woocommerce-MyAccount-content{
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  top: -10px; /* TRIK: tarik konten naik kalau masih ada gap “ga jelas” */
}

/* =========================================
   My Account: Nav + Content jarak 15–20px
   ========================================= */

.woocommerce-account .woocommerce{
  /* paksa layout jadi vertikal (nav di atas, konten di bawah) */
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;

  /* INI yang ngatur jaraknya */
  gap: 18px !important; /* ubah 15–20 sesuai mau */
}

/* pastikan nav & konten full width */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* hilangkan “kotak/spacer” yang bikin nav berasa punya tinggi besar */
.woocommerce-account .woocommerce-MyAccount-navigation{
  padding: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* pastiin konten ga punya margin atas dari elemen pertamanya */
.woocommerce-account .woocommerce-MyAccount-content > *:first-child{
  margin-top: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation *{
  margin-bottom: 0 !important;
}

/* =========================================
   My Account – Mobile tabs: horizontal scroll TANPA bikin halaman melebar
   ========================================= */

/* cegah halaman melebar gara-gara elemen di dalamnya */
html, body{
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* wrapper my account jangan pernah lebih lebar dari viewport */
.woocommerce-account .woocommerce,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}

/* JARAK nav -> konten (target kamu 15–20px) */
.woocommerce-account .woocommerce-MyAccount-navigation{
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* tab jadi 1 baris + bisa digeser, tapi tidak bikin body melebar */
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;

  width: 100% !important;
  max-width: 100% !important;

  overflow-x: auto !important;
  overflow-y: hidden !important;

  margin: 0 !important;
  padding: 0 0 6px 0 !important;

  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* firefox */
}
.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{
  display: none; /* chrome/safari */
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li{
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* tab style */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a{
  display: inline-flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-radius: 999px !important;
  background: #f2f2f2 !important;
  color: #111 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a{
  background: #111 !important;
  color: #fff !important;
}

/* konten rapet ke atas */
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content > *:first-child{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
