/* =====================================================================
 * MEMEZ — Unified UI: form fields, search and buttons.
 * One consistent, professional look across the whole site, Arabic + English
 * (RTL aware). Loaded site-wide by class-assets.php.
 * ===================================================================== */

/* ---------------------------------------------------------------
 * iOS Safari zooms into any field whose font-size is < 16px on focus,
 * which makes the page jump / feel "not held". Force 16px on phones.
 * --------------------------------------------------------------- */
@media (max-width: 768px) {
  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select,
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout textarea,
  .woocommerce-checkout select,
  .woocommerce-cart input.input-text,
  #billing_email, #billing_phone, #coupon_code,
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="number"], input[type="password"], input[type="search"],
  input[type="url"], select, textarea {
    font-size: 16px !important;
  }
}

/* ---------------------------------------------------------------
 * Unified form fields + search box.
 * --------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-cart-form input.input-text,
.woocommerce #order_review input.input-text,
.woocommerce-account form input.input-text,
.woocommerce-account form input[type="password"],
#coupon_code, #billing_email, #billing_phone,
.woocommerce-product-search input.search-field,
.search-form input.search-field,
form[role="search"] input[type="search"],
input.search-field {
  box-sizing: border-box !important;
  width: 100%;
  min-height: 48px;
  padding: 12px 15px !important;
  background: #fff !important;
  border: 1px solid #d8d3cc !important;
  border-radius: 10px !important;
  color: #1a1a1a !important;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}

/* Native <select> caret (Kuwait City / Area dropdowns). */
.woocommerce form .form-row select,
.woocommerce-checkout select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 15px center !important;
  padding-right: 40px !important;
}
html[dir="rtl"] .woocommerce form .form-row select,
html[dir="rtl"] .woocommerce-checkout select {
  background-position: left 15px center !important;
  padding-right: 15px !important;
  padding-left: 40px !important;
}

/* One accent focus state for every field. */
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
#coupon_code:focus,
input.search-field:focus,
form[role="search"] input[type="search"]:focus {
  border-color: #0a0a0a !important;
  box-shadow: 0 0 0 3px rgba(10,10,10,.08) !important;
  outline: none !important;
}
.woocommerce form .form-row input.input-text::placeholder,
.woocommerce-checkout input.input-text::placeholder,
input.search-field::placeholder { color: #9a948c; }

/* Select2 (country selector) matched to the same look. */
.woocommerce .select2-container--default .select2-selection--single {
  min-height: 48px !important;
  border: 1px solid #d8d3cc !important;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
}
.woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.4 !important;
  padding: 0 15px !important;
  color: #1a1a1a;
}

/* ---------------------------------------------------------------
 * Unified buttons — professional, consistent black buttons for
 * every primary action, Arabic + English.
 * --------------------------------------------------------------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt,
.woocommerce #respond input#submit,
.woocommerce #place_order,
.woocommerce button#place_order,
.woocommerce .single_add_to_cart_button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart-form .actions .button,
.woocommerce-account .woocommerce-Button,
.woocommerce-product-search button[type="submit"] {
  display: inline-block;
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid #0a0a0a !important;
  border-radius: 10px !important;
  padding: 14px 26px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: .03em !important;
  line-height: 1.2 !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color .18s ease, opacity .18s ease;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #262626 !important;
  background-color: #262626 !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Full-width primary buttons where it reads better. */
.woocommerce #place_order,
.woocommerce .single_add_to_cart_button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
}

/* Secondary "apply coupon" button: outline style so the hierarchy is clear. */
.woocommerce-cart-form .actions .button[name="apply_coupon"],
.woocommerce form.checkout_coupon .button {
  background: #fff !important;
  background-color: #fff !important;
  color: #0a0a0a !important;
  border: 1px solid #0a0a0a !important;
}
.woocommerce-cart-form .actions .button[name="apply_coupon"]:hover,
.woocommerce form.checkout_coupon .button:hover {
  background: #0a0a0a !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------
 * Mini-cart drawer: "Checkout" is the primary action, "View cart"
 * the secondary one (outline), so the next step is obvious.
 * --------------------------------------------------------------- */
.woocommerce-mini-cart__buttons .button:not(.checkout) {
  background: #fff !important;
  background-color: #fff !important;
  color: #0a0a0a !important;
  border: 1px solid #0a0a0a !important;
}
.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
  background: #f4f2ee !important;
  color: #0a0a0a !important;
}
.woocommerce-mini-cart__buttons .button.checkout {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  color: #fff !important;
  border: 1px solid #0a0a0a !important;
}

/* ---------- Blog sidebar: social widget in the site's black & white style ---------- */
.widget_social_media .site-social {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.widget_social_media .site-social li {
  margin: 0 !important;
  width: 100%;
}
.widget_social_media .site-social li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  height: auto !important;
  padding: 10px 14px !important;
  background: #fff !important;
  background-color: #fff !important;
  color: #0a0a0a !important;
  border: 1px solid #e6e6e6 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.widget_social_media .site-social li a i {
  flex: 0 0 34px;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: transparent !important;
  color: #0a0a0a !important;
  font-size: 15px !important;
  transition: border-color .2s ease, color .2s ease;
}
.widget_social_media .site-social li a .social-label {
  flex: 1 1 auto;
  margin: 0 !important;
  color: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: .02em !important;
  text-transform: capitalize !important;
}
.widget_social_media .site-social li a .social-value {
  display: none !important;
}
.widget_social_media .site-social li a::after {
  content: "\2192";
  font-size: 15px;
  line-height: 1;
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}
html[dir="rtl"] .widget_social_media .site-social li a::after {
  content: "\2190";
}
.widget_social_media .site-social li a:hover {
  background: #0a0a0a !important;
  background-color: #0a0a0a !important;
  border-color: #0a0a0a !important;
  color: #fff !important;
}
.widget_social_media .site-social li a:hover i {
  border-color: rgba(255, 255, 255, .45);
  color: #fff !important;
}
.widget_social_media .site-social li a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}
html[dir="rtl"] .widget_social_media .site-social li a:hover::after {
  transform: translateX(-3px);
}
/* Brand names with correct capitalisation, per language. */
.widget_social_media .site-social li a .social-label {
  font-size: 0 !important;
}
.widget_social_media .site-social li a .social-label::after {
  font-size: 13px;
}
.widget_social_media .site-social a.instagram .social-label::after { content: "Instagram"; }
.widget_social_media .site-social a.tiktok .social-label::after { content: "TikTok"; }
.widget_social_media .site-social a.linkedin .social-label::after { content: "LinkedIn"; }
html[lang^="ar"] .widget_social_media .site-social a.instagram .social-label::after { content: "إنستغرام"; }
html[lang^="ar"] .widget_social_media .site-social a.tiktok .social-label::after { content: "تيك توك"; }
html[lang^="ar"] .widget_social_media .site-social a.linkedin .social-label::after { content: "لينكدإن"; }
