/* =========================================================
   Zilal Jewelry Kit — blush & gold styling for the Elementor
   template. Colours/fonts on widgets stay editable in Elementor;
   this file adds what Elementor Free can't: satin backdrop,
   framed layout, title lines, floating hero images, card styles
   and WooCommerce product cards.
   ========================================================= */
:root {
  --zl-blush-50: #fdf5f2;
  --zl-blush-200: #f7dcd8;
  --zl-rose: #d97c86;
  --zl-rose-dark: #c8636f;
  --zl-gold: #b88a3e;
  --zl-gold-dark: #9a6e25;
  --zl-plum: #4b2a2c;
  --zl-text: #5a3a38;
  --zl-muted: #7d6360;
  --zl-line: #e2bfb3;
  --zl-shadow: 0 6px 22px rgba(170, 100, 100, .14);
  --zl-serif: "Marcellus", Georgia, serif;
  --zl-sans: "Lato", "Segoe UI", sans-serif;
  --zl-frame: 1380px;
}

/* ---------- Page backdrop + framed layout ---------- */
body.zilal-page {
  font-family: var(--zl-sans);
  color: var(--zl-text);
  background-color: #f6cfcf;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.55'/%3E%3Cstop offset='.5' stop-color='%23f3c2c3' stop-opacity='.15'/%3E%3Cstop offset='1' stop-color='%23e59ea4' stop-opacity='.45'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='1' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e9a7ac' stop-opacity='.4'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.35'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 520C240 420 420 700 720 600S1200 380 1440 520V900H0Z' fill='url(%23a)'/%3E%3Cpath d='M0 640C300 560 520 820 860 720S1260 560 1440 660V900H0Z' fill='url(%23b)'/%3E%3Cpath d='M0 120C200 40 380 260 640 180S1100 0 1440 140V0H0Z' fill='url(%23a)' opacity='.6'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #f9dcda 0%, #f6cfcf 40%, #f2c1c3 100%);
  background-size: 100% 100%, cover;
  background-attachment: fixed;
}
body.zilal-page { padding: 48px 0; }

.zilal-page .zl-sec.elementor-top-section {
  max-width: var(--zl-frame);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 20px 60px rgba(160, 80, 90, .22);
  clip-path: inset(0 -80px);          /* side shadows only between stacked sections */
}
.zilal-page .zl-header.elementor-top-section { clip-path: inset(-80px -80px 0); }
.zilal-page .zl-footer-bottom.elementor-top-section { clip-path: inset(0 -80px -80px); }
.zilal-page .zl-sec .elementor-container { padding-left: 40px; padding-right: 40px; }

/* ---------- Header ---------- */
.zl-header { position: relative; z-index: 20; }
.zl-logo .elementor-heading-title { position: relative; display: inline-block; padding-right: 26px; }
.zl-logo .elementor-heading-title a { color: inherit; }
.zl-logo .zl-star { position: absolute; top: 2px; right: 2px; font-family: serif; font-size: 20px; }
.zl-logo .zl-logo-sub {
  position: absolute; right: 0; bottom: -6px;
  font-family: var(--zl-serif); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--zl-gold-dark);
}

.zl-nav .elementor-icon-list-icon { display: none; }
.zl-nav .elementor-icon-list-item a { position: relative; padding: 4px 0; }
.zl-nav .elementor-icon-list-item a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: var(--zl-gold); transition: width .25s;
}
.zl-nav .elementor-icon-list-item a:hover::after { width: 100%; }

.zl-header-icons { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.zl-icon-link { position: relative; display: grid; place-items: center; padding: 6px; color: var(--zl-plum); }
.zl-icon-link:hover { color: var(--zl-rose-dark); }
.zl-icon-link svg { width: 24px; height: 24px; fill: currentColor; }
.zl-badge {
  position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--zl-rose); color: #fff; font: 700 11px/17px var(--zl-sans); text-align: center;
  transform: scale(0); transition: transform .2s;
}
.zl-badge.is-visible { transform: scale(1); }

