/* ===== إعداد عام ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

body{
  background:
    linear-gradient(180deg, #03111d 0%, #071f2d 22%, #0a2838 44%, #081d2a 68%, #04131d 100%);
  font-family:'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  color: #fff;
}

:root {
  --shop-mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --shop-mobile-nav-height: 92px;
}

/* ===== حاوية المتجر ===== */
.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

div.woocommerce {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* ===== Shop Layout (Sidebar & Main) ===== */
.shop-layout-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 20px;
    margin-bottom: 80px;
}

/* Sidebar Offcanvas behavior */
.shop-sidebar {
    position: relative;
    z-index: 10;
}
.sidebar-overlay {
    display: none;
}
.sidebar-header {
    display: none;
}

/* Tools Bar */
.shop-toolbar-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.d-lg-none {
    display: none !important;
}

/* Override default Woocommerce info/sort */
.woocommerce-result-count {
    color: #94a3b8;
    font-size: 14px;
    margin: 0 !important;
}
.woocommerce-ordering select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 40px 10px 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center; /* RTL friendly arrow */
    color-scheme: dark;
}
html[dir="rtl"] .woocommerce-ordering select {
    padding-left: 40px;
    padding-right: 15px;
}
.woocommerce-ordering select option {
    background: #0b2230;
    color: #f8fbff;
}

/* ===== Custom SaaS Filters ===== */
.custom-saas-filters {
    padding: 0;
}

.filter-group {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.filter-link:hover, .filter-link.active {
    background: rgba(95, 201, 223, 0.1);
    color: #5fc9df;
    border-color: rgba(95, 201, 223, 0.3);
}

.filter-count {
    background: rgba(255,255,255,0.05);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    color: #cbd5e1;
    transition: 0.3s;
}

.filter-link.active .filter-count, .filter-link:hover .filter-count {
    background: #5fc9df;
    color: #020617;
    font-weight: 700;
}

/* Checkbox UI for attributes */
.attr-link { justify-content: flex-start; gap: 12px; }
.checkbox-ui {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    transition: 0.3s;
    position: relative;
    flex-shrink: 0;
}
.attr-link.active .checkbox-ui {
    background: #22c55e;
    border-color: #22c55e;
}
.attr-link.active .checkbox-ui::after {
    content: '';
    position: absolute;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    top: 1px; left: 5px;
    transform: rotate(45deg);
}

/* Price Form */
.custom-price-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-inputs input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
    font-size: 14px;
    appearance: textfield;
    -moz-appearance: textfield;
}
.price-inputs input:focus {
    border-color: #5fc9df;
    box-shadow: 0 0 10px rgba(95, 201, 223, 0.2);
}
.price-inputs input::-webkit-outer-spin-button,
.price-inputs input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.filter-btn {
    width: 100%;
    background: linear-gradient(135deg, #118fa6, #5fc9df);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: 0.3s;
}
.filter-btn:hover {
    background: linear-gradient(135deg, #16a7c2, #7ce4f2);
    box-shadow: 0 5px 15px rgba(17, 143, 166, 0.3);
}


/* ===== شبكة المنتجات ===== */
/* إلغاء نظام WooCommerce القديم */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.first {
  float: none !important;
  clear: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* تأكيد الجريد */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
}

ul.products li.product {
  min-height: 400px;
  background:
    linear-gradient(180deg, rgba(7, 31, 45, 0.96) 0%, rgba(10, 40, 56, 0.88) 38%, rgba(4, 19, 29, 0.98) 100%);
  border: 1px solid rgba(95, 201, 223, 0.09);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: .4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.shop-card-utility {
  position: absolute;
  top: 16px;
  right: 16px;
  left: 16px;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
  direction: ltr;
}

.shop-card-utility__meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: auto;
}

.shop-card-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(3, 17, 29, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.shop-card-sale-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.22);
}

.shop-card-sale-badge--inline {
  margin: 0 auto 14px;
  position: relative;
  z-index: 1;
}

.shop-card-rating-badge svg {
  width: 14px;
  height: 14px;
  color: #facc15;
  flex-shrink: 0;
}

.shop-card-utility__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  flex-shrink: 0;
}

.shop-card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(3, 17, 29, 0.76);
  color: #f8fbff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .24s ease, background .24s ease, border-color .24s ease, color .24s ease, box-shadow .24s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.18);
}

.shop-card-icon svg {
  width: 18px;
  height: 18px;
}

.shop-card-icon:hover {
  transform: translateY(-2px);
  background: rgba(95, 201, 223, 0.14);
  border-color: rgba(95, 201, 223, 0.3);
  color: #8be9f5;
}

.shop-card-icon.is-active {
  background: rgba(3, 17, 29, 0.82);
  border-color: rgba(255, 154, 171, 0.38);
  color: #ff9aab;
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 154, 171, 0.08);
}

.shop-card-wishlist__native {
  display: none;
}

/* Glow احترافي */
ul.products li.product::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(95, 201, 223, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 45%);
  opacity: 0;
  transition: .4s;
  pointer-events: none;
  z-index: 0;
}

ul.products li.product:hover::before {
  opacity: 1;
}

