/*
Theme Name: WOW Events
Description: شكل موقع WOW Events. كل البيانات جاية من أودوو.
Version: 1.0.0
Text Domain: wow-events
*/

:root {
  --wine: #9b2230;
  --wine-deep: #6f1622;
  --rose: #e27a8c;
  --blush: #fbeef0;
  --ink: #2b1a1e;
  --muted: #7a6468;
  --line: #efe1e4;
  --paper: #ffffff;
  --wa: #1d8f4e;
  --radius: 14px;
  --f-display: "El Messiri", "Segoe UI", Tahoma, sans-serif;
  --f-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.35; margin: 0; text-wrap: balance; color: var(--ink); }

.wow-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.wow-skip { position: absolute; inset-inline-start: -9999px; }
.wow-skip:focus { inset-inline-start: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 99; }

/* أزرار */
.wow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; background: var(--wine); color: #fff; font-weight: 700; font-size: 16px; border: 2px solid transparent; cursor: pointer; transition: background .2s, transform .2s; }
.wow-btn:hover { background: var(--wine-deep); color: #fff; }
.wow-btn-light { background: #fff; color: var(--wine); }
.wow-btn-light:hover { background: var(--blush); color: var(--wine-deep); }
.wow-btn-wa { background: var(--wa); }
.wow-btn-wa:hover { background: #166f3c; }
.wow-btn-ghost { background: transparent; color: var(--wine); border-color: var(--wine); }
.wow-btn-ghost:hover { background: var(--blush); color: var(--wine-deep); }
.wow-link { font-weight: 700; }

/* الشريط اللي فوق */
.wow-topbar { background: var(--wine); color: #fff; font-size: 14px; }
.wow-topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; flex-wrap: wrap; }
.wow-topbar a { color: #fff; font-weight: 700; }

/* الهيدر */
.wow-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.wow-header-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.wow-logo img { width: 106px; height: auto; }
.wow-nav { flex: 1; }
.wow-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; padding: 0; }
.wow-menu a { color: var(--ink); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.wow-menu a:hover, .wow-menu .current-menu-item a { color: var(--wine); border-color: var(--rose); }
.wow-header-actions { display: flex; align-items: center; gap: 12px; }
.wow-cart { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); background: var(--blush); }
.wow-cart-count { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.wow-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.wow-burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* البانر */
.wow-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--wine-deep), var(--wine) 55%, var(--rose)); min-height: 380px; }
.wow-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .7s; }
.wow-slide.is-on { opacity: 1; position: relative; min-height: 380px; }
.wow-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wow-slide.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(43,10,16,.72), rgba(43,10,16,.15) 70%); }
.wow-slide-text { position: relative; z-index: 2; color: #fff; padding-block: 56px; max-width: 1240px; }
.wow-slide-text h1 { color: #fff; font-size: clamp(30px, 5vw, 52px); max-width: 15ch; }
.wow-slide-text p { font-size: clamp(17px, 2vw, 20px); max-width: 46ch; margin: 12px 0 24px; opacity: .95; }
.wow-eyebrow { display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px 14px; font-size: 14px; margin-bottom: 12px; }
.wow-hero::before { content: ""; position: absolute; inset-inline-end: -60px; bottom: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); }
.wow-dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.wow-dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s; padding: 0; }
.wow-dots button.is-on { width: 28px; background: #fff; }

/* الأقسام */
.wow-h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.wow-cats { padding-block: 48px 8px; }
.wow-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.wow-cat { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--ink); }
.wow-cat-media { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--blush); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .2s; }
.wow-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.wow-cat:hover .wow-cat-media { box-shadow: 0 0 0 3px var(--rose); }
.wow-cat-name { font-family: var(--f-display); font-weight: 600; font-size: 18px; margin-top: 6px; }
.wow-cat-count { color: var(--muted); font-size: 14px; }

/* صفوف الأصناف */
.wow-row { padding-block: 36px 4px; }
.wow-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.wow-row-head h2 { font-size: clamp(22px, 2.6vw, 28px); }
.wow-row-tools { display: flex; align-items: center; gap: 8px; }
.wow-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.wow-arrow:hover:not(:disabled) { border-color: var(--wine); color: var(--wine); }
.wow-arrow:disabled { opacity: .35; cursor: default; }
.wow-row.no-scroll .wow-arrow { display: none; }
.wow-row-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.wow-row-track::-webkit-scrollbar { display: none; }
.wow-row-track > * { scroll-snap-align: start; }

