:root {
  --primary-yellow: #FFC928;
  --warm-orange: #FF7A1A;
  --deep-navy: #102033;
  --white: #FFFFFF;
  --soft-cream: #FFF4D8;
  --summer-blue: #2BB8FF;
  --body-bg: #FAF6EE;
  --grey-light: #F8F9FA;
  --grey-border: #E5E9F0;
  --grey-text: #606F7B;
  --font-arabic: 'Cairo', 'Tajawal', sans-serif;
  --font-english: 'Poppins', 'Nunito', sans-serif;
  --shadow-sm: 0 2px 4px rgba(16, 32, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(16, 32, 51, 0.08);
  --shadow-lg: 0 10px 24px rgba(16, 32, 51, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  background-color: var(--body-bg);
  color: var(--deep-navy);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.no-scroll {
  overflow: hidden;
}

/* Common Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 15px;
}

.btn-primary {
  background-color: var(--primary-yellow);
  color: var(--deep-navy);
}

.btn-primary:hover {
  background-color: #e6b41f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230,180,31,0.3);
}

.btn-orange {
  background-color: var(--warm-orange);
  color: var(--white);
}

.btn-orange:hover {
  background-color: #e66610;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230,102,16,0.3);
}

.btn-outline {
  border: 2px solid var(--deep-navy);
  background: transparent;
  color: var(--deep-navy);
}

.btn-outline:hover {
  background-color: var(--deep-navy);
  color: var(--white);
}

/* ==========================================================================
   HEADER DESIGN (Matching Stitch)
   ========================================================================== */
.global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.global-header.sticky-active {
  box-shadow: var(--shadow-md);
}

.top-bar {
  background-color: var(--deep-navy);
  color: var(--primary-yellow);
  text-align: center;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.header-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--warm-orange);
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-logo span {
  color: var(--deep-navy);
}

.header-search-form {
  position: relative;
  flex: 0 1 450px;
  margin: 0 20px;
}

.header-search-input {
  width: 100%;
  padding: 10px 45px 10px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 50px;
  outline: none;
  transition: var(--transition);
  font-size: 14px;
}

.header-search-input:focus {
  border-color: var(--warm-orange);
}

.header-search-form button {
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--grey-text);
  font-size: 18px;
}

.search-ajax-results {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
  border: 1px solid var(--grey-border);
  display: none;
  z-index: 1010;
  overflow: hidden;
}

.search-results-list {
  list-style: none;
}

.search-results-list li a {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid var(--grey-light);
}

.search-results-list li a:hover {
  background-color: var(--soft-cream);
}

.search-res-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  margin-left: 12px;
  background-color: var(--grey-light);
}

.search-res-info {
  display: flex;
  flex-direction: column;
}

.res-title {
  font-weight: 600;
  font-size: 14px;
}

.res-price {
  font-size: 12px;
  color: var(--warm-orange);
  font-weight: 700;
  margin-top: 2px;
}

.res-tag {
  font-size: 11px;
  color: var(--grey-text);
  margin-top: 2px;
}

.no-search-results {
  padding: 15px;
  text-align: center;
  color: var(--grey-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-actions-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--deep-navy);
  position: relative;
}

.header-actions-link svg, .header-actions-link span.icon {
  font-size: 20px;
  margin-bottom: 2px;
  color: var(--deep-navy);
}

.cart-count-wrapper {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background-color: var(--warm-orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--deep-navy);
}

.header-nav-inline {
  display: block;
}

.header-nav-inline .nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-nav-inline .nav-menu li {
  position: relative;
}

.header-nav-inline .nav-menu li a {
  display: block;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--deep-navy);
  transition: var(--transition);
}

.header-nav-inline .nav-menu li a:hover, .header-nav-inline .nav-menu li.current-menu-item a {
  color: var(--warm-orange);
}

.header-cta-btn {
  display: inline-flex;
}

/* Mobile Navigation Drawer */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(16, 32, 51, 0.6);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 280px;
  background-color: var(--white);
  z-index: 2010;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transition: var(--transition);
  overflow-y: auto;
}

.mobile-menu-drawer.active {
  right: 0;
}

/* Admin Bar Adjustments */
.admin-bar .mobile-menu-drawer {
  top: 32px;
}
.admin-bar .global-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .mobile-menu-drawer {
    top: 46px;
  }
  .admin-bar .global-header {
    top: 46px;
  }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--grey-border);
  padding-bottom: 15px;
}

.close-drawer {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav-list {
  list-style: none;
  margin-bottom: 30px;
}

.mobile-nav-list li a {
  display: block;
  padding: 12px 0;
  font-weight: 700;
  border-bottom: 1px solid var(--grey-light);
}

.mobile-nav-list li a:hover {
  color: var(--warm-orange);
}

/* ==========================================================================
   FOOTER DESIGN (Matching Stitch)
   ========================================================================== */
.global-footer {
  background-color: var(--deep-navy);
  color: var(--white);
  padding-top: 60px;
  margin-top: 60px;
}

.footer-newsletter {
  background-color: var(--warm-orange);
  padding: 30px 0;
  margin-top: -60px;
  margin-bottom: 60px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.footer-newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter-info h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 5px;
}

.newsletter-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex: 0 1 500px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  outline: none;
}

.newsletter-form button {
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  background-color: var(--deep-navy);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-yellow);
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary-yellow);
  color: var(--deep-navy);
  transform: translateY(-3px);
}

.footer-links-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-yellow);
  position: relative;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 12px;
}

.footer-links-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-links-col ul li a:hover {
  color: var(--primary-yellow);
  padding-right: 5px;
}

.footer-bottom {
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-trust-strip img {
  max-height: 25px;
}

/* ==========================================================================
   HOMEPAGE TEMPLATE CSS
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--soft-cream) 0%, #fffbf2 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: var(--warm-orange);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--deep-navy);
}

.hero-content h1 span {
  color: var(--warm-orange);
}

.hero-content p {
  font-size: 18px;
  color: var(--grey-text);
  margin-bottom: 30px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 15px;
}

.hero-image {
  display: flex;
  justify-content: center;
  z-index: 2;
}

.hero-image-wrapper {
  position: relative;
  width: 85%;
}

.hero-image-wrapper img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* Category Grid */
.home-categories {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--grey-text);
  font-size: 15px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cat-card {
  background-color: var(--white);
  border: 2px solid var(--grey-border);
  border-radius: 16px;
  padding: 25px 15px;
  text-align: center;
  transition: var(--transition);
}

.cat-card:hover {
  transform: translateY(-5px);
  border-color: var(--warm-orange);
  box-shadow: var(--shadow-md);
}

.cat-card-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.cat-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--deep-navy);
}

/* Products Grid */
.home-products {
  padding: 60px 0;
  background-color: var(--grey-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background-color: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--grey-border);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-badge-sale {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--warm-orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 5;
}

.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--grey-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-info {
  padding: 20px;
}

.product-card-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--warm-orange);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  overflow: hidden;
  margin-bottom: 10px;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.price-regular {
  font-weight: 800;
  font-size: 16px;
  color: var(--deep-navy);
}

.price-old {
  font-size: 13px;
  color: var(--grey-text);
  text-decoration: line-through;
}

.product-card-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--grey-light);
  color: var(--deep-navy);
  padding: 10px 15px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
}

.product-card:hover .product-card-btn {
  background-color: var(--primary-yellow);
}

/* Promo Banner Section */
.promo-banner {
  padding: 60px 0;
}

.promo-wrapper {
  background: linear-gradient(135deg, var(--deep-navy) 0%, #172b43 100%);
  border-radius: 20px;
  padding: 50px 40px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 30px;
}

.promo-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-yellow);
}

