/*
Theme Name: Tandem Webshop
Theme URI: https://www.tandemkonyvesbolt.hu/
Author: Tandem Könyvesbolt és Kávézó
Description: Egyedi, letisztult WooCommerce webshop-sablon a Tandem Könyvesbolt számára.
Version: 1.0.0
Text Domain: tandem-webshop
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
*/
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');
:root{--t-black:#111;--t-cream:#f4eee2;--t-cream-2:#eee5d6;--t-muted:#777;--t-line:#171717;--t-max:1280px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#fff;color:var(--t-black);font-family:'Lato',Arial,sans-serif;font-size:16px;line-height:1.5}body,button,input,select,textarea{font-family:'Lato',Arial,sans-serif}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select{font:inherit}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Header */
.tandem-header{max-width:var(--t-max);margin:0 auto;padding:10px 24px 0;background:#fff;position:relative}
.tandem-logo-row{height:190px;display:flex;align-items:center;justify-content:center}
.tandem-logo{display:flex;justify-content:center;align-items:center}
.tandem-logo img{display:block;width:330px;height:175px;object-fit:contain}
.tandem-header__rule{height:1px;background:#111;margin:0}
.tandem-nav-row{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.tandem-header__left,.tandem-header__right{display:flex;align-items:center;gap:28px}
.tandem-header__right{justify-content:flex-end;margin-left:auto}
.tandem-nav-link{font-size:16px;font-weight:700;white-space:nowrap;letter-spacing:.02em}
.tandem-nav-link:hover{opacity:.6}
.tandem-cat-toggle{display:inline-flex;align-items:center;gap:12px;border:1px solid var(--t-line);background:#fff;color:#111;padding:12px 18px;cursor:pointer;font-weight:700;border-radius:0}
.tandem-cat-toggle svg{width:15px;height:15px}
.tandem-search{display:flex;align-items:center;width:300px;height:44px;border:1px solid var(--t-line);border-radius:0;padding:0 14px 0 17px;background:#fff}
.tandem-search input{width:100%;border:0;outline:0;background:transparent;font-size:15px}
.tandem-search input::placeholder{color:#777}
.tandem-search button{border:0;background:transparent;padding:0;display:flex;cursor:pointer}
.tandem-search svg{width:21px;height:21px}
.tandem-icon-link{position:relative;display:flex;align-items:center;justify-content:center;width:31px;height:31px}
.tandem-icon-link svg{width:27px;height:27px}
.tandem-cart-count{position:absolute;right:-7px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:0;background:#111;color:#fff;font-size:11px;line-height:20px;text-align:center;font-weight:700}
.tandem-category-menu{display:none;position:absolute;z-index:50;left:24px;top:285px;min-width:250px;padding:12px;background:#fff;border:1px solid #111;box-shadow:8px 8px 0 rgba(17,17,17,.07)}
.tandem-category-menu.is-open{display:block}
.tandem-category-menu a{display:block;padding:10px 12px;font-weight:700}
.tandem-category-menu a:hover{background:var(--t-cream)}

/* Shop category shortcuts */
.tandem-shop-shortcuts{max-width:1100px;margin:0 auto;padding:28px 24px 8px;display:grid;grid-template-columns:repeat(3,1fr);align-items:start;gap:0}.tandem-shortcut{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:170px;padding:0 30px}.tandem-shortcut+.tandem-shortcut{border-left:1px solid #111}.tandem-shortcut img{width:118px;height:90px;object-fit:contain;margin-bottom:4px}.tandem-shortcut span{font-size:23px;font-weight:900;letter-spacing:.02em}.tandem-shortcut:hover span{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
/* Main */
.tandem-main{max-width:var(--t-max);margin:0 auto;padding:0 24px 80px}.woocommerce-products-header__title,.tandem-shop-heading h1{display:none}.tandem-shop-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;border-bottom:1px solid #111;padding:18px 0 14px;margin-bottom:28px}.tandem-result-count{font-size:15px;color:#444;margin-top:10px}.tandem-ordering select{border:1px solid #111;background:#fff;border-radius:0;padding:11px 40px 11px 13px;min-width:220px;color:#111}
/* WooCommerce grid */
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:52px 34px;margin:0!important;padding:0!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:0!important;position:relative}.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block}.woocommerce ul.products li.product a img{width:100%;height:auto;aspect-ratio:1/1.18;object-fit:contain;background:#fafafa;margin:0 0 16px!important;display:block}.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0!important;margin:0!important;font-size:18px;line-height:1.28;font-weight:700;min-height:47px}.woocommerce ul.products li.product .price{display:block;color:#8d7b00!important;font-size:17px;font-weight:700;margin:10px 0 14px!important}.woocommerce ul.products li.product .button{display:block!important;width:100%;margin:0!important;padding:13px 12px!important;background:var(--t-cream)!important;color:#111!important;border:0!important;border-radius:0!important;text-align:center;font-size:14px!important;font-weight:900!important;letter-spacing:.04em;text-transform:uppercase;transition:background .15s ease}.woocommerce ul.products li.product .button:hover{background:var(--t-cream-2)!important}.woocommerce ul.products li.product .onsale{background:#111;color:#fff;border-radius:0;min-height:auto;min-width:auto;padding:7px 10px;font-size:12px;font-weight:700;top:12px;right:12px;margin:0}.woocommerce .woocommerce-pagination{margin-top:50px}.woocommerce .woocommerce-pagination ul.page-numbers{border:0!important}.woocommerce .woocommerce-pagination ul.page-numbers li{border:0!important}.woocommerce .woocommerce-pagination a.page-numbers,.woocommerce .woocommerce-pagination span.page-numbers{border:1px solid #111!important;padding:8px 12px!important;margin:0 3px!important}
/* Product page */
.woocommerce div.product{max-width:1200px;margin:60px auto}.woocommerce div.product div.images{width:52%}.woocommerce div.product div.summary{width:43%}.woocommerce div.product .product_title{font-size:43px;line-height:1.08;font-weight:900}.woocommerce div.product p.price,.woocommerce div.product span.price{color:#8d7b00;font-weight:700;font-size:23px}.woocommerce div.product .woocommerce-product-details__short-description{font-size:17px;line-height:1.65}.woocommerce div.product .quantity .qty{height:45px;border:1px solid #111;padding:0 10px}.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{border-radius:0;background:#111;color:#fff;font-weight:900;padding:13px 22px}.woocommerce button.button:hover,.woocommerce a.button:hover,.woocommerce input.button:hover{background:#333;color:#fff}.woocommerce div.product .product_meta{border-top:1px solid #ddd;padding-top:15px;color:#666}.woocommerce div.product .woocommerce-tabs{margin-top:60px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0!important}.woocommerce div.product .woocommerce-tabs ul.tabs:before{border-bottom:1px solid #111!important}.woocommerce div.product .woocommerce-tabs ul.tabs li{border:0!important;background:#fff!important;border-radius:0!important;padding:0 20px 12px!important}.woocommerce div.product .woocommerce-tabs ul.tabs li.active{border-bottom:2px solid #111!important}
/* Cart / checkout / account */
.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce,.woocommerce-account .woocommerce{max-width:1200px;margin:55px auto 80px}.woocommerce table.shop_table{border-collapse:collapse;border-radius:0;border:1px solid #ddd}.woocommerce table.shop_table th{font-weight:900}.woocommerce table.shop_table td,.woocommerce table.shop_table th{padding:15px}.woocommerce .cart_totals h2,.woocommerce-checkout h3{font-weight:900}.woocommerce .select2-container .select2-selection--single,.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid #111;border-radius:0;padding:11px;background:#fff;min-height:44px}.woocommerce-message,.woocommerce-info,.woocommerce-error{border-top-color:#111!important}.woocommerce-message a.button,.woocommerce-info a.button{background:#111!important;color:#fff!important}
/* Footer */
.tandem-footer{border-top:1px solid #111;margin-top:20px;padding:34px;text-align:center;font-size:13px;color:#666}.tandem-footer a{text-decoration:underline;text-underline-offset:3px}
/* Generic WP pages */
.tandem-content{max-width:1100px;margin:60px auto;padding:0 34px}.tandem-content h1,.tandem-content h2{font-weight:900}.tandem-content img{max-width:100%}
@media(max-width:1200px){.tandem-logo-row{height:170px}.tandem-logo img{width:300px;height:155px}.tandem-nav-row{gap:18px}.tandem-header__left,.tandem-header__right{gap:18px}.tandem-nav-link{font-size:14px}.tandem-search{width:250px}.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){.tandem-header{padding:8px 18px 0}.tandem-logo-row{height:150px}.tandem-logo img{width:270px;height:135px}.tandem-nav-row{min-height:0;padding:18px 0;flex-direction:column;align-items:stretch}.tandem-header__left,.tandem-header__right{justify-content:center;flex-wrap:wrap}.tandem-search{width:min(360px,70vw)}.tandem-category-menu{position:fixed;left:18px;right:18px;top:170px}.tandem-shop-shortcuts{padding-top:20px}.tandem-shortcut{min-height:145px}.tandem-shortcut img{width:100px;height:75px}.tandem-shortcut span{font-size:19px}.tandem-main{padding:0 18px 60px}.tandem-shop-heading h1{font-size:42px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:34px 18px}.woocommerce div.product div.images,.woocommerce div.product div.summary{width:100%;float:none}.woocommerce div.product .product_title{font-size:36px}}
@media(max-width:560px){.tandem-logo-row{height:125px}.tandem-logo img{width:230px;height:115px}.tandem-nav-link{font-size:13px}.tandem-cat-toggle{padding:10px 14px}.tandem-search{width:100%}.tandem-shop-shortcuts{grid-template-columns:repeat(3,1fr);padding-left:0;padding-right:0}.tandem-shortcut{min-height:125px;padding:0 4px}.tandem-shortcut img{width:78px;height:62px}.tandem-shortcut span{font-size:14px;text-align:center}.tandem-main{padding-left:14px;padding-right:14px}.tandem-shop-heading{align-items:flex-start;flex-direction:column;gap:12px}.tandem-shop-heading h1{font-size:36px}.tandem-ordering{width:100%}.tandem-ordering select{width:100%}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 12px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px;min-height:0}.woocommerce ul.products li.product .price{font-size:15px}.woocommerce ul.products li.product .button{font-size:12px;padding:11px 6px}.woocommerce div.product{margin:35px auto}.woocommerce div.product .product_title{font-size:31px}}

/* 1.2 refinements */
:root{--t-max:1160px}
body{font-weight:300}
.tandem-header{max-width:1160px;padding:8px 0 0}
.tandem-logo-row{height:225px}
.tandem-logo img{width:420px;height:220px}
.tandem-header__rule{background:#111}
.tandem-nav-row{min-height:72px;padding:0;gap:22px}
.tandem-header__left,.tandem-header__right{gap:22px}
.tandem-nav-link{font-size:14px;font-weight:300;letter-spacing:.04em}
.tandem-cat-toggle{padding:8px 12px;font-size:12px;font-weight:300;letter-spacing:.03em}
.tandem-cat-toggle svg{width:13px;height:13px}
.tandem-search{width:38px;height:38px;border:0;padding:0;overflow:hidden;transition:width .22s ease,border-color .22s ease,padding .22s ease}
.tandem-search input{width:0;opacity:0;padding:0;transition:width .22s ease,opacity .18s ease}
.tandem-search button{width:38px;height:38px;flex:0 0 38px;align-items:center;justify-content:center}
.tandem-search svg{width:22px;height:22px}
.tandem-search:hover,.tandem-search:focus-within{width:260px;border:1px solid #111;padding:0 10px}
.tandem-search:hover input,.tandem-search:focus-within input{width:100%;opacity:1;padding:0 6px}
.tandem-icon-link{width:29px;height:29px}
.tandem-icon-link svg{width:23px;height:23px}
.tandem-cart-count{right:-8px;top:-8px;min-width:16px;height:16px;line-height:16px;padding:0 4px;border-radius:0;font-size:9px;font-weight:300}
.tandem-category-menu{top:258px;left:0;min-width:220px}
.tandem-shop-shortcuts{max-width:850px;padding:34px 0 12px;grid-template-columns:repeat(3,1fr)}
.tandem-shortcut{min-height:145px;padding:0 20px}
.tandem-shortcut img{width:78px;height:72px;object-fit:contain;margin-bottom:16px}
.tandem-shortcut span{font-size:12px;font-weight:300;letter-spacing:.06em;line-height:1.2}
.tandem-shortcut+.tandem-shortcut{border-left:1px solid #111}
.tandem-main{max-width:1160px;padding:0 0 70px}
.tandem-shop-heading{border-bottom:0;padding:0;margin:10px 0 22px;align-items:flex-end}
.tandem-shop-heading h1{display:none}
.tandem-result-count{font-size:11px;font-weight:300;letter-spacing:.04em;margin:0}
.tandem-ordering select{font-size:11px;font-weight:300;padding:8px 34px 8px 10px;min-width:180px}
.tandem-back{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:300;letter-spacing:.04em;margin:0 0 18px;text-transform:uppercase}
.tandem-back svg{width:15px;height:15px}
.tandem-shop-category-label{font-size:11px;font-weight:300;letter-spacing:.12em;text-transform:uppercase;margin:0 0 9px}
.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:42px 28px}
.woocommerce ul.products li.product a img{height:auto;aspect-ratio:1.15/1;object-fit:cover;background:#fafafa;margin:0 0 12px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px;line-height:1.3;font-weight:300;min-height:40px}
.woocommerce ul.products li.product .price{font-size:14px;font-weight:300;margin:7px 0 11px!important;color:#111!important}
.woocommerce ul.products li.product .button{font-size:11px!important;font-weight:300!important;letter-spacing:.08em;padding:10px 9px!important}
.woocommerce ul.products li.product .onsale{font-weight:300;font-size:10px}
.woocommerce .woocommerce-pagination{margin-top:42px}
.woocommerce div.product .product_title{font-weight:300}
.woocommerce button.button,.woocommerce a.button,.woocommerce input.button{font-weight:300}
@media(max-width:1200px){.tandem-header,.tandem-main{max-width:calc(100% - 48px)}.tandem-logo-row{height:200px}.tandem-logo img{width:380px;height:195px}}
@media(max-width:900px){.tandem-header,.tandem-main{max-width:calc(100% - 36px)}.tandem-nav-row{flex-wrap:wrap;min-height:72px}.tandem-header__left,.tandem-header__right{gap:15px}.tandem-search:hover,.tandem-search:focus-within{width:220px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.tandem-header,.tandem-main{max-width:calc(100% - 28px)}.tandem-logo-row{height:150px}.tandem-logo img{width:290px;height:145px}.tandem-nav-row{align-items:center}.tandem-header__left{width:100%;justify-content:flex-start;flex-wrap:wrap}.tandem-header__right{margin-left:0}.tandem-search:hover,.tandem-search:focus-within{width:190px}.tandem-shop-shortcuts{max-width:100%;padding-top:22px}.tandem-shortcut{padding:0 6px;min-height:105px}.tandem-shortcut img{width:62px;height:52px}.tandem-shortcut span{font-size:11px}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 14px}}

/* 1.5 shop spacing and product proportions */
.tandem-main{max-width:1060px!important;padding-left:0!important;padding-right:0!important}
.tandem-shop-heading{max-width:1000px;margin:8px auto 14px!important}
.tandem-back{max-width:1000px;margin:0 auto 14px!important}
.tandem-shop-category-label{max-width:1000px;margin:0 auto 10px!important;font-size:12px!important;font-weight:300!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.woocommerce ul.products{max-width:1000px;margin-left:auto!important;margin-right:auto!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:38px 28px!important}
.woocommerce ul.products li.product a img{width:100%!important;aspect-ratio:4/5!important;height:auto!important;object-fit:cover!important;background:#fafafa!important;margin:0 0 12px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:300!important;line-height:1.3!important;min-height:36px!important}
.woocommerce ul.products li.product .price{font-size:13px!important;font-weight:300!important;margin:6px 0 10px!important}
@media(max-width:1200px){.tandem-main{max-width:calc(100% - 72px)!important}.woocommerce ul.products{max-width:100%!important}}
@media(max-width:900px){.tandem-main{max-width:calc(100% - 36px)!important}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.tandem-main{max-width:calc(100% - 28px)!important}.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 14px!important}.tandem-shop-category-label,.tandem-back,.tandem-shop-heading{max-width:100%!important}}
