@font-face {
  font-family: "Almarai";
  src: local("Almarai Regular"), local("Almarai");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Almarai";
  src: local("Almarai Bold"), local("Almarai");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins Regular"), local("Poppins");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: local("Poppins SemiBold"), local("Poppins");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --elwan-primary: #044167;
  --elwan-secondary: #ae8b39;
  --elwan-text: #7a7a7a;
  --elwan-accent: #61ce70;
  --elwan-ink: #0f2535;
  --elwan-bg: #f5f6f8;
  --elwan-card: #ffffff;
  --elwan-border: #d9e3e8;
  --elwan-radius: 22px;
}

body {
  font-family: "Almarai", "Poppins", sans-serif;
  color: var(--elwan-text);
  background-color: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.heading {
  font-family: "Poppins", "Almarai", sans-serif;
  color: var(--elwan-primary);
  letter-spacing: -0.01em;
}

a {
  color: var(--elwan-primary);
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--elwan-secondary);
}

.themebg,
#Header .themebg,
.button.themebg {
  background-color: var(--elwan-primary) !important;
}

.themecolor,
#Header .themecolor,
.mfn-link { 
  color: var(--elwan-primary) !important;
}

.themeborder {
  border-color: var(--elwan-primary) !important;
}

#Top_bar .menu > li > a,
#Top_bar .menu > li > a span {
  color: var(--elwan-primary);
}

#Top_bar .menu > li > a:hover,
#Top_bar .menu > li.current-menu-item > a {
  color: var(--elwan-secondary);
}

.button,
button,
input[type="submit"],
input[type="button"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--elwan-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  border: none !important;
  padding: 12px 28px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--elwan-secondary) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(4, 65, 103, 0.15);
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--elwan-primary);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--elwan-primary);
}

/* Single product page */
body.single-product #Content {
  background: var(--elwan-bg);
}

body.single-product #Content .content_wrapper {
  padding-top: 50px;
}

body.single-product div.product .woocommerce-product-gallery,
body.single-product div.product .summary {
  background: var(--elwan-card);
  border-radius: var(--elwan-radius);
  padding: 28px;
  box-shadow: 0 24px 48px rgba(4, 65, 103, 0.08);
}

body.single-product .summary h1.product_title {
  font-size: 32px;
  color: var(--elwan-primary);
}

body.single-product .summary .price {
  color: var(--elwan-secondary);
  font-size: 26px;
  font-weight: 700;
}

body.single-product .woocommerce-product-details__short-description {
  color: var(--elwan-text);
  line-height: 1.8;
}

body.single-product .product_meta {
  color: var(--elwan-text);
}

body.single-product .woocommerce-tabs .tabs li a {
  font-family: "Poppins", "Almarai", sans-serif;
  color: var(--elwan-primary);
  font-weight: 600;
}

body.single-product .woocommerce-tabs .tabs li.active a {
  color: var(--elwan-secondary);
}

body.single-product .woocommerce-tabs .panel {
  background: var(--elwan-card);
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(4, 65, 103, 0.06);
}

body.single-product .related.products h2 {
  color: var(--elwan-primary);
}

/* Bundle colors only (keep layout intact) */
body.single-product .bundle-wrapper {
  border-color: var(--elwan-secondary) !important;
  background: linear-gradient(135deg, #f5f7f9 0%, #ffffff 100%) !important;
}

body.single-product .bundle-product-item.main-product {
  border-color: var(--elwan-primary) !important;
}

body.single-product .bundle-product-price,
body.single-product .bundle-plus,
body.single-product .bundle-p-price {
  color: var(--elwan-secondary) !important;
}

body.single-product .bundle-savings {
  background: rgba(97, 206, 112, 0.18) !important;
  color: #1b6b3a !important;
}

body.single-product .bundle-desc {
  color: var(--elwan-text) !important;
}

body.single-product .bundle-add-btn,
body.single-product .bundle-cart-item .bundle-label {
  background: linear-gradient(135deg, var(--elwan-primary) 0%, #0a4f7b 100%) !important;
}

body.single-product .bundle-add-btn:hover {
  background: linear-gradient(135deg, #0a4f7b 0%, var(--elwan-primary) 100%) !important;
  box-shadow: 0 10px 24px rgba(4, 65, 103, 0.2);
}

body.single-product .bundle-totals,
body.single-product .bundle-cart-item.enhanced-bundle-display {
  border-color: var(--elwan-secondary) !important;
}

body.single-product .bundle-includes-title,
body.single-product .bundle-p-name strong {
  color: var(--elwan-primary) !important;
}

body.single-product .bundle-final-total,
body.single-product .bundle-final-total strong {
  color: var(--elwan-accent) !important;
}

body.single-product .bundle-message.success {
  border-color: rgba(97, 206, 112, 0.4) !important;
}

body.single-product .bundle-message.error {
  border-color: rgba(194, 61, 61, 0.3) !important;
}

/* Single product sections */
body.single-product .elwan-product-top-section {
  margin-bottom: 30px;
}

body.single-product .elwan-product-details-section {
  margin: 30px 0;
}

body.single-product .elwan-product-details-section:empty {
  display: none;
}

@media (max-width: 768px) {
  body.single-product div.product .woocommerce-product-gallery,
  body.single-product div.product .summary {
    padding: 20px;
  }

  body.single-product .summary h1.product_title {
    font-size: 24px;
  }
}