/* Hover تأثير الرفع */
ul.products li.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,.6);
  border-color: rgba(95, 201, 223, 0.24);
}

/* رابط المنتج */
ul.products li.product > a {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* الصورة */
ul.products li.product img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
  transition: transform .5s ease;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
  margin-bottom: 25px;
  display: block;
}

ul.products li.product:hover img {
  transform: scale(1.08) translateY(-5px);
}

/* شارة الخصم */
ul.products li.product .onsale {
    display: none !important;
}

/* العنوان */
.woocommerce-loop-product__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.4;
  transition: color 0.3s;
}

ul.products li.product:hover .woocommerce-loop-product__title {
    color: #5fc9df;
}

/* التقييم النجوم */
.star-rating {
    margin: 0 auto 15px auto;
    font-size: 14px;
    color: #facc15;
    float: none;
    display: block;
}

/* السعر */
.price {
  font-size: 18px;
  color: #22c55e;
  margin: 0 0 20px 0;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.price del {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
}
.price ins {
    background: transparent;
    text-decoration: none;
}

/* زر إضافي للسلة Hover */
ul.products li.product .button {
  width: auto;
  min-width: 168px;
  background: linear-gradient(135deg, #118fa6, #5fc9df);
  border-radius: 999px;
  padding: 11px 22px;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  border: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all .4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 8px 20px rgba(17, 143, 166, 0.2);
  margin: auto auto 10px;
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  align-self: center;
}

ul.products li.product:hover .button {
  opacity: 1;
  transform: translateY(-4px);
}
ul.products li.product .button:hover {
    background: linear-gradient(135deg, #16a7c2, #7ce4f2);
    box-shadow: 0 12px 25px rgba(17, 143, 166, 0.35);
}

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

.shop-quick-view-modal[hidden] {
  display: none;
}

.shop-quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}

.shop-quick-view-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 9, 20, 0.76);
  backdrop-filter: blur(10px);
}

.shop-quick-view-modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 30px;
  border: 1px solid rgba(95, 201, 223, 0.14);
  background:
    radial-gradient(circle at top left, rgba(95, 201, 223, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(6, 24, 36, 0.98), rgba(3, 13, 21, 0.98));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.44);
}

.shop-quick-view-modal__close {
  position: sticky;
  top: 18px;
  margin-right: auto;
  margin-top: 18px;
  margin-left: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 18, 29, 0.7);
  color: #f8fbff;
  cursor: pointer;
}

.shop-quick-view-modal__close svg {
  width: 18px;
  height: 18px;
}

.shop-quick-view-modal__content {
  padding: 0 26px 26px;
}

.shop-quick-view-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
}

.shop-quick-view-card__media {
  min-height: 360px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.1));
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.shop-quick-view-card__media img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,0.28));
}

.shop-quick-view-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(95, 201, 223, 0.1);
  border: 1px solid rgba(95, 201, 223, 0.24);
  color: #8be9f5;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.shop-quick-view-card__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  color: #ffffff;
}

.shop-quick-view-card__meta {
  margin-bottom: 16px;
}

.shop-quick-view-card__rating,
.shop-quick-view-card__rating--fresh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 244, 247, 0.72);
  font-size: 14px;
}

.shop-quick-view-card__rating .star-rating {
  margin: 0;
}

.shop-quick-view-card__rating--fresh svg {
  width: 16px;
  height: 16px;
  color: #facc15;
}

.shop-quick-view-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: #22c55e;
  font-size: 30px;
  font-weight: 800;
}

.shop-quick-view-card__price del {
  color: #64748b;
  font-size: 16px;
  font-weight: 600;
}

.shop-quick-view-card__price ins {
  text-decoration: none;
  background: transparent;
}

.shop-quick-view-card__description {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.95;
}

.shop-quick-view-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-quick-view-card__primary,
.shop-quick-view-card__secondary {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, border-color .24s ease;
}

.shop-quick-view-card__primary {
  background: linear-gradient(135deg, #118fa6, #5fc9df);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(17, 143, 166, 0.22);
}

.shop-quick-view-card__secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f8fbff;
}

.shop-quick-view-card__primary:hover,
.shop-quick-view-card__secondary:hover {
  transform: translateY(-2px);
}

.shop-quick-view-card__primary:hover {
  box-shadow: 0 22px 38px rgba(17, 143, 166, 0.28);
}

.shop-quick-view-card__secondary:hover {
  border-color: rgba(95, 201, 223, 0.24);
  background: rgba(95, 201, 223, 0.08);
}

.shop-wishlist-page {
  padding: 28px 0 72px;
}

.shop-wishlist-page__head {
  margin-bottom: 28px;
}

.shop-wishlist-page__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(95, 201, 223, 0.1);
  border: 1px solid rgba(95, 201, 223, 0.24);
  color: #8be9f5;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.shop-wishlist-page__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
  color: #ffffff;
}

.shop-wishlist-page__description {
  margin: 0;
  max-width: 64ch;
  color: rgba(232, 244, 247, 0.72);
  font-size: 15px;
  line-height: 1.9;
}