/* ---------- Buttons ---------- */
.zl-btn .elementor-button { transition: transform .2s, filter .2s; }
.zl-btn .elementor-button:hover { transform: translateY(-2px); filter: brightness(1.05); }
.zl-btn-rose .elementor-button {
  background: linear-gradient(180deg, #e3949c 0%, var(--zl-rose) 55%, var(--zl-rose-dark) 100%);
  box-shadow: 0 6px 16px rgba(200, 99, 111, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- Hero ---------- */
.zl-hero .zl-hero-media > .elementor-widget-wrap,
.zl-hero .zl-hero-media > .elementor-column-wrap { position: relative; min-height: 380px; }
.zl-hero .zl-hero-serif { margin-left: 14px; }
.zl-hero .zl-hero-rule .elementor-divider-separator { background: linear-gradient(90deg, var(--zl-line), transparent); border: 0; height: 1px; }
.zl-hero .zl-hero-text, .zl-hero .zl-btn { margin-left: 14px; }
.zl-hero-script .elementor-heading-title { text-shadow: 0 1px 0 rgba(255, 255, 255, .6); white-space: nowrap; }

.zl-float { position: absolute !important; width: auto !important; animation: zl-float 6s ease-in-out infinite; }
.elementor .zl-float img,
.zl-float img {
  border-radius: 50%; object-fit: cover; aspect-ratio: 1;
  border: 5px solid rgba(255, 245, 242, .9); box-shadow: 0 12px 30px rgba(140, 70, 80, .3);
}
.zl-float-ring { top: 0; right: 4%; }
.elementor .zl-float-ring img { width: 170px; height: 170px; max-width: none; }
.zl-float-pearl { bottom: 0; left: 18%; animation-delay: -3s; }
.elementor .zl-float-pearl img { width: 130px; height: 130px; max-width: none; }
@keyframes zl-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Section titles with side lines ---------- */
.zl-title .elementor-heading-title { display: flex; align-items: center; gap: 18px; }
.zl-title .elementor-heading-title::before,
.zl-title .elementor-heading-title::after { content: ""; flex: 1; height: 1px; background: var(--zl-line); }
.zl-title { margin-bottom: 24px !important; }

/* ---------- Collection cards ---------- */
.zl-card .elementor-image-box-wrapper {
  background: #fbf1ec; border: 1px solid var(--zl-line); box-shadow: var(--zl-shadow);
  transition: transform .3s, box-shadow .3s;
}
.zl-card .elementor-image-box-wrapper:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(170, 100, 100, .25); }
.zl-card .elementor-image-box-img { margin: 0 !important; overflow: hidden; aspect-ratio: 16 / 10; width: 100% !important; }
.zl-card .elementor-image-box-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.zl-card .elementor-image-box-wrapper:hover img { transform: scale(1.08); }
.zl-card .elementor-image-box-content { border-top: 1px solid var(--zl-line); padding: 12px 8px; }
.zl-card .elementor-image-box-title { margin: 0 !important; }
.zl-card .elementor-image-box-title a { color: inherit; }

/* ---------- Filter pills ---------- */
.zl-pills .elementor-icon-list-icon { display: none; }
.zl-pills .elementor-icon-list-item a,
.zl-pills .elementor-icon-list-item > .elementor-icon-list-text {
  border: 1px solid var(--zl-line); background: rgba(255, 255, 255, .6);
  padding: 7px 22px; border-radius: 30px; transition: .2s;
}
.zl-pills .elementor-icon-list-item a:hover { background: var(--zl-rose); border-color: var(--zl-rose); }
.zl-pills .elementor-icon-list-item a:hover .elementor-icon-list-text { color: #fff !important; }
.zl-pills .elementor-icon-list-items { justify-content: center; row-gap: 10px; }

/* ---------- WooCommerce product cards ---------- */
.zilal-page ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin: 0 0 30px !important; padding: 0;
}
.zilal-page ul.products::before, .zilal-page ul.products::after { display: none !important; }
.zilal-page ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important; padding: 0 0 18px !important;
  background: rgba(255, 250, 247, .85); border: 1px solid var(--zl-line); box-shadow: var(--zl-shadow);
  text-align: center; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.zilal-page ul.products li.product a img {
  aspect-ratio: 1; object-fit: cover; margin: 0 0 12px !important; transition: transform .6s;
}
.zilal-page ul.products li.product:hover a img { transform: scale(1.05); }
.zilal-page ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--zl-serif) !important; font-weight: 400; font-size: 17px !important; color: var(--zl-plum); padding: 0 12px !important;
}
.zilal-page ul.products li.product .price {
  font-family: var(--zl-serif); font-size: 18px !important; color: var(--zl-gold-dark) !important; margin-top: auto;
}
.zilal-page ul.products li.product .price del { color: var(--zl-muted); font-size: 14px; opacity: .8; }
.zilal-page ul.products li.product .price ins { text-decoration: none; }
.zilal-page ul.products li.product .button {
  margin: 10px 16px 0 !important; background: transparent !important; color: var(--zl-rose-dark) !important;
  border: 1px solid var(--zl-rose) !important; border-radius: 6px !important;
  font-family: var(--zl-serif) !important; font-weight: 400 !important; font-size: 15px !important; padding: 9px !important;
}
.zilal-page ul.products li.product .button:hover { background: var(--zl-rose) !important; color: #fff !important; }
.zilal-page ul.products li.product .added_to_cart { font-size: 13px; color: var(--zl-gold-dark); margin-top: 6px; }
.zilal-page .woocommerce span.onsale,
.zilal-page span.onsale {
  top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important; min-height: 0; min-width: 0;
  background: var(--zl-gold) !important; border-radius: 3px !important; padding: 3px 10px !important;
  font: 700 11px/1.6 var(--zl-sans) !important; letter-spacing: 1px; text-transform: uppercase;
}

/* ---------- Why choose / features ---------- */
.zl-feature .elementor-icon-box-wrapper {
  background: rgba(253, 240, 236, .85); box-shadow: var(--zl-shadow); padding: 22px 14px; height: 100%; transition: transform .3s;
}
.zl-feature .elementor-icon-box-wrapper:hover { transform: translateY(-4px); }
.zl-feature .elementor-icon-box-title { margin: 0 0 8px !important; }
.zl-feature .elementor-icon-box-description { margin: 0; line-height: 1.45; }
.zl-feature-row .elementor-column > .elementor-widget-wrap,
.zl-feature-row .elementor-widget-container,
.zl-feature-row .zl-feature { height: 100%; }
.zl-contact-list { margin-top: 26px; margin-left: 10px; }
.zl-contact-list a:hover .elementor-icon-list-text { color: var(--zl-rose-dark) !important; }

.zl-col-form > .elementor-widget-wrap { border-left: 1px solid var(--zl-line); padding-left: 40px !important; }

/* ---------- Contact form ---------- */
.zl-contact-form { display: flex; flex-direction: column; gap: 10px; }
.zl-contact-form input[type="text"],
.zl-contact-form input[type="email"],
.zl-contact-form input[type="tel"],
.zl-contact-form textarea {
  width: 100%; padding: 9px 20px; border: 1px solid #ecd4cf; border-radius: 3px; background: #fff;
  font: 16px var(--zl-sans); color: var(--zl-text); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.zl-contact-form textarea { min-height: 44px; }
.zl-contact-form input:focus, .zl-contact-form textarea:focus {
  outline: none; border-color: var(--zl-rose); box-shadow: 0 0 0 3px rgba(217, 124, 134, .18);
}
.zl-contact-form .zl-btn-gold,
.zl-btn-gold {
  margin-top: 8px; padding: 13px; border: 0; border-radius: 8px; cursor: pointer;
  font: 21px var(--zl-serif); color: #fff;
  background: linear-gradient(180deg, #d9ae5c 0%, var(--zl-gold) 55%, var(--zl-gold-dark) 100%);
  box-shadow: 0 6px 16px rgba(154, 110, 37, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .2s, filter .2s;
}
.zl-contact-form .zl-btn-gold:hover,
.zl-contact-form .zl-btn-gold:focus {
  color: #fff; border: 0;
  background: linear-gradient(180deg, #d9ae5c 0%, var(--zl-gold) 55%, var(--zl-gold-dark) 100%);
  transform: translateY(-2px); filter: brightness(1.05);
}
.zl-form-status { margin: 0; text-align: center; font-size: 15px; }
.zl-form-status--ok { color: #3c7d4b; }
.zl-form-status--err { color: #b0303a; }
.zl-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.zl-footer .elementor-heading-title a { color: inherit; }
.zl-footer-bottom .zl-copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; }
.zl-footer-bottom .zl-copyright p { margin: 0; }

/* ---------- WooCommerce pages (shop, product, cart) brand touch ---------- */
.woocommerce-page .woocommerce a.button.alt,
.woocommerce-page .woocommerce button.button.alt,
.woocommerce-page .woocommerce #respond input#submit.alt {
  background: var(--zl-rose); color: #fff; font-family: var(--zl-serif); font-weight: 400;
}
.woocommerce-page .woocommerce a.button.alt:hover,
.woocommerce-page .woocommerce button.button.alt:hover { background: var(--zl-rose-dark); }
.woocommerce-page .woocommerce div.product p.price,
.woocommerce-page .woocommerce div.product span.price { color: var(--zl-gold-dark); font-family: var(--zl-serif); }
.woocommerce-page .product_title { font-family: var(--zl-serif); font-weight: 400; color: var(--zl-plum); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .zilal-page ul.products { grid-template-columns: repeat(3, 1fr); }
  .zl-col-form > .elementor-widget-wrap { border-left: 0; padding-left: 10px !important; }
  .elementor .zl-float-ring img { width: 130px; height: 130px; }
  .elementor .zl-float-pearl img { width: 100px; height: 100px; }
}

@media (max-width: 767px) {
  body.zilal-page { padding: 0; }
  .zilal-page .zl-sec.elementor-top-section { box-shadow: none; clip-path: none; }
  .zilal-page .zl-sec .elementor-container { padding-left: 16px; padding-right: 16px; }

  /* Header: logo + icons on one row, menu underneath */
  .zl-header .elementor-container { flex-wrap: wrap; }
  .zl-header .zl-col-logo { width: 50% !important; }
  .zl-header .zl-col-icons { width: 50% !important; order: 2; }
  .zl-header .zl-col-nav { width: 100% !important; order: 3; margin-top: 6px; }
  .zl-nav .elementor-icon-list-items { justify-content: center; }
  .zl-logo .elementor-heading-title { font-size: 42px !important; }

  /* Hero: image across the top, text below */
  .zl-hero { padding-top: 240px !important; background-position: center top !important; background-size: 100% auto !important; }
  .zl-hero > .elementor-background-overlay {
    background: linear-gradient(180deg, rgba(251, 234, 229, 0) 0px, rgba(251, 234, 229, 0) 160px, #fbeae5 260px) !important;
    opacity: 1 !important;
  }
  .zl-hero .zl-hero-content { text-align: center; }
  .zl-hero .elementor-heading-title, .zl-hero .zl-hero-text { text-align: center !important; }
  .zl-hero .zl-hero-serif, .zl-hero .zl-hero-text, .zl-hero .zl-btn { margin-left: 0; }
  .zl-hero .zl-btn .elementor-button-wrapper, .zl-hero .zl-btn { text-align: center !important; }
  .zl-hero .zl-hero-rule .elementor-divider { justify-content: center; }
  .zl-hero-script .elementor-heading-title { white-space: normal; }
  .zl-hero .zl-hero-media { display: none; }

  .zl-card-row .elementor-container { flex-wrap: wrap; }
  .zl-card-row .elementor-column { width: 50% !important; }
  .zl-card .elementor-image-box-title { font-size: 16px !important; }

  .zilal-page ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .zl-float { animation: none; }
  .zl-card *, .zl-feature *, .zilal-page ul.products * { transition: none !important; }
}

/* ---------- Language switcher (TranslatePress) in the header ---------- */
.zl-lang { position: relative; margin-right: 6px; }
.zl-lang a, .zl-lang .trp-ls-shortcode-language, .zl-lang .trp-language-switcher * {
  font-family: var(--zl-serif); font-size: 14px; color: var(--zl-plum);
}
.zl-lang .trp-language-switcher { width: auto; }
.zl-lang .trp-language-switcher > div,
.zl-lang [class*="trp-ls-dropdown"],
.zl-lang [class*="trp-language-switcher-container"] {
  border: 1px solid var(--zl-line) !important; border-radius: 20px !important;
  background: rgba(255, 255, 255, .7) !important; box-shadow: none;
}
.zl-lang a:hover { color: var(--zl-rose-dark); }
.zl-lang img { border-radius: 2px; }

/* ---------- Arabic / right-to-left ---------- */
html[dir="rtl"] body.zilal-page { font-family: "Tajawal", var(--zl-sans); }
html[dir="rtl"] .zilal-page .elementor-heading-title,
html[dir="rtl"] .zilal-page .elementor-image-box-title,
html[dir="rtl"] .zilal-page .elementor-icon-box-title,
html[dir="rtl"] .zilal-page .elementor-button,
html[dir="rtl"] .zilal-page .elementor-icon-list-text,
html[dir="rtl"] .zilal-page .woocommerce-loop-product__title,
html[dir="rtl"] .zl-btn-gold {
  font-family: "Amiri", "Tajawal", serif !important;
}
html[dir="rtl"] .zilal-page .elementor-text-editor,
html[dir="rtl"] .zilal-page .elementor-widget-text-editor,
html[dir="rtl"] .zilal-page .elementor-icon-box-description,
html[dir="rtl"] .zl-contact-form input,
html[dir="rtl"] .zl-contact-form textarea { font-family: "Tajawal", var(--zl-sans) !important; }
/* Keep the brand logo in its script font */
html[dir="rtl"] .zl-logo .elementor-heading-title,
html[dir="rtl"] .zl-footer .elementor-widget-heading:first-child .elementor-heading-title { font-family: "Great Vibes", cursive !important; }
html[dir="rtl"] .zl-logo .elementor-heading-title { padding-right: 0; padding-left: 26px; }
html[dir="rtl"] .zl-logo .zl-star { right: auto; left: 2px; }
html[dir="rtl"] .zl-logo .zl-logo-sub { right: auto; left: 0; }

html[dir="rtl"] .zl-hero { background-position: center left !important; }
html[dir="rtl"] .zl-hero > .elementor-background-overlay {
  background-image: linear-gradient(270deg, #fbeae5 46%, rgba(251, 234, 229, 0) 76%) !important;
}
html[dir="rtl"] .zl-hero-script .elementor-heading-title { font-size: 1em; }
html[dir="rtl"] .zl-hero .zl-hero-serif,
html[dir="rtl"] .zl-hero .zl-hero-text,
html[dir="rtl"] .zl-hero .zl-btn { margin-left: 0; margin-right: 14px; }
html[dir="rtl"] .zl-hero .zl-hero-rule .elementor-divider-separator { background: linear-gradient(270deg, var(--zl-line), transparent); }
html[dir="rtl"] .zl-float-ring { right: auto; left: 4%; }
html[dir="rtl"] .zl-float-pearl { left: auto; right: 18%; }

html[dir="rtl"] .zl-col-form > .elementor-widget-wrap { border-left: 0; border-right: 1px solid var(--zl-line); padding-left: 10px !important; padding-right: 40px !important; }
html[dir="rtl"] .zl-contact-list { margin-left: 0; margin-right: 10px; }
html[dir="rtl"] .zl-lang { margin-right: 0; margin-left: 6px; }
html[dir="rtl"] .zilal-page span.onsale { left: auto !important; right: 10px !important; }

@media (max-width: 767px) {
  html[dir="rtl"] .zl-hero > .elementor-background-overlay {
    background-image: linear-gradient(180deg, rgba(251, 234, 229, 0) 0px, rgba(251, 234, 229, 0) 160px, #fbeae5 260px) !important;
  }
  html[dir="rtl"] .zl-hero .zl-hero-serif, html[dir="rtl"] .zl-hero .zl-hero-text, html[dir="rtl"] .zl-hero .zl-btn { margin-right: 0; }
  html[dir="rtl"] .zl-col-form > .elementor-widget-wrap { border-right: 0; padding-right: 10px !important; }
}
