* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Montserrat", sans-serif;
  background-color: #f7f3ef;
  color: #2c2c2c;
}
.font-serif {
  font-family: "Cormorant Garamond", serif;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f0e8;
}
::-webkit-scrollbar-thumb {
  background: #c4a77d;
  border-radius: 4px;
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(247, 243, 239, 0.95) 0%,
    rgba(247, 243, 239, 0.7) 40%,
    rgba(247, 243, 239, 0) 70%
  );
}
.product-card .product-image img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img {
  transform: scale(1.05);
}

.category-card {
  position: relative;
  overflow: hidden;
}
.category-card:hover img {
  transform: scale(1.05);
}
.category-card img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: #2c2c2c;
  color: #fff;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #b79c86;
  transform: translateY(-1px);
}
.spaced-text {
  letter-spacing: 0.3em;
}
.timer-box {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
}
.offer-card {
  transition: all 0.3s ease;
}
.offer-card:hover {
  transform: scale(1.05);
}
.referral-banner {
  background: linear-gradient(135deg, #c4a77d 0%, #d4a574 50%, #c4a77d 100%);
}
.burst-badge {
  width: 78px;
  height: 78px;
  background: #b9a289;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  clip-path: polygon(
    50% 0%,
    60% 8%,
    74% 6%,
    78% 18%,
    92% 16%,
    88% 30%,
    100% 36%,
    88% 46%,
    96% 60%,
    82% 60%,
    84% 76%,
    70% 70%,
    62% 86%,
    50% 76%,
    38% 86%,
    30% 70%,
    16% 76%,
    18% 60%,
    4% 60%,
    12% 46%,
    0% 36%,
    12% 30%,
    8% 16%,
    22% 18%,
    26% 6%,
    40% 8%
  );
  transform: rotate(-12deg);
}
.products-slider {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.products-slider::-webkit-scrollbar {
  display: none;
}
.star-rating {
  color: #b79c86;
}
.wishlist-btn {
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}
.wishlist-btn:hover {
  transform: scale(1.05);
  color: #b79c86;
}
.new-badge {
  background: #e8dfd3;
  color: #5b4f45;
}
.add-to-cart-btn {
  transition: all 0.25s ease;
  background: #b79c86;
}
.add-to-cart-btn:hover {
  background: #a98f7a;
}
.social-icon {
  transition: all 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
  color: #c4a77d;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
}
.page-about {
  background-color: #ffffff;
}

body.mini-cart-open {
  overflow: hidden;
}

.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.35);
  z-index: 60;
}

.mini-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #e6d7cc;
  box-shadow: -16px 0 30px rgba(17, 24, 39, 0.15);
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.mini-cart-header {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efe6dd;
}

.mini-cart-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e6d7cc;
  background: #f7f3ef;
  color: #2c2c2c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mini-cart-close:hover {
  background: #efe7de;
}

.js-mini-cart-content {
  flex: 1;
  overflow-y: auto;
}

.mini-cart-list {
  list-style: none;
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini-cart-item {
  border-bottom: 1px dashed #efe6dd;
  padding-bottom: 16px;
}

.mini-cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mini-cart-item-row {
  display: flex;
  gap: 12px;
}

.mini-cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid #eef1f5;
  overflow: hidden;
  background: #f7f3ef;
  flex-shrink: 0;
}

.mini-cart-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-cart-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-cart-title-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mini-cart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.mini-cart-remove {
  color: #9ca3af;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
}

.mini-cart-remove:hover {
  color: #b91c1c;
}

.mini-cart-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.mini-cart-meta dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.mini-cart-meta dt,
.mini-cart-meta dd {
  margin: 0;
}

.mini-cart-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e6d7cc;
  border-radius: 999px;
  padding: 2px 6px;
}

.mini-cart-qty.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.mini-cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: #f7f3ef;
  color: #111827;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.mini-cart-qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #111827;
}

.mini-cart-line-total {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.mini-cart-summary {
  padding: 16px;
  border-top: 1px solid #efe6dd;
  background: #fbfaf8;
}

.mini-cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #111827;
  font-weight: 600;
}

.mini-cart-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.mini-cart-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: #b79c86;
  color: #ffffff;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mini-cart-btn:hover {
  background: #a98f7a;
}

.mini-cart-btn-outline {
  background: #ffffff;
  color: #b79c86;
  border: 1px solid #b79c86;
}

.mini-cart-empty {
  padding: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}