.shop-wishlist-page__empty {
  padding: 42px 28px;
  border-radius: 28px;
  border: 1px solid rgba(95, 201, 223, 0.12);
  background:
    radial-gradient(circle at top left, rgba(95, 201, 223, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 24, 36, 0.95), rgba(3, 13, 21, 0.98));
  text-align: center;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.24);
}

.shop-wishlist-page__empty-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #ff9aab;
}

.shop-wishlist-page__empty-icon svg {
  width: 30px;
  height: 30px;
}

.shop-wishlist-page__empty h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: #ffffff;
}

.shop-wishlist-page__empty p {
  margin: 0 auto 22px;
  max-width: 46ch;
  color: rgba(232, 244, 247, 0.68);
  line-height: 1.9;
}

.shop-wishlist-page__cta {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #118fa6, #5fc9df);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(17, 143, 166, 0.22);
}

.shop-wishlist-page__results[hidden] {
  display: none;
}

/* ===== Shop Legal Page ===== */
.shop-legal-page {
  position: relative;
  width: min(100%, 980px);
  margin: 32px auto 88px;
}

.shop-legal-page::before {
  content: "";
  position: absolute;
  inset: 18px 32px auto;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(95, 201, 223, 0.2), transparent 72%);
  filter: blur(22px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.shop-legal-page__hero,
.shop-legal-page__content {
  position: relative;
  z-index: 1;
}

.shop-legal-page__hero {
  padding: 34px 38px;
  margin-bottom: 22px;
  border-radius: 30px;
  border: 1px solid rgba(95, 201, 223, 0.14);
  background:
    radial-gradient(circle at top right, rgba(95, 201, 223, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(8, 31, 46, 0.98), rgba(4, 16, 26, 0.98));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.shop-legal-page__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.24;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 100%);
}

.shop-legal-page__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(95, 201, 223, 0.1);
  border: 1px solid rgba(95, 201, 223, 0.24);
  color: #8be9f5;
  font-size: 13px;
  font-weight: 800;
}

.shop-legal-page__title {
  position: relative;
  z-index: 1;
  margin: 16px 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
  color: #ffffff;
}

.shop-legal-page__lead {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 60ch;
  color: rgba(232, 244, 247, 0.76);
  font-size: 16px;
  line-height: 2;
}

.shop-legal-page__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.shop-legal-page__meta-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(232, 244, 247, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.shop-legal-page__content {
  padding: 36px 38px 42px;
  border-radius: 30px;
  border: 1px solid rgba(95, 201, 223, 0.12);
  background:
    linear-gradient(180deg, rgba(7, 28, 42, 0.96), rgba(3, 13, 21, 0.98));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.24);
}

.shop-legal-page__content > :first-child {
  margin-top: 0;
}

.shop-legal-page__content > :last-child {
  margin-bottom: 0;
}

.shop-legal-page__content h2,
.shop-legal-page__content h3,
.shop-legal-page__content .wp-block-heading {
  position: relative;
  margin: 34px 0 16px;
  padding-bottom: 12px;
  color: #ffffff;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.35;
}

.shop-legal-page__content h2::after,
.shop-legal-page__content h3::after,
.shop-legal-page__content .wp-block-heading::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #118fa6, #5fc9df);
}

.shop-legal-page__content p,
.shop-legal-page__content li {
  color: rgba(232, 244, 247, 0.8);
  font-size: 16px;
  line-height: 2;
}

.shop-legal-page__content p {
  margin: 0 0 18px;
}

.shop-legal-page__content a {
  color: #8be9f5;
  text-decoration-color: rgba(139, 233, 245, 0.45);
  text-underline-offset: 5px;
}

.shop-legal-page__content strong {
  color: #ffffff;
}

.shop-legal-page__content ul,
.shop-legal-page__content ol {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.shop-legal-page__content li {
  position: relative;
  padding: 14px 52px 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.shop-legal-page__content li::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5fc9df;
  box-shadow: 0 0 0 6px rgba(95, 201, 223, 0.12);
}

.shop-legal-page__content hr,
.shop-legal-page__content .wp-block-separator {
  margin: 30px 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  opacity: 1;
}

.shop-legal-page__content :where(h2, h3, .wp-block-heading) + p,
.shop-legal-page__content :where(h2, h3, .wp-block-heading) + ul,
.shop-legal-page__content :where(h2, h3, .wp-block-heading) + ol {
  margin-top: 0;
}

/* ===== WooCommerce Pagination ===== */
.woocommerce nav.woocommerce-pagination {
  margin-top: 18px;
  margin-bottom: 0;
  padding-top: 6px;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  list-style: none;
  flex-wrap: wrap;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li {
  margin: 0;
  border: none;
  list-style: none;
  overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(95, 201, 223, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 244, 247, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers:hover {
  background: rgba(95, 201, 223, 0.1);
  border-color: rgba(95, 201, 223, 0.34);
  color: #ffffff;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers.current {
  background: linear-gradient(135deg, #118fa6, #5fc9df);
  border-color: transparent;
  color: #ffffff;
}

.woocommerce nav.woocommerce-pagination ul li .page-numbers.prev,
.woocommerce nav.woocommerce-pagination ul li .page-numbers.next {
  min-width: 52px;
  padding: 0 16px;
  font-size: 18px;
  line-height: 1;
}

/* ===== Shop Discovery Sections ===== */
.shop-discovery-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-discovery-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-discovery-section__copy {
  min-width: 0;
}

.shop-discovery-section__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(95, 201, 223, 0.1);
  border: 1px solid rgba(95, 201, 223, 0.18);
  color: #8be9f5;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.shop-discovery-section__title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  color: #f8fbff;
}

.shop-discovery-section__description {
  margin: 0;
  color: rgba(232, 244, 247, 0.68);
  font-size: 14px;
  line-height: 1.8;
}

.shop-discovery-carousel__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.shop-discovery-carousel__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
}

.shop-discovery-carousel__nav:hover {
  background: rgba(95, 201, 223, 0.14);
  border-color: rgba(95, 201, 223, 0.34);
  transform: translateY(-1px);
}

.shop-discovery-carousel__nav[hidden] {
  display: none;
}

.shop-discovery-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.shop-discovery-section--curated {
  position: relative;
  margin-top: 56px;
  padding: 30px 28px 34px;
  border: 1px solid rgba(95, 201, 223, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(95, 201, 223, 0.16), transparent 26%),
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.16));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.shop-discovery-section--curated::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.06), transparent 20%, transparent 82%, rgba(255,255,255,0.03));
  opacity: 0.8;
}

