/*
Theme Name: MALO v6
Author: MALO
Version: 6.0
Description: Minimal editorial WooCommerce storefront for MALO.
Text Domain: malo-v6
*/

:root{
  --bg:#f7f2eb;
  --bg-soft:#fbf8f4;
  --text:#1f1a17;
  --muted:#75685e;
  --line:#ddd2c5;
  --max:1440px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Cormorant Garamond", Georgia, serif;
  line-height:1.35;
  -webkit-font-smoothing:antialiased;
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
  text-decoration:none;
}

.site-shell{
  min-height:100vh;
}

.container{
  width:min(calc(100% - 40px), var(--max));
  margin:0 auto;
}

/* Header */

.topbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:100;
  background:rgba(247,242,235,.78);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(221,210,197,.55);
}

.nav{
  min-height:64px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:20px;
}

.nav-left,
.nav-right,
.mini-label,
.footer-bar,
.footer-links-inline,
.product-meta,
.product-link,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce div.product form.cart,
button,
input,
select,
textarea{
  font-family:"Manrope", Arial, sans-serif;
}

.nav-left,
.nav-right{
  display:flex;
  align-items:center;
  gap:22px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.nav-right{
  justify-content:flex-end;
}

.brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.brand img{
  width:34px;
  height:34px;
  object-fit:contain;
}

.brand-word{
  font-size:28px;
  line-height:1;
  letter-spacing:.14em;
  text-transform:uppercase;
}

/* Homepage */

.home-hero,
.home-hero-aulde,
.home-hero-minimal{
  padding:0;
}

.hero-frame{
  width:100%;
  overflow:hidden;
  background:#e8ded2;
}

.hero-frame img{
  width:100%;
  height:100vh;
  object-fit:cover;
}

main{
  padding-top:64px;
}

/* Generic sections */

.section{
  padding:28px 0 34px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:22px;
  border-bottom:1px solid var(--line);
}

.section-head h1,
.section-head h2{
  margin:0;
  font-size:34px;
  font-weight:500;
  line-height:1;
}

.mini-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.narrow-copy{
  max-width:760px;
}

.story-body p{
  margin:0 0 22px;
  font-size:24px;
  line-height:1.45;
}

/* Product grids */

.products{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:30px 22px;
}

.product-card{
  display:block;
}

.product-image{
  aspect-ratio:4 / 5;
  overflow:hidden;
  background:#e8ded2;
  margin-bottom:12px;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}

.product-card:hover .product-image img{
  transform:scale(1.015);
}

.product-title{
  margin:0 0 4px;
  font-size:30px;
  font-weight:500;
  line-height:1.05;
}

.product-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:13px;
}

.product-link{
  display:inline-block;
  margin-top:8px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
}

.empty-state{
  padding:24px;
  border:1px solid var(--line);
  background:var(--bg-soft);
}

/* Footer */

.footer{
  padding:18px 0 24px;
  margin-top:0;
  border-top:1px solid var(--line);
}

.footer-minimal{
  margin-top:0;
}

.footer-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:var(--muted);
}

.footer-links-inline{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Single product */

.single-shell{
  padding-top:24px;
  padding-bottom:60px;
}

.single-product .product{
  padding-top:6px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary{
  width:48% !important;
}

.woocommerce div.product div.images img{
  width:100%;
  height:auto;
}

.woocommerce div.product .product_title{
  font-size:44px;
  font-weight:500;
  line-height:1;
  margin-bottom:12px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:var(--muted) !important;
  font-size:14px !important;
}

.single-product .single_add_to_cart_button{
  background:var(--text) !important;
  color:var(--bg) !important;
  border-radius:0 !important;
  border:none !important;
  padding:14px 22px !important;
  text-transform:uppercase;
  letter-spacing:.11em;
  font-size:11px !important;
}

/* Archive / Woo cleanup */

.archive-shell .woocommerce-products-header{
  display:none !important;
}

.woocommerce-notices-wrapper,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-tabs,
.related.products,
.up-sells,
.woocommerce div.product .product_meta,
.widget_shopping_cart,
.cart-contents-count{
  display:none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:30px 22px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  width:auto !important;
  margin:0 !important;
  float:none !important;
}

.woocommerce ul.products li.product a img{
  margin:0 0 12px !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:"Cormorant Garamond", Georgia, serif;
  font-size:30px !important;
  font-weight:500;
  line-height:1.05;
  padding:0 !important;
  color:var(--text);
}

.woocommerce ul.products li.product .price{
  color:var(--muted) !important;
  font-size:13px !important;
}

/* Forms */

input,
select,
textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text);
  outline:none;
}

button{
  cursor:pointer;
}

/* Responsive */

@media (max-width: 980px){
  .nav{
    grid-template-columns:1fr;
    gap:10px;
    padding:12px 0;
  }

  .nav-left,
  .nav-right{
    justify-content:center;
    flex-wrap:wrap;
  }

  .brand{
    order:-1;
  }

  main{
    padding-top:96px;
  }

  .hero-frame img{
    height:72vh;
  }

  .products,
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:1fr 1fr !important;
  }

  .woocommerce div.product div.images,
  .woocommerce div.product div.summary{
    width:100% !important;
    float:none !important;
  }

  .footer-bar{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 720px){
  .container{
    width:min(calc(100% - 22px), var(--max));
  }

  .brand-word{
    font-size:24px;
  }

  .hero-frame img{
    height:62vh;
  }

  .section{
    padding:22px 0 28px;
  }

  .section-head h1,
  .section-head h2{
    font-size:28px;
  }

  .products,
  .woocommerce ul.products,
  .woocommerce-page ul.products{
    grid-template-columns:1fr !important;
    gap:22px;
  }

  .product-title,
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size:28px !important;
  }

  .story-body p{
    font-size:21px;
  }

  .footer-links-inline{
    flex-wrap:wrap;
    gap:12px;
  }
}