/*
 * AudioTools.vip — UI fixes (owner-requested)
 * Header search alignment, product/checkout padding, category icons,
 * and general spacing polish across shop, cart, account and blog.
 */

/* ---------- Header search alignment ---------- */
.at-search__input{
  flex:0 1 260px;
  min-width:0;
  max-width:100%;
  margin:0 14px;
  align-self:center;
  height:44px;
  padding:0 18px 0 42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a89dc4' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center;
  color:#fff;
  font-size:14px;
}
.at-search__input::placeholder{color:#a89dc4;}
.at-search__input:focus{outline:none;border-color:#c026d3;background-color:rgba(255,255,255,.1);}
/* Keep search from colliding with Account / Cart in the flex header */
nav .at-search__input{flex-shrink:1;}
@media(max-width:1100px){
  .at-search__input{flex-basis:180px;margin:0 8px;}
}
@media(max-width:860px){
  .at-search__input{display:none;}
}

/* ---------- Single product page: padding & alignment ---------- */
.single-product .product{
  padding:24px 0;
}
.single-product div.product div.summary{
  padding:8px 8px 8px 12px;
}
.single-product div.product .woocommerce-product-gallery{
  padding:8px;
}
.single-product .woocommerce-tabs{
  margin-top:32px;
  padding:28px;
  border:1px solid #ece8f8;
  border-radius:20px;
  background:#fff;
}
.single-product .woocommerce-tabs .panel{
  padding:8px 4px 4px;
  margin-bottom:0;
}
.single-product .woocommerce-tabs .panel > *:last-child{margin-bottom:0;}
.single-product .related.products,
.single-product .up-sells.products{
  margin-top:48px;
  padding-top:8px;
}
.single-product .product_meta{
  padding-top:16px;
  margin-top:16px;
  border-top:1px solid #f0ecfa;
  display:flex;
  flex-direction:column;
  gap:6px;
}
/* Price / title / button rhythm */
.single-product div.product p.price{
  margin:14px 0 18px;
}
.single-product div.product form.cart{
  margin:20px 0;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:stretch;
}
.single-product div.product .woocommerce-product-details__short-description{
  margin-bottom:8px;
}

/* ---------- Category icons: small and clean (38px) ---------- */
.product-category img,
li.product-category img,
.woocommerce-loop-category__title img,
.widget_product_categories img,
.at-cat-ico{
  width:38px !important;
  height:38px !important;
  min-width:38px;
  object-fit:contain;
  border-radius:10px;
}
li.product-category{
  text-align:center;
}
li.product-category .woocommerce-loop-category__title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 8px;
  font-size:15px;
}

/* ---------- Shop / archives: card padding & alignment ---------- */
.woocommerce ul.products li.product{
  padding:18px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  padding:0;
  margin:10px 0 6px;
}
.woocommerce ul.products li.product .price{
  margin:0 0 12px;
}
.woocommerce ul.products li.product .button{
  margin-top:auto;
  align-self:flex-start;
}
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  margin-bottom:20px;
}

/* ---------- Cart ---------- */
.woocommerce table.shop_table{
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #ece8f8;
  border-radius:18px;
  overflow:hidden;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td{
  padding:16px 18px;
}
.woocommerce .cart_totals{
  padding:24px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fbfaff;
}
.woocommerce .cart_totals h2{
  margin-bottom:16px;
}

/* ---------- Checkout (local styles only; redirect untouched) ---------- */
.woocommerce-checkout .col2-set{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2{
  float:none;
  width:auto;
  padding:26px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fff;
}
.woocommerce-checkout #order_review{
  padding:26px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fbfaff;
  margin-top:28px;
}
.woocommerce-checkout .form-row{
  margin-bottom:16px;
}
@media(max-width:860px){
  .woocommerce-checkout .col2-set{grid-template-columns:1fr;}
}

/* ---------- Account ---------- */
.woocommerce-account .woocommerce-MyAccount-navigation{
  padding:20px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:block;
  padding:10px 14px;
  border-radius:10px;
}
.woocommerce-account .woocommerce-MyAccount-content{
  padding:26px;
  border:1px solid #ece8f8;
  border-radius:18px;
  background:#fff;
}
.woocommerce-account .woocommerce-MyAccount-content > *:last-child{margin-bottom:0;}

/* ---------- Blog ---------- */
.blog article.post,
.archive article.post,
.search article.post{
  padding:28px;
  border:1px solid #ece8f8;
  border-radius:20px;
  background:#fff;
  margin-bottom:24px;
}
.single-post article.post{
  padding:12px 4px;
}
.single-post .entry-content > *:last-child{margin-bottom:0;}

/* ---------- Generic: keep text off borders ---------- */
.woocommerce div.product div.images img{
  border-radius:16px;
}
@media(max-width:640px){
  .single-product .woocommerce-tabs{padding:20px 16px;}
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td{padding:12px;}
  .woocommerce-account .woocommerce-MyAccount-content{padding:20px 16px;}
  .blog article.post,.archive article.post{padding:20px 16px;}
}

/* ---------- Header search: strong alignment override ---------- */
.at-search__input{
  width:220px !important;
  max-width:220px !important;
  flex:0 0 auto !important;
  margin:0 12px 0 0 !important;
  align-self:center !important;
  box-sizing:border-box !important;
}
@media(max-width:1100px){
  .at-search__input{width:160px !important;max-width:160px !important;}
}
/* Header structural fix: at-nav__tools flex wrapper */.at-nav__tools{display:flex;align-items:center;min-width:0;}.at-nav__tools .at-search{flex:1 1 auto;min-width:0;margin:0;}.at-nav__inner>.at-nav__center{display:flex;align-items:center;min-width:0;}.at-nav__inner>.at-nav__actions{flex-shrink:0;}@media(max-width:860px){.at-nav__tools .at-search{display:none;}}.at-nav__inner{grid-template-columns:auto 1fr auto auto!important;}.at-nav__inner>.at-nav__center{display:flex!important;align-items:center!important;min-width:0!important;}.at-nav__inner>.at-nav__center>.at-search{flex:0 1 300px!important;min-width:0!important;margin-left:auto!important;}.at-nav__inner>.at-nav__actions{flex-shrink:0!important;}