.shop-discovery-section--curated .shop-discovery-section__head,
.shop-discovery-section--curated .shop-discovery-carousel__viewport {
  position: relative;
  z-index: 1;
}

.shop-discovery-section--curated .shop-discovery-section__eyebrow {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.22);
  color: #ffe082;
}

.shop-discovery-section--curated .shop-discovery-section__title {
  font-size: 34px;
}

.shop-discovery-section--curated .shop-discovery-section__description {
  color: rgba(241, 248, 250, 0.78);
}

.shop-discovery-section--curated .shop-discovery-carousel__nav {
  background: rgba(3, 17, 29, 0.68);
  border-color: rgba(95, 201, 223, 0.18);
}

.shop-discovery-section--curated ul.products.shop-discovery-carousel__track {
  padding-top: 10px;
}

.shop-discovery-section--curated ul.products.shop-discovery-carousel__track li.product {
  border-color: rgba(95, 201, 223, 0.16);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.2);
}

.shop-discovery-section--curated ul.products li.product .button {
  opacity: 1;
  transform: none;
  margin-top: auto;
}

.shop-discovery-section--curated ul.products li.product:hover .button {
  transform: translateY(-3px);
}

ul.products.shop-discovery-carousel__track {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 0 10px;
  margin: 0;
  grid-template-columns: none !important;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-x: contain;
  cursor: grab;
  will-change: scroll-position;
}

ul.products.shop-discovery-carousel__track::-webkit-scrollbar {
  display: none;
}

ul.products.shop-discovery-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

ul.products.shop-discovery-carousel__track.is-dragging li.product,
ul.products.shop-discovery-carousel__track.is-dragging li.product a {
  pointer-events: none;
  user-select: none;
}

ul.products.shop-discovery-carousel__track li.product {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 240px;
  margin: 0 !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-shadow: none;
}

ul.products.shop-discovery-carousel__track li.product:hover {
  box-shadow: none;
}

ul.products.shop-discovery-carousel__track li.product img,
ul.products.shop-discovery-carousel__track li.product a {
  -webkit-user-drag: none;
}