.demopo-toast-stack {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: min(90vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.demopo-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  padding: 12px 16px;
  border: 1px solid #e6d7cc;
  background: #ffffff;
  color: #2c2c2c;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.demopo-toast.is-info {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e40af;
}

.demopo-toast.is-success {
  border-left: 4px solid #16a34a;
  background: #ecfdf3;
  color: #166534;
}

.demopo-toast.is-error {
  border-left: 4px solid #b91c1c;
  background: #fdecec;
  color: #7f1d1d;
}

.demopo-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.demopo-toast-text {
  flex: 1;
  font-size: 0.875rem;
}

.demopo-toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.woocommerce-notices-wrapper {
  max-width: 80rem;
  margin: 16px auto 0;
  padding: 0 16px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper ul.woocommerce-message,
.woocommerce-notices-wrapper ul.woocommerce-error,
.woocommerce-notices-wrapper ul.woocommerce-info {
  list-style: none;
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e6d7cc;
  font-size: 0.875rem;
}

.woocommerce-notices-wrapper .woocommerce-message {
  border-left: 4px solid #16a34a;
  background: #ecfdf3;
  color: #166534;
}

.woocommerce-notices-wrapper .woocommerce-error {
  border-left: 4px solid #b91c1c;
  background: #fdecec;
  color: #7f1d1d;
}

.woocommerce-notices-wrapper .woocommerce-info {
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  color: #1e40af;
}

.woocommerce-notices-wrapper li {
  margin: 0;
}

.woocommerce-notices-wrapper a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

.demopo-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
}

.demopo-price-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: url("../images/riyal-symbol.svg") center/contain no-repeat;
}

.demopo-price-range .demopo-price-sep {
  color: #9ca3af;
  font-weight: 500;
  margin: 0 4px;
}

.product-info-wrapper .woocommerce-variation-price,
.product-info-wrapper .woocommerce-variation-price .price {
  display: none;
}

.demopo-wishlist-counter {
  position: relative;
}

