/* =========================================================
   LASER PAGE
   FINAL / CLEAN / CROSS-BROWSER
   Chrome / Firefox / Edge / Safari
   RTL / Persian
   ========================================================= */

/* =========================================================
   1. FONT
   ========================================================= */

@font-face {
  font-family: Vazirmatn;
  src: url("../../assets/libs/vazirmatn/Vazirmatn-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("../../assets/libs/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   2. VARIABLES
   ========================================================= */

:root {
  --laser-font:
    "Vazirmatn", system-ui, -apple-system, "Segoe UI", tahoma, sans-serif;
  --laser-primary: #2563eb;
  --laser-primary-hover: #1d4ed8;
  --laser-bg: #fff;
  --laser-input-bg: #f8fafc;
  --laser-text: #0f172a;
  --laser-muted: #64748b;
  --laser-border: #e2e8f0;
  --laser-border-focus: #2563eb;
  --laser-success: #16a34a;
  --laser-danger: #dc2626;
  --laser-radius: 12px;
  --laser-input-radius: 8px;

  /*
    Custom Select dimensions
    قابل تغییر مستقیم
  */
  --laser-select-height: 48px;
  --laser-select-menu-max-height: 280px;
}

/* =========================================================
   3. RESET LOCAL
   ========================================================= */

.laser-page-container,
.laser-page-container *,
.laser-page-container *::before,
.laser-page-container *::after {
  box-sizing: border-box;
}

/* =========================================================
   4. PAGE
   ========================================================= */

.laser-page-container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto 40px;
  padding: 0 15px;
  font-family: var(--laser-font);
  color: var(--laser-text);
}

/* =========================================================
   5. CARD
   ========================================================= */

.order-card-wrapper {
  width: 100%;
  background: var(--laser-bg);
  border: 1px solid var(--laser-border);
  border-radius: var(--laser-radius);
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 5%);
}

/* =========================================================
   6. TITLES
   ========================================================= */

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--laser-text);
  font-family: var(--laser-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.7;
}

.section-title i {
  flex: 0 0 auto;
}

