/*
Theme Name: Noqra
Theme URI: https://example.com/noqra
Author: hesdev
Author URI: https://hesdev.com
Description: قالب ووردبريس احترافي لمتجر مجوهرات الفضة بتصميم عصري.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: noqra
*/

.noqra-product-card .added_to_cart.wc-forward {
  display: none !important;
}

.noqra-single-add-to-cart form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.noqra-single-add-to-cart form.cart .quantity .qty {
  width: 72px;
  height: 38px;
  border: 1px solid #e4e4e7;
  text-align: center;
  border-radius: 9999px;
  font-size: 13px;
}

.noqra-single-add-to-cart form.cart .single_add_to_cart_button {
  border: 0;
  border-radius: 9999px;
  background: #111827;
  color: #ffffff;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.noqra-single-add-to-cart form.cart .single_add_to_cart_button:hover {
  background: #8a6e52;
}

.noqra-single-add-to-cart form.cart .variations {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  table-layout: fixed;
}

.noqra-single-add-to-cart form.cart .variations tr {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 38px;
  margin-bottom: 6px;
}

.noqra-single-add-to-cart form.cart .variations td,
.noqra-single-add-to-cart form.cart .variations th {
  padding: 0;
  border: 0;
}

.noqra-single-add-to-cart form.cart .variations th.label label {
  display: inline-flex;
  width: 100%;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #27272a;
  justify-content: flex-start;
}

[dir="rtl"] .noqra-single-add-to-cart form.cart .variations th.label label {
  justify-content: flex-end;
}

.noqra-single-add-to-cart form.cart .variations td.value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.noqra-single-add-to-cart form.cart .variations td.value select {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #111827;
  font-size: 13px;
  border-radius: 9999px;
  outline: 0;
}

.noqra-single-add-to-cart form.cart .variations td.value select:focus {
  border-color: #8a6e52;
  box-shadow: 0 0 0 3px rgba(138, 110, 82, 0.15);
}

.noqra-single-add-to-cart form.cart .variations .reset_variations {
  font-size: 12px;
  font-weight: 700;
  color: #8a6e52;
  text-decoration: none;
}

.noqra-single-add-to-cart form.cart .variations .reset_variations:hover {
  color: #6f573f;
}

.noqra-single-add-to-cart .single_variation_wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  min-height: 90px;
}

.noqra-single-add-to-cart .single_variation_wrap .woocommerce-variation-price {
  width: 100%;
  color: #8a6e52;
  font-weight: 800;
  font-size: 16px;
  min-height: 24px;
  text-align: center;
}

.noqra-single-add-to-cart .single_variation_wrap .woocommerce-variation {
  width: 100%;
  min-height: 24px;
  text-align: center;
  order: 2;
}

.noqra-single-add-to-cart .single_variation_wrap .woocommerce-variation-add-to-cart {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  order: 1;
}

.noqra-checkout .woocommerce-billing-fields h3,
.noqra-checkout .woocommerce-shipping-fields h3,
.noqra-checkout .woocommerce-additional-fields h3 {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 14px;
  color: #18181b;
}

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

.noqra-checkout .woocommerce-checkout-review-order-table th,
.noqra-checkout .woocommerce-checkout-review-order-table td {
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid #e4e4e7;
}

.noqra-checkout .woocommerce-checkout-review-order-table th {
  text-align: start;
  color: #52525b;
  font-weight: 700;
}

/* Swiper pagination bullets - match theme primary/secondary colors */
.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  opacity: 1;
  background-color: rgba(138, 110, 82, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.swiper-pagination-bullet:hover {
  background-color: #8a6e52;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #8a6e52 0%, #111827 100%);
  transform: scale(1.1);
}

.noqra-product-thumbs .swiper-slide {
  border-color: #e4e4e7;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.noqra-product-thumbs .swiper-slide-thumb-active {
  border-color: #8a6e52;
  opacity: 1;
}

.noqra-no-scroll {
  overflow: hidden;
}

.noqra-product-gallery-fullscreen .swiper-slide {
  touch-action: pan-y;
}

.noqra-checkout .woocommerce-checkout-review-order-table td {
  color: #18181b;
  font-weight: 600;
}

.noqra-checkout #payment {
  margin-top: 14px;
  border: 1px solid #e4e4e7;
  border-radius: 14px;
  background: #fafafa;
  overflow: hidden;
}

.noqra-checkout #payment ul.payment_methods {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e4e7;
}

.noqra-checkout #payment div.form-row {
  margin: 0;
  padding: 14px;
}

.noqra-checkout #payment .payment_method {
  font-size: 13px;
}

.noqra-checkout #payment .payment_methods .wc_payment_method {
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
}

.noqra-checkout #payment .payment_methods .wc_payment_method > label {
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
}

.noqra-checkout #payment .payment_methods {
  display: grid;
  gap: 10px;
}