.byanati-brands-slider {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.byanati-brands-slider .cats-header-bar {
  margin-bottom: 28px;
}

.byanati-brands-slider .cat-img-wrap {
  background: rgba(255, 255, 255, 0.045);
}


/* ===== Responsive Layout ===== */
@media (max-width: 991px) {
    .shop-layout-wrapper {
        grid-template-columns: 1fr;
    }
    .shop-toolbar-custom {
        display: flex;
    }
    .shop-sidebar {
        display: none; /* hidden until active via JS */
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        z-index: 1050;
        background: #061121;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }
    .shop-sidebar.active {
        display: block;
        right: 0;
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(4px);
    }
    .shop-sidebar.active .sidebar-overlay {
        opacity: 1;
        visibility: visible;
        right: 0; /* Cover screen */
        left: -100vw; /* allow overlay to span the screen to the left */
        width: 200vw;
    }
    .sidebar-inner {
        position: relative;
        z-index: 1050;
        background: #061121;
        height: 100%;
        overflow-y: auto;
        padding: 25px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        padding-bottom: 15px;
    }
    .sidebar-header h3 {
        color: #fff;
        margin: 0;
        font-size: 20px;
    }
    .close-sidebar {
        background: none;
        border: none;
        color: #94a3b8;
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        padding: 0;
    }
    
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .shop-discovery-section {
        margin-top: 40px;
        padding-top: 32px;
    }

    .shop-discovery-section--curated {
        padding: 24px 20px 28px;
        border-radius: 26px;
    }

    .shop-discovery-section--curated .shop-discovery-section__title {
        font-size: 30px;
    }

    .shop-discovery-section__title {
        font-size: 26px;
    }

    .shop-discovery-carousel__track li.product {
        flex-basis: calc(50% - 12px);
        min-width: 220px;
    }

    ul.products.shop-discovery-carousel__track {
        scroll-snap-type: x mandatory;
    }
}
@media (max-width: 500px) {
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    ul.products li.product {
        min-height: auto;
        padding: 15px;
    }
    ul.products li.product img {
        height: 160px;
        margin-bottom: 15px;
    }

    .shop-card-utility {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .shop-discovery-section--curated {
        padding: 20px 16px 24px;
        border-radius: 24px;
    }

    .shop-discovery-section__eyebrow {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    .shop-card-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .shop-card-rating-badge {
        min-height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .shop-card-sale-badge {
        min-height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .shop-card-sale-badge--inline {
        margin-bottom: 12px;
    }

    .shop-quick-view-modal {
        padding: 16px;
    }

    .shop-quick-view-modal__dialog {
        border-radius: 24px;
    }

    .shop-quick-view-modal__content {
        padding: 0 16px 16px;
    }

    .shop-quick-view-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-quick-view-card__media {
        min-height: 250px;
    }

    .shop-quick-view-card__actions {
        flex-direction: column;
    }

    .shop-quick-view-card__primary,
    .shop-quick-view-card__secondary {
        width: 100%;
    }

    .shop-wishlist-page {
        padding-top: 16px;
        padding-bottom: 42px;
    }

    .shop-wishlist-page__empty {
        padding: 30px 18px;
        border-radius: 22px;
    }

    .shop-wishlist-page__empty h2 {
        font-size: 24px;
    }

    .shop-legal-page {
        margin-top: 20px;
        margin-bottom: 48px;
    }

    .shop-legal-page__hero,
    .shop-legal-page__content {
        border-radius: 24px;
    }

    .shop-legal-page__hero {
        padding: 26px 20px;
        margin-bottom: 16px;
    }

    .shop-legal-page__content {
        padding: 26px 18px 28px;
    }

    .shop-legal-page__title {
        margin-top: 14px;
        font-size: clamp(28px, 8vw, 38px);
    }

    .shop-legal-page__lead,
    .shop-legal-page__content p,
    .shop-legal-page__content li {
        font-size: 14px;
    }

    .shop-legal-page__content h2,
    .shop-legal-page__content h3,
    .shop-legal-page__content .wp-block-heading {
        margin-top: 28px;
        font-size: 21px;
    }

    .shop-legal-page__content li {
        padding: 12px 42px 12px 14px;
        border-radius: 16px;
    }

    .shop-legal-page__content li::before {
        right: 16px;
        top: 18px;
    }

    .woocommerce-loop-product__title {
        font-size: 15px;
    }
    .price {
        font-size: 16px;
    }

    .shop-discovery-section__head {
        margin-bottom: 18px;
    }

    .shop-discovery-section__title {
        font-size: 22px;
    }

    .shop-discovery-section__description {
        font-size: 13px;
    }

    .shop-discovery-section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-discovery-carousel__controls {
        align-self: stretch;
    }

    .shop-discovery-carousel__track li.product {
        flex-basis: 82%;
        min-width: 220px;
    }

    ul.products.shop-discovery-carousel__track {
        gap: 18px;
        padding-bottom: 8px;
    }
}

/* ===== Header Shop (SaaS Style) ===== */
.shop-header {
  background: rgba(4, 18, 29, 0.96); /* Exact main site header color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Exact main site border */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.shop-container {
  max-width: 1200px; /* Exact --container width from main site */
  margin: 0 auto;
  padding: 0 20px;
}

.shop-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px; /* Expand gap slightly */
  padding-top: 15px;
  padding-bottom: 15px;
}

/* Logo Section */
.shop-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.shop-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(95, 201, 223, 0.12)); /* Main site logo glow */
}

.shop-logo .header-badge {
  display: none;
}

/* Search Bar */
.shop-search {
  flex-grow: 1;
  /* max-width removed to let it expand and fill all space */
}

.shop-search-form .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.04); /* Exact main site outline bg */
  border: 1px solid rgba(255, 255, 255, 0.16); /* Exact outline border */
  padding: 5px;
  height: 52px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.shop-search-form .search-input-wrapper:focus-within {
  border-color: #5fc9df;
  box-shadow: 0 0 15px rgba(95, 201, 223, 0.15);
}

.shop-search-form .search-field {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0 25px 0 125px; /* Space for button on left */
  color: #fff;
  font-size: 15px;
  outline: none;
  font-family: inherit;
}

/* RTL adjustment for the search field */
html[dir="ltr"] .shop-search-form .search-field {
  padding: 0 125px 0 25px;
}

.shop-search-form .search-submit-btn {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  background: linear-gradient(135deg, #118fa6, #5fc9df); /* Exact primary gradient */
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 30px;
  padding: 0 35px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  box-shadow: 0 8px 20px rgba(17, 143, 166, 0.24); /* Exact primary shadow */
}

html[dir="rtl"] .shop-search-form .search-submit-btn {
  left: 6px;
  right: auto;
}
html[dir="ltr"] .shop-search-form .search-submit-btn {
  right: 6px;
  left: auto;
}

.shop-search-form .search-submit-btn:hover {
  background: linear-gradient(135deg, #16a7c2, #7ce4f2); /* Exact hover gradient */
  box-shadow: 0 16px 30px rgba(17, 143, 166, 0.35);
}

.shop-search-form .search-field::placeholder {
  color: rgba(232, 244, 247, 0.6); /* Exact placeholder matched */
  font-size: 14px;
}

/* Actions (Cart & Account & Wishlist) */
.shop-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.shop-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 244, 247, 0.84);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.3s ease;
}

.shop-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #5fc9df;
  box-shadow: 0 0 15px rgba(95, 201, 223, 0.15);
}

.shop-action-btn svg {
  width: 20px;
  height: 20px;
}

/* Cart Badge */
.cart-badge-count {
  position: absolute;
  top: -6px;
  left: -6px; /* Matches screenshot (left side) */
  background: linear-gradient(135deg, #118fa6, #5fc9df); 
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(17, 143, 166, 0.4);
}
html[dir="ltr"] .cart-badge-count {
  left: auto;
  right: -6px;
}

/* ===== Secondary Navbar ===== */
.shop-header-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(3, 17, 27, 0.98); /* Slightly darker */
  padding: 12px 0;
}

.shop-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Right aligned in RTL */
}

.shop-menu-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

/* Tags Style for Menu */
.shop-menu-list li a {
  display: inline-block;
  color: rgba(232, 244, 247, 0.84);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.3s ease;
}

.shop-menu-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #5fc9df;
}

