/*
Theme Name: Frigonave Store Theme
Version: 1.3.1
*/
:root{
  --primary:#982624;
  --primary-dark:#a10000;
  --price-old:#3f3d3d;
  --bg:#f5f5f5;
  --text:#222;
  --muted:#666;
  --card:#fff;
  --border:#e7e7e7;
  --shadow:0 8px 28px rgba(0,0,0,.08);
  --hero-bg-color:#9d1117;
  --hero-overlay:rgba(123,10,15,.65);
  --footer-bg-color:#e8dfd3;
  --social-icon-color:#d00000;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
button,input,textarea{font:inherit}
.site-wrap{min-height:100vh;display:flex;flex-direction:column}
.site-main{flex:1}
.container{width:min(1280px,calc(100% - 32px));margin:0 auto}

.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}
.header-top{display:flex; align-items:center;gap:28px;min-height:100px;padding:10px 0; justify-content:space-between; flex-wrap:wrap;}
.site-branding{justify-self:start}
.site-branding img{height:78px;width:auto}
.header-search-wrap{display:flex;justify-content:center; width:50%;}
.header-search-wrap-mobile{display:none;justify-content:center}
.header-search-form{position:relative;display:flex;align-items:center;width:min(100%,430px)}
.header-search-form input{width:100%;height:46px;border:1px solid #d7d7d7;border-radius:10px;padding:0 52px 0 16px;background:#fff;color:#333}
.header-search-form button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:none;background:transparent;color:var(--primary);font-size:24px;cursor:pointer;line-height:1}
.header-right{display:flex;align-items:center;gap:14px;justify-self:end}
.header-socials{display:flex;align-items:center;gap:10px}
.header-social,.footer-social{width:40px;height:40px;border-radius:999px;background:#f5f5f5;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 4px 10px rgba(0,0,0,.06);color:var(--social-icon-color)}
.header-social svg,.footer-social svg{width:20px;height:20px;fill:currentColor}
.menu-principal{ background-color: #f4f4f4; }
.top-cart-button,.mobile-cart-button{display:inline-flex;align-items:center;gap:10px;border:none;border-radius:999px;padding:12px 18px;font-weight:800;cursor:pointer;color:#fff;background:var(--primary)}
.top-cart-button.is-empty,.mobile-cart-button.is-empty{background:#9d9d9d}
.cart-badge{min-width:26px;height:26px;padding:0 8px;border-radius:999px;background:#fff;color:var(--primary);display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}
.menu-toggle{display:none;border:none;background:#f3f3f3;width:44px;height:44px;border-radius:12px;cursor:pointer;font-size:22px}
.nav-row{padding:10px 0 10px 0;}
.primary-nav{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.primary-nav a{display:inline-flex;align-items:center;justify-content:center;background:var(--primary);color:#fff;font-weight:700;font-size:15px;padding:11px 18px;border-radius:999px}
.primary-nav a:hover{background:var(--primary-dark)}

.page-hero{position:relative;color:#fff;text-align:center;overflow:hidden;background-color:var(--hero-bg-color);background-position:center;background-size:cover;background-repeat:no-repeat}
.page-hero.has-image:before{content:"";position:absolute;inset:0;background:var(--hero-overlay)}
.page-hero .container{position:relative;z-index:1;padding:40px 0}
.page-hero h1{margin:0 0 8px;font-size:clamp(28px,5vw,44px)}
.page-hero p{margin:0;color:rgba(255,255,255,.92);font-size:18px}

.products-section{padding:28px 0 40px}
.archive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.archive-results{font-weight:700;color:#555}
.products-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.product-card{background:var(--card);border-radius:22px;overflow:hidden;box-shadow:var(--shadow);transition:.18s}
.product-card:hover{transform:translateY(-6px)}
.product-thumb{aspect-ratio:4/3;background:#eee}
.product-thumb img{width:100%;height:100%;object-fit:cover}
.product-body{padding:16px 16px 18px}
.product-title{margin:0 0 8px;font-size:19px;line-height:1.25}
.product-title a:hover{color:var(--primary)}
.product-price{font-size:22px;font-weight:800;color:var(--primary);margin-bottom:12px}
.price-old{font-size:16px;font-weight:300;color:var(--price-old);margin-bottom:12px}
.purchase-ui{display:flex; ;gap:12px}
.qty-row{display:flex;align-items:center;gap:10px}
.qty-box{display:flex;align-items:center;gap:8px;background:#f7f7f7;border:1px solid var(--border);border-radius:999px;padding:6px}
.qty-box button{border:none;background:#fff;width:30px;height:30px;border-radius:999px;font-size:12px;cursor:pointer}
.qty-box input{width:40px;text-align:center;border:none;background:transparent;outline:none;font-weight:700}
.qty-unit{color:var(--muted);font-weight:700;font-size:14px}
.add-to-cart-btn{border:none;border-radius:14px;background:linear-gradient(180deg,#e53935,var(--primary));color:#fff;min-height:48px;padding:12px 16px;font-weight:800;cursor:pointer;width:110px; font-size:12px;}
.product-unavailable{border:none;border-radius:14px;background:#f4f4f4;color:#000;min-height:48px;padding:12px 16px;font-weight:800;cursor:pointer;width:110px; font-size:10px;}

.single-product-wrap{padding:34px 0 42px}
.single-product-card{display:grid;grid-template-columns:minmax(320px,520px) 1fr;gap:28px;background:#fff;border-radius:24px;padding:24px;box-shadow:var(--shadow);margin-bottom:32px}
.single-product-image{border-radius:22px;overflow:hidden;background:#eee;min-height:320px; position:relative;}
.single-product-image img{width:100%;height:100%;object-fit:cover}
.single-product-title{margin:0 0 12px;font-size:38px;line-height:1.15}
.single-product-price{font-size:34px;font-weight:800;color:var(--primary);margin-bottom:18px}
.single-product-desc{color:#555;line-height:1.7;margin-bottom:20px}
.same-category-title{font-size:28px;margin:0 0 18px}
.same-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}

.category-icons-band{background:var(--primary);color:#fff}
.category-icons-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:22px 0}
.category-icon-card{display:flex;align-items:center;gap:14px;justify-content:center;min-height:72px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.category-icon-emoji{font-size:28px}
.category-icon-label{font-weight:800}
.footer-main,.footer-bottom{background-color:var(--footer-bg-color);background-position:center;background-size:cover;background-repeat:no-repeat}
.footer-main{padding:38px 0}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.3fr;gap:28px}
.footer-logo img{width:160px}
.footer-socials{display:flex;gap:12px;margin-top:16px}
.footer-title{margin:0 0 12px;font-size:20px}
.footer-copy{color:#4f4f4f;line-height:1.6}
.footer-bottom{padding:14px 0;text-align:center;color:#5c5248;font-weight:700}
.footer-bottom a{text-decoration:underline}
.page-content{padding:26px 0 50px;min-height:300px}
.mobile-cart-bar{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #e6e6e6;box-shadow:0 -8px 24px rgba(0,0,0,.1);padding:10px 12px;z-index:120;display:none}
.mobile-cart-bar-inner{width:min(100%,1280px);margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.mobile-cart-summary{font-weight:800}

@media(max-width:1180px){
  .products-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .same-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
  .header-top{grid-template-columns:auto 1fr auto;grid-template-areas:"logo cart menu" "search search search";align-items:center;gap:14px;padding:10px 0}
  .site-branding{grid-area:logo}
  .header-search-wrap{grid-area:search;display:flex;justify-content:stretch}
  .header-search-form{width:100%}
  .header-right{grid-area:cart;gap:10px}
  .header-socials{display:none}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center}
  .nav-row{padding:0 0 10px}
  .primary-nav{display:none;flex-direction:column;align-items:stretch;gap:10px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:14px}
  .primary-nav.is-open{display:flex}
  .primary-nav a{width:100%;justify-content:flex-start}
  .products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .same-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .category-icons-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .single-product-card{grid-template-columns:1fr}
}
@media(max-width:600px){
  .container{width:min(100% - 24px,1280px)}
  .mobile-cart-bar{display:block}
  body{padding-bottom:78px}
  .products-grid{grid-template-columns:1fr;gap:0}
  .product-card{display:grid;grid-template-columns:84px 1fr;gap:12px;border-radius:0;box-shadow:none;background:transparent;padding:14px 0;border-bottom:1px solid #ddd;transform:none !important}
  .product-thumb{aspect-ratio:auto;width:84px;height:84px}
  .product-body{padding:0}
  .product-title{font-size:18px;margin:0 0 6px}
  .product-price{font-size:18px;margin:0 0 10px}
  .purchase-ui{gap:8px}
  .qty-row{gap:8px}
  .qty-box{padding:4px}
  .qty-box button{width:28px;height:28px;font-size:18px;background:#f1f1f1}
  .qty-box input{width:42px;font-size:14px}
  .qty-unit{font-size:12px}
  .add-to-cart-btn{width:auto;min-height:42px;padding:10px 18px;border-radius:999px;align-self:flex-end;font-size:14px}
  .same-category-grid,.category-icons-grid,.footer-grid{grid-template-columns:1fr}
  .single-product-title{font-size:30px}
  .header-right{grid-area:cart;gap:10px; width:50%;}
  .header-search-wrap{display:none;justify-content:center}
  .header-search-wrap-mobile{display:flex; justify-content:center; width:100%;}
  .header-logo{width:130px;}
}


.product-card{position:relative}
.product-flag-sale{
  position:absolute;
  top:16px;
  left:16px;
  z-index:3;
  background:#d00000;
  color:#fff;
  font-weight:800;
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
}
@media(max-width:600px){
  .product-flag-sale{top:8px;left:8px;font-size:11px;padding:6px 8px}
}


.archive-pagination{
  margin-top:32px;
  display:flex;
  justify-content:center;
}

.archive-pagination .page-numbers{
  display:flex;
  align-items:center;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}

.archive-pagination .page-numbers li{
  list-style:none;
}

.archive-pagination .page-numbers a,
.archive-pagination .page-numbers span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  height:44px;
  padding:0 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e7e7e7;
  color:#222;
  font-weight:700;
  box-shadow:0 4px 12px rgba(0,0,0,.05);
  transition:.2s ease;
}

.archive-pagination .page-numbers a:hover{
  background:#d00000;
  border-color:#d00000;
  color:#fff;
}

.archive-pagination .page-numbers .current{
  background:#d00000;
  border-color:#d00000;
  color:#fff;
}

.archive-pagination .page-numbers .dots{
  background:transparent;
  border:none;
  box-shadow:none;
  min-width:auto;
  padding:0 6px;
}

@media (max-width: 600px){
  .archive-pagination{
    margin-top:24px;
  }

  .archive-pagination .page-numbers{
    gap:6px;
    flex-wrap:wrap;
    justify-content:center;
  }

  .archive-pagination .page-numbers a,
  .archive-pagination .page-numbers span{
    min-width:38px;
    height:38px;
    padding:0 12px;
    font-size:14px;
    border-radius:10px;
  }
}

.empty-products-message{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:56px 24px;
  margin-top:18px;
  background:linear-gradient(180deg,#ffffff 0%, #fafafa 100%);
  border:1px solid #ececec;
  border-radius:24px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
}

.empty-products-icon-wrap{
  width:96px;
  height:96px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#fff5f5 0%, #ffeaea 100%);
  border:1px solid #f4d3d3;
  margin-bottom:18px;
}

.empty-products-icon{
  font-size:44px;
  line-height:1;
}

.empty-products-message h3{
  margin:0 0 10px;
  font-size:26px;
  line-height:1.25;
  color:#2b2b2b;
  font-weight:800;
}

.empty-products-message p{
  margin:0;
  max-width:420px;
  font-size:16px;
  line-height:1.6;
  color:#777;
}

@media (max-width: 600px){
  .empty-products-message{
    padding:42px 18px;
    border-radius:20px;
  }

  .empty-products-icon-wrap{
    width:82px;
    height:82px;
    margin-bottom:16px;
  }

  .empty-products-icon{
    font-size:36px;
  }

  .empty-products-message h3{
    font-size:21px;
  }

  .empty-products-message p{
    font-size:14px;
  }
}