.promo-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
}

/* Why Mawasem Section */
.why-mawasem {
  padding: 60px 0;
  background-color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  background-color: var(--grey-light);
}

.why-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--grey-text);
}

/* ==========================================================================
   PRODUCT PAGE LAYOUT
   ========================================================================== */
.single-product-container {
  padding: 40px 0;
}

.breadcrumb-nav {
  font-size: 13px;
  color: var(--grey-text);
  margin-bottom: 25px;
}

.product-main-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  margin-bottom: 50px;
}

.product-gallery-col {
  display: flex;
  gap: 15px;
}

.product-thumbs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
}

.product-thumbs-list img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--grey-border);
  cursor: pointer;
  transition: var(--transition);
}

.product-thumbs-list img.active, .product-thumbs-list img:hover {
  border-color: var(--warm-orange);
}

.main-product-img {
  flex: 1;
  background-color: var(--grey-light);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--grey-border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.main-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info-col h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-rating-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.stars-rating {
  color: #ffc107;
}

.product-price-box {
  background-color: var(--soft-cream);
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.price-main {
  font-size: 24px;
  font-weight: 800;
  color: var(--warm-orange);
}

.price-original {
  font-size: 16px;
  text-decoration: line-through;
  color: var(--grey-text);
}

.product-short-desc {
  color: var(--grey-text);
  margin-bottom: 30px;
  font-size: 15px;
}

.product-purchase-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--grey-border);
  border-radius: 50px;
  padding: 2px;
  background-color: var(--white);
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: none;
  border: none;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background-color: var(--grey-light);
}

.qty-input {
  width: 45px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 700;
}

.purchase-actions {
  display: flex;
  gap: 12px;
  flex: 1;
}

.purchase-actions .btn {
  flex: 1;
}

.trust-notes-list {
  background-color: var(--grey-light);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 40px;
}

.trust-note-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.trust-note-item:last-child {
  margin-bottom: 0;
}

/* Related Products */
.related-products {
  border-top: 1px solid var(--grey-border);
  padding-top: 50px;
}

/* Reviews Grid */
.reviews-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 30px;
}

/* ==========================================================================
   CART PAGE LAYOUT
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  padding: 40px 0;
}

.cart-table-col {
  background-color: var(--white);
}

.cart-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.3fr;
  padding: 12px 0;
  border-bottom: 2px solid var(--grey-border);
  font-weight: 700;
  font-size: 14px;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 0.3fr;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--grey-light);
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-border);
  background-color: var(--grey-light);
}

.cart-item-name {
  font-weight: 700;
  font-size: 14px;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 18px;
  color: #dc3545;
  cursor: pointer;
}

.coupon-section {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.coupon-input {
  padding: 10px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 50px;
  outline: none;
  font-size: 14px;
}

.cart-totals-col {
  background-color: var(--grey-light);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid var(--grey-border);
  height: fit-content;
}

.cart-totals-col h3 {
  font-size: 18px;
  font-weight: 800;
  border-bottom: 2px solid var(--grey-border);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
}

.totals-row.grand-total {
  border-top: 1px solid var(--grey-border);
  padding-top: 15px;
  font-size: 18px;
  font-weight: 800;
  color: var(--warm-orange);
}

.checkout-btn {
  display: block;
  width: 100%;
  margin-top: 25px;
  text-align: center;
}

/* ==========================================================================
   CHECKOUT PAGE LAYOUT
   ========================================================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 40px 0;
}

.checkout-billing-col h3, .checkout-summary-col h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--grey-border);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--warm-orange);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkout-summary-col {
  background-color: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  padding: 30px;
}

.checkout-payment-methods {
  margin-top: 25px;
  background-color: var(--white);
  border-radius: 8px;
  border: 1px solid var(--grey-border);
  padding: 15px;
}

.payment-method-option {
  margin-bottom: 12px;
}

.payment-method-option:last-child {
  margin-bottom: 0;
}

.payment-method-option label {
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-method-desc {
  font-size: 12px;
  color: var(--grey-text);
  margin-top: 5px;
  padding-right: 22px;
}

/* ==========================================================================
   MY ACCOUNT LAYOUT
   ========================================================================== */
.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 20px 0;
  align-items: flex-start;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid var(--grey-light);
  background-color: var(--white);
  color: var(--deep-navy);
  transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li:last-child a {
  border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li.is-active a, 
.woocommerce-MyAccount-navigation ul li a:hover {
  background-color: var(--soft-cream);
  color: var(--warm-orange);
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  grid-column: 1 !important;
}

body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  grid-column: 2 !important;
  background-color: transparent;
}

.order-history-table {
  width: 100%;
  border-collapse: collapse;
}

.order-history-table th, .order-history-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--grey-border);
  font-size: 14px;
  text-align: right;
}

