/* AL-AQSA — Premium inner pages + shared layout fixes */
body.aq-premium #content {
  padding-top: 0 !important;
  min-height: 50vh;
}

/* Fix old mobile-menu drawer to feel premium */
body.aq-premium .mobile-menu {
  background: #0b1c2c !important;
  max-width: min(86vw, 360px);
  box-shadow: 0 0 40px rgba(0,0,0,.35);
}
body.aq-premium .mobile-menu .mobile-menu-logo {
  background: #132a3f;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px;
}
body.aq-premium .mobile-menu .menu-category-name,
body.aq-premium .mobile-menu a {
  color: rgba(255,255,255,.92) !important;
  font-size: 15px;
  padding: 12px 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
body.aq-premium .mobile-menu .menu-category-toggle,
body.aq-premium .mobile-menu .menu-subcategory-toggle {
  color: #c4a35a;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.aq-premium .mobile-menu .second-nav,
body.aq-premium .mobile-menu .third-nav {
  background: rgba(255,255,255,.04);
}
body.aq-premium .mobile-menu-close {
  color: #fff;
  font-size: 22px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.aq-premium.menu-open,
body.aq-premium.overflow-hidden {
  overflow: hidden;
}

/* ========== Product Detail ========== */
.aq-pdp { padding: 18px 0 40px; }
.aq-breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13px; color: #6b7280; margin-bottom: 16px;
}
.aq-breadcrumb a { color: #0b1c2c; text-decoration: none; }
.aq-breadcrumb a:hover { color: #c4a35a; }
.aq-pdp-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.aq-pdp-gallery {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11,28,44,.08);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 8px 30px rgba(11,28,44,.05);
}
.aq-pdp-badge {
  position: absolute; top: 22px; left: 22px; z-index: 2;
  background: #0b1c2c; color: #c4a35a;
  font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
}
.aq-pdp-main {
  aspect-ratio: 1/1.15;
  border-radius: 14px;
  overflow: hidden;
  background: #f7f3ec;
  display: flex; align-items: center; justify-content: center;
}
.aq-pdp-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.aq-pdp-fallback {
  text-align: center; color: #6b7280; padding: 40px;
}
.aq-pdp-fallback i { font-size: 42px; margin-bottom: 10px; display: block; }
.aq-pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.aq-pdp-thumb {
  border: 1px solid rgba(11,28,44,.1);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
  aspect-ratio: 1;
}
.aq-pdp-thumb.is-active { border-color: #c4a35a; box-shadow: 0 0 0 2px rgba(196,163,90,.25); }
.aq-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.aq-pdp-info {
  background: #fff;
  border: 1px solid rgba(11,28,44,.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(11,28,44,.05);
}
.aq-pdp-info h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #0b1c2c;
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 600;
}
.aq-pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.aq-pdp-price .now { font-size: 1.6rem; font-weight: 700; color: #0b1c2c; }
.aq-pdp-price .was { color: #6b7280; text-decoration: line-through; font-size: 1rem; }
.aq-pdp-price .save { background: #f7f3ec; color: #0b1c2c; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.aq-pdp-code, .aq-pdp-brand { font-size: 14px; color: #4b5563; margin: 0 0 8px; }
.aq-pdp-field { margin: 16px 0; }
.aq-pdp-field > label { display: block; font-size: 13px; font-weight: 600; color: #0b1c2c; margin-bottom: 8px; }
.aq-size-list { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-chip { cursor: pointer; }
.aq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.aq-chip > span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 40px; padding: 0 12px;
  border: 1px solid rgba(11,28,44,.15); border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #0b1c2c; background: #fff;
}
.aq-chip.is-checked > span, .aq-chip input:checked + span {
  border-color: #0b1c2c; background: #0b1c2c; color: #fff;
}
.aq-chip-color > span { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; }
.aq-qty { display: inline-flex; align-items: center; border: 1px solid rgba(11,28,44,.12); border-radius: 999px; overflow: hidden; }
.aq-qty-btn {
  width: 42px; height: 42px; border: 0; background: #f7f3ec; color: #0b1c2c;
  font-size: 18px; cursor: pointer;
}
.aq-qty input {
  width: 56px; border: 0; text-align: center; font-weight: 600; height: 42px; outline: none;
}
.aq-pdp-actions { display: grid; gap: 10px; margin-top: 18px; }
.aq-pdp-actions .aq-btn { width: 100%; border: 0; cursor: pointer; text-decoration: none; }
.aq-btn-wa { background: #128C7E; color: #fff !important; }
.aq-btn-wa:hover { background: #0e7368; color: #fff !important; }
.aq-btn-ghost { background: transparent; color: #0b1c2c !important; border: 1px solid rgba(11,28,44,.2) !important; }
.aq-pdp-shipping {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(11,28,44,.08);
}
.aq-pdp-shipping h3 { font-size: 14px; margin: 0 0 10px; color: #0b1c2c; }
.aq-pdp-shipping ul { list-style: none; padding: 0; margin: 0; }
.aq-pdp-shipping li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 8px 0; border-bottom: 1px dashed rgba(11,28,44,.08);
}
.aq-note { font-size: 12px; color: #6b7280; margin-top: 10px; }

.aq-pdp-tabs {
  margin-top: 28px; background: #fff; border-radius: 18px;
  border: 1px solid rgba(11,28,44,.08); overflow: hidden;
}
.aq-tab-nav { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid rgba(11,28,44,.08); }
.aq-tab-nav button {
  border: 0; background: transparent; padding: 14px 18px;
  font-size: 14px; font-weight: 600; color: #6b7280; cursor: pointer;
}
.aq-tab-nav button.is-active { color: #0b1c2c; border-bottom: 2px solid #c4a35a; }
.aq-tab-panel { display: none; padding: 20px; font-size: 14px; line-height: 1.7; color: #374151; }
.aq-tab-panel.is-active { display: block; }
.aq-policy-list { padding-left: 18px; margin: 0; }
.aq-policy-list li { margin-bottom: 8px; }
.aq-review { padding: 12px 0; border-bottom: 1px solid rgba(11,28,44,.06); }
.aq-review .fa-star { color: #c4a35a; }

/* ========== Listing grids ========== */
.aq-list-page { padding: 20px 0 40px; }
.aq-list-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px; margin-bottom: 18px; flex-wrap: wrap;
}
.aq-list-head h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  margin: 0; color: #0b1c2c; font-weight: 600;
}
.aq-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.aq-list-toolbar {
  background: #fff; border: 1px solid rgba(11,28,44,.08);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 16px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.aq-list-toolbar select, .aq-list-toolbar input {
  border: 1px solid rgba(11,28,44,.12); border-radius: 10px;
  padding: 8px 12px; font-size: 13px; background: #fff;
}
.aq-empty {
  text-align: center; padding: 48px 20px; background: #fff;
  border-radius: 16px; border: 1px dashed rgba(11,28,44,.15);
}
.aq-empty h3 { margin: 0 0 8px; color: #0b1c2c; }
.aq-empty p { color: #6b7280; margin: 0 0 16px; }

/* ========== Auth / Cart / Checkout / Track ========== */
.aq-panel-page { padding: 28px 0 48px; }
.aq-panel {
  max-width: 520px; margin: 0 auto; background: #fff;
  border: 1px solid rgba(11,28,44,.08); border-radius: 18px;
  padding: 28px 24px; box-shadow: 0 10px 30px rgba(11,28,44,.05);
}
.aq-panel.wide { max-width: 960px; }
.aq-panel h1, .aq-panel h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #0b1c2c; margin: 0 0 8px; font-weight: 600;
}
.aq-panel .sub { color: #6b7280; font-size: 14px; margin-bottom: 18px; }
.aq-panel .form-control, .aq-panel input, .aq-panel select, .aq-panel textarea {
  border-radius: 10px !important; border-color: rgba(11,28,44,.12) !important;
  min-height: 44px; font-size: 14px;
}
.aq-panel label { font-size: 13px; font-weight: 600; color: #0b1c2c; }
.aq-panel .btn, .aq-panel button[type=submit] {
  background: #0b1c2c !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; min-height: 46px; font-weight: 600;
  letter-spacing: .04em; width: 100%;
}
.aq-panel .btn:hover { background: #c4a35a !important; color: #0b1c2c !important; }

.aq-cart-table { width: 100%; border-collapse: collapse; }
.aq-cart-table th, .aq-cart-table td {
  padding: 12px 8px; border-bottom: 1px solid rgba(11,28,44,.08);
  font-size: 14px; vertical-align: middle;
}
.aq-cart-table img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }

.aq-track-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0;
}
.aq-track-step {
  text-align: center; padding: 12px 8px; border-radius: 12px;
  background: #f7f3ec; font-size: 12px; color: #6b7280;
}
.aq-track-step.is-done { background: #0b1c2c; color: #c4a35a; font-weight: 600; }

/* Sticky mobile buy bar */
.aq-mobile-buybar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; border-top: 1px solid rgba(11,28,44,.1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(11,28,44,.08);
  gap: 8px;
}

@media (max-width: 991px) {
  .aq-pdp-grid { grid-template-columns: 1fr; gap: 16px; }
  .aq-list-grid { grid-template-columns: repeat(3, 1fr); }
  .aq-track-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .aq-list-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .aq-pdp-info, .aq-pdp-gallery { padding: 12px; border-radius: 14px; }
  .aq-pdp-actions { margin-bottom: 64px; }
  .aq-mobile-buybar { display: grid; grid-template-columns: 1fr 1fr; }
  body.aq-premium .footer_nav { display: none !important; } /* avoid clash with buybar; bottom nav still in DOM but premium uses floating cart elsewhere */
}
@media (max-width: 420px) {
  .aq-pdp-price .now { font-size: 1.35rem; }
  .aq-chip > span { min-width: 40px; min-height: 38px; }
}

/* Ensure product images never collapse blank */
.aq-pdp-main img[src=""],
.aq-pdp-main img:not([src]) { display: none; }
.dimage_item, .details_slider, .block__pic { max-width: 100%; }
body.aq-premium .details_slider .owl-item img,
body.aq-premium .block__pic {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  height: auto !important;
  max-height: 520px;
  object-fit: contain !important;
}