.noqra-checkout #payment .payment_methods .wc_payment_method:has(.noqra-payment-radio:checked) {
  border-color: #8a6e52;
  box-shadow: 0 0 0 3px rgba(138, 110, 82, 0.12);
}

.noqra-checkout .noqra-payment-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.noqra-checkout .noqra-payment-radio-ui {
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  border: 2px solid #cbd5e1;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.noqra-checkout .noqra-payment-radio-ui::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #8a6e52;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.noqra-checkout .noqra-payment-radio:checked + .noqra-payment-radio-ui {
  border-color: #8a6e52;
}

.noqra-checkout .noqra-payment-radio:checked + .noqra-payment-radio-ui::after {
  transform: translate(-50%, -50%) scale(1);
}

.noqra-cart-page .quantity .qty {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  height: 36px;
  border: 0;
  text-align: center;
  font-size: 13px;
  outline: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.noqra-cart-page .noqra-cart-qty-wrap .quantity {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: auto;
  flex: 0 0 auto;
}

.noqra-cart-page .noqra-cart-qty-wrap {
  width: auto !important;
  max-width: max-content;
  flex: 0 0 auto;
}

.noqra-cart-page .noqra-cart-qty-wrap .input-text.qty.text {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
}

.noqra-cart-page .quantity .qty:focus {
  border-color: transparent;
  box-shadow: none;
}

.noqra-cart-page .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.noqra-cart-page .wc-proceed-to-checkout .checkout-button:hover {
  background: #8a6e52;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid transparent;
}

.woocommerce-message {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.woocommerce-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.woocommerce-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
}

.alert {
  list-style: none;
}

.alert li + li {
  margin-top: 6px;
}

.noqra-checkout #payment .payment_box {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  color: #52525b;
  font-size: 12px;
  padding: 10px;
}

.noqra-myaccount .woocommerce-MyAccount-navigation-link.is-active a {
  background: #8a6e52;
  color: #ffffff;
}

.noqra-myaccount .woocommerce-MyAccount-content h2,
.noqra-myaccount .woocommerce-MyAccount-content h3 {
  font-size: 17px;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 12px;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-Button,
.noqra-myaccount .woocommerce-MyAccount-content .button {
  border: 0;
  border-radius: 9999px;
  background: #111827;
  color: #fff;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-Button:hover,
.noqra-myaccount .woocommerce-MyAccount-content .button:hover {
  background: #8a6e52;
}

.noqra-myaccount .woocommerce-MyAccount-content input.input-text,
.noqra-myaccount .woocommerce-MyAccount-content select,
.noqra-myaccount .woocommerce-MyAccount-content textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  padding: 0 12px;
  outline: 0;
}

.noqra-myaccount .woocommerce-MyAccount-content textarea {
  min-height: 110px;
  padding: 10px 12px;
}

.noqra-myaccount .woocommerce-MyAccount-content input.input-text:focus,
.noqra-myaccount .woocommerce-MyAccount-content select:focus,
.noqra-myaccount .woocommerce-MyAccount-content textarea:focus {
  border-color: #8a6e52;
  box-shadow: 0 0 0 3px rgba(138, 110, 82, 0.15);
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  overflow: hidden;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-table th,
.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e4e4e7;
  font-size: 13px;
  text-align: start;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-table th {
  background: #fafafa;
  color: #52525b;
  font-weight: 700;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row {
  margin: 0;
  width: 100%;
  float: none;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .form-row-wide,
.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields__field-wrapper .address-field {
  grid-column: 1 / -1;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields label {
  margin-bottom: 6px;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #71717a;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields .select2-container {
  width: 100% !important;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection--single {
  height: 42px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection__rendered {
  line-height: 40px;
  color: #111827;
  font-size: 13px;
  padding-inline: 12px 30px;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields .select2-container .select2-selection__arrow {
  height: 40px;
  right: 8px;
}

.noqra-myaccount .woocommerce-MyAccount-content .woocommerce-address-fields p:has(button[name="save_address"]) {
  margin-top: 14px;
}

a.added_to_cart {display:none !important}

.noqra-footer {
  --noqra-footer-bg: #111827;
  background-color: var(--noqra-footer-bg);
}

.noqra-footer__curve {
  color: var(--noqra-footer-bg);
}

.noqra-products-collage__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f4f5;
  min-height: 0;
}

.noqra-products-collage__media {
  display: block;
  width: 100%;
  height: 100%;
}

.noqra-products-collage__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.noqra-products-collage__item:hover .noqra-products-collage__media img {
  transform: scale(1.04);
}

.noqra-products-collage__content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.76) 5%, rgba(17, 24, 39, 0) 100%);
  color: #ffffff;
}

.noqra-products-collage__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.noqra-products-collage__title a {
  color: inherit;
  text-decoration: none;
}

.noqra-products-collage__price {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
}

.noqra-products-collage__price .amount {
  color: #ffffff;
}