/* كارت الصنف */
.wow-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: box-shadow .2s, transform .2s; }
.wow-card:hover { box-shadow: 0 10px 28px rgba(111,22,34,.10); transform: translateY(-2px); }
.wow-card-media { display: block; aspect-ratio: 1; background: var(--blush); overflow: hidden; }
.wow-card-media img { width: 100%; height: 100%; object-fit: cover; }
.wow-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.wow-card-cat { color: var(--muted); font-size: 13px; }
.wow-card-title { font-family: var(--f-body); font-size: 17px; font-weight: 700; line-height: 1.4; }
.wow-card-title a { color: var(--ink); }
.wow-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wow-card-price { font-weight: 700; color: var(--wine); font-size: 18px; font-variant-numeric: tabular-nums; }
.wow-card-add { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--blush); color: var(--wine); font-weight: 700; font-size: 14px; }
.wow-card-add:hover { background: var(--wine); color: #fff; }
.wow-card-add.added { display: none; }
.added_to_cart { font-size: 13px; font-weight: 700; }

/* تطلب إزاي */
.wow-steps { background: var(--blush); margin-top: 56px; padding-block: 48px; }
.wow-steps-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wow-steps-list li { counter-increment: s; background: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.wow-steps-list li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--wine); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--f-display); }
.wow-steps-list strong { font-family: var(--f-display); font-size: 20px; }
.wow-steps-list span { color: var(--muted); }

/* دعوة للتواصل */
.wow-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 44px; }
.wow-cta h2 { font-size: clamp(22px, 2.6vw, 28px); }
.wow-cta p { margin: 6px 0 0; color: var(--muted); }

/* الفوتر */
.wow-footer { background: var(--ink); color: #f1e4e7; margin-top: 24px; }
.wow-footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-block: 44px 24px; }
.wow-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.wow-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wow-footer a { color: #f1e4e7; }
.wow-footer a:hover { color: var(--rose); }
.wow-footer-brand img { width: 140px; margin-bottom: 10px; }
.wow-footer-brand p { margin: 0; max-width: 34ch; color: #cdb8bd; }
.wow-footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 14px; font-size: 14px; color: #a99196; }

.wow-wa-float { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-start: calc(18px + env(safe-area-inset-left)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 40; }
.wow-wa-float:hover { color: #fff; background: #166f3c; }

/* صفحات عادية */
.wow-page { padding-block: 32px 48px; }
.wow-page-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.wow-prose { max-width: 70ch; }

/* WooCommerce */
.wow-shop .woocommerce-products-header__title { font-family: var(--f-display); font-size: clamp(28px, 4vw, 40px); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; padding-bottom: 14px; }
.woocommerce ul.products li.product a img { margin: 0 0 10px; aspect-ratio: 1; object-fit: cover; background: var(--blush); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--f-body); font-weight: 700; font-size: 17px; padding: 0 14px; color: var(--ink); }
.woocommerce ul.products li.product .price { color: var(--wine); font-weight: 700; font-size: 18px; padding: 0 14px; }
.woocommerce ul.products li.product .button { margin: auto 14px 0; border-radius: 999px; background: var(--blush); color: var(--wine); font-weight: 700; text-align: center; }
.woocommerce ul.products li.product .button:hover { background: var(--wine); color: #fff; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 999px; font-family: var(--f-body); font-weight: 700; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce .single_add_to_cart_button { background: var(--wine) !important; color: #fff !important; border-radius: 999px !important; min-height: 48px; padding-inline: 28px !important; }
.woocommerce div.product .product_title { font-size: clamp(26px, 3.4vw, 36px); }
.woocommerce div.product p.price { color: var(--wine); font-size: 26px; font-weight: 700; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--blush); }
.wow-wa-ask { margin-top: 12px; }
.woocommerce-breadcrumb { font-size: 14px; color: var(--muted); }
.woocommerce .woocommerce-ordering select, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--f-body); font-size: 16px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--wine); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--wine); }

@media (max-width: 1024px) {
  .wow-row-track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .wow-burger { display: block; }
  .wow-header-in { min-height: 64px; gap: 10px; }
  .wow-logo { margin-inline-end: auto; }
  .wow-logo img { width: 84px; }
  .wow-header-in { position: relative; }
  .wow-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 8px max(20px, env(safe-area-inset-left)) 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0,0,0,.12); max-height: calc(100vh - 100px); overflow-y: auto; }
  body.nav-open .wow-nav { display: block; }
  .wow-menu { flex-direction: column; gap: 4px; }
  .wow-menu a { display: block; padding: 10px 0; font-size: 19px; }
  .wow-header-actions .wow-btn-wa { display: none; }
  .wow-steps-list { grid-template-columns: 1fr; }
  .wow-footer-in { grid-template-columns: 1fr 1fr; }
  .wow-footer-brand { grid-column: 1 / -1; }
  .wow-row-track { grid-auto-columns: 46%; gap: 12px; }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wow-hero, .wow-slide.is-on { min-height: 320px; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .wow-topbar-in span { display: none; }
  .wow-topbar-in { justify-content: center; }
  .wow-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .wow-cat-name { font-size: 15px; }
  .wow-card-body { padding: 10px; }
  .wow-card-title { font-size: 15px; }
  .wow-card-price { font-size: 16px; }
  .wow-card-add { min-height: 34px; padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