.demopo-wishlist-counter-number {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.demopo-wishlist-counter-number:empty {
  display: none;
}

.demopo-wishlist.tinv-wishlist {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.demopo-wishlist .tinvwl_add_to_wishlist_button {
  width: 44px;
  height: 44px;
  border-radius: 999px !important;
  border: 1px solid #e6d7cc;
  background: #ffffff;
  color: #b79c86;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.demopo-wishlist .tinvwl_add_to_wishlist_button::before {
  content: "\e909";
  font-family: tinvwl-webfont !important;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

.demopo-wishlist--loop .tinvwl_add_to_wishlist_button {
  width: 34px;
  height: 34px;
  opacity: 0;
}

.product-card:hover .demopo-wishlist--loop .tinvwl_add_to_wishlist_button {
  opacity: 1;
}

.demopo-wishlist .tinvwl_add_to_wishlist_button:hover {
  background: #b79c86;
  border-color: #b79c86;
  color: #ffffff;
  transform: scale(1.05);
}

.demopo-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list {
  background: #b79c86;
  border-color: #b79c86;
  color: #ffffff;
}

.demopo-wishlist .tinvwl_add_to_wishlist_button.tinvwl-product-in-list::before {
  content: "\e908";
}

.demopo-wishlist .tinvwl_add_to_wishlist_button .tinvwl_add_to_wishlist-text,
.demopo-wishlist
  .tinvwl_add_to_wishlist_button
  .tinvwl_remove_from_wishlist-text,
.demopo-wishlist
  .tinvwl_add_to_wishlist_button
  .tinvwl_already_on_wishlist-text {
  display: none;
}

.demopo-wishlist .tinvwl-tooltip {
  display: none;
}

/* Wishlist page (TI WooCommerce Wishlist) */
.tinv-wishlist {
  max-width: 1200px;
  margin: 40px auto;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  box-shadow: 0 24px 40px rgba(17, 24, 39, 0.08);
}

.tinv-wishlist .tinv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tinv-wishlist .tinv-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.rtl .tinv-wishlist .tinv-header h2 {
  letter-spacing: 0.02em;
  text-align: right;
  direction: rtl;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.tinv-wishlist form {
  overflow-x: auto;
}

.tinv-wishlist .tinvwl-table-manage-list {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  min-width: 720px;
}

.tinv-wishlist .tinvwl-table-manage-list thead th {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  border: none;
  text-align: left;
}

body.rtl .tinv-wishlist .tinvwl-table-manage-list thead th {
  letter-spacing: 0.05em;
  text-align: right;
  direction: rtl;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.tinv-wishlist .tinvwl-table-manage-list tbody td {
  background: #fdf9f5;
  padding: 14px 12px;
  border-top: 1px solid #f1e8df;
  border-bottom: 1px solid #f1e8df;
  vertical-align: middle;
  color: #1f2937;
}

.tinv-wishlist .tinvwl-table-manage-list tbody td:first-child {
  border-radius: 16px 0 0 16px;
  border-left: 1px solid #f1e8df;
}

.tinv-wishlist .tinvwl-table-manage-list tbody td:last-child {
  border-radius: 0 16px 16px 0;
  border-right: 1px solid #f1e8df;
}

body.rtl .tinv-wishlist .tinvwl-table-manage-list tbody td {
  text-align: right;
  direction: rtl;
}

body.rtl .tinv-wishlist .tinvwl-table-manage-list tbody td:first-child {
  border-radius: 0 16px 16px 0;
  border-left: none;
  border-right: 1px solid #f1e8df;
}

body.rtl .tinv-wishlist .tinvwl-table-manage-list tbody td:last-child {
  border-radius: 16px 0 0 16px;
  border-right: none;
  border-left: 1px solid #f1e8df;
}

.tinv-wishlist .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #efe6dd;
}

.tinv-wishlist .product-name a {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

body.rtl .tinv-wishlist .product-name a {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.tinv-wishlist .product-name a:hover {
  color: #b79c86;
}

.tinv-wishlist .product-name .variation {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.tinv-wishlist .product-remove button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #e6d7cc;
  background: #ffffff;
  color: #b79c86;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tinv-wishlist .product-remove button:hover {
  background: #b79c86;
  border-color: #b79c86;
  color: #ffffff;
}

.tinv-wishlist .product-price {
  font-weight: 600;
  color: #111827;
}

body.rtl .tinv-wishlist .product-price {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.tinv-wishlist .product-stock .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  font-size: 12px;
  font-weight: 600;
}

.tinv-wishlist .product-stock .out-of-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.tinv-wishlist .product-action .button {
  border: none;
  background: #b79c86;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.tinv-wishlist .product-action .button:hover {
  background: #a98f7a;
  transform: translateY(-1px);
}

.tinv-wishlist .tinvwl-table-manage-list tbody tr {
  box-shadow: 0 14px 24px rgba(17, 24, 39, 0.06);
}

.tinv-wishlist .product-cb,
.tinv-wishlist .product-remove,
.tinv-wishlist .product-thumbnail,
.tinv-wishlist .product-action {
  text-align: center;
  min-width: 72px;
}

.tinv-wishlist .product-name {
  min-width: 220px;
}

.tinv-wishlist input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #b79c86;
}

.tinv-wishlist .tinvwl-to-left,
.tinv-wishlist .tinvwl-to-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tinv-wishlist .tinvwl-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tinv-wishlist .tinvwl-input-group .form-control,
.tinv-wishlist .tinvwl-input-group select {
  min-width: 180px;
  border: 1px solid #e6d7cc;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  background: #ffffff;
  color: #111827;
}

.tinv-wishlist .tinvwl-input-group-btn {
  display: flex;
  align-items: center;
}

.tinv-wishlist button[name^="tinvwl-action-"] {
  border: none;
  background: #2c2c2c;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.tinv-wishlist button[name^="tinvwl-action-"]:hover {
  background: #b79c86;
  transform: translateY(-1px);
}

/* Hide all share buttons completely */
.tinv-wishlist .social-buttons,
.tinv-wishlist .tinvwl-share,
.tinvwl-share,
[class*="tinvwl-share"],
.tinv-wishlist .tinvwl-to-left,
.social-buttons {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.woocommerce-cart-form .actions .button[name="update_cart"] {
  border: none;
  background: #2c2c2c;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.woocommerce-cart-form .actions .button[name="update_cart"]:hover {
  background: #b79c86;
  transform: translateY(-1px);
}

.woocommerce-cart-form .actions .button[name="update_cart"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

body.rtl .tinv-wishlist .tinvwl-table-manage-list th,
body.rtl .tinv-wishlist .tinvwl-table-manage-list td {
  text-align: right;
}

body.rtl .tinv-wishlist .product-cb,
body.rtl .tinv-wishlist .product-remove,
body.rtl .tinv-wishlist .product-thumbnail,
body.rtl .tinv-wishlist .product-action {
  text-align: center;
}

.woocommerce-checkout {
  display: block;
  width: 100%;
}

.woocommerce-checkout #customer_details {
  display: grid;
  gap: 24px;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .checkout_coupon {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 20px;
  padding: 24px;
}

.woocommerce-checkout .woocommerce-checkout-review-order {
  padding: 20px;
}

.woocommerce-checkout #order_review_heading {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.woocommerce-checkout .form-row {
  margin: 0;
}

.woocommerce-checkout .form-row-wide,
.woocommerce-checkout .form-row-full,
.woocommerce-checkout .form-row-first + .form-row-last {
  grid-column: 1 / -1;
}

.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.woocommerce-checkout .form-row label .required {
  color: #b91c1c;
  text-decoration: none;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  border: 1px solid #e6d7cc;
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
}

.woocommerce-checkout .form-row textarea {
  min-height: 96px;
  resize: vertical;
}

.woocommerce-checkout .select2-container {
  width: 100% !important;
}

.woocommerce-checkout .select2-container--default .select2-selection--single {
  height: 42px;
  border: 1px solid #e6d7cc;
  border-radius: 12px;
  background: #ffffff;
}

.woocommerce-checkout .select2-container--default .select2-selection__rendered {
  line-height: 40px;
  padding-left: 12px;
  padding-right: 12px;
  color: #111827;
  font-size: 13px;
}

.woocommerce-checkout .select2-container--default .select2-selection__arrow {
  height: 40px;
  right: 10px;
}

.woocommerce-checkout #ship-to-different-address {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
}

.woocommerce-checkout #order_review {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.woocommerce-checkout .woocommerce-checkout-review-order table {
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout .woocommerce-checkout-review-order thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.woocommerce-checkout .woocommerce-checkout-review-order tbody td {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
  color: #111827;
}

.woocommerce-checkout .woocommerce-checkout-review-order tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order tfoot td {
  padding: 12px 0;
  font-weight: 600;
  color: #111827;
}

.woocommerce-checkout #payment {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.woocommerce-checkout #payment ul.payment_methods li {
  border: 1px solid #e6d7cc;
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.woocommerce-checkout #payment ul.payment_methods label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.woocommerce-checkout #payment .payment_box {
  margin-top: 10px;
  background: #f7f3ef;
  border: 1px solid #e6d7cc;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  color: #6b7280;
}

.woocommerce-checkout #payment #place_order {
  width: 100%;
  border: none;
  background: #b79c86;
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.woocommerce-checkout #payment #place_order:hover {
  background: #a98f7a;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2,
  .woocommerce-checkout .woocommerce-checkout-review-order,
  .woocommerce-checkout .checkout_coupon {
    padding: 16px;
  }

  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
}

body.rtl .woocommerce-checkout .woocommerce-checkout-review-order thead th,
body.rtl .woocommerce-checkout .woocommerce-checkout-review-order tbody td,
body.rtl .woocommerce-checkout .woocommerce-checkout-review-order tfoot th,
body.rtl .woocommerce-checkout .woocommerce-checkout-review-order tfoot td {
  text-align: right;
}

.tinv-wishlist .cart-empty {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 16px;
}

.tinv-wishlist .return-to-shop .button {
  background: #2c2c2c;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: none;
}

.tinv-wishlist .return-to-shop .button:hover {
  background: #b79c86;
}

/* Wishlist Mobile Card View */
.demopo-wishlist-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demopo-wishlist-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #fdf9f5;
  border: 1px solid #f1e8df;
  border-radius: 16px;
}

.demopo-wishlist-card-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #e6d7cc;
  background: #fff;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.demopo-wishlist-card-remove:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.demopo-wishlist-card-image {
  flex-shrink: 0;
}

.demopo-wishlist-card-image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #efe6dd;
}

