/*
Theme Name: mtap. UAE
Theme URI: https://mtap.ae
Author: mtap.
Description: Custom bilingual (English / Arabic RTL) WooCommerce theme for mtap. UAE — NFC business cards, Google review standees, NFC keychains and PVC business cards.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: mtap
License: GPLv2 or later
*/

/* ========== Brand colors (yahan se poori website ke colors change karein) ========== */
:root {
  --ink: #0b0b0f;
  --ink-2: #1c1c24;
  --muted: #6b6b78;
  --line: #e8e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --accent: #1f6bff;
  --accent-2: #00c2a8;
  --wa: #25d366;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(11, 11, 15, .08);
  --container: 1200px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html[dir="rtl"] { --font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif; }

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 0; }
.skip-link:focus { inset-inline-start: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ========== Header ========== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 36px; width: auto; }
.brand-text { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.brand-text span { color: var(--accent); }
.main-nav { margin-inline-start: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--ink-2); transition: background .2s; }
.nav-list a:hover, .nav-list .current-menu-item > a { background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-weight: 700; font-size: .9rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s; }
.lang-switch:hover { border-color: var(--ink); }
.cart-link { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bg-soft); }
.mtap-cart-count { position: absolute; top: -2px; inset-inline-end: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; border: 0; background: var(--bg-soft); border-radius: 50%; cursor: pointer; padding: 0 11px; }
  .menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: .25s; margin: 0; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 12px 14px; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
}