.order-history-table th {
  background-color: var(--grey-light);
  font-weight: 700;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-completed { background-color: #d4edda; color: #155724; }
.status-pending { background-color: #fff3cd; color: #856404; }
.status-processing { background-color: #cce5ff; color: #004085; }
.status-cancelled { background-color: #f8d7da; color: #721c24; }

/* ==========================================================================
   BLOG TEMPLATE
   ========================================================================== */
.blog-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  padding: 40px 0;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--grey-border);
  padding-bottom: 30px;
}

.article-card-img {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--grey-light);
}

.article-card-info h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.article-meta {
  font-size: 12px;
  color: var(--grey-text);
  margin-bottom: 10px;
}

.article-card-info p {
  font-size: 14px;
  color: var(--grey-text);
  margin-bottom: 15px;
}

.blog-sidebar {
  background-color: var(--grey-light);
  border: 1px solid var(--grey-border);
  border-radius: 16px;
  padding: 25px;
  height: fit-content;
}

.sidebar-widget {
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  font-size: 16px;
  font-weight: 800;
  border-bottom: 2px solid var(--grey-border);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-main-layout {
    grid-template-columns: 1fr;
  }
  .cart-layout, .checkout-layout, .myaccount-layout, .blog-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .header-search-form {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .header-nav-inline, .header-cta-btn {
    display: none !important;
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer-links-col h4 {
    margin-bottom: 10px;
    cursor: pointer;
  }
  .footer-links-col ul {
    display: none;
  }
  .article-card {
    grid-template-columns: 1fr;
  }
  .product-gallery-col {
    flex-direction: column;
  }
  .product-thumbs-list {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  .product-thumbs-list img {
    width: 80px;
    height: 80px;
  }
  .reviews-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Custom Homepage refinements */
@media (max-width: 991px) {
  .seasons-capsule-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .seasons-capsule-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .hero-highlights {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
}

/* WooCommerce Account & General Forms Refinements */
.woocommerce-EditAccountForm fieldset,
.woocommerce-address-fields {
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  margin-bottom: 25px;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.woocommerce-EditAccountForm legend {
  font-weight: 800;
  font-size: 15px;
  padding: 0 10px;
  color: var(--deep-navy);
}

.woocommerce-address-fields h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 10px;
}

/* Make inputs look consistent */
.woocommerce-form-row input.input-text,
.woocommerce-EditAccountForm input.input-text,
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select,
.woocommerce-address-fields textarea,
.woocommerce-EditAccountForm select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 8px;
  outline: none;
  background-color: var(--white);
  transition: var(--transition);
  font-family: var(--font-arabic);
}

.woocommerce-form-row input.input-text:focus,
.woocommerce-EditAccountForm input.input-text:focus,
.woocommerce-address-fields input.input-text:focus,
.woocommerce-address-fields select:focus,
.woocommerce-address-fields textarea:focus {
  border-color: var(--warm-orange);
}

/* WooCommerce Grid Forms (Account & Address) */
.woocommerce-address-fields__field-wrapper,
.woocommerce-EditAccountForm {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 15px 20px !important;
}

/* Half-width fields span 1 column */
.woocommerce-address-fields__field-wrapper .form-row-first,
.woocommerce-address-fields__field-wrapper .form-row-last,
.woocommerce-EditAccountForm .woocommerce-form-row--first,
.woocommerce-EditAccountForm .woocommerce-form-row--last {
  grid-column: span 1 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Wide fields span 2 columns */
.woocommerce-address-fields__field-wrapper .form-row-wide,
.woocommerce-EditAccountForm .woocommerce-form-row--wide,
.woocommerce-EditAccountForm fieldset,
.woocommerce-EditAccountForm .woocommerce-Button-row {
  grid-column: span 2 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

/* Any other p or div children that are not explicit half-width should default to span 2 */
.woocommerce-address-fields__field-wrapper > p:not(.form-row-first):not(.form-row-last),
.woocommerce-EditAccountForm > p:not(.woocommerce-form-row--first):not(.woocommerce-form-row--last) {
  grid-column: span 2 !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}


/* WooCommerce Buttons styling */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce-page button.button,
.woocommerce-page a.button,
.woocommerce input.button {
  background-color: var(--warm-orange) !important;
  color: var(--white) !important;
  font-family: var(--font-arabic) !important;
  font-weight: 700 !important;
  padding: 12px 28px !important;
  border-radius: 50px !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  font-size: 14px !important;
  height: auto !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce-page button.button:hover,
.woocommerce-page a.button:hover,
.woocommerce input.button:hover {
  background-color: #e66610 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(230,102,16,0.3);
}

/* Addresses Page Grid */
.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 20px;
}

.woocommerce-Addresses .col-1,
.woocommerce-Addresses .col-2 {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  background-color: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.woocommerce-Address-title h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--deep-navy);
  margin: 0;
}

.woocommerce-Address-title .edit {
  font-size: 13px;
  font-weight: 700;
  color: var(--warm-orange);
  text-decoration: none;
}

address {
  font-style: normal;
  font-size: 14px;
  color: var(--grey-text);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Clear floats in forms */
.woocommerce-EditAccountForm::after,
.woocommerce-form-login::after,
.woocommerce-form-register::after,
.woocommerce-address-fields::after {
  content: "";
  display: table;
  clear: both;
}

/* Make form items show labels as block */
.woocommerce-form-row label,
.woocommerce-address-fields label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--deep-navy);
}

/* ==========================================================================
   MOBILE FIXES — site audit 2026-06-12
   Inline styles in templates win over plain media queries, hence !important
   ========================================================================== */
@media (max-width: 991px) {
  /* Shop/category: stack products above sidebar instead of crushed 2-col grid */
  .archive-split-layout {
    grid-template-columns: 1fr !important;
  }
  .archive-sidebar-col {
    order: 2;
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  /* Sale price + old price overflow the card and clip — let them wrap */
  .product-card-price {
    flex-wrap: wrap !important;
    row-gap: 2px;
  }
  .product-card-price del, .product-card-price ins {
    white-space: nowrap;
  }
  /* Product page: keep CTA buttons pill-shaped, not egg-shaped wrapped circles */
  .product-purchase-controls {
    flex-wrap: wrap;
  }
  .purchase-actions {
    flex: 1 1 100%;
  }
  .purchase-actions .btn {
    white-space: nowrap;
    padding: 12px 10px;
  }
  /* Footer accordions: show open/close affordance on the headings */
  .footer-links-col h4::after {
    content: '▾';
    float: left;
    font-size: 14px;
    transition: var(--transition);
  }
  .footer-links-col h4.active::after {
    content: '▴';
  }
}

@media (max-width: 400px) {
  .product-card-info {
    padding: 12px !important;
  }
  .product-card-price {
    font-size: 13px !important;
  }
}

/* Login / Register page: the account grid (300px sidebar) must not apply to guests */
body.woocommerce-account:not(.logged-in) .woocommerce {
  display: block;
}
#customer_login.u-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 20px auto;
}
/* WC clearfix pseudo-elements become stray grid items — remove them */
#customer_login.u-columns::before,
#customer_login.u-columns::after {
  display: none !important;
  content: none !important;
}
#customer_login .u-column1,
#customer_login .u-column2 {
  width: 100% !important;
  float: none !important;
  background-color: var(--white);
  border: 1px solid var(--grey-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}
#customer_login h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--grey-light);
  padding-bottom: 10px;
}
#customer_login input.input-text {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 8px;
  outline: none;
  background-color: var(--white);
}
#customer_login .woocommerce-privacy-policy-text {
  font-size: 12px;
  color: var(--grey-text);
  margin: 10px 0;
}
@media (max-width: 767px) {
  #customer_login.u-columns {
    grid-template-columns: 1fr;
  }
  /* My Account: stack the 300px sidebar grid on mobile */
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
  }
  body.woocommerce-account .woocommerce .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce .woocommerce-MyAccount-content {
    grid-column: 1 !important;
  }
  .order-history-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   MOBILE APP-LIKE HOMEPAGE + BOTTOM NAV (2026-06-12)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  border-top: 1px solid var(--grey-border);
  box-shadow: 0 -4px 14px rgba(16, 32, 51, 0.1);
  z-index: 1600;
  justify-content: space-around;
  align-items: stretch;
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--deep-navy);
  position: relative;
  min-width: 54px;
  text-decoration: none;
}
.mobile-bottom-nav a .icon { font-size: 20px; line-height: 1.1; }
.mobile-bottom-nav a.active { color: var(--warm-orange); }
.mobile-bottom-nav .cart-count { top: -6px; left: auto; inset-inline-start: calc(50% - 24px); }