/* Active or First Item Style (Cyan Pill) */
.shop-menu-list li.current-menu-item > a,
.shop-menu-list li:first-child > a {
  background: linear-gradient(135deg, #118fa6, #5fc9df); /* Match primary btn */
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(17, 143, 166, 0.24);
}

.shop-menu-list li.current-menu-item > a:hover,
.shop-menu-list li:first-child > a:hover {
  background: linear-gradient(135deg, #16a7c2, #7ce4f2);
  box-shadow: 0 12px 25px rgba(17, 143, 166, 0.35);
}

.shop-menu-placeholder {
  color: rgba(232, 244, 247, 0.6);
  font-size: 14px;
  margin: 0;
}

/* Mobile Toggle */
.shop-mobile-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  transition: background .28s ease, border-color .28s ease, transform .28s ease, box-shadow .28s ease;
}

.shop-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #f8fafc;
  border-radius: 999px;
  transition: transform .28s ease, opacity .28s ease, width .28s ease;
}

.shop-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(95, 201, 223, 0.22);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.shop-mobile-panel {
  display: none;
}

@media (max-width: 991px) {
  .d-lg-none {
    display: flex !important;
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  body.mobile-menu-open .shop-mobile-toggle {
    background: rgba(95, 201, 223, 0.12);
    border-color: rgba(95, 201, 223, 0.28);
    box-shadow: 0 18px 30px rgba(17, 143, 166, 0.18);
  }

  body.mobile-menu-open .shop-mobile-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.mobile-menu-open .shop-mobile-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.mobile-menu-open .shop-mobile-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .shop-header .header-inner {
    gap: 16px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .shop-search {
    display: none;
  }

  .shop-actions {
    gap: 0;
  }

  .shop-action-btn {
    display: none;
  }

  .shop-mobile-toggle {
    display: flex;
  }

  .shop-header-bottom {
    display: none;
  }

  .shop-mobile-panel {
    display: block;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background:
      linear-gradient(180deg, rgba(4, 18, 29, 0.98), rgba(3, 13, 21, 0.98));
    transition: max-height .34s ease, opacity .24s ease, visibility .24s ease;
  }

  body.mobile-menu-open .shop-mobile-panel {
    max-height: min(calc(100vh - 84px), calc(100dvh - 84px));
    opacity: 1;
    visibility: visible;
    overflow: auto;
  }

  .shop-mobile-panel__inner {
    display: grid;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 20px;
  }

  .shop-mobile-panel__search {
    display: block;
  }

  .shop-search-form--mobile .search-input-wrapper {
    height: 50px;
    box-shadow: none;
  }

  .shop-mobile-menu {
    display: block;
  }

  .shop-mobile-menu-list,
  .shop-mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .shop-mobile-menu-list {
    display: grid;
    gap: 10px;
  }

  .shop-mobile-menu-list > li {
    display: grid;
    gap: 10px;
  }

  .shop-mobile-menu-list > li > a,
  .shop-mobile-menu-list .sub-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #eefbff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    transition: background .24s ease, border-color .24s ease, transform .24s ease;
  }

  .shop-mobile-menu-list > li > a:hover,
  .shop-mobile-menu-list .sub-menu a:hover,
  .shop-mobile-menu-list > li.current-menu-item > a,
  .shop-mobile-menu-list > li.current-menu-parent > a,
  .shop-mobile-menu-list .sub-menu li.current-menu-item > a {
    background: linear-gradient(135deg, rgba(17, 143, 166, 0.18), rgba(95, 201, 223, 0.12));
    border-color: rgba(95, 201, 223, 0.22);
    color: #ffffff;
  }

  .shop-mobile-menu-list .sub-menu {
    display: grid;
    gap: 8px;
    padding-right: 12px;
  }

  html[dir="ltr"] .shop-mobile-menu-list .sub-menu {
    padding-right: 0;
    padding-left: 12px;
  }
}

/* ===== WooCommerce Global Notices (SaaS Style) ===== */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: rgba(4, 18, 29, 0.95) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 0 0 35px 0 !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  overflow: hidden;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

.woocommerce-message {
  border-right: 4px solid #22c55e !important;
}
html[dir="ltr"] .woocommerce-message { border-left: 4px solid #22c55e !important; border-right: 1px solid rgba(255,255,255,0.05) !important; }

.woocommerce-info {
  border-right: 4px solid #5fc9df !important;
}
html[dir="ltr"] .woocommerce-info { border-left: 4px solid #5fc9df !important; border-right: 1px solid rgba(255,255,255,0.05) !important; }

.woocommerce-error {
  border-right: 4px solid #ef4444 !important;
}
html[dir="ltr"] .woocommerce-error { border-left: 4px solid #ef4444 !important; border-right: 1px solid rgba(255,255,255,0.05) !important; }

/* Notice pseudo-element (hide default icons) */
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before {
  display: none !important;
}

/* Notice Buttons */
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
}
.woocommerce-message .button:hover, .woocommerce-info .button:hover, .woocommerce-error .button:hover {
  background: rgba(255,255,255,0.15) !important;
}
.woocommerce-message .button:hover { color: #22c55e !important; }
.woocommerce-info .button:hover { color: #5fc9df !important; }
.woocommerce-error .button:hover { color: #ef4444 !important; }

/* Notice Links */
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button), .woocommerce-error a:not(.button) {
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(255,255,255,0.3) !important;
  text-underline-offset: 4px !important;
  transition: 0.3s !important;
}
.woocommerce-message a:not(.button):hover { color: #22c55e !important; text-decoration-color: #22c55e !important; }
.woocommerce-info a:not(.button):hover { color: #5fc9df !important; text-decoration-color: #5fc9df !important; }
.woocommerce-error a:not(.button):hover { color: #ef4444 !important; text-decoration-color: #ef4444 !important; }

/* ===== Shop Footer ===== */
.shop-footer {
  margin-top: 96px;
  color: #f8fbff;
}

.shop-footer__surface {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 15% 15%, rgba(95, 201, 223, 0.16), transparent 24%),
    radial-gradient(circle at 85% 0%, rgba(17, 143, 166, 0.16), transparent 22%),
    linear-gradient(180deg, #061521 0%, #04101a 52%, #020914 100%);
}

.shop-footer__surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 100%);
}

.shop-footer .shop-container {
  position: relative;
  z-index: 1;
  padding-top: 42px;
  padding-bottom: 28px;
}

.shop-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 32px;
  margin-bottom: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, rgba(15, 37, 55, 0.96), rgba(7, 23, 35, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

.shop-footer__cta-copy {
  max-width: 680px;
}

.shop-footer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(95, 201, 223, 0.1);
  border: 1px solid rgba(95, 201, 223, 0.24);
  color: #8be9f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shop-footer__cta h2 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.shop-footer__cta p {
  margin: 0;
  max-width: 56ch;
  color: rgba(232, 244, 247, 0.72);
  font-size: 15px;
  line-height: 1.9;
}

.shop-footer__cta-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.shop-footer__primary-btn,
.shop-footer__secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 18px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.shop-footer__primary-btn {
  background: linear-gradient(135deg, #118fa6, #5fc9df);
  color: #fff;
  box-shadow: 0 16px 32px rgba(17, 143, 166, 0.24);
}

.shop-footer__secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fbff;
}

.shop-footer__primary-btn:hover,
.shop-footer__secondary-btn:hover {
  transform: translateY(-2px);
}

.shop-footer__primary-btn:hover {
  box-shadow: 0 22px 44px rgba(17, 143, 166, 0.34);
}

.shop-footer__secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(95, 201, 223, 0.38);
}

.shop-footer__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.shop-footer__trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-footer__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(95, 201, 223, 0.12);
  color: #8be9f5;
  flex-shrink: 0;
}

.shop-footer__trust-icon svg {
  width: 22px;
  height: 22px;
}

.shop-footer__trust-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.shop-footer__trust-item p {
  margin: 0;
  color: rgba(232, 244, 247, 0.66);
  font-size: 14px;
  line-height: 1.8;
}

.shop-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.8fr));
  gap: 28px;
  padding: 34px 0;
}

.shop-footer__brand,
.shop-footer__links,
.shop-footer__contact {
  min-width: 0;
}

.shop-footer__logo {
  display: inline-flex;
  margin-bottom: 18px;
}

.shop-footer__logo img {
  height: 48px;
  width: auto;
  display: block;
}

.shop-footer__brand p {
  margin: 0 0 20px;
  max-width: 42ch;
  color: rgba(232, 244, 247, 0.7);
  font-size: 15px;
  line-height: 1.95;
}

.shop-footer__tax {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.shop-footer__tax img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.shop-footer__tax p {
  margin: 0;
  color: rgba(232, 244, 247, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.shop-footer__tax span {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

.shop-footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-footer__payments span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(248, 251, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.shop-footer__links h3,
.shop-footer__contact h3 {
  margin: 0 0 18px;
  font-size: 18px;
}

.shop-footer__links,
.shop-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-footer__menu,
.shop-footer__bottom-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-footer__menu li,
.shop-footer__bottom-menu li {
  margin: 0;
  padding: 0;
}

.shop-footer__links a,
.shop-footer__menu a,
.shop-footer__contact a,
.shop-footer__contact span {
  color: rgba(232, 244, 247, 0.72);
  text-decoration: none;
  line-height: 1.9;
  transition: color 0.25s ease, transform 0.25s ease;
}

.shop-footer__contact a[href^="mailto:"],
.shop-footer__contact a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  display: block;
  width: 100%;
  text-align: right;
}

.shop-footer__links a:hover,
.shop-footer__menu a:hover,
.shop-footer__contact a:hover {
  color: #8be9f5;
  transform: translateX(-2px);
}

.shop-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-footer__bottom p {
  margin: 0;
  color: rgba(232, 244, 247, 0.58);
  font-size: 14px;
  direction: rtl;
  unicode-bidi: plaintext;
}

.shop-footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-footer__bottom-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.shop-footer__bottom-links a {
  color: rgba(232, 244, 247, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.shop-footer__bottom-menu a {
  color: rgba(232, 244, 247, 0.72);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
}

.shop-footer__bottom-links a:hover {
  color: #8be9f5;
}

.shop-footer__bottom-menu a:hover {
  color: #8be9f5;
}

/* ===== Mobile App Nav ===== */
.shop-mobile-nav,
.shop-mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  body.woocommerce,
  body.woocommerce-page {
    padding-bottom: calc(var(--shop-mobile-nav-height) + var(--shop-mobile-safe-bottom) + 18px);
  }

  body.single-product {
    padding-bottom: calc(var(--shop-mobile-nav-height) + var(--shop-mobile-safe-bottom) + 112px);
  }

  .shop-mobile-nav {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: 10px;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 10px calc(var(--shop-mobile-safe-bottom) + 8px);
    border: 1px solid rgba(95, 201, 223, 0.14);
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(6, 24, 36, 0.98), rgba(3, 13, 21, 0.98));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
  }

  .shop-mobile-nav__item {
    position: relative;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 18px;
    color: rgba(232, 244, 247, 0.72);
    text-decoration: none;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  }

  .shop-mobile-nav__item:active {
    transform: translateY(1px) scale(0.98);
  }

  .shop-mobile-nav__item.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 143, 166, 0.9), rgba(95, 201, 223, 0.86));
    box-shadow: 0 16px 30px rgba(17, 143, 166, 0.22);
  }

  .shop-mobile-nav__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
  }

  .shop-mobile-nav__icon svg {
    width: 22px;
    height: 22px;
  }

  .shop-mobile-nav__label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .shop-mobile-nav__badge {
    position: absolute;
    top: -7px;
    left: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #22c55e;
    color: #03111d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.3);
  }

  .shop-mobile-sticky-cta {
    position: fixed;
    right: 10px;
    left: 10px;
    bottom: calc(var(--shop-mobile-nav-height) + var(--shop-mobile-safe-bottom) + 18px);
    z-index: 1190;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(5, 18, 28, 0.98), rgba(3, 13, 21, 0.98));
    border: 1px solid rgba(95, 201, 223, 0.14);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
  }

  .shop-mobile-sticky-cta.is-hidden {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }

  .shop-mobile-sticky-cta__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .shop-mobile-sticky-cta__eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: rgba(232, 244, 247, 0.56);
  }

  .shop-mobile-sticky-cta__price {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
  }

  .shop-mobile-sticky-cta__price .amount,
  .shop-mobile-sticky-cta__price ins {
    color: #ffffff;
    text-decoration: none;
  }

  .shop-mobile-sticky-cta__price del {
    color: rgba(232, 244, 247, 0.45);
    font-size: 13px;
    margin-left: 6px;
  }

  .shop-mobile-sticky-cta__button {
    min-width: 148px;
    min-height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #118fa6, #5fc9df);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    font-family: inherit;
    box-shadow: 0 16px 30px rgba(17, 143, 166, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
  }

  .shop-mobile-sticky-cta__button:active {
    transform: translateY(1px) scale(0.99);
  }

  .shop-mobile-sticky-cta__button[disabled] {
    opacity: 0.55;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .shop-mobile-nav {
    gap: 6px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .shop-mobile-nav__item {
    min-height: 60px;
  }

  .shop-mobile-nav__label {
    font-size: 9px;
  }

  .shop-mobile-sticky-cta__button {
    min-width: 132px;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 1100px) {
  .shop-footer__cta,
  .shop-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-footer__trust {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .shop-footer {
    margin-top: 72px;
  }

  .shop-footer .shop-container {
    padding-top: 32px;
    padding-bottom: 22px;
  }

  .shop-footer__cta {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .shop-footer__cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .shop-footer__primary-btn,
  .shop-footer__secondary-btn {
    width: 100%;
  }

  .shop-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .shop-footer__trust-item {
    padding: 18px;
  }

  .shop-footer__bottom-links {
    gap: 12px;
  }
}