/* ========== Buttons & small elements ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .15s, background .2s, color .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 12px; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
html[dir="rtl"] .link-arrow::after { content: "←"; }
a:hover .link-arrow::after, a.link-arrow:hover::after { transform: translateX(4px); }
html[dir="rtl"] a:hover .link-arrow::after, html[dir="rtl"] a.link-arrow:hover::after { transform: translateX(-4px); }

/* ========== Hero ========== */
.hero { padding: 64px 0 56px; overflow: hidden; background: radial-gradient(1000px 500px at 85% 10%, rgba(31,107,255,.10), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(0,194,168,.08), transparent 60%); }
html[dir="rtl"] .hero { background: radial-gradient(1000px 500px at 15% 10%, rgba(31,107,255,.10), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(0,194,168,.08), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; }
.hero-title .accent { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.check-list li::before { content: "✓"; color: var(--accent-2); font-weight: 800; margin-inline-end: 8px; }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.tap-card { --rot: -8deg; position: relative; width: min(340px, 80%); aspect-ratio: 1.586; border-radius: 22px; background: linear-gradient(135deg, #15151d, #2a2a38 60%, #0b0b0f); color: #fff; padding: 26px; box-shadow: 0 30px 60px rgba(11,11,15,.35); display: flex; flex-direction: column; justify-content: space-between; animation: float 6s ease-in-out infinite; }
html[dir="rtl"] .tap-card { --rot: 8deg; }
.tap-card-logo { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.tap-card-logo span { color: var(--accent-2); }
.nfc-icon { position: absolute; top: 24px; inset-inline-end: 24px; opacity: .85; }
.tap-card-label { font-size: .85rem; opacity: .75; }
.notif { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding-block: 10px; padding-inline: 10px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; white-space: nowrap; animation: pop .6s both; }
.notif b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bg-soft); color: var(--accent); font-size: .85rem; }
.n1 { top: 8%; inset-inline-start: 0; animation-delay: .4s; }
.n2 { top: 44%; inset-inline-end: -2%; animation-delay: .8s; }
.n2 b { color: #f5b400; }
.n3 { bottom: 8%; inset-inline-start: 8%; animation-delay: 1.2s; }
.n3 b { color: var(--accent-2); }
@keyframes float { 0%, 100% { transform: rotate(var(--rot)) translateY(0); } 50% { transform: rotate(var(--rot)) translateY(-12px); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 340px; }
}

/* ========== Marquee ========== */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 14px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { padding-inline: 22px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.marquee-track span::before { content: "✦"; color: var(--accent-2); margin-inline-end: 22px; }
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ========== Sections ========== */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.p-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.p-card-img { aspect-ratio: 1; background: var(--bg-soft); overflow: hidden; }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.p-card:hover .p-card-img img { transform: scale(1.05); }
.p-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card-title { font-size: 1.02rem; font-weight: 700; margin: 0; }
.p-card-price { color: var(--ink-2); font-weight: 600; }
.p-card-price del { color: var(--muted); font-weight: 400; margin-inline-end: 6px; }
.p-card-cta { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .9rem; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .product-grid { gap: 12px; } .p-card-body { padding: 12px; } }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-num { font-size: .85rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; font-family: 'Inter', sans-serif; }
.cat-card h3 { font-size: 1.3rem; margin: 0; }
.cat-card p { color: var(--muted); margin: 0 0 12px; flex: 1; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 20px; font-family: 'Inter', sans-serif; }
.step h3 { font-size: 1.35rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Feature blocks */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature { background: #fff; border-radius: 24px; padding: 36px; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.feature p { color: var(--muted); }
.feature .btn { margin-top: auto; }
.feature-visual { width: 100%; border-radius: 18px; padding: 28px; margin-bottom: 28px; display: flex; align-items: center; gap: 16px; min-height: 150px; }
.stars-visual { background: linear-gradient(135deg, #fff7db, #ffe8a3); flex-direction: column; justify-content: center; }
.stars { font-size: 2.2rem; color: #f5b400; letter-spacing: 4px; }
.review-pill { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.profile-visual { background: linear-gradient(135deg, #e7efff, #d6fff8); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.profile-visual strong { display: block; font-size: 1.1rem; }
.profile-visual small { color: var(--muted); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } .feature { padding: 26px; } }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* CTA */
.cta { padding: 0 0 88px; }
.cta-box { background: var(--ink); color: #fff; border-radius: 28px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 120%; background: radial-gradient(closest-side, rgba(31,107,255,.45), transparent); pointer-events: none; }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.cta-box p { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.cta-box .btn-row { justify-content: center; margin-bottom: 0; }

/* ========== Footer ========== */
.site-footer { background: var(--bg-soft); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer li a, .footer-brand p { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.footer-contact { display: grid; gap: 6px; margin: 16px 0; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 20px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.wa-float { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ========== Pages & blog ========== */
.page-hero { padding: 56px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.post-meta { color: var(--muted); font-size: .9rem; }
.entry-content { padding-bottom: 88px; }
.entry-content a:not(.btn):not(.button) { color: var(--accent); text-decoration: underline; }
.entry-content img, .featured-img { border-radius: var(--radius-sm); margin-bottom: 24px; }
.post-list { display: grid; gap: 40px; }
.post-item h2 { font-size: 1.6rem; margin-top: 12px; }
.post-thumb img { border-radius: var(--radius); }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }
.nav-links .current { background: var(--ink); color: #fff; }

/* ========== WooCommerce ========== */
.wc-wrap { padding-top: 48px; padding-bottom: 88px; }
.woocommerce .woocommerce-breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.woocommerce-products-header__title, .woocommerce div.product .product_title { font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px; 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); padding: 0 0 18px !important; overflow: hidden; text-align: start; transition: transform .2s, box-shadow .2s; }
.woocommerce ul.products li.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.woocommerce ul.products li.product a img { margin: 0 0 14px !important; aspect-ratio: 1; object-fit: cover; background: var(--bg-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button { margin-inline: 18px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem !important; font-weight: 700; padding: 0 !important; }
.woocommerce ul.products li.product .price { color: var(--ink-2) !important; font-weight: 600; }
@media (max-width: 1000px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background: var(--ink) !important; color: #fff !important; border-radius: 999px !important; padding: 13px 24px !important; font-weight: 600 !important; transition: background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: var(--accent) !important; }

.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.woocommerce div.product > * { grid-column: 1 / -1; }
.woocommerce div.product > .woocommerce-product-gallery, .woocommerce div.product > .summary { grid-column: auto; width: 100% !important; float: none !important; margin: 0 !important; }
.woocommerce div.product p.price, .woocommerce div.product span.price { font-size: 1.5rem; color: var(--ink) !important; font-weight: 700; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.woocommerce div.product form.cart .button { flex: 1; }
.woocommerce .quantity .qty { height: 48px; width: 80px; border: 1px solid var(--line); border-radius: 999px; }
.mtap-wa-product { width: 100%; margin: 4px 0 20px; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 24px; } }

.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent) !important; }
.woocommerce span.onsale { background: var(--accent) !important; }

/* ========== Scroll reveal ========== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}