.demopo-wishlist-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demopo-wishlist-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-right: 32px;
}

body.rtl .demopo-wishlist-card-title {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  text-align: right;
  direction: rtl;
}

.demopo-wishlist-card-title:hover {
  color: #b79c86;
}

.demopo-wishlist-card-price {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

body.rtl .demopo-wishlist-card-price {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  text-align: right;
  direction: rtl;
}

.demopo-wishlist-card-price del {
  color: #9ca3af;
  font-weight: 400;
}

.demopo-wishlist-card-price ins {
  text-decoration: none;
  color: #ef4444;
}

.demopo-wishlist-card-stock {
  font-size: 12px;
  color: #22c55e;
}

.demopo-wishlist-card-stock.out-of-stock {
  color: #ef4444;
}

.demopo-wishlist-card-btn {
  margin-top: auto;
  padding: 8px 16px;
  background: #2c2c2c;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}

.demopo-wishlist-card-btn:hover {
  background: #b79c86;
}

.demopo-wishlist-mobile-footer {
  padding-top: 16px;
  border-top: 1px solid #f1e8df;
}

@media (max-width: 768px) {
  .tinv-wishlist {
    margin: 24px 16px;
    padding: 16px;
  }

  .tinv-wishlist .tinv-header h2 {
    font-size: 16px;
  }

  .tinv-wishlist .tinvwl-table-manage-list {
    min-width: 640px;
  }
}

/* Shop filters + grid */
.shop-page .shop-layout {
  align-items: flex-start;
}

.shop-sidebar {
  position: sticky;
  top: 110px;
}

.shop-filter-form .filter-card {
  background: #f6f7fb;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  padding: 16px;
}

.shop-filter-form .filter-title {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.shop-filter-form .filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-filter-form .filter-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #374151;
}

.shop-filter-form .filter-item input[type="checkbox"] {
  accent-color: #b79c86;
}

.shop-filter-form .filter-count {
  font-size: 11px;
  color: #9ca3af;
}

.shop-filter-form .filter-empty {
  font-size: 12px;
  color: #9ca3af;
}

.shop-filter-form .filter-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-filter-form .filter-range input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: #374151;
  background: #ffffff;
}

.shop-filter-form .filter-separator {
  font-size: 12px;
  color: #9ca3af;
}

.shop-filter-form .filter-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #374151;
}

