@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Kufi+Arabic:wght@400;500;600;700&family=Outfit:wght@300;400;500;600&display=swap");

:root {
  --petroleum: #014a56;
  --petroleum-dark: #00343d;
  --petroleum-soft: #0b6572;
  --white: #fff;
  --ivory: #fbf8f1;
  --cream: #f5efe3;
  --gold: #c8a96a;
  --gold-light: #e6d3a7;
  --gray: #667477;
  --line: rgba(1,74,86,.12);
  --shell: min(1180px, calc(100% - 40px));
  --heading: "Cormorant Garamond", Georgia, serif;
  --body: "Outfit", Arial, sans-serif;
  --ease: cubic-bezier(.2,.75,.25,1);
  --shadow: 0 24px 60px rgba(0,52,61,.1);
  --shadow-lg: 0 40px 90px rgba(0,45,53,.18);
  --radius: 26px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--petroleum-dark); background: var(--ivory); font-family: var(--body); line-height: 1.65; overflow-x: hidden; transition: opacity 180ms ease, filter 180ms ease; }
html[dir="rtl"] body { font-family: "Noto Kufi Arabic", Arial, sans-serif; }
body.cart-open { overflow: hidden; }
body.language-changing { opacity: .72; filter: blur(2px); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.08; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { font-family: "Noto Kufi Arabic", Arial, sans-serif; line-height: 1.45; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--gold); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 1px; background: currentColor; content: ""; }
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; padding: 8px 0; border-bottom: 1px solid transparent; background: linear-gradient(rgba(251,248,241,.6), transparent); transition: 350ms ease; }
.site-header.scrolled { padding: 0; border-color: var(--line); background: rgba(251,248,241,.86); box-shadow: 0 12px 45px rgba(0,45,53,.08); backdrop-filter: blur(24px) saturate(130%); }
.header-inner { display: flex; height: 78px; align-items: center; justify-content: space-between; gap: 24px; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; mix-blend-mode: multiply; filter: drop-shadow(0 7px 12px rgba(1,74,86,.08)); transition: transform 450ms var(--ease); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.04); }
.main-nav { display: flex; align-items: center; gap: 38px; }
.main-nav a { position: relative; color: rgba(0,52,61,.76); font-size: .9rem; font-weight: 500; transition: color 280ms ease; }
.main-nav a::after { position: absolute; right: 50%; bottom: -8px; left: 50%; height: 2px; border-radius: 10px; background: linear-gradient(90deg,var(--gold),var(--gold-light)); content: ""; transition: 300ms var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--petroleum-dark); }
.main-nav a:hover::after, .main-nav a.active::after { right: 0; left: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.language-toggle, .icon-button { position: relative; display: inline-grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--petroleum); background: rgba(255,255,255,.6); box-shadow: inset 0 1px rgba(255,255,255,.9); backdrop-filter: blur(10px); transition: 280ms ease; }
.language-toggle { width: 44px; font-size: .72rem; font-weight: 600; }
.language-toggle:hover, .icon-button:hover { border-color: var(--gold); background: var(--white); transform: translateY(-2px); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.cart-count { position: absolute; top: -5px; right: -5px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: var(--white); background: var(--gold); box-shadow: 0 4px 12px rgba(169,135,79,.38); font-size: .62rem; }
.menu-toggle { display: none; gap: 3px; }
.menu-toggle span { display: block; width: 17px; height: 1.5px; background: currentColor; transition: 280ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.catalog-hero { position: relative; min-height: 620px; padding: 145px 0 90px; background: radial-gradient(circle at 75% 30%,rgba(255,255,255,.9),transparent 27%), radial-gradient(circle at 10% 80%,rgba(1,74,86,.1),transparent 27%), linear-gradient(135deg,#fcfaf5,#f5eddd 52%,#e8f1ef); overflow: hidden; isolation: isolate; }
.catalog-hero::before { position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(rgba(1,74,86,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(1,74,86,.035) 1px,transparent 1px); background-size: 85px 85px; content: ""; opacity: .5; mask-image: linear-gradient(black,transparent); }
.catalog-hero-inner { display: grid; align-items: center; grid-template-columns: 1.08fr .92fr; gap: 90px; }
.catalog-intro h1 { margin-bottom: 20px; color: transparent; background: linear-gradient(135deg,var(--petroleum-dark),var(--petroleum),#287985); background-clip: text; -webkit-background-clip: text; font-size: clamp(4rem,9vw,7.5rem); font-weight: 600; letter-spacing: -.055em; }
html[dir="rtl"] .catalog-intro h1 { letter-spacing: 0; }
.catalog-intro > p:last-child { max-width: 590px; margin-bottom: 0; color: var(--gray); font-size: 1.1rem; text-wrap: pretty; }
.catalog-visual { position: relative; }
.visual-frame { position: relative; padding: 9px; border: 1px solid rgba(255,255,255,.9); border-radius: 50% 50% 24px 24px; background: rgba(255,255,255,.42); box-shadow: var(--shadow-lg); animation: float 8s var(--ease) infinite; backdrop-filter: blur(14px); }
.visual-frame img { width: 100%; height: 340px; border-radius: 50% 50% 18px 18px; object-fit: cover; }
.visual-mark { position: absolute; right: -20px; bottom: 30px; display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid rgba(230,211,167,.7); border-radius: 50%; color: var(--white); background: rgba(1,74,86,.9); box-shadow: var(--shadow); font-family: var(--heading); font-size: 1.5rem; }
html[dir="rtl"] .visual-mark { right: auto; left: -20px; }
.hero-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); animation: glowDrift 13s ease-in-out infinite alternate; }
.glow-one { top: 10%; right: 15%; width: 330px; height: 330px; background: rgba(200,169,106,.22); }
.glow-two { bottom: -15%; left: 5%; width: 420px; height: 420px; background: rgba(1,74,86,.13); animation-delay: -5s; }
.hero-rings { position: absolute; z-index: -1; top: 12%; left: 4%; width: 160px; height: 160px; border: 1px dashed rgba(200,169,106,.28); border-radius: 50%; animation: spin 20s linear infinite; }

.catalog-section { position: relative; padding: 95px 0 115px; background: radial-gradient(circle at 90% 20%,rgba(200,169,106,.08),transparent 24%),var(--ivory); }
.catalog-toolbar { display: grid; align-items: center; grid-template-columns: minmax(240px,1fr) 220px auto; gap: 13px; margin-bottom: 48px; padding: 13px; border: 1px solid rgba(255,255,255,.86); border-radius: 22px; background: rgba(255,255,255,.62); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.search-control { position: relative; }
.search-control svg { position: absolute; top: 50%; left: 17px; width: 18px; fill: none; stroke: var(--petroleum); stroke-linecap: round; stroke-width: 1.7; transform: translateY(-50%); }
html[dir="rtl"] .search-control svg { right: 17px; left: auto; }
.search-control input, .sort-control select { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 14px; color: var(--petroleum-dark); background: rgba(251,248,241,.82); outline: none; transition: border-color 250ms ease,box-shadow 250ms ease,background 250ms ease; }
.search-control input { padding: 0 18px 0 48px; }
html[dir="rtl"] .search-control input { padding: 0 48px 0 18px; }
.sort-control select { padding: 0 14px; cursor: pointer; }
.search-control input:focus, .sort-control select:focus { border-color: rgba(200,169,106,.75); background: var(--white); box-shadow: 0 0 0 4px rgba(200,169,106,.12); }
.result-count { margin: 0; padding-inline: 12px; color: var(--gray); font-size: .82rem; white-space: nowrap; }
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card { position: relative; display: flex; flex-direction: column; border: 1px solid transparent; border-radius: var(--radius); background: linear-gradient(rgba(255,255,255,.78),rgba(255,255,255,.68)) padding-box,linear-gradient(145deg,rgba(255,255,255,.95),rgba(200,169,106,.44),rgba(1,74,86,.14)) border-box; box-shadow: 0 22px 55px rgba(0,52,61,.09); overflow: hidden; isolation: isolate; transition: transform 430ms var(--ease),box-shadow 430ms var(--ease); backdrop-filter: blur(18px); }
.product-card:hover { box-shadow: 0 38px 85px rgba(0,52,61,.17); transform: translateY(-12px); }
.product-shine { position: absolute; z-index: 4; top: -35%; left: -85%; width: 55%; height: 170%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.68),transparent); opacity: 0; pointer-events: none; transform: rotate(18deg); transition: left 850ms var(--ease),opacity 250ms ease; }
.product-card:hover .product-shine { left: 135%; opacity: .85; }
.product-image-wrap { position: relative; margin: 10px; border-radius: 19px; background: var(--cream); overflow: hidden; }
.product-image { width: 100%; aspect-ratio: 1/1; border-radius: 19px; object-fit: cover; transition: transform 850ms var(--ease),filter 500ms ease; }
.product-card:hover .product-image { filter: saturate(1.06); transform: scale(1.065) translateY(-3px); }
.product-badge { position: absolute; z-index: 3; top: 14px; left: 14px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 100px; color: var(--petroleum-dark); background: rgba(255,255,255,.72); box-shadow: 0 8px 20px rgba(0,52,61,.08); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(12px); }
html[dir="rtl"] .product-badge { right: 14px; left: auto; letter-spacing: 0; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 17px 25px 28px; }
.product-content h2 { margin-bottom: 11px; font-size: 1.85rem; font-weight: 600; }
.product-description { flex: 1; margin-bottom: 19px; color: var(--gray); font-size: .92rem; }
.product-price { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--gold); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-price::before { width: 17px; height: 1px; background: var(--gold); content: ""; }
html[dir="rtl"] .product-price { letter-spacing: 0; }
.product-actions { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8px; }
.button { position: relative; display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 100px; font-size: .78rem; font-weight: 500; text-align: center; overflow: hidden; transition: transform 330ms var(--ease),box-shadow 330ms ease,border-color 330ms ease,background 330ms ease; }
.button::after { content: "→"; transition: transform 280ms ease; }
html[dir="rtl"] .button::after { content: "←"; }
.button:hover { transform: translateY(-3px); }
.button:hover::after { transform: translateX(4px); }
html[dir="rtl"] .button:hover::after { transform: translateX(-4px); }
.button-primary { color: var(--white); background: linear-gradient(120deg,var(--petroleum-dark),var(--petroleum),var(--petroleum-soft)); box-shadow: 0 13px 28px rgba(1,74,86,.23); }
.button-primary:hover { box-shadow: 0 17px 34px rgba(1,74,86,.3); }
.button-ghost { border-color: var(--line); color: var(--petroleum); background: rgba(255,255,255,.62); }
.button-ghost:hover { border-color: var(--gold); background: var(--white); }
.button.added { background: linear-gradient(120deg,#a9874f,var(--gold)); }
.empty-results { padding: 90px 20px; text-align: center; }
.empty-results span { display: grid; width: 76px; height: 76px; margin: 0 auto 23px; place-items: center; border-radius: 50%; color: var(--gold); background: var(--cream); box-shadow: 0 0 0 12px rgba(200,169,106,.08); font-size: 1.6rem; }
.empty-results h2 { margin-bottom: 8px; font-size: 2.2rem; }
.empty-results p { color: var(--gray); }

.site-footer { padding-top: 82px; color: rgba(255,255,255,.7); background: #002f37; }
.footer-inner { display: grid; grid-template-columns: 1.35fr 1fr .7fr; gap: 65px; padding-bottom: 55px; }
.footer-logo { width: 70px; height: 70px; margin-bottom: 15px; border-radius: 50%; object-fit: contain; }
.footer-brand p { max-width: 350px; }
.footer-slogan { margin-bottom: 8px; color: var(--gold-light); font-family: var(--heading); font-size: 1.5rem; }
.footer-column h3 { margin-bottom: 20px; color: var(--white); font-size: 1.4rem; }
.footer-column a { display: block; margin-bottom: 11px; font-size: .86rem; overflow-wrap: anywhere; transition: color 250ms ease; }
.footer-column a:hover { color: var(--gold-light); }
.social-links { display: flex; flex-wrap: wrap; gap: 13px; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.09); font-size: .76rem; }
.footer-bottom p { margin: 0; }

.cart-overlay { position: fixed; z-index: 80; inset: 0; visibility: hidden; background: rgba(0,31,37,.48); opacity: 0; transition: 320ms ease; backdrop-filter: blur(10px); }
.cart-drawer { position: fixed; z-index: 90; top: 0; right: 0; display: flex; width: min(440px,100%); height: 100dvh; flex-direction: column; border-left: 1px solid rgba(255,255,255,.65); background: radial-gradient(circle at 100% 0,rgba(200,169,106,.16),transparent 22%),rgba(251,248,241,.95); box-shadow: -30px 0 90px rgba(0,24,29,.22); transform: translateX(105%); transition: transform 480ms var(--ease); backdrop-filter: blur(24px); }
html[dir="rtl"] .cart-drawer { right: auto; left: 0; border-right: 1px solid rgba(255,255,255,.65); border-left: 0; transform: translateX(-105%); }
.cart-open .cart-overlay { visibility: visible; opacity: 1; }
.cart-open .cart-drawer, html[dir="rtl"] .cart-open .cart-drawer { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.42); }
.cart-header h2 { margin-bottom: 4px; font-size: 2rem; }
.cart-header span { color: var(--gray); font-size: .75rem; }
.cart-close { flex: 0 0 auto; font-size: 1.5rem; }
.cart-body { flex: 1; padding: 22px 28px; overflow-y: auto; }
.empty-cart { display: grid; min-height: 100%; place-content: center; text-align: center; }
.empty-cart-symbol { display: grid; width: 72px; height: 72px; margin: 0 auto 23px; place-items: center; border-radius: 50%; color: var(--gold); background: var(--cream); box-shadow: 0 0 0 10px rgba(200,169,106,.08); font-size: 1.6rem; animation: float 4s ease-in-out infinite; }
.empty-cart h3 { margin-bottom: 8px; font-size: 1.8rem; }
.empty-cart p { max-width: 260px; margin: 0 auto 22px; color: var(--gray); font-size: .9rem; }
.cart-item { display: grid; grid-template-columns: 82px 1fr; gap: 15px; margin-bottom: 12px; padding: 12px; border: 1px solid rgba(1,74,86,.09); border-radius: 14px; background: rgba(255,255,255,.65); box-shadow: 0 10px 25px rgba(0,52,61,.05); animation: cartIn 420ms var(--ease) both; }
.cart-item-image { width: 82px; height: 96px; border-radius: 12px; object-fit: cover; box-shadow: 0 8px 20px rgba(0,52,61,.12); }
.cart-item-info { min-width: 0; }
.cart-item-info h3 { margin-bottom: 4px; font-size: 1.25rem; }
.cart-item-price { margin-bottom: 11px; color: var(--gold); font-size: .7rem; font-weight: 600; text-transform: uppercase; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quantity-control { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 100px; background: var(--white); }
.quantity-control button { display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 50%; color: var(--petroleum); background: transparent; transition: 200ms ease; }
.quantity-control button:hover { color: var(--white); background: var(--petroleum); transform: scale(1.08); }
.quantity-control span { min-width: 20px; text-align: center; font-size: .78rem; }
.remove-button { padding: 0; border: 0; color: var(--gray); background: transparent; font-size: .72rem; text-decoration: underline; }
.cart-footer { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: var(--white); }
.cart-footer.hidden { display: none; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cart-total strong { color: var(--gold); font-size: .85rem; }
.cart-footer p { margin-bottom: 17px; color: var(--gray); font-size: .76rem; }
.checkout-button { width: 100%; }
.cart-trigger.cart-bump { animation: cartBump 600ms var(--ease); }
.cart-count.badge-pulse { animation: badgePulse 700ms ease; }

.reveal { opacity: 1; transform: translateY(0) scale(1); }
.js-ready .reveal { opacity: 0; transform: translateY(32px) scale(.985); transition: opacity 820ms var(--ease),transform 820ms var(--ease); transition-delay: var(--delay,0ms); }
.js-ready .reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@keyframes glowDrift { to { transform: translate3d(70px,45px,0) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cartIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes cartBump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.16) rotate(-8deg); } 70% { transform: scale(.96) rotate(3deg); } }
@keyframes badgePulse { from { box-shadow: 0 0 0 0 rgba(200,169,106,.65); } to { box-shadow: 0 0 0 13px rgba(200,169,106,0); } }

@media (max-width: 1024px) {
  .catalog-hero-inner { gap: 45px; }
  .product-grid { gap: 17px; }
  .product-content { padding: 15px 18px 23px; }
  .product-actions { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .site-header { padding: 0; }
  .header-inner { height: 74px; }
  .brand-logo { width: 55px; height: 55px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; z-index: 49; top: 74px; right: 18px; left: 18px; display: grid; visibility: hidden; padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: rgba(251,248,241,.96); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-12px); transition: 300ms var(--ease); backdrop-filter: blur(24px); }
  .main-nav.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .main-nav a { padding: 10px 12px; }
  .catalog-hero { padding-top: 120px; }
  .catalog-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .catalog-intro .eyebrow { justify-content: center; }
  .catalog-intro > p:last-child { margin-inline: auto; }
  .catalog-visual { width: min(500px,90%); margin-inline: auto; }
  .catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .result-count { grid-column: 1/-1; text-align: center; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .product-card:last-child { grid-column: 1/-1; width: calc(50% - 9px); margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 480px) {
  :root { --shell: min(100% - 24px,1180px); }
  .language-toggle, .icon-button { width: 39px; height: 39px; }
  .header-actions { gap: 5px; }
  .catalog-hero { min-height: auto; padding: 112px 0 68px; }
  .catalog-intro h1 { font-size: clamp(3.7rem,20vw,5rem); }
  .catalog-intro > p:last-child { font-size: .96rem; }
  .catalog-visual { width: 100%; }
  .visual-frame img { height: 270px; }
  .visual-mark { right: -4px; width: 62px; height: 62px; }
  html[dir="rtl"] .visual-mark { right: auto; left: -4px; }
  .catalog-section { padding: 68px 0 80px; }
  .catalog-toolbar { grid-template-columns: 1fr; margin-bottom: 32px; }
  .result-count { grid-column: auto; }
  .product-grid, .footer-inner { grid-template-columns: 1fr; }
  .product-card:last-child { grid-column: auto; width: auto; }
  .product-actions { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .site-footer { padding-top: 65px; }
  .footer-inner { gap: 32px; padding-bottom: 38px; }
  .cart-header, .cart-body, .cart-footer { padding-right: 18px; padding-left: 18px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item-image { width: 72px; height: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