/* Blog cards (homepage) */
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card-img { aspect-ratio: 16/9; background: var(--soft-cream); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-body h3 { font-size: 16px; font-weight: 800; color: var(--deep-navy); }
.blog-card-body p { font-size: 13px; color: var(--grey-text); }
.blog-card-more { font-size: 13px; font-weight: 700; color: var(--warm-orange); }

@media (max-width: 767px) {
  body { padding-bottom: 66px; }
  .mobile-bottom-nav { display: flex; }
  /* top cart/account live in the bottom nav now */
  .header-actions .header-actions-link { display: none; }
  /* full-width search bar under the logo row */
  .header-main { flex-wrap: wrap; }
  .header-search-form { display: block !important; order: 10; flex: 1 1 100%; margin: 10px 0 0; }
  /* hero: bigger slide */
  .hero-section-banner { padding: 10px 0 4px !important; }
  .hero-section-banner .container { padding: 0 10px; }
  .hero-banner-link { border-radius: 14px !important; border-width: 2px !important; }
  .hero-banner-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
  /* highlights: 3 tiles side by side */
  .hero-highlights { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; padding: 12px 8px !important; }
  .hero-highlights .highlight-item { flex-direction: column !important; gap: 6px !important; font-size: 11px !important; text-align: center; line-height: 1.4; }
  .hero-highlights .highlight-item span:first-child { font-size: 26px !important; }
  /* promo banner readable on phones */
  .promo-wrapper { padding: 30px 20px !important; }
  .promo-grid { grid-template-columns: 1fr !important; text-align: center; gap: 10px !important; }
  .promo-grid > div:last-child { font-size: 64px !important; }
  .promo-content h2 { font-size: 22px; }
  .promo-content p { font-size: 14px; }
  /* product sliders */
  .product-slider { display: flex !important; overflow-x: auto; gap: 12px !important; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-slider::-webkit-scrollbar { display: none; }
  .product-slider .product-card { flex: 0 0 62%; max-width: 230px; scroll-snap-align: start; }
  /* blog slider */
  .blog-cards { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .blog-cards::-webkit-scrollbar { display: none; }
  .blog-card { flex: 0 0 78%; scroll-snap-align: start; }
}

/* ==========================================================================
   MOBILE HEADER v2 + HERO/PROMO TWEAKS (2026-06-12 r2)
   ========================================================================== */
@media (max-width: 767px) {
  /* header: no hamburger; account icon left, search stretched in the middle */
  .hamburger-btn { display: none !important; }
  .header-main { flex-wrap: nowrap; gap: 10px; }
  .header-actions { flex: 1 1 auto; gap: 10px; align-items: center; }
  .header-search-form { display: block !important; order: 0; flex: 1 1 auto; margin: 0; }
  .header-search-input { padding: 9px 38px 9px 12px; font-size: 13px; }
  .header-actions .header-actions-link { display: flex; }
  .header-actions .cart-count-wrapper { display: none !important; }
  /* hero: a bit taller */
  .hero-banner-link img { aspect-ratio: 16 / 10.5; object-fit: cover; object-position: 30% center; }
  /* highlights pushed down a little */
  .hero-highlights { margin-top: 16px; }
  /* promo banner: text right, emoji + button left */
  .promo-wrapper { padding: 22px 16px !important; }
  .promo-grid { grid-template-columns: 1.15fr 0.85fr !important; text-align: right; align-items: center; gap: 8px !important; }
  .promo-content h2 { font-size: 17px; }
  .promo-content p { font-size: 12px; line-height: 1.7; }
  .promo-side { gap: 10px !important; }
  .promo-side > div { font-size: 44px !important; }
  .promo-side .btn { font-size: 11.5px; padding: 9px 12px; white-space: nowrap; }
}

/* All-seasons page: responsive cards (2026-06-12 r3) */
@media (max-width: 767px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .cat-card p { height: auto !important; }
  .cat-card .btn { white-space: nowrap; padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 520px) {
  .page-template-page-all-seasons .cat-grid { grid-template-columns: 1fr !important; }
  .page-template-page-all-seasons .cat-card { padding: 25px 20px; }
  .page-template-page-all-seasons .cat-card p { height: auto !important; }
}


/* ==========================================================================
   SHOP TOOLBAR + BOTTOM SHEETS + CARD RATINGS (2026-06-12 r4)
   ========================================================================== */
.shop-toolbar { display: none; align-items: center; justify-content: space-between; gap: 8px; background: var(--white); border: 1px solid var(--grey-border); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.shop-toolbar .results-count { font-size: 12px; color: var(--grey-text); font-weight: 700; }
.toolbar-btn { background: none; border: none; font-weight: 800; font-size: 13px; color: var(--deep-navy); cursor: pointer; padding: 4px 6px; font-family: var(--font-arabic); }
.sheet-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(16, 32, 51, 0.55); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 2050; }
.sheet-overlay.open { opacity: 1; visibility: visible; }
.bottom-sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--white); border-radius: 18px 18px 0 0; z-index: 2100; transform: translateY(105%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 78vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(16, 32, 51, 0.18); }
.bottom-sheet.open { transform: translateY(0); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 16px; color: var(--deep-navy); border-bottom: 1px solid var(--grey-light); padding-bottom: 12px; margin-bottom: 8px; }
.sheet-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--deep-navy); }
.sheet-list { list-style: none; margin: 0; padding: 0; }
.sheet-list li a { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--grey-light); font-size: 14px; font-weight: 700; color: var(--deep-navy); }
.sheet-list li:last-child a { border-bottom: none; }
.sheet-list li a.active { color: var(--warm-orange); }
.sheet-list .cnt { font-size: 11px; color: var(--grey-text); background: var(--grey-light); border-radius: 50px; padding: 2px 9px; font-weight: 700; }
.offers-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--grey-border); border-radius: 50px; padding: 7px 16px; font-weight: 800; font-size: 13px; color: var(--warm-orange); margin: 12px 0 2px; }
.sheet-sub { font-weight: 800; font-size: 14px; margin: 14px 0 2px; color: var(--deep-navy); }
.sheet-done { width: 100%; margin-top: 16px; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--deep-navy); margin-bottom: 8px; }
.card-rating .stars-rating { color: #ffc107; font-size: 13px; letter-spacing: 1px; }
.card-rating .rating-count { color: var(--grey-text); font-weight: 600; }

@media (max-width: 767px) {
  .shop-toolbar { display: flex; }
  /* category capsules: single scrollable row */
  .subcategory-capsules { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .subcategory-capsules::-webkit-scrollbar { display: none; }
  .subcategory-capsules .subcat-capsule { white-space: nowrap; flex: 0 0 auto; }
  /* sidebar widgets are replaced by the sheets on mobile */
  .archive-sidebar-col { display: none !important; }
}

/* ==========================================================================
   SINGLE PRODUCT MOBILE: TITLE ON TOP + STICKY ADD-TO-CART (2026-06-12 r5)
   ========================================================================== */
.product-title-mobile { display: none; }
.sticky-atc { display: none; }
@media (max-width: 767px) {
  .product-title-mobile { display: block; margin-bottom: 14px; }
  .product-title-mobile h1 { font-size: 22px; font-weight: 800; color: var(--deep-navy); margin-bottom: 6px; line-height: 1.4; }
  .product-info-col h1,
  .product-info-col .product-rating-summary { display: none !important; }
  /* in-page controls replaced by the sticky bar on phones */
  .product-purchase-controls { display: none !important; }
  .sticky-atc { display: flex; position: fixed; left: 0; right: 0; bottom: 58px; background: var(--white); border-top: 1px solid var(--grey-border); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); gap: 12px; z-index: 1590; align-items: center; box-shadow: 0 -4px 14px rgba(16, 32, 51, 0.08); }
  .sticky-atc .sticky-qty { display: flex; align-items: center; border: 2px solid var(--grey-border); border-radius: 50px; background: var(--white); padding: 2px; }
  .sticky-atc .sqty { width: 36px; height: 36px; border-radius: 50%; border: none; background: none; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--deep-navy); }
  .sticky-atc .sqty-val { min-width: 28px; text-align: center; font-weight: 800; font-size: 15px; }
  .sticky-atc .sticky-atc-btn { flex: 1; white-space: nowrap; padding: 12px 10px; }
  body.single-product { padding-bottom: 140px; }
}

/* ==========================================================================
   PHONE-ONLY LOGIN PAGE (2026-06-12 r6)
   ========================================================================== */
.phone-login-wrap { display: flex; justify-content: center; padding: 30px 16px 50px; }
.phone-login-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 20px; box-shadow: var(--shadow-md); padding: 35px 28px; max-width: 420px; width: 100%; text-align: center; }
.phone-login-logo { width: 70px; height: 70px; object-fit: contain; margin: 0 auto 14px; display: block; }
.phone-login-card h2 { font-size: 22px; font-weight: 800; color: var(--deep-navy); margin-bottom: 8px; }
.phone-login-sub { font-size: 13.5px; color: var(--grey-text); margin-bottom: 22px; line-height: 1.6; }
.phone-login-form { display: flex; flex-direction: column; gap: 12px; }
.phone-login-form input[type="tel"] { width: 100%; padding: 14px 16px; border: 2px solid var(--grey-border); border-radius: 12px; outline: none; font-size: 17px; font-weight: 700; text-align: center; letter-spacing: 1px; direction: ltr; transition: var(--transition); }
.phone-login-form input[type="tel"]:focus { border-color: var(--warm-orange); }
.phone-login-btn { width: 100%; padding: 14px; font-size: 15px; }
.phone-login-perks { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; font-size: 12px; font-weight: 700; color: var(--deep-navy); }
.phone-login-alt { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--grey-light); font-size: 12.5px; color: var(--grey-text); }
.phone-login-alt a { color: var(--warm-orange); font-weight: 700; }
@media (max-width: 767px) {
  .phone-login-wrap { padding: 16px 12px 40px; }
  .phone-login-card { padding: 28px 20px; }
}