.shop-filter-form .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-filter-form .filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e6d8cc;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  color: #7a5f4d;
  background: #ffffff;
}

.shop-filter-form .filter-chip input[type="checkbox"] {
  accent-color: #b79c86;
}

.shop-toolbar .woocommerce-ordering select {
  border: 1px solid #e6d8cc;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  color: #2c2c2c;
  background: #ffffff;
}

.shop-results {
  position: relative;
}

.shop-results.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
}

.shop-results.is-loading::before {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #b79c86;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 1;
}

.shop-products ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.shop-products ul.products li.product {
  width: 100%;
  float: none;
  margin: 0;
}

.shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #e6d8cc;
  color: #7a5f4d;
  font-size: 12px;
  margin-right: 6px;
}

.shop-pagination .page-numbers.current {
  background: #b79c86;
  border-color: #b79c86;
  color: #ffffff;
}

@media (max-width: 1024px) {
  .shop-sidebar {
    position: static;
  }

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

@media (max-width: 640px) {
  .shop-products ul.products {
    grid-template-columns: 1fr;
  }
}

/* My account styling */
.myaccount-page .woocommerce-MyAccount-navigation {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  padding: 12px;
}

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

.myaccount-page .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 13px;
  color: #374151;
  border-radius: 12px;
}

.myaccount-page .woocommerce-MyAccount-navigation li.is-active a,
.myaccount-page .woocommerce-MyAccount-navigation li a:hover {
  background: #f7f4f1;
  color: #2c2c2c;
  font-weight: 600;
}

.myaccount-page .account-content {
  background: #ffffff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  padding: 24px;
}

.myaccount-page .woocommerce-MyAccount-content {
  background: transparent;
  border: none;
  padding: 0;
}

.myaccount-page .woocommerce-MyAccount-content h2,
.myaccount-page .woocommerce-MyAccount-content h3 {
  font-weight: 600;
  color: #111827;
}

.myaccount-page .woocommerce-MyAccount-content > p {
  margin: 0 0 16px;
  font-size: 13px;
  color: #6b7280;
}

.myaccount-page .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  font-size: 13px;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.myaccount-page .woocommerce-MyAccount-content table.shop_table th,
.myaccount-page .woocommerce-MyAccount-content table.shop_table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f2f5;
  text-align: left;
}