.section-subtitle {
  margin: 0 0 20px;
  color: var(--laser-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* =========================================================
   7. FORM
   ========================================================= */

#laser-order-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   8. FORM GROUP
   ========================================================= */

.laser-form-group {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.laser-form-group > label {
  display: block;
  margin: 0;
  color: var(--laser-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

/* =========================================================
   9. FIELDSET
   ========================================================= */

.laser-fieldset {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.laser-fieldset legend {
  width: 100%;
  margin-bottom: 6px;
  color: var(--laser-text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.7;
}

/* =========================================================
   10. COMMON INPUT
   ========================================================= */

.laser-input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid var(--laser-border);
  border-radius: var(--laser-input-radius);
  background-color: var(--laser-input-bg);
  color: var(--laser-text);
  font-family: var(--laser-font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.7;
  outline: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

input.laser-input,
textarea.laser-input {
  padding: 10px 14px;
}

input.laser-input {
  min-height: 44px;
}

textarea.laser-input {
  min-height: 80px;
  resize: vertical;
}

/* =========================================================
   11. NATIVE SELECT
   فقط برای package / delivery
   ========================================================= */

select.laser-input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  appearance: auto;
}

select.laser-input option {
  color: #0f172a;
  background: #fff;
}

/* =========================================================
   12. FOCUS
   ========================================================= */

.laser-input:focus {
  border-color: var(--laser-border-focus);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 15%);
}

/* =========================================================
   13. CUSTOM SELECT
   ========================================================= */

.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
  direction: rtl;
}

/* =========================================================
   CUSTOM SELECT TRIGGER
   ========================================================= */

.custom-select-trigger {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: var(--laser-select-height);
  margin: 0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--laser-border);
  border-radius: var(--laser-input-radius);
  background: var(--laser-input-bg);
  color: var(--laser-text);
  font-family: var(--laser-font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.custom-select-trigger:hover {
  background: #fff;
}

.custom-select.open .custom-select-trigger {
  border-color: var(--laser-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 12%);
}

/* =========================================================
   SELECT VALUE
   ========================================================= */

.custom-select-value {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================================================
   ARROW
   ========================================================= */

.custom-select-arrow {
  flex: 0 0 auto;
  color: var(--laser-muted);
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--laser-primary);
}

/* =========================================================
   CUSTOM SELECT MENU
   ========================================================= */

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  max-width: 100%;
  max-height: var(--laser-select-menu-max-height);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  padding: 6px;
  border: 1px solid var(--laser-border);
  border-radius: var(--laser-input-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgb(15 23 42 / 14%);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}

.custom-select.open .custom-select-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* =========================================================
   CUSTOM OPTION
   ========================================================= */

.custom-select-option {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--laser-text);
  font-family: var(--laser-font);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
  text-align: right;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  outline: none;
  appearance: none;
}

.custom-select-option:hover,
.custom-select-option:focus-visible {
  background: #eff6ff;
  color: #1d4ed8;
}

.custom-select-option.selected {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

/* =========================================================
   14. MATERIAL COLORS
   ========================================================= */

.material-color-group {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.material-radio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--laser-border);
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--laser-text);
  font-size: 0.88rem;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
}

.material-radio-btn input {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

/* =========================================================
   15. CUSTOM SIZE
   ========================================================= */

.custom-size-container {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--laser-border);
  border-radius: 8px;
  background: #f8fafc;
}

.custom-size-container[hidden] {
  display: none !important;
}

/* =========================================================
   16. TWO COLUMN
   ========================================================= */

.form-row-2col {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row-2col > * {
  min-width: 0;
}

/* =========================================================
   17. DELIVERY
   ========================================================= */

.delivery-address-box {
  width: 100%;
}

.delivery-address-box[hidden] {
  display: none !important;
}

/* =========================================================
   18. DIVIDER
   ========================================================= */

.form-divider {
  width: 100%;
  height: 1px;
  margin: 4px 0;
  border: 0;
  background: var(--laser-border);
}

/* =========================================================
   19. CUSTOMER TITLE
   ========================================================= */

.customer-section-title {
  margin: 0;
  color: var(--laser-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

/* =========================================================
   20. PRICE
   ========================================================= */

.price-summary-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--laser-border);
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.8;
}

.price-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-summary-row b {
  white-space: nowrap;
}

.price-summary-total {
  margin-top: 4px;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--laser-border);
  color: var(--laser-success);
  font-size: 1.1rem;
  font-weight: 700;
}

/* =========================================================
   21. PAYMENT
   ========================================================= */

.btn-pay-laser {
  width: 100%;
  max-width: 380px;
  min-height: 48px;
  margin: 10px auto 0;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--laser-primary);
  color: #fff;
  font-family: var(--laser-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
  box-shadow: 0 4px 12px rgb(37 99 235 / 20%);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease,
    box-shadow 0.2s ease;
}

.btn-pay-laser:hover {
  background: var(--laser-primary-hover);
  box-shadow: 0 6px 18px rgb(37 99 235 / 30%);
  transform: translateY(-2px);
}

.btn-pay-laser:active {
  transform: translateY(0);
}

.btn-pay-laser:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================================================
   22. SLIDER
   ========================================================= */

.laser-slider-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--laser-radius);
  background: #000;
  box-shadow: 0 4px 15px rgb(0 0 0 / 8%);
}

.laser-slider {
  width: 100%;
  display: flex;
  direction: ltr;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

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

.laser-slide img {
  display: block;
  width: 100%;
  height: 280px;
  margin: 0;
  object-fit: cover;
}

/* =========================================================
   23. SLIDER BUTTONS
   ========================================================= */

.slider-btn {
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.slider-btn:hover {
  background: rgb(0 0 0 / 70%);
}

.slider-btn.prev {
  right: 10px;
}

.slider-btn.next {
  left: 10px;
}

/* =========================================================
   24. DOTS
   ========================================================= */

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 50%);
  cursor: pointer;
  transition:
    width 0.2s ease,
    background-color 0.2s ease;
}

.dot.active {
  width: 20px;
  border-radius: 10px;
  background: #fff;
}

/* =========================================================
   25. ACCESSIBILITY
   ========================================================= */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: 2px;
}

/* =========================================================
   26. MOBILE
   ========================================================= */

@media (width <= 576px) {
  .laser-page-container {
    margin-top: 12px;
    margin-bottom: 25px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .order-card-wrapper {
    padding: 16px;
    border-radius: 10px;
  }

  .section-title {
    font-size: 1.15rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .form-row-2col {
    grid-template-columns: minmax(0, 1fr);
  }

  .custom-size-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .material-color-group {
    flex-direction: column;
  }

  .material-radio-btn {
    width: 100%;
  }

  .laser-slide img {
    height: 180px;
  }

  .slider-btn {
    width: 32px;
    height: 32px;
  }

  .slider-btn.prev {
    right: 8px;
  }

  .slider-btn.next {
    left: 8px;
  }

  .btn-pay-laser {
    max-width: none;
  }

  .price-summary-total {
    font-size: 1rem;
  }
}

/* =========================================================
   27. VERY SMALL
   ========================================================= */

@media (width <= 380px) {
  .order-card-wrapper {
    padding: 12px;
  }

  .laser-page-container {
    padding-left: 6px;
    padding-right: 6px;
  }

  .section-title {
    font-size: 1.05rem;
  }

  .laser-input,
  .custom-select-trigger {
    font-size: 0.85rem;
  }

  .price-summary-box {
    padding: 12px;
    font-size: 0.85rem;
  }

  .price-summary-total {
    font-size: 0.95rem;
  }
}

/* =========================================================
   28. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .laser-input,
  .custom-select-trigger,
  .custom-select-menu,
  .custom-select-arrow,
  .btn-pay-laser,
  .laser-slider,
  .dot {
    transition: none !important;
  }
}


/* PORTFOLIO GALLERY — client-side, image/video ready */
.laser-portfolio{width:100%;margin:0 0 24px;padding:clamp(18px,3vw,30px);border:1px solid #e7eaf0;border-radius:22px;background:radial-gradient(ellipse at 100% 0%,rgb(37 99 235 / 7%),transparent 45%),linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 14px 36px rgb(15 23 42 / 6%)}
.laser-portfolio__heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:22px}
.laser-portfolio__eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;color:#2563eb;font-size:.82rem;font-weight:800}
.laser-portfolio__heading h2{margin:0 0 6px;color:#0f172a;font-size:clamp(1.2rem,2.5vw,1.65rem);line-height:1.7;font-weight:800}
.laser-portfolio__heading p{margin:0;color:#64748b;font-size:.9rem;line-height:1.8}
.laser-portfolio__cta{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:11px 16px;border-radius:11px;color:#fff;background:#2563eb;text-decoration:none;font-size:.88rem;font-weight:800;transition:transform .2s,background .2s}
.laser-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.laser-gallery-card{min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 5px 16px rgb(15 23 42 / 4%);transition:transform .22s,box-shadow .22s}
.laser-gallery-card__media{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;overflow:hidden;border:0;background:#e2e8f0;cursor:zoom-in;text-align:inherit}
.laser-gallery-card__media>img,.laser-gallery-card__media>video{display:block;width:100%;height:100%;object-fit:cover}
.laser-gallery-card__zoom{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:1.5rem;background:rgb(15 23 42 / 0%);opacity:0;transition:opacity .2s,background .2s}
.laser-gallery-card__type{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid rgb(255 255 255 / 45%);border-radius:999px;color:#fff;background:rgb(15 23 42 / 72%);font-size:.72rem;font-weight:700;pointer-events:none}
.laser-gallery-card__caption{padding:13px 14px 15px}.laser-gallery-card__caption h3{margin:0 0 5px;color:#0f172a;font-size:.94rem;font-weight:800;line-height:1.7}.laser-gallery-card__caption p{margin:0;color:#64748b;font-size:.8rem;line-height:1.8}
.laser-portfolio__note{display:flex;align-items:start;gap:8px;margin:17px 0 0;color:#64748b;font-size:.78rem;line-height:1.8}.laser-portfolio__note i{margin-top:5px;color:#2563eb}
.laser-gallery-lightbox[hidden]{display:none!important}.laser-gallery-lightbox{position:fixed;z-index:2147483000;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:54px 20px 24px;background:rgb(2 6 23 / 92%);backdrop-filter:blur(8px)}
.laser-gallery-lightbox__close{position:absolute;top:16px;left:16px;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgb(255 255 255 / 25%);border-radius:50%;color:#fff;background:rgb(255 255 255 / 10%);font-size:1.2rem;cursor:pointer}
.laser-gallery-lightbox__content{display:flex;align-items:center;justify-content:center;width:min(100%,1100px);max-height:calc(100vh - 125px)}
.laser-gallery-lightbox__content img,.laser-gallery-lightbox__content video{display:block;max-width:100%;max-height:calc(100vh - 145px);border-radius:12px;object-fit:contain}
.laser-gallery-lightbox__title{margin:0;color:#fff;text-align:center;font-size:.95rem;line-height:1.7}
.laser-gallery-card__media:focus-visible,.laser-gallery-lightbox__close:focus-visible,.laser-portfolio__cta:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
@media(hover:hover){.laser-gallery-card:hover{transform:translateY(-4px);box-shadow:0 13px 28px rgb(15 23 42 / 10%)}.laser-gallery-card__media:hover .laser-gallery-card__zoom{opacity:1;background:rgb(15 23 42 / 24%)}.laser-portfolio__cta:hover{background:#1d4ed8;transform:translateY(-2px)}}
@media(max-width:700px){.laser-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.laser-portfolio__heading{align-items:start}.laser-portfolio__cta{padding:10px 12px;font-size:.8rem}}
@media(max-width:460px){.laser-portfolio{padding:16px 12px;border-radius:16px}.laser-portfolio__heading{flex-direction:column;align-items:stretch;gap:12px}.laser-portfolio__cta{align-self:flex-start}.laser-gallery-grid{gap:9px}.laser-gallery-card{border-radius:12px}.laser-gallery-card__caption{padding:10px}.laser-gallery-card__caption h3{font-size:.82rem}.laser-gallery-card__caption p{font-size:.74rem}.laser-gallery-card__type{right:7px;bottom:7px;font-size:.67rem}}
@media(prefers-reduced-motion:reduce){.laser-gallery-card,.laser-gallery-card__zoom,.laser-portfolio__cta{transition:none}}
