/*
Theme Name: Design Waves Store
Theme URI: https://store.designwaves.lk
Author: Design Waves (Pvt) Ltd
Description: Online print store theme for Design Waves — homepage, WooCommerce shop styling and quote form styling.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dw-store
*/

:root{
  --ink:#16181D; --ink-2:#4A4740; --muted:#6B6659; --line:#E4E1D9; --line-2:#D9D5CB;
  --bg:#F6F5F2; --paper:#FFFFFF; --sand:#F1EEE6; --sand-2:#ECE8DE;
  --gold:#BA8D3E; --blue:#1F5FBF; --blue-dark:#173F80;
  --display:"Archivo","Arial Narrow",Arial,sans-serif;
  --body:"Public Sans","Segoe UI",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.55}
img{max-width:100%;height:auto}
a{color:var(--blue)}
a:hover{color:var(--blue-dark)}
h1,h2,h3{font-family:var(--display);text-wrap:balance;margin:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.dwst-skip{position:absolute;left:-9999px}
.dwst-skip:focus{left:12px;top:12px;z-index:100;background:#fff;padding:8px 12px}
.dwst-wrap{max-width:1240px;margin:0 auto;padding-inline:24px}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}

/* top bar + header */
.dwst-topbar{background:var(--ink);color:#E9E6DF;font-size:13px}
.dwst-topbar-in{display:flex;flex-wrap:wrap;gap:6px 28px;align-items:center;padding-block:9px}
.dwst-topbar-note{margin-left:auto;color:var(--gold);font-weight:600}
.dwst-header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.admin-bar .dwst-header{top:32px}
.dwst-header-in{display:flex;flex-wrap:wrap;align-items:center;gap:14px 34px;padding-block:14px}
.dwst-brand{display:flex;align-items:center}
.dwst-logo{height:34px;width:auto;display:block}
.dwst-menu{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 24px;font-weight:600;font-size:15px}
.dwst-menu a{color:var(--ink);text-decoration:none}
.dwst-menu a:hover,.dwst-menu .current-menu-item a{color:var(--blue)}
.dwst-tools{margin-left:auto;display:flex;align-items:center;gap:10px}
.dwst-search input[type=search]{width:200px;height:44px;border:1px solid var(--line-2);border-radius:6px;padding:0 14px;font:inherit;font-size:14px;background:var(--bg)}
.dwst-iconbtn{width:44px;height:44px;border:1px solid var(--line-2);border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--ink)}
.dwst-cartbtn{height:44px;border-radius:6px;background:var(--ink);color:#fff;display:flex;align-items:center;gap:8px;padding:0 16px;font-weight:600;font-size:14px;text-decoration:none}
.dwst-cartbtn:hover{color:#fff;background:#000}
.dwst-cart-count{background:var(--gold);color:var(--ink);border-radius:999px;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;padding:0 6px}

/* buttons */
.dwst-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 26px;border-radius:6px;font-weight:700;text-decoration:none;border:2px solid transparent}
.dwst-btn-sm{min-height:44px;padding:0 18px;font-size:14px}
.dwst-btn-primary{background:var(--blue);color:#fff}
.dwst-btn-primary:hover{background:var(--blue-dark);color:#fff}
.dwst-btn-outline{border-color:var(--ink);color:var(--ink)}
.dwst-btn-outline:hover{background:var(--ink);color:#fff}
.dwst-btn-dark{background:var(--ink);color:#fff}
.dwst-btn-dark:hover{background:#000;color:#fff}

/* hero */
.dwst-hero{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));gap:48px;align-items:center;padding-block:72px 64px}
.dwst-hero-text{display:flex;flex-direction:column;gap:22px;min-width:0}
.dwst-eyebrow{display:flex;gap:6px;align-items:center;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.dwst-eyebrow .sw{width:10px;height:10px;display:inline-block}
.sw.c{background:#0FA6C4}.sw.m{background:#D8336B}.sw.y{background:#E8B400}.sw.k{background:var(--ink)}
.dwst-eyebrow span:last-child{margin-left:8px}
.dwst-hero h1{font-stretch:112%;font-weight:850;font-size:clamp(38px,5.4vw,68px);line-height:1;letter-spacing:-.02em}
.dwst-gold{color:var(--gold)}
.dwst-lede{margin:0;font-size:18px;color:var(--ink-2);max-width:34em}
.dwst-actions{display:flex;flex-wrap:wrap;gap:12px}
.dwst-ticks{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:14px;color:var(--ink-2)}
.dwst-hero-art{position:relative;height:470px;min-width:0}
.dwst-crop{position:absolute;inset:18px;border:1px dashed #CFC9BC}
.cm{position:absolute;background:var(--ink)}
.cm1{left:0;top:18px;width:14px;height:1px}.cm2{left:18px;top:0;width:1px;height:14px}
.cm3{right:0;bottom:18px;width:14px;height:1px}.cm4{right:18px;bottom:0;width:1px;height:14px}
.dwst-piece{position:absolute;box-sizing:border-box}
.dwst-letterhead{left:10%;top:44px;width:44%;aspect-ratio:210/297;background:#fff;box-shadow:0 18px 40px rgba(22,24,29,.16);transform:rotate(-4deg);padding:6%;display:flex;flex-direction:column;gap:9px}
.dwst-letterhead img{width:62%}
.dwst-letterhead b{height:2px;background:var(--gold);margin:6px 0 10px}
.dwst-letterhead i{height:5px;background:var(--line)}
.dwst-bcard{right:8%;top:70px;width:46%;aspect-ratio:90/55;background:var(--ink);border-radius:4px;box-shadow:0 16px 34px rgba(22,24,29,.28);transform:rotate(5deg);padding:6%;display:flex;flex-direction:column;justify-content:space-between}
.dwst-bcard-name{font-family:var(--display);font-stretch:115%;font-weight:800;color:#fff;font-size:clamp(12px,1.4vw,18px);letter-spacing:.04em}
.dwst-bcard-name span{color:var(--gold)}
.dwst-bcard-info{color:#CFC9BC;font-size:11px;line-height:1.5}
.dwst-idcard{right:16%;bottom:40px;width:30%;aspect-ratio:54/85.6;background:#fff;border-radius:10px;box-shadow:0 16px 34px rgba(22,24,29,.2);transform:rotate(-3deg);overflow:hidden;display:flex;flex-direction:column;align-items:center}
.dwst-id-band{width:100%;height:26%;background:var(--blue)}
.dwst-id-photo{width:44%;aspect-ratio:1;border-radius:50%;background:var(--line);margin-top:-20%;border:4px solid #fff}
.dwst-id-l1{height:6px;width:60%;background:var(--ink);margin-top:12%}
.dwst-id-l2{height:5px;width:44%;background:#CFC9BC;margin-top:8px}
.dwst-flyer{left:6%;bottom:28px;width:34%;aspect-ratio:148/105;background:var(--gold);box-shadow:0 14px 30px rgba(22,24,29,.18);transform:rotate(3deg);padding:5%;font-family:var(--display);font-weight:850;font-stretch:110%;font-size:clamp(14px,1.6vw,20px);line-height:1}

/* promise strip */
.dwst-promise{background:var(--paper);border-block:1px solid var(--line)}
.dwst-promise-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;padding-block:26px}
.dwst-promise-grid>div{display:flex;gap:14px;align-items:flex-start}
.dwst-promise-grid svg{color:var(--blue);flex:none}
.dwst-promise-grid b{display:block}
.dwst-promise-grid span{font-size:14px;color:var(--muted)}

/* sections */
.dwst-section{padding-block:56px}
.dwst-section-last{padding-bottom:80px}
.dwst-sec-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px 24px;margin-bottom:30px}
.dwst-kicker{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.dwst-section h2{margin-top:6px;font-stretch:110%;font-weight:850;font-size:clamp(28px,3.4vw,40px);line-height:1.05;letter-spacing:-.01em}
.dwst-h2-gap{margin-bottom:26px}
.dwst-more{margin-left:auto;font-weight:700;text-decoration:none}

/* product tiles */
.dwst-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.dwst-tile{display:flex;flex-direction:column;gap:10px;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:20px;min-height:172px;color:var(--ink);text-decoration:none;transition:border-color .15s,transform .15s}
.dwst-tile:hover{border-color:var(--gold);transform:translateY(-2px);color:var(--ink)}
.dwst-tile-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.dwst-tile-icon{width:48px;height:48px;border-radius:8px;background:var(--sand);display:flex;align-items:center;justify-content:center}
.dwst-tile-group{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8A8474}
.dwst-tile-name{font-weight:700;font-size:17px}
.dwst-tile-spec{font-size:13.5px;color:var(--muted)}
.dwst-tile-price{margin-top:auto;font-size:14px;font-weight:600}
@media (prefers-reduced-motion:reduce){.dwst-tile{transition:none}.dwst-tile:hover{transform:none}}

/* how it works */
.dwst-how{background:var(--ink);color:#F1EEE6;border-radius:10px;padding:48px 40px;display:flex;flex-direction:column;gap:32px}
.dwst-how h2{color:#fff}
.dwst-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.dwst-steps li{display:flex;flex-direction:column;gap:8px;border-top:2px solid var(--gold);padding-top:16px}
.dwst-steps span{font-family:var(--display);font-weight:850;font-size:30px;color:var(--gold)}
.dwst-steps b{font-size:18px;color:#fff}
.dwst-steps p{margin:0;font-size:14.5px;color:#BDB8AC}

/* popular */
.dwst-popular{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}
.dwst-card{background:var(--paper);border:1px solid var(--line);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}
.dwst-card-img{display:block;aspect-ratio:4/3;background:var(--sand-2);overflow:hidden}
.dwst-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.dwst-card-body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.dwst-card-name{font-weight:700;font-size:18px;color:var(--ink);text-decoration:none}
.dwst-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.dwst-card-price{font-weight:700}

/* panels */
.dwst-panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:18px}
.dwst-panel{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:40px;display:flex;flex-direction:column;gap:14px;align-items:flex-start}
.dwst-panel h2{margin:0;font-size:clamp(26px,2.8vw,34px)}
.dwst-panel p{margin:0;color:var(--ink-2);max-width:30em}
.dwst-panel-gold{background:var(--gold);border-color:var(--gold)}
.dwst-panel-gold p{color:var(--ink)}

/* artwork rules */
.dwst-rules{border:1px solid var(--line-2);border-radius:10px;padding:32px;display:flex;flex-wrap:wrap;gap:24px 40px;align-items:center;background:var(--paper)}
.dwst-rules-text{flex:1 1 280px;min-width:0}
.dwst-rules-text h3{font-stretch:108%;font-weight:800;font-size:24px;margin-bottom:6px}
.dwst-rules-text p{margin:0;color:var(--ink-2)}
.dwst-rules-grid{flex:2 1 520px;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.dwst-rules-grid div{background:var(--bg);border-radius:8px;padding:14px}
.dwst-rules-grid b{display:block;font-family:var(--display);font-weight:850;font-size:22px}
.dwst-rules-grid span{font-size:13.5px;color:var(--muted)}

/* footer */
.dwst-footer{background:var(--ink);color:#BDB8AC;font-size:14px}
.dwst-footer a{color:#BDB8AC;text-decoration:none;display:block;margin:4px 0}
.dwst-footer a:hover{color:#fff}
.dwst-footer h3{color:#fff;font-family:var(--body);font-size:15px;margin-bottom:8px}
.dwst-footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:32px;padding-block:56px 28px}
.dwst-footer-logo{background:#fff;border-radius:6px;padding:10px 12px;display:inline-block}
.dwst-logo-sm{height:26px}
.dwst-footer-menu{list-style:none;margin:0;padding:0}
.dwst-footer-bottom{border-top:1px solid #2E3038;display:flex;flex-wrap:wrap;gap:10px 24px;padding-block:18px 28px;font-size:13px}
.dwst-footer-bottom span:last-child{margin-left:auto}

/* normal pages + shop */
.dwst-page{padding-block:48px 72px}
.dwst-page-title{font-stretch:110%;font-weight:850;font-size:clamp(28px,3.4vw,42px);margin-bottom:20px}
.dwst-page-title a{color:var(--ink);text-decoration:none}
.dwst-content{max-width:860px}
.dwst-shop .woocommerce-products-header__title{font-family:var(--display);font-stretch:110%;font-weight:850;font-size:clamp(28px,3.4vw,42px)}
.woocommerce ul.products li.product{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:14px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:var(--body);font-weight:700;color:var(--ink)}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-weight:700}
.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,.wc-block-components-button:not(.is-link){
  background:var(--blue)!important;color:#fff!important;border-radius:6px!important;font-weight:700!important;padding:.8em 1.4em!important}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce button.button.alt:hover{background:var(--blue-dark)!important}
.woocommerce span.onsale{background:var(--gold);color:var(--ink)}
.woocommerce div.product .product_title{font-family:var(--display);font-stretch:110%;font-weight:850}
.woocommerce-message,.woocommerce-info{border-top-color:var(--blue)}
.woocommerce-message::before,.woocommerce-info::before{color:var(--blue)}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,
.woocommerce div.product form.cart .variations select{border:1px solid var(--line-2);border-radius:6px;padding:10px 12px;background:#fff}

/* quote form from the Operations Desk connector */
.dwod-quote{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:4px 20px}
.dwod-quote p{margin:0 0 14px}
.dwod-quote p:has(textarea),.dwod-quote p:has(input[type=file]),.dwod-quote p:has(button){grid-column:1/-1}
.dwod-quote label{font-weight:600;font-size:14px}
.dwod-quote input[type=text],.dwod-quote input[type=email],.dwod-quote input[type=tel],.dwod-quote input[type=date],.dwod-quote select,.dwod-quote textarea{
  margin-top:6px;width:100%;min-height:46px;border:1px solid var(--line-2);border-radius:6px;padding:10px 12px;font:inherit;background:var(--bg)}
.dwod-quote textarea{min-height:120px}
.dwod-quote button{min-height:52px;padding:0 28px;border:none;border-radius:6px;background:var(--blue);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.dwod-quote button:hover{background:var(--blue-dark)}
.dwod-ok{font-weight:600}

@media (max-width:782px){
  .admin-bar .dwst-header{top:0;position:relative}
  .dwst-search input[type=search]{width:150px}
  .dwst-topbar-note{margin-left:0}
  .dwst-hero{padding-block:40px}
  .dwst-hero-art{height:360px}
  .dwst-how,.dwst-panel{padding:28px 22px}
}
@media (max-width:520px){
  .dwst-tools{margin-left:0;width:100%}
  .dwst-search{flex:1}
  .dwst-search input[type=search]{width:100%}
}