.myaccount-page .woocommerce-MyAccount-content table.shop_table th {
  color: #9ca3af;
  font-weight: 600;
  background: #f7f8fb;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.myaccount-page
  .woocommerce-MyAccount-content
  table.shop_table
  tr:last-child
  td,
.myaccount-page
  .woocommerce-MyAccount-content
  table.shop_table
  tr:last-child
  th {
  border-bottom: 0;
}

.myaccount-page
  .woocommerce-MyAccount-content
  table.shop_table
  tbody
  tr:nth-child(even) {
  background: #fbfaf8;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-message,
.myaccount-page .woocommerce-MyAccount-content .woocommerce-error,
.myaccount-page .woocommerce-MyAccount-content .woocommerce-info {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
}

.myaccount-page .woocommerce-MyAccount-content .button,
.myaccount-page .woocommerce-MyAccount-content .woocommerce-button {
  background: #b79c86;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.myaccount-page .woocommerce-MyAccount-content .button:hover,
.myaccount-page .woocommerce-MyAccount-content .woocommerce-button:hover {
  background: #a98f7a;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-Address {
  background: #f7f8fb;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 16px;
  float: none;
  width: 100%;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-Address-title h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-Address-title
  .edit {
  background: #b79c86;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-Address-title
  .edit:hover {
  background: #a98f7a;
}

.myaccount-page .woocommerce-MyAccount-content address {
  font-style: normal;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.myaccount-page .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.myaccount-page .woocommerce-MyAccount-content .woocommerce-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  .form-row,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  .form-row {
  margin: 0;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  .form-row-wide,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  .form-row-wide,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  fieldset,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  fieldset {
  grid-column: 1 / -1;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  fieldset,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  fieldset {
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 16px;
  background: #f7f8fb;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  fieldset
  legend,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  fieldset
  legend {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 6px;
}

.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-EditAccountForm
  .clear,
.myaccount-page
  .woocommerce-MyAccount-content
  .woocommerce-address-fields
  .clear {
  display: none;
}

.myaccount-page form.woocommerce-form-login,
.myaccount-page form.woocommerce-form-register {
  display: grid;
  gap: 12px;
}

.myaccount-page .woocommerce-MyAccount-content input[type="text"],
.myaccount-page .woocommerce-MyAccount-content input[type="email"],
.myaccount-page .woocommerce-MyAccount-content input[type="password"],
.myaccount-page .woocommerce-MyAccount-content select,
.myaccount-page .woocommerce-MyAccount-content textarea {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  width: 100%;
}

body.rtl .myaccount-page .woocommerce-MyAccount-content table.shop_table th,
body.rtl .myaccount-page .woocommerce-MyAccount-content table.shop_table td {
  text-align: right;
}

@media (max-width: 768px) {
  .myaccount-page .woocommerce-MyAccount-content .woocommerce-EditAccountForm,
  .myaccount-page .woocommerce-MyAccount-content .woocommerce-address-fields {
    grid-template-columns: 1fr;
  }
}

/* Page hero breadcrumb */
.page-hero {
  background: #f7f4f1;
  border-bottom: 1px solid #efe6dd;
}

.page-hero__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 36px 16px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}

.page-hero__title {
  font-size: 32px;
  font-weight: 600;
  color: #2c2c2c;
}

.page-hero__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8b8176;
}

.page-hero__link {
  color: #b79c86;
  text-decoration: none;
}

.page-hero__link:hover {
  color: #a98f7a;
  text-decoration: underline;
}

.page-hero__current {
  color: #2c2c2c;
  font-weight: 500;
}

.page-hero__sep {
  color: #c9bfb4;
}

@media (max-width: 768px) {
  .page-hero__inner {
    padding: 28px 16px;
    min-height: 120px;
  }

  .page-hero__title {
    font-size: 24px;
  }
}

/* ==========================================================================
   Quantity Controls (Single Product Page)
   ========================================================================== */

.demopo-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid #e6d7cc;
  border-radius: 9999px;
  padding: 4px;
  height: 44px;
}

.demopo-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demopo-qty-btn:hover {
  background: #f3f4f6;
  border-color: #b79c86;
}

.demopo-qty-btn:active {
  background: #e5e7eb;
}

.demopo-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demopo-qty-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-align: center;
}

/* Hide default WooCommerce quantity input when using our custom control */
.demopo-qty-control input[type="hidden"],
.demopo-qty-control input[type="number"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Quantity controls in the product detail section */
.product-info-wrapper .demopo-qty-control {
  margin-bottom: 16px;
}

/* RTL support */
[dir="rtl"] .demopo-qty-control {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Single Product Page Styles
   ========================================================================== */

/* Product Gallery */
[data-gallery] img[data-gallery-thumb] {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

[data-gallery] img[data-gallery-thumb]:hover {
  transform: scale(1.02);
}

[data-gallery] img[data-gallery-main] {
  transition: opacity 0.3s ease;
}

/* Mini Product Card */
.product-card-mini {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Accordion */
[data-accordion] [data-accordion-icon] {
  transition: transform 0.2s ease;
}

[data-accordion] [data-accordion-content] {
  transition: max-height 0.3s ease;
}

/* Size Fit Progress Bars */
.size-fit-bar {
  transition: width 0.5s ease;
}

/* Review Card */
.review-card {
  transition: background-color 0.2s ease;
}

.review-card:hover {
  background-color: #faf8f5;
}

/* Color Swatches */
[data-option-group] button[data-option] {
  transition: all 0.2s ease;
}

/* Size Buttons */
[data-option-group] button[data-option]:not([style]) {
  transition: all 0.2s ease;
}

/* Recommend Section */
.recommend-section {
  background: linear-gradient(180deg, #FAF8F5 0%, #F7F3EF 100%);
}

/* Product Info Wrapper - Hide WC default price display */
.product-info-wrapper .woocommerce-variation-price,
.product-info-wrapper .woocommerce-variation-price .price,
.product-info-wrapper .woocommerce-variation-availability {
  display: none !important;
}

/* Voucher Card */
.voucher-card {
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
}

/*
   Mobile Fixes: Hide floating elements that cause overflow or overlap
   (e.g., Social Icons, TI Wishlist Floating Button)
*/
@media (max-width: 768px) {
    /* Hide TI Wishlist Floating Button/Sidebar on Mobile */
    #tinvwl_manage_wishlist, 
    .tinv-wishlist.tinvwl-after-add-to-cart,
    .tinvwl-sidebar,
    #tinvwl-panel-wishlist,
    
    /* YITH Wishlist */
    #yith-wcwl-popup-message,
    .yith-wcwl-popup-footer,

    /* Social Share Floating Bars */
    .addtoany_share_save_container.addtoany_content_bottom,
    .addtoany_share_save_container.addtoany_content_left,
    .addtoany_share_save_container.addtoany_content_right,
    .a2a_kit.a2a_floating_style,
    .heateor_sss_vertical_sharing,
    .heateor_sss_floating_sidebar,
    .sticky-social-bar,
    .floating-social-icons,
    .at-share-dock,
    .sharethis-inline-share-buttons,
    
    /* WhatsApp / Chat Widgets (Optional, if requested to hide) */
    .wa__btn_popup,
    .ht-ctc-chat,
    
    /* Generic catch-all for fixed sidebars on right (use with caution) */
    div[class*="wishlist"][style*="fixed"],
    div[class*="sidebar"][style*="fixed"] {
        display: none !important; 
    }
    
    /* Ensure body doesn't overflow horizontally */
    body {
        overflow-x: hidden;
    }
}

/* ========================================
   My Orders Page Styles
   ======================================== */

/* Orders Page Container */
.demopo-orders-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.demopo-orders-title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

/* Tabs Wrapper */
.demopo-orders-tabs-wrapper {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.demopo-orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Tab Buttons */
.demopo-order-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: #f1f2f7;
  color: #5b5b5b;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
}

.demopo-order-tab:hover {
  background: #e5e7eb;
  color: #2c2c2c;
}

.demopo-order-tab--active {
  background: #b79c86 !important;
  color: #ffffff !important;
}

/* Orders Grid */
.demopo-orders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Order Card */
.demopo-order-card {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition: all 0.3s ease;
}

.demopo-order-card:hover {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

/* Card Header */
.demopo-order-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.demopo-order-card__id {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

/* Status Badges */
.demopo-order-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.demopo-badge--processing {
  background: #fff4ed;
  color: #e1763a;
}

.demopo-badge--confirmed {
  background: #e9f7f1;
  color: #1c8f6b;
}

.demopo-badge--in-the-way {
  background: #e8f1ff;
  color: #2563eb;
}

.demopo-badge--delivered {
  background: #f3e8ff;
  color: #7c3aed;
}

.demopo-badge--canceled {
  background: #fee2e2;
  color: #e11d48;
}

/* Card Meta */
.demopo-order-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.demopo-order-card__date {
  font-size: 12px;
  color: #9ca3af;
}

.demopo-order-card__total {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* Divider */
.demopo-order-card__divider {
  height: 1px;
  background: #eef1f5;
  margin: 16px 0;
}

/* Product Images */
.demopo-order-card__images {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.demopo-order-card__image {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f2f7;
  border: 1px solid #e5e7eb;
}

.demopo-order-card__extra {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* Action Buttons */
.demopo-order-card__actions {
  display: flex;
  gap: 12px;
}

.demopo-order-btn {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  border: none;
}

.demopo-order-btn--primary {
  background: #b79c86;
  color: #ffffff;
}

.demopo-order-btn--primary:hover {
  background: #a98f7a;
  transform: translateY(-1px);
}

.demopo-order-btn--cancel {
  background: transparent;
  border: 1px solid #ef4444;
  color: #ef4444;
}

.demopo-order-btn--cancel:hover {
  background: #fee2e2;
}

/* Empty State */
.demopo-orders-empty {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 48px 24px;
  text-align: center;
}

.demopo-orders-empty p {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .demopo-orders-page {
    padding: 24px 16px;
  }

  .demopo-orders-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .demopo-orders-tabs-wrapper {
    padding: 12px;
  }

  .demopo-orders-tabs {
    gap: 8px;
  }

  .demopo-order-tab {
    padding: 8px 16px;
    font-size: 12px;
  }

  .demopo-orders-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .demopo-order-card {
    padding: 16px;
  }

  .demopo-order-card__image {
    width: 56px;
    height: 56px;
  }
}

/* RTL Support */
body.rtl .demopo-orders-title {
  text-align: right;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

body.rtl .demopo-order-card__header,
body.rtl .demopo-order-card__meta {
  direction: rtl;
  text-align: right;
}

body.rtl .demopo-order-card__id,
body.rtl .demopo-order-card__date,
body.rtl .demopo-order-card__total {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

body.rtl .demopo-order-card__images {
  direction: rtl;
}

body.rtl .demopo-order-btn {
  font-family: 'Cairo', 'Tajawal', sans-serif;
}


/* ========================================
   My Orders Page Styles
   ======================================== */

.demopo-orders-page { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }
.demopo-orders-title { font-size: 24px; font-weight: 600; color: #111827; margin-bottom: 32px; letter-spacing: 0.02em; }
.demopo-orders-tabs-wrapper { background: #ffffff; border: 1px solid #eef1f5; border-radius: 16px; padding: 16px; margin-bottom: 24px; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04); }
.demopo-orders-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.demopo-order-tab { padding: 10px 20px; font-size: 13px; font-weight: 500; border-radius: 8px; background: #f1f2f7; color: #5b5b5b; border: none; cursor: pointer; transition: all 0.2s ease; }
.demopo-order-tab:hover { background: #e5e7eb; color: #2c2c2c; }
.demopo-order-tab--active { background: #b79c86 !important; color: #ffffff !important; }
.demopo-orders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.demopo-order-card { background: #ffffff; border: 1px solid #eef1f5; border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04); transition: all 0.3s ease; }
.demopo-order-card:hover { box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08); transform: translateY(-2px); }
.demopo-order-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demopo-order-card__id { font-size: 14px; font-weight: 600; color: #111827; }
.demopo-order-badge { font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.demopo-badge--processing { background: #fff4ed; color: #e1763a; }
.demopo-badge--confirmed { background: #e9f7f1; color: #1c8f6b; }
.demopo-badge--in-the-way { background: #e8f1ff; color: #2563eb; }
.demopo-badge--delivered { background: #f3e8ff; color: #7c3aed; }
.demopo-badge--canceled { background: #fee2e2; color: #e11d48; }
.demopo-order-card__meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.demopo-order-card__date { font-size: 12px; color: #9ca3af; }
.demopo-order-card__total { font-size: 16px; font-weight: 600; color: #111827; }
.demopo-order-card__divider { height: 1px; background: #eef1f5; margin: 16px 0; }
.demopo-order-card__images { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.demopo-order-card__image { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: #f1f2f7; border: 1px solid #e5e7eb; }
.demopo-order-card__extra { font-size: 13px; color: #9ca3af; font-weight: 500; }
.demopo-order-card__actions { display: flex; gap: 12px; }
.demopo-order-btn { flex: 1; padding: 10px 16px; font-size: 13px; font-weight: 600; text-align: center; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; text-decoration: none; display: inline-block; border: none; }
.demopo-order-btn--primary { background: #b79c86; color: #ffffff; }
.demopo-order-btn--primary:hover { background: #a98f7a; transform: translateY(-1px); }
.demopo-order-btn--cancel { background: transparent; border: 1px solid #ef4444; color: #ef4444; }
.demopo-order-btn--cancel:hover { background: #fee2e2; }
.demopo-orders-empty { grid-column: 1 / -1; background: #ffffff; border: 1px solid #eef1f5; border-radius: 16px; padding: 48px 24px; text-align: center; }
.demopo-orders-empty p { font-size: 14px; color: #9ca3af; margin: 0; }
@media (max-width: 768px) { .demopo-orders-page { padding: 24px 16px; } .demopo-orders-title { font-size: 20px; margin-bottom: 24px; } .demopo-orders-tabs-wrapper { padding: 12px; } .demopo-orders-tabs { gap: 8px; } .demopo-order-tab { padding: 8px 16px; font-size: 12px; } .demopo-orders-grid { grid-template-columns: 1fr; gap: 16px; } .demopo-order-card { padding: 16px; } .demopo-order-card__image { width: 56px; height: 56px; } }
body.rtl .demopo-orders-title { text-align: right; font-family: 'Cairo', 'Tajawal', sans-serif; }
body.rtl .demopo-order-card__header, body.rtl .demopo-order-card__meta { direction: rtl; text-align: right; }
body.rtl .demopo-order-card__id, body.rtl .demopo-order-card__date, body.rtl .demopo-order-card__total { font-family: 'Cairo', 'Tajawal', sans-serif; }
body.rtl .demopo-order-card__images { direction: rtl; }
body.rtl .demopo-order-btn { font-family: 'Cairo', 'Tajawal', sans-serif; }
