/*
Theme Name: Alukas Child
Theme URI: https://alukas.presslayouts.com/
Author: PressLayouts
Description: This is a child theme for Alukas
Version: 1.0
Author URI: https://www.presslayouts.com/
Template: alukas
Text Domain: pls-theme-child
*/

/* ============================= */
/* HIDE DEFAULT THEME UI         */
/* ============================= */
.pls-product-inner,
.pls-products-header-right {
  display: none !important;
}

/* ============================= */
/* LAYOUT WRAPPER                */
/* ============================= */
.shop-layout-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.shop-content {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}

/* ============================= */
/* FILTER BAR                    */
/* ============================= */
/* ============================= */
/* FILTER BAR                    */
/* ============================= */
.product-filter-bar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: flex-end; /* ← aligns all children to bottom */
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: fit-content;
  max-width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 120px;
  flex: 0 0 auto;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
  display: block;
  margin-bottom: 0;
}

.filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  color: #333;
  cursor: pointer;
  height: 38px;
  appearance: auto;
  display: block;
}

.filter-select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

/* Reset — self-aligns to bottom of flex row */
.filter-reset-wrap {
  min-width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end; /* ← button sticks to bottom */
  align-self: flex-end; /* ← extra safety */
  padding-bottom: 0;
  margin-bottom: 0;
}

.filter-reset-btn {
  height: 38px;
  padding: 0 22px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  display: block;
  margin: 0; /* ← remove any inherited margin */
  line-height: 38px;
}

.filter-reset-btn:hover {
  background: #444;
}

/* ============================= */
/* TABLE BASE STYLE              */
/* ============================= */
.custom-product-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #999;
  background: #fff;
  margin-top: 0;
}

.custom-product-table thead th {
  border: 1px solid #999 !important;
  background: #d6e3f3;
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.custom-product-table td {
  border: 1px solid #999 !important;
  padding: 12px 14px;
  font-size: 14px;
  vertical-align: middle;
}

/* PRODUCT COLUMN */
.custom-product-table td.col-product {
  text-align: center;
  min-width: 260px;
}

.custom-product-table td.col-product img {
  display: block;
  margin: 0 auto 6px;
  border-radius: 4px;
}

/* IMAGE SLIDER */
.pis-slider {
  position: relative;
  width: 320px;
  max-width: 100%;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 4px;
}

.pis-track {
  display: flex;
  transition: transform 0.3s ease;
}

.pis-slide {
  flex: 0 0 100%;
  width: 100%;
}

.pis-slide img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
}

.pis-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 24px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  color: #333;
  z-index: 2;
}

.pis-arrow:hover {
  background: #fff;
}

.pis-prev { left: 6px; }
.pis-next { right: 6px; }

.pis-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 4px;
}

.pis-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  display: inline-block;
}

.pis-dot.active {
  background: #555;
}

.custom-product-table td.col-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
  text-align: center;
}

/* PURITY COLUMN (single column, options stacked vertically) */
.custom-product-table td.col-purity {
  text-align: center;
  min-width: 200px;
  padding: 8px 14px;
}

.col-purity-inner {
  display: inline-block;
  text-align: left;
}

.col-purity .karat-col {
  display: block;
  padding: 7px 0;
}

.col-purity .karat-col:not(:last-child) {
  border-bottom: 1px solid #e2e2e2;
}

.karat-price-label {
  display: grid;
  grid-template-columns: 18px 80px auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.karat-price-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #111;
  width: 15px;
  height: 15px;
}

.karat-name {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.price-display {
  font-size: 14px;
  color: #222;
  font-weight: 500;
  text-align: left;
}

.no-variant {
  color: #bbb;
  font-size: 18px;
  display: block;
  text-align: center;
}

/* COLOR COLUMN */
.custom-product-table td.col-color {
  text-align: center;
  min-width: 110px;
}

.custom-product-table .color-select {
  padding: 6px 8px;
  border: 1px solid #999;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  width: 100%;
  background: #fff;
}

/* ADD TO CART COLUMN */
.custom-product-table td.col-cart {
  text-align: center;
  min-width: 130px;
}

.col-cart {
  display: table-cell;
}

.col-cart .add-to-cart-btn,
.col-cart .enquire-btn {
  margin-bottom: 8px;
}

.col-cart .enquire-btn:last-child,
.col-cart .add-to-cart-btn:last-child {
  margin-bottom: 0;
}

.add-to-cart-btn {
  background: #000;
  color: #fff;
  padding: 9px 16px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: #333;
}

/* ROW HOVER */
.custom-product-table tbody tr:hover {
  background: #f7f7f7;
}

/* SCROLLBAR */
.custom-product-table::-webkit-scrollbar {
  height: 6px;
}

.custom-product-table::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

/* ============================= */
/* FULLSCREEN LOADER             */
/* ============================= */
#pls-page-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

#pls-page-loader.active {
  display: flex;
}

.pls-loader-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #111;
  border-radius: 50%;
  animation: pls-spin 0.7s linear infinite;
}

.pls-loader-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================= */
/* INLINE PAGINATION LOADER      */
/* ============================= */
.pls-pagination-loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
}