/* ==========================================================================
   MY ACCOUNT DASHBOARD + EDIT ACCOUNT REDESIGN (2026-06-12 r7)
   ========================================================================== */
.my-account-dashboard { display: flex; flex-direction: column; gap: 22px; text-align: right; }
.dash-welcome { background: #FFF4D8; border: 1px solid var(--primary-yellow); padding: 22px 25px; border-radius: 16px; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.dash-welcome h2 { font-weight: 800; font-size: 21px; color: var(--deep-navy); margin-bottom: 4px; }
.dash-welcome p { color: var(--grey-text); font-size: 13px; }
.dash-edit-link { font-size: 12.5px; padding: 9px 16px; white-space: nowrap; background: var(--white); }
.account-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile { background: var(--white); border: 1px solid var(--grey-border); border-radius: 14px; padding: 16px 10px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; text-decoration: none; transition: var(--transition); }
.stat-tile .ico { font-size: 24px; }
.stat-tile .lbl { font-size: 11.5px; color: var(--grey-text); font-weight: 700; }
.stat-tile strong { font-size: 19px; color: var(--deep-navy); font-weight: 800; }
.stat-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--warm-orange); }
.stat-link strong { color: var(--warm-orange); font-size: 14px; }
.dash-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--grey-light); padding-bottom: 10px; margin-bottom: 16px; }
.dash-card-head h3 { font-weight: 800; font-size: 15px; color: var(--deep-navy); }
.dash-all-link { font-size: 12.5px; font-weight: 700; color: var(--warm-orange); }
.order-steps { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px 0 2px; }
.order-step { display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; min-width: 58px; }
.order-step .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grey-border); color: var(--grey-text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.order-step.done .dot { background: var(--warm-orange); color: var(--white); }
.order-step .stp-lbl { font-size: 11px; font-weight: 700; color: var(--grey-text); text-align: center; }
.order-step.done .stp-lbl { color: var(--deep-navy); }
.step-bar { flex: 1; height: 3px; background: var(--grey-border); margin-top: 12px; }
.step-bar.done { background: var(--warm-orange); }
.order-view-btn { padding: 6px 14px !important; font-size: 11.5px !important; background: var(--white) !important; color: var(--deep-navy) !important; border: 2px solid var(--grey-border) !important; }
.order-view-btn:hover { border-color: var(--warm-orange) !important; color: var(--warm-orange) !important; }
.order-total-cell { font-weight: 800; color: var(--warm-orange); }
.dash-empty { padding: 35px 20px; text-align: center; background: var(--grey-light); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dash-empty-ico { font-size: 38px; }
.dash-empty p { color: var(--grey-text); font-weight: 700; font-size: 14px; }
.dash-help { background: linear-gradient(135deg, var(--deep-navy) 0%, #1a324d 100%); padding: 22px 25px; border-radius: 16px; color: var(--white); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; box-shadow: var(--shadow-md); }
.dash-help h3 { font-weight: 800; font-size: 17px; color: var(--primary-yellow); margin-bottom: 4px; }
.dash-help p { font-size: 13px; opacity: 0.9; }
.dash-help-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-wa-btn { background: #25d366 !important; color: var(--white) !important; font-size: 13px; padding: 9px 18px; }
/* Edit account */
.mawasem-edit-account { display: flex; flex-direction: column; gap: 18px; }
.acc-card { background: var(--white); border: 1px solid var(--grey-border); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-sm); }
.acc-sec-title { font-weight: 800; font-size: 15px; color: var(--deep-navy); border-bottom: 2px solid var(--grey-light); padding-bottom: 10px; margin-bottom: 18px; grid-column: span 2; }
.mawasem-edit-account .acc-card { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.acc-hint { display: block; font-size: 11.5px; color: var(--grey-text); margin-top: 5px; line-height: 1.5; }
.acc-password-box { display: block !important; }
.acc-password-box summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--deep-navy); list-style: none; }
.acc-password-box summary::-webkit-details-marker { display: none; }
.acc-password-box .acc-opt { font-weight: 600; font-size: 11.5px; color: var(--grey-text); }
.acc-password-fields { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.acc-save-row { margin: 0; }
.acc-save-btn { padding: 13px 35px !important; font-size: 14px !important; }
@media (max-width: 767px) {
  .account-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mawasem-edit-account .acc-card { grid-template-columns: 1fr; }
  .acc-sec-title { grid-column: span 1; }
  .order-steps { flex-wrap: nowrap; }
  .order-step { min-width: 48px; }
  .order-step .stp-lbl { font-size: 9.5px; }
  .dash-welcome { flex-direction: column; align-items: flex-start; }
}

/* edit-account: override legacy grid-form rules (2026-06-12 r7b) */
form.mawasem-edit-account { display: flex !important; flex-direction: column !important; grid-template-columns: none !important; gap: 18px !important; }
.mawasem-edit-account .woocommerce-form-row { display: block !important; margin: 0 !important; width: 100% !important; float: none !important; grid-template-columns: none !important; }
.mawasem-edit-account input.input-text { width: 100% !important; }
.mawasem-edit-account .acc-card { width: 100%; }


/* ==========================================================================
   CHECKOUT FORM FIELDS — mobile fix + polish (2026-06-12 r8)
   Inline grid-template-columns:1fr 1fr on .form-row crushes fields on phones,
   so we override with !important and normalise field styling.
   ========================================================================== */
.checkout-billing-col .form-group { margin-bottom: 16px; }
.checkout-billing-col label { line-height: 1.4; }
.checkout-billing-col .form-control,
.checkout-billing-col select.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--grey-border);
  border-radius: 10px;
  outline: none;
  font-size: 15px;
  font-family: var(--font-arabic);
  background-color: var(--white);
  transition: var(--transition);
}
.checkout-billing-col .form-control:focus,
.checkout-billing-col select.form-control:focus { border-color: var(--warm-orange); }
.checkout-billing-col input[type="tel"] { direction: ltr; text-align: right; }
.checkout-billing-col select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23606F7B' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 15px center; padding-left: 38px; }

@media (max-width: 767px) {
  /* stack the paired fields — they were 1fr 1fr inline = ~111px each */
  .checkout-billing-col .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
  .checkout-billing-col .form-row .form-group { margin-bottom: 16px; }
  /* tidy card padding on phones */
  .checkout-billing-col > div { padding: 18px !important; }
}

/* ==========================================================================
   CHECKOUT DESKTOP POLISH (2026-06-12 r9)
   ========================================================================== */
@media (min-width: 768px) {
  /* keep the order summary in view while filling the long address form */
  .checkout-summary-col { position: sticky; top: 20px; align-self: start; }
  /* slightly tighter, balanced two columns */
  .checkout-layout { grid-template-columns: 1.25fr 0.75fr !important; gap: 30px !important; align-items: start; }
  /* roomier cards + consistent inner spacing */
  .checkout-billing-col > div { padding: 28px !important; }
}

/* Mawasem: native variable product form */
.mw-variable-atc table.variations{width:100%;margin:0 0 15px;border-collapse:collapse;}
.mw-variable-atc table.variations td{padding:6px 0;vertical-align:middle;}
.mw-variable-atc table.variations td.label label{font-weight:700;color:var(--deep-navy);font-size:14px;}
.mw-variable-atc select{padding:10px 14px;border:2px solid var(--grey-border);border-radius:50px;background:var(--white);font-weight:700;min-width:170px;color:var(--deep-navy);}
.mw-variable-atc .woocommerce-variation-price{font-size:22px;font-weight:900;color:var(--warm-orange);margin:10px 0;}
.mw-variable-atc .reset_variations{display:inline-block;margin:6px 0;font-size:12px;color:var(--grey-text);}
.mw-variable-atc .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px;}
.mw-variable-atc .quantity{display:flex;align-items:center;border:2px solid var(--grey-border);border-radius:50px;padding:2px 8px;background:var(--white);}
.mw-variable-atc .quantity input.qty{width:46px;text-align:center;border:none;outline:none;font-weight:700;background:transparent;}
.mw-variable-atc .single_add_to_cart_button{background:var(--warm-orange);color:var(--white);border:none;padding:12px 28px;font-size:15px;border-radius:50px;font-weight:700;cursor:pointer;}
.mw-variable-atc .single_add_to_cart_button.disabled{opacity:.5;cursor:not-allowed;}
.mw-specs-table th{font-weight:700;}


/* Mawasem: variations form polish v2 */
.product-info-col .mw-variable-atc{margin-bottom:25px;}
.product-info-col .mw-variable-atc table.variations{width:100%;border-collapse:separate;border-spacing:0;margin:0 0 18px;display:block;}
.product-info-col .mw-variable-atc table.variations tbody{display:block;}
.product-info-col .mw-variable-atc table.variations tr{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;}
.product-info-col .mw-variable-atc table.variations th.label{text-align:right;padding:0;background:none;border:none;font-weight:800;font-size:14px;color:var(--deep-navy);width:auto;}
.product-info-col .mw-variable-atc table.variations td.value{padding:0;position:relative;}
.product-info-col .mw-variable-atc select{width:100%;max-width:340px;padding:12px 16px;border:2px solid var(--grey-border);border-radius:14px;background:var(--white);font-weight:700;font-size:14px;color:var(--deep-navy);cursor:pointer;appearance:none;background-image:url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2012%208'%3E%3Cpath%20fill='%23FF7A1A'%20d='M6%208L0%200h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:left 16px center;background-size:12px;}
.product-info-col .mw-variable-atc select:focus{outline:none;border-color:var(--warm-orange);box-shadow:0 0 0 3px rgba(255,122,26,.15);}
.product-info-col .mw-variable-atc .reset_variations{display:inline-block;margin-top:8px;font-size:12px;color:var(--grey-text);text-decoration:underline;}
.product-info-col .mw-variable-atc .woocommerce-variation-price{font-size:24px;font-weight:900;color:var(--warm-orange);margin:6px 0 14px;}
.product-info-col .mw-variable-atc .woocommerce-variation-availability{font-size:13px;font-weight:700;color:#2e7d32;margin-bottom:10px;}
.product-info-col .mw-variable-atc .woocommerce-variation-add-to-cart{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
.product-info-col .mw-variable-atc .quantity{display:flex;align-items:center;border:2px solid var(--grey-border);border-radius:50px;padding:4px 10px;background:var(--white);}
.product-info-col .mw-variable-atc .quantity input.qty{width:44px;text-align:center;border:none;outline:none;font-weight:800;font-size:15px;background:transparent;color:var(--deep-navy);-moz-appearance:textfield;}
.product-info-col .mw-variable-atc .quantity input.qty::-webkit-outer-spin-button,.product-info-col .mw-variable-atc .quantity input.qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.product-info-col .mw-variable-atc .single_add_to_cart_button{flex:1;min-width:180px;background:var(--warm-orange);color:var(--white);border:none;padding:14px 28px;font-size:15px;border-radius:50px;font-weight:800;cursor:pointer;transition:transform .12s ease,filter .12s ease;}
.product-info-col .mw-variable-atc .single_add_to_cart_button:hover{filter:brightness(1.05);transform:translateY(-1px);}
.product-info-col .mw-variable-atc .single_add_to_cart_button.disabled,.product-info-col .mw-variable-atc .single_add_to_cart_button.wc-variation-selection-needed{opacity:.45;cursor:not-allowed;transform:none;filter:none;}


/* Mawasem: variations polish v3 */
.product-info-col .mw-variable-atc table.variations tr{flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap;}
.product-info-col .mw-variable-atc table.variations th.label{min-width:64px;font-size:15px;}
.product-info-col .mw-variable-atc select{max-width:260px;flex:1;}
.product-info-col .mw-variable-atc .woocommerce-variation-price{display:flex;align-items:baseline;gap:10px;font-size:26px;font-weight:900;color:var(--warm-orange);margin:10px 0 14px;}
.product-info-col .mw-variable-atc .woocommerce-variation-price del{color:var(--grey-text);font-weight:600;font-size:17px;opacity:.65;text-decoration:line-through;}
.product-info-col .mw-variable-atc .woocommerce-variation-price ins{text-decoration:none;color:var(--warm-orange);}
.product-info-col .mw-variable-atc .woocommerce-variation-price .amount{font-weight:900;}


/* Mawasem: swatch buttons polish v4 */
.product-info-col .mw-variable-atc table.variations tr{flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:18px;}
.product-info-col .mw-variable-atc table.variations th.label{font-weight:800;font-size:15px;color:var(--deep-navy);min-width:0;}
.product-info-col .mw-variable-atc ul.variable-items-wrapper{display:flex;flex-wrap:wrap;gap:10px;margin:0;padding:0;list-style:none;}
.product-info-col .mw-variable-atc li.variable-item{margin:0;padding:0;border:none;box-shadow:none;background:none;border-radius:14px;overflow:hidden;transition:all .15s ease;}
.product-info-col .mw-variable-atc li.button-variable-item{min-width:54px;}
.product-info-col .mw-variable-atc li.button-variable-item .variable-item-span{display:flex;align-items:center;justify-content:center;padding:10px 18px;border:2px solid var(--grey-border);border-radius:14px;background:var(--white);color:var(--deep-navy);font-weight:800;font-size:14px;line-height:1;cursor:pointer;transition:all .15s ease;min-height:42px;}
.product-info-col .mw-variable-atc li.button-variable-item:hover .variable-item-span{border-color:var(--warm-orange);color:var(--warm-orange);}
.product-info-col .mw-variable-atc li.variable-item.selected .variable-item-span,.product-info-col .mw-variable-atc li.button-variable-item.selected .variable-item-span{background:var(--warm-orange);border-color:var(--warm-orange);color:#fff;box-shadow:0 4px 12px rgba(255,122,26,.3);}
.product-info-col .mw-variable-atc li.variable-item.radio-variable-item-none{display:none;}
.product-info-col .mw-variable-atc li.variable-item.disabled .variable-item-span,.product-info-col .mw-variable-atc li.variable-item.item-disable .variable-item-span{opacity:.4;cursor:not-allowed;text-decoration:line-through;}
.product-info-col .mw-variable-atc li.color-variable-item .variable-item-span{width:34px;height:34px;border-radius:50%;border:2px solid var(--white);box-shadow:0 0 0 2px var(--grey-border);cursor:pointer;}
.product-info-col .mw-variable-atc li.color-variable-item.selected .variable-item-span{box-shadow:0 0 0 3px var(--warm-orange);}
.product-info-col .mw-variable-atc .reset_variations{display:inline-block;margin-top:4px;font-size:12px;color:var(--grey-text);text-decoration:underline;opacity:.8;}
.product-info-col .mw-variable-atc .reset_variations:hover{color:var(--warm-orange);}


/* Mawasem: swatch size bump v5 */
.product-info-col .mw-variable-atc ul.variable-items-wrapper{gap:12px;}
.product-info-col .mw-variable-atc li.button-variable-item{min-width:70px;}
.product-info-col .mw-variable-atc li.button-variable-item .variable-item-span{padding:15px 28px;font-size:16px;min-height:54px;border-radius:16px;border-width:2px;}
.product-info-col .mw-variable-atc table.variations th.label{font-size:16px;margin-bottom:2px;}
.product-info-col .mw-variable-atc li.color-variable-item .variable-item-span{width:40px;height:40px;}


/* Mawasem: pill swatches (dokannour style) v6 */
.product-info-col .mw-variable-atc ul.variable-items-wrapper{gap:10px;}
.product-info-col .mw-variable-atc li.button-variable-item{min-width:0;}
.product-info-col .mw-variable-atc li.button-variable-item .variable-item-span{padding:10px 22px;font-size:14px;font-weight:700;min-height:0;border:1.5px solid var(--grey-border);border-radius:50px;background:var(--white);color:var(--deep-navy);box-shadow:none;transition:all .15s ease;}
.product-info-col .mw-variable-atc li.button-variable-item:hover .variable-item-span{border-color:var(--warm-orange);color:var(--warm-orange);background:#fff8f3;transform:translateY(-1px);}
.product-info-col .mw-variable-atc li.button-variable-item.selected .variable-item-span{background:var(--white);border:2px solid var(--deep-navy);color:var(--deep-navy);box-shadow:0 0 0 3px rgba(11,37,64,.10);transform:none;}
.product-info-col .mw-variable-atc li.button-variable-item.selected:hover .variable-item-span{border-color:var(--deep-navy);color:var(--deep-navy);}


/* Mawasem: swatch override v7 (beat plugin specificity) */
.product-info-col .mw-variable-atc ul.variable-items-wrapper li.button-variable-item .variable-item-span{padding:12px 24px !important;min-height:auto !important;height:auto !important;width:auto !important;border:1.5px solid var(--grey-border) !important;border-radius:50px !important;background:var(--white) !important;color:var(--deep-navy) !important;font-size:15px !important;font-weight:700 !important;line-height:1 !important;margin:0 !important;transition:all .15s ease !important;}
.product-info-col .mw-variable-atc ul.variable-items-wrapper li.button-variable-item:hover .variable-item-span{border-color:var(--warm-orange) !important;color:var(--warm-orange) !important;background:#fff8f3 !important;transform:translateY(-1px);}
.product-info-col .mw-variable-atc ul.variable-items-wrapper li.button-variable-item.selected .variable-item-span{border:2px solid var(--deep-navy) !important;color:var(--deep-navy) !important;background:var(--white) !important;box-shadow:0 0 0 3px rgba(11,37,64,.10) !important;}
.product-info-col .mw-variable-atc ul.variable-items-wrapper{gap:10px !important;}


/* Mawasem: kill plugin outer box on swatch li v8 */
.product-info-col .mw-variable-atc li.button-variable-item,
.product-info-col .mw-variable-atc li.button-variable-item.selected{box-shadow:none !important;border:none !important;outline:none !important;background:transparent !important;padding:0 !important;border-radius:50px !important;}
.product-info-col .mw-variable-atc li.button-variable-item .variable-item-contents{box-shadow:none !important;border:none !important;outline:none !important;padding:0 !important;}


/* Mawasem: selected inner pill indicator v9 (high specificity) */
body .product-info-col .mw-variable-atc ul.variable-items-wrapper li.button-variable-item.selected .variable-item-span.variable-item-span-button{border:2px solid var(--deep-navy) !important;color:var(--deep-navy) !important;background:var(--white) !important;font-weight:800 !important;}

/* ===== Mawasem: WhatsApp FAB + Checkout polish (added 2026-06) ===== */
.mw-wa-fab{position:fixed;bottom:24px;right:24px;left:auto;width:58px;height:58px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.25);z-index:9990;transition:transform .2s}
.mw-wa-fab:hover{transform:scale(1.08)}
.mw-wa-fab svg{width:32px;height:32px;fill:#fff}
@media (max-width:767px){.mw-wa-fab{bottom:72px;right:14px;left:auto;width:52px;height:52px}.mw-wa-fab svg{width:28px;height:28px}body.single-product .mw-wa-fab{bottom:132px}}

.woocommerce-checkout .form-control,.checkout .form-control{font-size:16px !important;border:1.5px solid var(--grey-border) !important;border-radius:10px !important;padding:12px 14px !important;background:#fff !important;transition:border-color .15s,box-shadow .15s !important}
.checkout .form-control:focus{border-color:var(--warm-orange) !important;box-shadow:0 0 0 3px color-mix(in srgb, var(--warm-orange) 22%, transparent) !important}
.checkout select.form-control{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;background-repeat:no-repeat !important;background-position:left 14px center !important;background-size:18px !important;padding-left:40px !important}
.checkout .form-control::placeholder{color:#9aa3ad}
.checkout-summary-col{position:sticky;top:20px}
@media (max-width:991px){.checkout-layout{grid-template-columns:1fr !important;gap:22px !important}.checkout-summary-col{position:static}}
.checkout-layout .form-row{align-items:end}
@media (max-width:900px){.checkout-layout .form-row{grid-template-columns:1fr !important}}
@media (max-width:600px){.checkout-steps-indicator{gap:14px !important}}

/* ===============================================================
   RAMADAN SEASON THEME (2026-11-26) — overrides summer palette.
   60 cream base / 30 midnight navy / 10 lantern gold + copper CTA
   =============================================================== */
:root {
  --primary-yellow: #E9B949;   /* lantern gold */
  --warm-orange: #9E5A1C;      /* copper CTA — white text 5.3:1 */
  --deep-navy: #14213D;        /* midnight */
  --soft-cream: #F6EBD3;
  --summer-blue: #0F6E5F;      /* khayamiya green */
  --body-bg: #FBF6EC;
  --grey-border: #EADFC8;
  --shadow-sm: 0 2px 4px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 10px 24px rgba(20, 33, 61, 0.16);
  --ramadan-pattern: radial-gradient(circle at 20% 30%, rgba(233,185,73,.18) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(233,185,73,.14) 0 1.5px, transparent 2.5px), radial-gradient(circle at 45% 85%, rgba(255,255,255,.10) 0 1px, transparent 2px);
}
.btn-orange:hover,
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page a.button:hover, .woocommerce input.button:hover {
  background-color: #84480F !important;
  box-shadow: 0 4px 8px rgba(158, 90, 28, 0.3);
}
.btn-primary:hover { background-color: #D9A532; }
.dash-welcome { background: var(--soft-cream); }
.top-bar { background: var(--ramadan-pattern), var(--deep-navy); background-size: 140px 140px, 90px 90px, 60px 60px, auto; }
.site-footer, footer.site-footer { border-top: 4px solid var(--primary-yellow); }

/* Ramadan hero */
.ramadan-hero {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--ramadan-pattern), linear-gradient(135deg, #14213D 0%, #1F3460 60%, #2A2350 100%);
  background-size: 140px 140px, 90px 90px, 60px 60px, auto;
  color: #fff; padding: 56px 48px; min-height: 320px;
  display: flex; align-items: center; box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--primary-yellow);
}
.ramadan-hero .rh-content { position: relative; z-index: 2; max-width: 560px; }
.ramadan-hero .rh-badge { display: inline-block; background: rgba(233,185,73,.15); color: var(--primary-yellow); border: 1px solid rgba(233,185,73,.5); padding: 5px 16px; border-radius: 50px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.ramadan-hero h1 { font-size: 44px; font-weight: 900; line-height: 1.25; margin: 0 0 12px; color: var(--primary-yellow); }
.ramadan-hero h1 span { color: #fff; font-size: 28px; font-weight: 800; }
.ramadan-hero p { font-size: 15px; line-height: 1.8; opacity: .9; margin: 0 0 22px; }
.ramadan-hero .rh-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ramadan-hero .rh-btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.ramadan-hero .rh-btn-ghost:hover { border-color: var(--primary-yellow); color: var(--primary-yellow); }
.ramadan-hero .rh-moon { position: absolute; left: 48px; top: 36px; font-size: 120px; line-height: 1; filter: drop-shadow(0 0 30px rgba(233,185,73,.55)); z-index: 1; }
.ramadan-hero .rh-lantern { position: absolute; z-index: 1; line-height: 1; transform-origin: top center; animation: rh-swing 4s ease-in-out infinite; filter: drop-shadow(0 0 18px rgba(233,185,73,.5)); }
.ramadan-hero .rh-l1 { left: 200px; top: 0; font-size: 64px; }
.ramadan-hero .rh-l2 { left: 120px; top: 150px; font-size: 48px; animation-delay: -2s; }
.ramadan-hero .rh-lantern::before { content: ''; position: absolute; left: 50%; top: -60px; height: 60px; border-left: 1px solid rgba(233,185,73,.6); }
@keyframes rh-swing { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .ramadan-hero .rh-lantern { animation: none; } }
@media (max-width: 768px) {
  .ramadan-hero { padding: 32px 20px 120px; min-height: 0; }
  .ramadan-hero h1 { font-size: 32px; }
  .ramadan-hero h1 span { font-size: 21px; }
  .ramadan-hero .rh-moon { left: 18px; top: auto; bottom: 16px; font-size: 72px; }
  .ramadan-hero .rh-l1 { left: 110px; top: auto; bottom: 30px; font-size: 44px; }
  .ramadan-hero .rh-l2 { left: 170px; top: auto; bottom: 10px; font-size: 34px; }
  .ramadan-hero .rh-lantern::before { display: none; }
}
.cat-card-icon { filter: drop-shadow(0 2px 6px rgba(233,185,73,.35)); }
.season-soon { text-align: center; padding: 30px 20px; background: var(--soft-cream); border: 1px dashed var(--primary-yellow); border-radius: 12px; font-weight: 700; color: var(--deep-navy); }

.product-grid .season-soon { grid-column: 1 / -1; flex: 1 0 100%; width: 100%; max-width: none; margin: 0; }

/* ---- Ramadan palette A, strict 60-30-10 (2026-11-26) ----
   60 cream surfaces / 30 midnight navy / 10 lantern gold.
   --warm-orange is now dark gold for TEXT accents (5.9:1 on cream);
   every solid accent surface is lantern gold with navy text (8.8:1). */
:root { --warm-orange: #7A5A12; }
.btn-orange, .hero-badge, .product-badge-sale, .cart-count,
.order-step.done .dot, .footer-newsletter,
.woocommerce button.button, .woocommerce a.button, .woocommerce-page button.button, .woocommerce-page a.button, .woocommerce input.button,
.mw-variable-atc .single_add_to_cart_button, .product-info-col .mw-variable-atc .single_add_to_cart_button,
.product-info-col .mw-variable-atc li.button-variable-item.selected .variable-item-span {
  background-color: var(--primary-yellow) !important; color: var(--deep-navy) !important; border-color: var(--primary-yellow) !important;
}
.step-bar.done { background: var(--primary-yellow); }
.btn-orange:hover,
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page a.button:hover, .woocommerce input.button:hover,
.mw-variable-atc .single_add_to_cart_button:hover {
  background-color: #D9A532 !important; color: var(--deep-navy) !important; box-shadow: 0 4px 10px rgba(233, 185, 73, 0.35) !important;
}
.footer-newsletter h3, .footer-newsletter p, .footer-newsletter label { color: var(--deep-navy); }
.whatsapp-promo-banner .btn-primary { background-color: var(--primary-yellow) !important; color: var(--deep-navy) !important; }
.product-card-btn:hover, .product-card:hover .product-card-btn { color: var(--deep-navy); }

/* Egyptian fanoos icon (Codex, 2026-11-26) replaces the lantern emoji; sized by the parent font-size */
.mw-fanoos { height: 1.15em; width: auto; display: inline-block; vertical-align: middle; filter: drop-shadow(0 4px 10px rgba(233,185,73,.35)); }
.ramadan-hero .rh-lantern .mw-fanoos { height: 1.6em; filter: drop-shadow(0 0 18px rgba(233,185,73,.55)); }

.season-next-tag { margin-top: 6px; font-size: 10px; font-weight: 800; background: var(--deep-navy); color: var(--primary-yellow); padding: 2px 8px; border-radius: 50px; }
.seasons-capsule-grid .season-capsule:has(.season-next-tag) { opacity: 0.9 !important; border: 2px dashed var(--primary-yellow) !important; }

/* ---- TURQUOISE ACCENT (2026-11-26): owner replaced lantern gold. 60 cream / 30 navy / 10 turquoise.
   Solid accent #3FB8AF with navy text 6.6:1; text accent #1A6E68 on cream 5.6:1; hover #5CC6BE 7.8:1. ---- */
:root { --primary-yellow: #3FB8AF; --warm-orange: #1A6E68; }
.btn-primary:hover { background-color: #5CC6BE; }
.btn-orange:hover,
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce-page button.button:hover, .woocommerce-page a.button:hover, .woocommerce input.button:hover,
.mw-variable-atc .single_add_to_cart_button:hover {
  background-color: #5CC6BE !important; box-shadow: 0 4px 10px rgba(63, 184, 175, 0.35) !important;
}
.ramadan-hero .rh-badge { background: rgba(63,184,175,.15); border-color: rgba(63,184,175,.55); }

/* sale price clarity: old price grey + struck, new price no underline */
.price del, .price-main del, .product-price-box del, .product-price-box del *, .product-card-price del, .product-card-price del * { color: var(--grey-text) !important; opacity: .8; }
.price ins, .price-main ins, .product-price-box ins, .product-card-price ins, .product-price-box a, .product-price-box ins * { text-decoration: none !important; }
.product-price-box del { font-size: 18px !important; }
.product-card-price del { font-size: .85em !important; }
.product-price-box del *, .product-card-price del * { font-size: inherit !important; }

/* ==== CHECKOUT ALIGN FIX 1126: WC clearfix pseudo-elements were taking a grid cell, so paired fields staggered; summary table polish ==== */
.checkout-billing-col .form-row { padding: 0 !important; margin: 0 0 16px !important; width: 100% !important; float: none !important; align-items: start !important; }
.checkout-billing-col .form-row::before, .checkout-billing-col .form-row::after { content: none !important; display: none !important; }
.checkout-billing-col .form-row > .form-group { margin: 0 !important; min-width: 0; }
.checkout-billing-col .form-group { margin-bottom: 16px; }
.checkout-billing-col .form-row .form-group:last-child, .checkout-billing-col > div > .form-group:last-child { margin-bottom: 0; }
.checkout-summary-col .shop_table { border: 0 !important; border-radius: 0 !important; margin: 0 !important; table-layout: fixed; }
.checkout-summary-col .shop_table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; vertical-align: middle; }
.checkout-summary-col .shop_table td:first-child { padding-left: 14px !important; word-break: break-word; }
.checkout-summary-col .shop_table td:last-child { width: 112px; white-space: nowrap; }
.checkout-summary-col .amount, .cart-summary .amount, .mw-ship-total .amount { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.checkout-summary-col .mw-ship-total { white-space: normal; }
@media (max-width: 768px) { .checkout-billing-col .form-row { grid-template-columns: 1fr !important; gap: 16px !important; } }
