/*
Theme Name: Purlin Accessory 2
Theme URI: https://purlinaccessory.ir
Author: Demo
Description: Persian RTL block theme for handmade jewelry + online courses. WooCommerce ready, 3D hero with 3 interactive necklace models (Three.js).
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: purlin
*/
:root{--ink:#241c24;--plum:#3a2438;--rose:#b8707c;--rose2:#e9c5c9;--gold:#c9a45c;--cream:#fbf6ef;--pearl:#f3ebe0;--lapis:#26408b}
html{direction:rtl;scroll-behavior:smooth}
body{direction:rtl;text-align:right;background:var(--cream);color:var(--ink);font-family:Vazirmatn,Tahoma,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--rose);text-decoration:none}a:hover{color:var(--plum)}
h1,h2,h3,h4{font-weight:800;line-height:1.4;margin:0 0 .5em}
p{margin:0 0 1em}
.pl-wrap{max-width:1180px;margin:0 auto;padding:0 24px}
.pl-section{padding:84px 0}
.pl-eyebrow{color:var(--rose);font-weight:600;letter-spacing:.02em;margin-bottom:.6em}
.pl-title{text-align:center;font-size:clamp(1.6rem,3vw,2.3rem);margin-bottom:.4em}
.pl-sub{text-align:center;color:#6d6070;max-width:620px;margin:0 auto 2.4em}
/* header */
.pl-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 32px;background:rgba(251,246,239,.88);backdrop-filter:blur(10px);border-bottom:1px solid rgba(58,36,56,.08)}
.pl-brand,.pl-brand a{font-size:1.45rem;font-weight:800;color:var(--plum);margin:0}
.pl-nav a{color:var(--ink);font-weight:600}.pl-nav a:hover{color:var(--rose)}
/* buttons */
.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--plum)!important;color:#fff!important;border-radius:999px!important;padding:.75em 1.8em!important;font-weight:600;border:0;transition:.25s}
.wp-block-button__link:hover,.woocommerce a.button:hover{background:var(--rose)!important;transform:translateY(-2px)}
.is-style-outline .wp-block-button__link{background:transparent!important;color:var(--plum)!important;border:1.5px solid var(--plum)!important}
.is-style-outline .wp-block-button__link:hover{background:var(--plum)!important;color:#fff!important}
/* hero */
.pl-hero{padding:56px 0 40px;background:radial-gradient(circle at 78% 30%,rgba(233,197,201,.75),transparent 55%),radial-gradient(circle at 10% 90%,rgba(201,164,92,.18),transparent 45%),var(--cream)}
.pl-hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:32px;align-items:center;min-height:78vh}
.pl-hero h1{font-size:clamp(2rem,4.4vw,3.4rem);color:var(--plum)}
.pl-hero .pl-lead{font-size:1.15rem;color:#5b4d5e;max-width:520px}
#pl-hero3d{width:100%;height:min(560px,70vw);min-height:340px;touch-action:pan-y;cursor:grab;border-radius:32px;background:radial-gradient(circle at 50% 40%,rgba(255,255,255,.75),rgba(255,255,255,0) 70%)}
#pl-hero3d canvas{display:block;width:100%!important;height:100%!important}
#pl-hero3d.pl-nogl{background:linear-gradient(135deg,var(--rose2),var(--pearl))}
/* features */
.pl-features{gap:20px}.pl-features .wp-block-column{background:#fff;border-radius:24px;padding:28px 24px;box-shadow:0 10px 30px rgba(58,36,56,.06)}
.pl-features h3{font-size:1.1rem;color:var(--plum)}.pl-features p{color:#6d6070;margin:0;font-size:.95rem}
/* categories */
.pl-cats{gap:20px}.pl-cat{border-radius:26px;min-height:200px;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;transition:.3s}
.pl-cat:hover{transform:translateY(-6px)}.pl-cat h3{color:#fff;margin:0}.pl-cat p{margin:0}.pl-cat a{color:#fff;font-weight:600}
.pl-c1{background:linear-gradient(160deg,#c98b95,#5c3a58)}.pl-c2{background:linear-gradient(160deg,#d8b66c,#7a5a2e)}.pl-c3{background:linear-gradient(160deg,#6f86c9,#26408b)}.pl-c4{background:linear-gradient(160deg,#a58bc9,#4a2f6e)}
/* products */
.woocommerce ul.products,ul.products{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:24px;list-style:none;padding:0;margin:0}
.woocommerce ul.products li.product,ul.products li.product{width:auto!important;margin:0!important;float:none!important;background:#fff;border-radius:22px;padding:14px 14px 20px;box-shadow:0 8px 26px rgba(58,36,56,.06);text-align:center}
ul.products li.product img{border-radius:16px;aspect-ratio:1/1;object-fit:cover;width:100%;height:auto}
ul.products li.product .woocommerce-loop-product__title{font-size:1rem;font-weight:600;padding:.6em 0 .2em}
ul.products li.product .price{color:var(--rose);font-weight:800;display:block;margin-bottom:.8em}
/* courses */
.pl-courses{background:var(--plum);color:#f6ecf0}.pl-courses h2,.pl-courses .pl-title{color:#fff}.pl-courses .pl-sub{color:#d9c6d2}
.pl-courses .is-style-outline .wp-block-button__link{color:#fff!important;border-color:#fff!important}
/* about */
.pl-about{gap:56px;align-items:center}.pl-photo{border-radius:32px;min-height:420px;background:linear-gradient(150deg,var(--rose2),var(--pearl) 60%,#e8d3a4)}
/* testimonials */
.pl-quotes{gap:20px}.pl-quotes .wp-block-column{background:#fff;border-radius:24px;padding:28px;box-shadow:0 10px 30px rgba(58,36,56,.06)}
/* contact cta */
.pl-cta{background:linear-gradient(135deg,var(--rose2),var(--pearl));text-align:center}
.pl-contact-line{font-size:1.1rem;direction:rtl}
/* page */
.pl-page{padding:48px 24px 80px;max-width:980px;margin:0 auto}.pl-page-title{text-align:center;font-size:2.2rem;color:var(--plum);margin-bottom:1em}
/* footer */
.pl-footer{background:#1c141c;color:#d9c9d3;padding:64px 0 28px}.pl-footer h4{color:#fff}.pl-footer a{color:#e9c5c9}.pl-footer .pl-copy{border-top:1px solid rgba(255,255,255,.1);margin-top:36px;padding-top:20px;text-align:center;font-size:.85rem;color:#9d8c99}
@media(max-width:860px){.pl-hero-grid{grid-template-columns:1fr;min-height:0}.pl-section{padding:56px 0}.pl-header{padding:12px 18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.pl-courses ul.products li.product .woocommerce-loop-product__title{color:var(--ink)}

/* v2: hero model switcher */
.pl-hero3d-wrap{position:relative}
#pl-hero3d{height:min(500px,70vw)}
.pl-caption{position:absolute;top:10px;inset-inline:0;text-align:center;font-weight:700;color:var(--plum);margin:0;pointer-events:none}
.pl-switch{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.pl-sw{display:flex;align-items:center;gap:8px;padding:6px 14px 6px 8px;border-radius:999px;border:1.5px solid rgba(58,36,56,.15);background:#fff;color:var(--plum);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;transition:.25s}
.pl-sw:hover{border-color:var(--rose)}
.pl-sw.is-active{background:var(--plum);color:#fff;border-color:var(--plum)}
.pl-sw-img{width:34px;height:34px;border-radius:50%;background:var(--pearl) center/cover no-repeat;flex:none}
.pl-hint{text-align:center;font-size:.8rem;color:#8a7a8d;margin:8px 0 0}