.pls-pagination-loader.active {
  display: flex;
}

.pls-mini-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid #e0e0e0;
  border-top-color: #111;
  border-radius: 50%;
  animation: pls-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes pls-spin {
  to {
    transform: rotate(360deg);
  }
}

.custom-product-table select {
  /* padding: 6px; */
  border: 1px solid #999;
  cursor: pointer;
}

/* ============================= */
/* MOBILE RESPONSIVE             */
/* ============================= */
@media (max-width: 900px) {
  .shop-layout-wrapper {
    flex-direction: column;
  }

  .product-filter-bar {
    width: 100%;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .filter-group {
    min-width: 110px;
    flex: 1 1 auto;
  }

  .filter-reset-wrap {
    flex: 0 0 auto;
  }

  .filter-select {
    width: 100%;
  }

  .shop-content {
    width: 100%;
    overflow-x: auto;
  }

  .custom-product-table {
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .custom-product-table th,
  .custom-product-table td {
    min-width: 120px;
    font-size: 12px;
    padding: 8px 10px;
  }

  .custom-product-table td:first-child {
    min-width: 150px;
  }

  .karat-price-label {
    font-size: 12px;
  }

  .add-to-cart-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .custom-product-table .color-select {
    font-size: 12px;
  }

  .pls-product-inner,
  .pls-products-header-right {
    display: none !important;
  }
}

/* ============================= */
/* PRODUCT POPUP TRIGGER         */
/* (click image/name to open)    */
/* ============================= */
.col-product a.product-popup-trigger {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.col-product a.product-popup-trigger img {
  display: block;
  margin: 0 auto 6px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.col-product a.product-popup-trigger:hover img {
  opacity: 0.82;
}

.col-product a.product-popup-trigger strong {
  display: block;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: #222;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.col-product a.product-popup-trigger:hover strong {
  text-decoration-color: #222;
}

/* ============================= */
/* CART / ENQUIRE BUTTONS        */
/* ============================= */
.add-to-cart-btn,
.enquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  transition: background 0.2s, transform 0.1s;
}

.enquire-btn {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.enquire-btn:hover {
  background: #000 !important;
  transform: translateY(-1px);
}

.enquire-btn:disabled {
  background: #f2f2f2;
  color: #999;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
  opacity: 0.7;
}

.enquire-btn:disabled:hover {
  background: #f2f2f2;
  transform: none;
}

.enquire-btn svg {
  flex-shrink: 0;
}

/* ============================= */
/* PRODUCT POPUP MODAL           */
/* ============================= */
.pls-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pls-modal-overlay.is-open {
  opacity: 1;
}

.pls-modal-overlay[hidden] {
  display: none !important;
}

body.pls-modal-open {
  overflow: hidden;
}

.pls-modal-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 560px;
  width: 100%;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.22s ease;
  padding: 28px 28px 24px;
  overflow: hidden;
}

.pls-modal-overlay.is-open .pls-modal-box {
  transform: translateY(0);
}

.pls-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  z-index: 2;
}

.pls-modal-close:hover {
  color: #000;
  background: #f0f0f0;
}

/* Title above image */
#pls-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
  line-height: 1.3;
  padding-right: 32px;
}

/* Single-column inner */
.pls-modal-inner {
  display: block;
}

/* ── Image column (full width) ── */
.pls-modal-image-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Main large image */
.pls-main-image-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pls-main-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  padding: 8px;
  transition: opacity 0.2s;
}

/* Loading spinner overlay on main image */
.pls-main-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,250,250,0.8);
}

/* Thumbnail strip */
.pls-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pls-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  background: #fafafa;
  cursor: pointer;
  padding: 3px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.pls-thumb:hover {
  border-color: #999;
}

.pls-thumb.active {
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

/* Loading state */
.pls-modal-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
  font-size: 13px;
  padding: 8px 0;
}

/* ============================= */
/* MODAL RESPONSIVE              */
/* ============================= */
@media (max-width: 600px) {
  .pls-modal-box {
    padding: 20px 14px 20px;
  }

  .pls-main-image-wrap {
    height: 260px;
  }

  #pls-modal-title {
    font-size: 15px;
  }
}

/* ============================= */
/* ENQUIRY FORM MODAL            */
/* ============================= */
.pls-enquiry-box {
  max-width: 440px;
}

#pls-enquiry-title {
  margin: 0 0 14px;
  font-size: 18px;
  text-align: left;
  padding-right: 24px;
}

.pls-enquiry-summary {
  background: #f6f6f6;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 16px !important;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

.pls-enquiry-form {
  display: flex;
  flex-direction: column;
}

.pls-enq-label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 10px 0 4px;
}

.pls-enquiry-form input[type="text"],
.pls-enquiry-form input[type="email"],
.pls-enquiry-form input[type="tel"] {
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.pls-enquiry-form input:focus {
  outline: none;
  border-color: #888;
}

.pls-enquiry-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 10px;
}

.pls-enquiry-submit {
  margin-top: 18px;
  background: #1f1f1f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pls-enquiry-submit:hover {
  background: #000;
}

.pls-enquiry-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.pls-enquiry-success {
  font-size: 14px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
