/*
Theme Name: Svaritanum Workshop
Version: 1.0.0
Description: Responsive workshop theme preserving the original category grid.
*/
:root{--paper:#f5f2eb;--ink:#213b3b;--muted:#5e7471;--line:#d7dfd9;--accent:#8c6d41;--white:#fffefb}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-underline-offset:4px}img{max-width:100%;height:auto}iframe{max-width:100%;border:0}button,input,select,textarea{font:inherit}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.2;font-weight:400}h1{font-size:clamp(34px,5vw,64px);margin:.35em 0 .65em}h2{font-size:30px}p{margin:0 0 1.2em}.wrap{width:min(1240px,calc(100% - 64px));margin:auto}.site-header{border-bottom:1px solid var(--line);background:var(--white)}.header-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:24px;padding:23px 0}.brand{text-decoration:none;font:45px/1 Georgia,serif;letter-spacing:3px}.brand small{display:block;font:15px/1.8 system-ui,sans-serif;letter-spacing:3px;margin-top:8px;color:var(--muted);text-transform:uppercase}.header-meta{display:flex;align-items:center;gap:26px;font-size:13px}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:3px;color:var(--muted)}.main-nav{display:flex;gap:25px;flex-wrap:wrap;padding:12px 0 16px;font-size:13px}.main-nav a{text-decoration:none}.main-nav a:hover{color:var(--accent)}.intro{padding:65px 0 32px;max-width:830px}.intro h1{margin-bottom:18px}.intro p{max-width:620px;color:var(--muted);font-size:18px}.catalog-heading{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.catalog-heading h2{font-size:25px;margin:0}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.category-tile{display:block;text-decoration:none;position:relative;background:#dce4e0;overflow:hidden}.category-tile img{display:block;width:100%;height:245px;object-fit:cover;transition:transform .3s}.category-tile:hover img{transform:scale(1.035)}.category-caption{display:flex;align-items:center;justify-content:space-between;background:var(--white);padding:15px 18px;font:21px/1.3 Georgia,serif;min-height:68px}.category-caption span{color:var(--accent);font:20px system-ui}.home-story{display:grid;grid-template-columns:1.05fr 1fr;gap:55px;margin:70px 0;padding-top:45px;border-top:1px solid var(--line)}.home-story h2{font-size:39px;margin-top:12px}.home-story .story-content{color:var(--muted);font-size:16px}.home-content{margin:40px 0 70px}.entry-content{max-width:920px;margin:0 auto 65px}.entry-content img{float:none!important;max-width:100%!important;height:auto!important;margin:12px 0!important}.entry-content iframe{display:block;width:100%;aspect-ratio:16/9;height:auto;margin:24px 0}.page-heading{padding:46px 0 20px}.svaritanum-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px;margin-bottom:70px}.instrument-card{background:var(--white)}.instrument-image{display:block;background:#e7ece8;aspect-ratio:4/3;overflow:hidden}.instrument-image img{width:100%;height:100%;object-fit:cover}.instrument-copy{padding:22px}.instrument-copy h2{font-size:24px;margin:0 0 15px}.instrument-copy h2 a{text-decoration:none}.instrument-copy p{font-size:14px;color:var(--muted)}.instrument-copy .price{font-size:18px;color:var(--ink)}.instrument-details{font-size:13px;text-decoration:none;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;padding-bottom:7px}.site-footer{background:var(--ink);color:#f5f2eb;padding:35px 0;margin-top:55px}.footer-row{display:flex;justify-content:space-between;gap:25px;font-size:13px}.footer-row p{margin:0}.skip-link{position:absolute;left:-10000px}.skip-link:focus{left:10px;top:10px;background:white;padding:10px;z-index:99}.woocommerce{padding:35px 0}.woocommerce div.product .product_title{font-size:38px}.woocommerce div.product div.images img{object-fit:contain}.woocommerce div.product .woocommerce-tabs .panel img{max-width:100%!important;height:auto!important;float:none!important}.woocommerce .button,.woocommerce button.button.alt{background:var(--ink);color:white;border-radius:0;padding:13px 20px}.woocommerce div.product p.price{color:var(--accent)}.woocommerce-product-details__short-description{color:var(--muted)}.woocommerce-breadcrumb{font-size:12px!important}.woocommerce div.product .woocommerce-tabs .panel iframe{max-width:100%;aspect-ratio:16/9;height:auto}.woocommerce-tabs img{margin:10px 0}.woocommerce div.product .woocommerce-tabs .panel{line-height:1.8}.woocommerce img{max-width:100%}.entry-content table{width:100%;overflow-wrap:anywhere}.entry-content a{overflow-wrap:anywhere}@media(min-width:1100px){.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:850px){.wrap{width:calc(100% - 36px)}.category-grid,.svaritanum-products{grid-template-columns:repeat(2,minmax(0,1fr))}.home-story{grid-template-columns:1fr;gap:15px}.main-nav{gap:15px}.header-meta .eyebrow{display:none}.intro{padding-top:40px}}@media(max-width:520px){.category-grid,.svaritanum-products{grid-template-columns:1fr}.header-meta{font-size:12px}.brand{font-size:23px}.brand small{font-size:8px;letter-spacing:2px}.header-top{gap:12px}.category-tile img{height:260px}.main-nav{font-size:12px;gap:10px 17px}.footer-row{flex-direction:column}.home-story{margin-top:40px}.intro p{font-size:16px}}

.catalog-controls{display:flow-root;margin-bottom:24px}.catalog-controls .woocommerce-ordering{max-width:100%}.catalog-controls select{max-width:100%}

/* Keep monetary amounts intact and reserve room for the classic cart controls. */
.woocommerce-cart .woocommerce-Price-amount{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.woocommerce-cart table.cart .product-price,.woocommerce-cart table.cart .product-subtotal,.woocommerce-cart table.cart .product-quantity{overflow-wrap:normal;word-break:normal}
@media(min-width:769px){
    .woocommerce-cart table.cart .product-price,.woocommerce-cart table.cart .product-subtotal{width:9rem;min-width:9rem;white-space:nowrap}
    .woocommerce-cart table.cart .product-quantity{width:7rem;min-width:7rem;white-space:nowrap}
    .woocommerce-cart table.cart .quantity .qty{width:4.5rem;max-width:100%}
}

.catalog-navigation{margin:12px 0 14px}
.catalog-navigation>h2{font-size:22px;margin:0 0 8px}
.catalog-navigation .category-grid-text{gap:6px 10px}
.catalog-navigation .category-grid-text .category-caption{height:100%;min-height:34px;padding:5px 14px;font-size:18px;line-height:1.3;gap:10px}
.category-grid-text .category-caption>span{font-size:18px}
.category-grid-text .category-caption>span{flex-shrink:0}
.category-grid-text .category-tile:hover .category-caption{color:var(--accent)}
.category-grid-text .category-tile:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:520px){.catalog-navigation .category-grid-text .category-caption{min-height:44px;padding-block:8px}}

.brand{display:inline-flex;align-items:center;gap:16px;min-width:0}
.brand-logo{display:block;height:72px;width:auto;max-width:100px;object-fit:contain;flex-shrink:0}
.brand-name{display:block;white-space:nowrap}
@media(max-width:520px){
    .header-top{flex-wrap:wrap}
    .brand{gap:10px;font-size:clamp(27px,8.8vw,33px);letter-spacing:2px}
    .brand small{font-size:clamp(10px,3.2vw,12px)}
    .brand-logo{height:52px;max-width:72px}
}

/* One shared contact group, outside page content and above the copyright footer. */
.footer-contact{margin-top:48px;margin-bottom:0}
.footer-contact .home-contact{margin:0;padding:clamp(28px,4vw,48px);background:#e7ece5;text-align:center}
.footer-contact .eyebrow{margin:0 0 10px;line-height:1.6}
.footer-contact h2{font-size:clamp(30px,3.4vw,44px);margin:8px 0 24px}
.footer-contact p{line-height:1.75}
.footer-contact .home-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:26px 0 0}
.footer-contact .wp-block-button__link{display:inline-block;padding:12px 18px;border:1px solid var(--ink);border-radius:0;background:var(--ink);color:var(--white);font:500 14px/1.5 var(--font-body);text-decoration:none}
.footer-contact .wp-block-button__link:hover{background:var(--accent);border-color:var(--accent);color:var(--white)}
.footer-contact a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:520px){
    .footer-contact{margin-top:32px}
    .footer-contact .home-actions{flex-direction:column;align-items:stretch}
    .footer-contact .wp-block-button__link{width:100%;text-align:center}
}

/* Each visual row shares its image, title, price, summary and action tracks. */
.footer-row{flex-wrap:wrap;align-items:center}
.site-footer .svaritanum-cookie-settings{padding:0;border:0;background:transparent;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.site-footer .svaritanum-cookie-settings:focus-visible{outline:2px solid currentColor;outline-offset:5px}
.instrument-card{display:flex;flex-direction:column;min-width:0}
.instrument-copy{display:flex;flex:1;flex-direction:column;min-width:0}
.instrument-details{margin-top:auto}
.instrument-summary{overflow-wrap:anywhere}
@supports(grid-template-rows:subgrid){
    .instrument-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:0}
    .instrument-image{grid-row:1}
    .instrument-copy{display:contents}
    .instrument-copy h2{grid-row:2;margin:0;padding:22px 22px 14px}
    .instrument-copy .price{grid-row:3;margin:0;padding:0 22px 14px}
    .instrument-summary{grid-row:4;padding:0 22px 20px}
    .instrument-summary>:last-child{margin-bottom:0}
    .instrument-details{grid-row:5;align-self:end;margin:0 22px 22px}
}
