/*
Theme Name: Emirates Date Atelier
Theme URI: https://example.com/
Author: OpenAI
Description: A premium UAE-inspired WooCommerce theme for specialty dates, confectionery and gifting. RTL-ready and optimized for UAE, USA and Europe storefronts.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: emirates-date-atelier
*/

:root{
  --eda-ivory:#fbf7ef;
  --eda-sand:#efe2cf;
  --eda-brown:#3d281e;
  --eda-brown-2:#5c3b2b;
  --eda-emerald:#0d5a4a;
  --eda-emerald-2:#164f44;
  --eda-gold:#b58b43;
  --eda-ink:#201b18;
  --eda-muted:#756d66;
  --eda-white:#ffffff;
  --eda-line:rgba(61,40,30,.12);
  --eda-shadow:0 18px 55px rgba(61,40,30,.10);
  --eda-radius:22px;
  --eda-container:min(1180px, calc(100% - 40px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--eda-ivory);color:var(--eda-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
.container{width:var(--eda-container);margin-inline:auto}
.site-main{min-height:50vh}

/* Decorative UAE-inspired geometry */
.eda-pattern{position:relative;overflow:hidden}
.eda-pattern:after{content:"";position:absolute;inset:auto -90px -90px auto;width:360px;height:360px;opacity:.1;background-image:linear-gradient(45deg,transparent 42%,var(--eda-gold) 42% 48%,transparent 48% 52%,var(--eda-gold) 52% 58%,transparent 58%),linear-gradient(-45deg,transparent 42%,var(--eda-gold) 42% 48%,transparent 48% 52%,var(--eda-gold) 52% 58%,transparent 58%);background-size:54px 54px;transform:rotate(8deg);pointer-events:none}

/* Header */
.topbar{background:var(--eda-emerald);color:#fff;font-size:13px;letter-spacing:.02em}
.topbar-inner{display:flex;gap:24px;justify-content:center;padding:9px 0;flex-wrap:wrap}
.topbar span{opacity:.94}
.site-header{position:sticky;top:0;z-index:40;background:rgba(251,247,239,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--eda-line)}
.header-inner{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;min-height:78px}
.site-branding{display:flex;align-items:center;gap:12px;font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:23px;color:var(--eda-brown)}
.site-branding .brand-mark{width:38px;height:38px;border-radius:50% 50% 46% 46%;background:radial-gradient(circle at 45% 35%,#d4ab62 0 10%,#6e3f2a 11% 64%,#3d281e 65%);position:relative;box-shadow:inset 0 0 0 3px rgba(255,255,255,.18)}
.site-branding .brand-mark:before{content:"";position:absolute;width:14px;height:7px;border-radius:100% 0;right:2px;top:1px;background:var(--eda-emerald);transform:rotate(-28deg)}
.primary-menu{display:flex;gap:26px;align-items:center;justify-content:center;list-style:none;margin:0;padding:0;font-size:14px;font-weight:650}
.primary-menu a{padding:9px 0;position:relative}
.primary-menu a:after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;background:var(--eda-gold);transition:.22s}
.primary-menu a:hover:after{right:0}
.header-actions{display:flex;align-items:center;gap:10px}
.icon-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--eda-line);border-radius:999px;background:#fff;transition:.2s}
.icon-button:hover{border-color:rgba(181,139,67,.55);transform:translateY(-1px)}
.cart-count{min-width:18px;height:18px;padding:0 5px;display:grid;place-items:center;border-radius:999px;background:var(--eda-gold);color:#fff;font-size:10px;position:absolute;translate:13px -13px}
.mobile-menu-toggle{display:none}

/* Hero */
.hero{padding:58px 0 42px}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:10px;text-transform:uppercase;letter-spacing:.16em;font-size:12px;font-weight:800;color:var(--eda-emerald);margin-bottom:18px}
.eyebrow:before{content:"";width:34px;height:1px;background:var(--eda-gold)}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(48px,6vw,84px);line-height:.98;letter-spacing:-.045em;margin:0;color:var(--eda-brown);max-width:760px}
.hero h1 em{font-style:normal;color:var(--eda-emerald)}
.hero-copy{font-size:18px;color:var(--eda-muted);max-width:620px;margin:24px 0 30px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 22px;border-radius:999px;border:1px solid transparent;font-weight:800;font-size:14px;transition:.2s;cursor:pointer}
.btn-primary{background:var(--eda-brown);color:#fff;box-shadow:0 14px 30px rgba(61,40,30,.17)}
.btn-primary:hover{background:var(--eda-emerald);transform:translateY(-2px)}
.btn-secondary{background:rgba(255,255,255,.7);border-color:var(--eda-line);color:var(--eda-brown)}
.btn-secondary:hover{border-color:var(--eda-gold);background:#fff}
.hero-notes{display:flex;gap:20px;flex-wrap:wrap;margin-top:26px;color:var(--eda-muted);font-size:13px}
.hero-notes span{display:flex;gap:8px;align-items:center}
.hero-notes i{display:block;width:7px;height:7px;border-radius:50%;background:var(--eda-gold)}
.hero-visual{min-height:580px;border-radius:34px;background:linear-gradient(145deg,#6f4633,#2e241f 76%);position:relative;overflow:hidden;box-shadow:var(--eda-shadow)}
.hero-visual:before{content:"";position:absolute;inset:24px;border:1px solid rgba(255,255,255,.16);border-radius:26px}
.hero-visual .sun{position:absolute;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,#ead0a1 0 45%,rgba(234,208,161,.08) 46% 72%,transparent 73%);top:55px;right:48px;opacity:.92}
.hero-visual .date-plate{position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);width:76%;aspect-ratio:1.2;border-radius:50%;background:radial-gradient(ellipse at center,#e5d0ad 0 50%,#aa7b4c 52% 56%,#5b3528 57% 60%,transparent 61%);filter:drop-shadow(0 30px 35px rgba(0,0,0,.34))}
.hero-visual .dates{position:absolute;inset:23% 17% 20%;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;align-items:center;justify-items:center;transform:rotate(-6deg)}
.hero-visual .date{width:72%;height:110px;border-radius:50% 48% 52% 46%;background:radial-gradient(ellipse at 35% 22%,#a46c46 0 15%,#6c3d2b 43%,#321e18 100%);box-shadow:inset -9px -12px 18px rgba(0,0,0,.28),inset 6px 6px 10px rgba(255,255,255,.08);transform:rotate(var(--r,0deg))}
.hero-badge{position:absolute;right:28px;bottom:28px;background:rgba(255,255,255,.93);padding:17px 18px;border-radius:18px;width:210px;box-shadow:0 18px 35px rgba(0,0,0,.14)}
.hero-badge strong{display:block;color:var(--eda-brown);font-family:Georgia,"Times New Roman",serif;font-size:20px}
.hero-badge small{color:var(--eda-muted)}

/* Trust strip */
.trust-strip{padding:18px 0 42px}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--eda-line);border-radius:20px;overflow:hidden}
.trust-item{padding:20px 22px;display:flex;gap:12px;align-items:center;border-right:1px solid var(--eda-line)}
.trust-item:last-child{border-right:0}
.trust-item svg{width:28px;height:28px;flex:0 0 auto;color:var(--eda-emerald)}
.trust-item strong{display:block;font-size:14px;color:var(--eda-brown)}
.trust-item small{color:var(--eda-muted);font-size:12px}

/* Sections */
.section{padding:76px 0}
.section-sm{padding:48px 0}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:32px}
.section-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,4vw,52px);line-height:1.05;letter-spacing:-.03em;color:var(--eda-brown);margin:0}
.section-heading p{max-width:540px;margin:0;color:var(--eda-muted)}
.text-link{font-weight:800;color:var(--eda-emerald);border-bottom:1px solid rgba(13,90,74,.35)}

/* Woo product cards */
ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px!important;margin:0!important;padding:0!important}
ul.products:before,ul.products:after{display:none!important}
ul.products li.product{width:auto!important;float:none!important;margin:0!important;background:#fff;border:1px solid var(--eda-line);border-radius:20px;padding:12px 12px 16px!important;position:relative;transition:.22s;overflow:hidden}
ul.products li.product:hover{transform:translateY(-4px);box-shadow:var(--eda-shadow);border-color:rgba(181,139,67,.38)}
ul.products li.product a img{border-radius:14px!important;aspect-ratio:1/1;object-fit:cover;background:#f2ece3;margin-bottom:14px!important}
ul.products li.product .woocommerce-loop-product__title{font-family:Georgia,"Times New Roman",serif;font-size:20px!important;line-height:1.2;color:var(--eda-brown);padding:0 2px!important}
ul.products li.product .price{color:var(--eda-emerald)!important;font-weight:800!important;font-size:15px!important;padding:0 2px}
ul.products li.product .button{width:100%;text-align:center;border-radius:999px!important;background:var(--eda-brown)!important;color:#fff!important;padding:12px 14px!important;margin-top:10px!important;font-weight:800!important}
ul.products li.product .button:hover{background:var(--eda-emerald)!important}
.woocommerce span.onsale{background:var(--eda-emerald)!important;min-width:auto!important;min-height:auto!important;line-height:1!important;border-radius:999px!important;padding:8px 10px!important;top:20px!important;left:20px!important;font-size:11px!important}

/* Category tiles */
.category-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:18px}
.cat-card{min-height:340px;border-radius:24px;overflow:hidden;position:relative;background:linear-gradient(150deg,#76503c,#30221b);padding:28px;color:#fff;display:flex;align-items:flex-end;box-shadow:0 18px 45px rgba(61,40,30,.10)}
.cat-card:nth-child(2){background:linear-gradient(150deg,#d5b276,#8d6439)}
.cat-card:nth-child(3){background:linear-gradient(150deg,#1b6a59,#103f35)}
.cat-card:before{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-65px;top:-65px;border:34px solid rgba(255,255,255,.08)}
.cat-card h3{font-family:Georgia,"Times New Roman",serif;font-size:32px;line-height:1.05;margin:0 0 10px;position:relative}
.cat-card p{margin:0;opacity:.84;max-width:320px;position:relative;font-size:14px}
.cat-card .arrow{position:absolute;right:24px;bottom:24px;width:44px;height:44px;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.28);font-size:22px}

/* Story */
.story{background:var(--eda-brown);color:#fff;border-radius:32px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden}
.story-media{min-height:520px;background:linear-gradient(155deg,#8a623f,#3f2b21);position:relative}
.story-media:before{content:"";position:absolute;inset:9% 9%;border-radius:50% 50% 44% 44%;background:radial-gradient(ellipse at 48% 40%,#c49662 0 14%,#7f4a31 15% 38%,#4b2b21 39% 66%,#2b1c17 67%);box-shadow:0 32px 45px rgba(0,0,0,.25)}
.story-copy{padding:64px;display:flex;flex-direction:column;justify-content:center}
.story-copy .eyebrow{color:#e5c083}.story-copy h2{font-family:Georgia,"Times New Roman",serif;font-size:48px;line-height:1.05;margin:0 0 20px}.story-copy p{color:rgba(255,255,255,.74);font-size:16px}.story-points{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.story-point{border-top:1px solid rgba(255,255,255,.16);padding-top:14px}.story-point strong{display:block;color:#f3d49e}.story-point small{color:rgba(255,255,255,.65)}

/* Shipping */
.shipping-band{background:var(--eda-sand);border-radius:28px;padding:48px;display:grid;grid-template-columns:1fr 1.2fr;gap:50px;align-items:center}
.shipping-band h2{font-family:Georgia,"Times New Roman",serif;font-size:44px;line-height:1.05;margin:0 0 16px;color:var(--eda-brown)}
.shipping-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.shipping-card{background:rgba(255,255,255,.74);border:1px solid rgba(61,40,30,.08);border-radius:18px;padding:20px}.shipping-card strong{display:block;color:var(--eda-emerald);font-size:15px}.shipping-card span{font-size:12px;color:var(--eda-muted)}

/* Reviews */
.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.review{background:#fff;border:1px solid var(--eda-line);border-radius:20px;padding:24px}.stars{letter-spacing:.12em;color:var(--eda-gold)}.review p{color:var(--eda-muted)}.review strong{color:var(--eda-brown)}.review small{display:block;color:#928880;margin-top:2px}

/* Newsletter */
.newsletter{background:var(--eda-emerald);border-radius:30px;color:#fff;padding:54px;display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center}.newsletter h2{font-family:Georgia,"Times New Roman",serif;font-size:42px;line-height:1.05;margin:0 0 12px}.newsletter p{color:rgba(255,255,255,.75);margin:0}.newsletter-form{display:flex;background:#fff;border-radius:999px;padding:6px}.newsletter-form input{border:0;outline:0;background:transparent;min-width:0;flex:1;padding:0 15px}.newsletter-form button{border:0;border-radius:999px;background:var(--eda-brown);color:#fff;padding:13px 20px;font-weight:800;cursor:pointer}

/* Footer */
.site-footer{margin-top:76px;background:#221914;color:#fff;padding:58px 0 24px}.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:42px}.footer-brand{font-family:Georgia,"Times New Roman",serif;font-size:28px}.footer-about{color:rgba(255,255,255,.62);max-width:330px;font-size:14px}.footer-col h4{font-size:13px;text-transform:uppercase;letter-spacing:.14em;color:#e3bd7d;margin:4px 0 16px}.footer-col ul{list-style:none;margin:0;padding:0}.footer-col li{margin:8px 0}.footer-col a{color:rgba(255,255,255,.66);font-size:14px}.footer-col a:hover{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:42px;padding-top:18px;display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;color:rgba(255,255,255,.48);font-size:12px}

/* WooCommerce general */
.woocommerce .woocommerce-breadcrumb{font-size:12px;color:var(--eda-muted);margin:24px 0!important}.woocommerce div.product{padding:20px 0 50px}.woocommerce div.product .product_title{font-family:Georgia,"Times New Roman",serif;color:var(--eda-brown);font-size:44px}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--eda-emerald)!important;font-weight:800}.woocommerce div.product .woocommerce-product-gallery__wrapper img{border-radius:22px}.woocommerce div.product form.cart .button,.woocommerce #payment #place_order,.woocommerce-page #payment #place_order,.woocommerce button.button,.woocommerce a.button{background:var(--eda-brown)!important;color:#fff!important;border-radius:999px!important;font-weight:800!important}.woocommerce div.product form.cart .button:hover,.woocommerce button.button:hover,.woocommerce a.button:hover{background:var(--eda-emerald)!important}.woocommerce-message,.woocommerce-info{border-top-color:var(--eda-emerald)!important;background:#fff!important}.woocommerce-message:before,.woocommerce-info:before{color:var(--eda-emerald)!important}.woocommerce form.checkout_coupon,.woocommerce form.login,.woocommerce form.register{border-color:var(--eda-line)!important;border-radius:18px!important;background:#fff}.woocommerce-checkout #payment{background:#fff!important;border-radius:18px!important;border:1px solid var(--eda-line)}.woocommerce table.shop_table{background:#fff;border-color:var(--eda-line)!important;border-radius:18px!important;overflow:hidden}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce select{background:#fff;border:1px solid var(--eda-line);border-radius:12px;padding:12px 14px;min-height:46px}.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus{outline:2px solid rgba(181,139,67,.22);border-color:var(--eda-gold)}

/* Content pages */
.page-shell{padding:54px 0}.page-shell h1{font-family:Georgia,"Times New Roman",serif;font-size:52px;color:var(--eda-brown);margin:0 0 22px}.page-shell .entry-content{background:#fff;border:1px solid var(--eda-line);border-radius:24px;padding:36px;box-shadow:0 12px 35px rgba(61,40,30,.05)}

/* RTL */
[dir="rtl"] body,body.rtl{font-family:"Noto Sans Arabic",Tahoma,Arial,sans-serif}
[dir="rtl"] .hero h1,[dir="rtl"] .section-heading h2,[dir="rtl"] .site-branding,[dir="rtl"] .story-copy h2,[dir="rtl"] .newsletter h2,[dir="rtl"] .woocommerce div.product .product_title,body.rtl .hero h1,body.rtl .section-heading h2{font-family:"Noto Kufi Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif;letter-spacing:0}
[dir="rtl"] .trust-item{border-right:0;border-left:1px solid var(--eda-line)}
[dir="rtl"] .trust-item:last-child{border-left:0}

@media (max-width: 980px){
  .header-inner{grid-template-columns:auto auto;justify-content:space-between}.primary-navigation{display:none;grid-column:1/-1}.primary-navigation.is-open{display:block;padding-bottom:18px}.primary-menu{flex-direction:column;align-items:flex-start;gap:8px}.mobile-menu-toggle{display:grid}.hero-grid,.story,.shipping-band,.newsletter{grid-template-columns:1fr}.hero-visual{min-height:500px}.trust-grid{grid-template-columns:1fr 1fr}.trust-item:nth-child(2){border-right:0}.trust-item:nth-child(-n+2){border-bottom:1px solid var(--eda-line)}ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.category-grid{grid-template-columns:1fr 1fr}.cat-card:first-child{grid-column:1/-1}.footer-grid{grid-template-columns:1fr 1fr}.shipping-cards{grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 640px){
  :root{--eda-container:min(100% - 26px,1180px)}.topbar-inner{gap:8px 16px;font-size:11px}.header-inner{min-height:68px}.site-branding{font-size:19px}.hero{padding-top:34px}.hero h1{font-size:48px}.hero-copy{font-size:16px}.hero-visual{min-height:400px;border-radius:24px}.hero-visual .date{height:70px}.hero-badge{width:175px;right:16px;bottom:16px}.trust-grid{grid-template-columns:1fr}.trust-item{border-right:0!important;border-left:0!important;border-bottom:1px solid var(--eda-line)}.trust-item:last-child{border-bottom:0}.section{padding:54px 0}.section-heading{align-items:flex-start;flex-direction:column}.section-heading h2{font-size:38px}.category-grid,.review-grid,.shipping-cards{grid-template-columns:1fr}.cat-card:first-child{grid-column:auto}.story-copy{padding:36px 26px}.story-copy h2{font-size:38px}.story-points{grid-template-columns:1fr}.shipping-band,.newsletter{padding:30px 24px}.shipping-band h2,.newsletter h2{font-size:36px}.newsletter-form{border-radius:18px;flex-direction:column;padding:8px}.newsletter-form input{min-height:46px}.newsletter-form button{width:100%}ul.products{grid-template-columns:1fr 1fr!important;gap:10px!important}ul.products li.product{padding:8px 8px 12px!important}ul.products li.product .woocommerce-loop-product__title{font-size:16px!important}.footer-grid{grid-template-columns:1fr}.footer-bottom{flex-direction:column}.page-shell h1{font-size:40px}.page-shell .entry-content{padding:24px}
}
.site-branding .custom-logo-link{display:flex;align-items:center}.site-branding .custom-logo{max-height:48px;width:auto}
