/*
Theme Name: My Loud Family
Theme URI: https://myloudfamily.com
Author: Rob
Description: A rugged, tactical WooCommerce theme built for MyLoudFamily.com (Printful/Print-on-demand ready).
Version: 1.0.0
License: GPLv2 or later
Text Domain: myloudfamily
Tags: e-commerce, custom-background, custom-logo, one-column, two-columns, right-sidebar, block-styles
*/

:root{
  --mlf-bg: #0f0f10;
  --mlf-bg2:#171719;
  --mlf-gold:#b8953b;
  --mlf-gold2:#8a6d28;
  --mlf-text:#f2f2f2;
  --mlf-muted:#c9c9c9;
  --mlf-card:#1f1f22;
  --mlf-line: rgba(184,149,59,.35);
  --mlf-shadow: 0 10px 30px rgba(0,0,0,.45);
  --mlf-radius: 10px;
  --mlf-max: 1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;overflow-x:hidden;}
body{
  margin:0;
  color:var(--mlf-text);
  background: var(--mlf-bg) url(assets/ui/bg-tile.png) repeat;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.5;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%; height:auto}
.container{max-width:var(--mlf-max); margin:0 auto; padding:0 18px}

/* Header */
.mlf-header{
  position:sticky; top:0; z-index:99;
  background:rgba(10,10,11,.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlf-header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 0;
}
.mlf-brand img{position:absolute;height:72px; width:auto; display:block;top:0px;}
.mlf-nav ul{list-style:none; margin:0; padding:0; display:flex; gap:18px; align-items:center; flex-wrap:wrap}
.mlf-nav a{font-weight:700; letter-spacing:.04em; text-transform:uppercase; font-size:13px; color:rgba(255,255,255,.9);font-size:20px;}
.mlf-nav a:hover{color:#777}
.mlf-actions{display:flex; align-items:center; gap:10px}
.mlf-cart a{display:inline-flex; gap:8px; align-items:center; padding:8px 10px; border:1px solid rgba(255,255,255,.12); border-radius:999px; font-weight:700; font-size:12px}
.mlf-cart-count{background:rgba(184,149,59,.18); border:1px solid rgba(184,149,59,.45); padding:2px 8px; border-radius:999px}
/* Hero */
.mlf-hero{
  position:relative;
  padding: 70px 0 40px;
  overflow:hidden;
  display: flex;
}
.mlf-hero::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(80% 120% at 70% 20%, rgba(184,149,59,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.75));
  pointer-events:none;
}
.mlf-hero-inner{
  position:relative;
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap:22px;
  align-items:center;
  height: fit-content;
}
.mlf-hero-logo{/*max-width:560px*/}
.mlf-hero h1{
  margin:14px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing:.02em;
  text-transform:uppercase;
  line-height:1.06;
}
.mlf-hero p{margin:0 0 20px; color:rgba(255,255,255,.82); max-width:56ch}
.mlf-hero-card{
  border:1px solid rgba(255,255,255,.08);
  background: rgba(20,20,22,.72);
  box-shadow: var(--mlf-shadow);
  border-radius: var(--mlf-radius);
  padding:18px;
}
.mlf-hero-card small{display:block; color:rgba(255,255,255,.68); margin-top:10px}
.mlf-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.24), rgba(138,109,40,.22));
  transition: all 0.3s;
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  cursor:pointer;
}

.woocommerce ul.products li.product .button{
    display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.24), rgba(138,109,40,.22));
  transition: all 0.3s;
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
  cursor:pointer;
}

.woocommerce ul.products li.product .button:hover{
  background:rgba(138,109,40,.44);
}

/*.mlf-btn:hover{filter:brightness(1.05)}*/
.mlf-btn:hover{background:rgba(138,109,40,.44);}
.mlf-btn:active{transform:translateY(1px)}
.mlf-btn.alt{
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

/* Sections */
.mlf-section{padding: 46px 0}
.mlf-section-title{
  text-align:center;
  margin:0 0 26px;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing:.12em;
  text-transform:uppercase;
  position:relative;
}
.mlf-section-title::before,
.mlf-section-title::after{
  content:"";
  position:absolute;
  top:50%;
  width:30%;
  height:1px;
  background: var(--mlf-line);
}
.mlf-section-title::before{left:0}
.mlf-section-title::after{right:0}

.mlf-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.mlf-card{
  background: rgba(22,22,24,.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--mlf-radius);
  box-shadow: var(--mlf-shadow);
  padding: 16px;
}
.mlf-card h3{margin:10px 0 6px; font-size:18px}
.mlf-card p{margin:0 0 12px; color:rgba(255,255,255,.72); font-size:14px}
.mlf-price{font-weight:900; color:#f5e7c4; margin-bottom:12px}
.mlf-thumb{
  height: 160px;
  border-radius: 10px;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(184,149,59,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.22));
  border: 1px solid rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}

/* About */
.mlf-about{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items:stretch;
}
.mlf-about .mlf-card{height:100%}
.mlf-about h2{margin:0 0 10px; font-size:28px; text-transform:uppercase; letter-spacing:.06em}
.mlf-about p{color:rgba(255,255,255,.78)}
.mlf-photo{
  border-radius: var(--mlf-radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--mlf-shadow);
  background: url(assets/ui/hplsimage.png) center/cover no-repeat;
  min-height: 320px;
}

/* Subscribe */
.mlf-subscribe{
  background: rgba(12,12,13,.72);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mlf-subscribe-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:center;
}
.mlf-subscribe h2{margin:0; letter-spacing:.12em; text-transform:uppercase}
.mlf-form{
  display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap
}
.mlf-input{
  min-width: 260px;
  padding: 12px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.22);
  color: #fff;
  outline:none;
}
.mlf-input:focus{border-color: rgba(184,149,59,.75)}
/* Footer */
.mlf-footer{
  padding: 32px 0;
  background: rgba(0,0,0,.55);
  border-top: 1px solid rgba(255,255,255,.06);
}
.mlf-footer-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.mlf-footer h4{margin:0 0 10px; text-transform:uppercase; letter-spacing:.08em}
.mlf-footer a{color:rgba(255,255,255,.82)}
.mlf-footer a:hover{color:#fff}
.mlf-footer small{display:block; margin-top:18px; color:rgba(255,255,255,.62)}

/* WooCommerce tweaks */
.woocommerce ul.products{
  margin:0;
}
.woocommerce ul.products li.product{
  background: rgba(22,22,24,.72);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--mlf-radius);
  padding: 14px !important;
  box-shadow: var(--mlf-shadow);
}
.woocommerce ul.products li.product a img{
  border-radius: 10px;
}
.woocommerce ul.products li.product .button{
  margin-top: 10px;
  display:inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.20), rgba(138,109,40,.20));
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

/* === My Loud Family: Woo Archive === */

.mlf-shop-archive {
  min-height: 60vh;
}

/* Hero */
.mlf-hero {
  padding: 48px 16px 24px;
  background: url('/wp-content/themes/YOUR-THEME/assets/ui/bg-grunge-dark-tile-2048.png') repeat;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mlf-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.mlf-hero__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f2f2f2;
}

/* Panel wrapper */
.mlf-panel {
  padding: 28px 16px 48px;
  background: url('/wp-content/themes/YOUR-THEME/assets/ui/bg-grunge-tile-2048.png') repeat;
  display: flex;
  align-items: center;
}
.mlf-panel__inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Shop bar */
.mlf-shopbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
}
.mlf-shopbar__left,
.mlf-shopbar__right {
  color: rgba(255,255,255,0.85);
}

/* Product grid */
.mlf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1100px) {
  .mlf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .mlf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .mlf-grid { grid-template-columns: 1fr; }
}

/* Make Woo's default UL not interfere */
.woocommerce ul.products,
.woocommerce-page ul.products {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}


/* Responsive */
@media (max-width: 980px){
  .mlf-hero-inner{grid-template-columns:1fr; width:95%; justify-content: center;}
  .mlf-grid{grid-template-columns: repeat(2, minmax(0,1fr))}
  .mlf-about{grid-template-columns:1fr}
  .mlf-subscribe-inner{grid-template-columns:1fr}
  .mlf-form{justify-content:flex-start}
  .mlf-section-title::before,.mlf-section-title::after{width:18%}
}
@media (max-width: 520px){
  .mlf-grid{grid-template-columns:1fr}
  .mlf-brand img{height:38px}
}


/* Shop Page Start */

.mlf-grid .product{
  list-style: none;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(20,20,22,.72);
  box-shadow: var(--mlf-shadow);
  border-radius: var(--mlf-radius);
  padding:18px;
  display: flex;
  flex-direction: column;
}
.woocommerce-result-count{
  display: none;
}

.mlf-shopbar .woocommerce-result-count{
  display: block;
  margin: 0 0 0;
}

.orderby{
  display: none;
}

.mlf-shopbar .orderby{
  display: block;
  margin: 0 0 0;
}

.woocommerce-Price-amount{
  width: 100%;
  text-align: center;
}

.woocommerce .woocommerce-ordering{
  margin: 0 0 0;
}

.mlf-hero__title{
  position: relative;
}
/* Shop Page End */

/* Product Pages Start */
.product_meta{
  display: none;
}

.woocommerce-product-gallery__image:nth-child{
  width: 25%;
}

#sidebar{
  display: none;
}

.product{
  width: 90%;
  margin: 0 auto;
}

.wp-post-image{
  margin-bottom: 5px;
}

.woocommerce div.product form.cart .variations select{
  background: white;
}

.woocommerce .quantity .qty{
  font-size: 25px;
}

.woocommerce div.product form.cart .button{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.20), rgba(138,109,40,.20));
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.woocommerce div.product form.cart .button:hover{
  background:rgba(138,109,40,.44);
}

.amount{
  color: #f6f1e2;
  font-weight: 600;
}
/* Product Pages End */

/* Cart Start */

.wc-block-cart__submit .wc-block-components-button:not(.is-link) .wc-block-components-button__text{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.20), rgba(138,109,40,.20));
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  width: 100%;
}
.wc-block-cart__submit .wc-block-components-button:not(.is-link) .wc-block-components-button__text:hover{
  background:rgba(138,109,40,.44);
}
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text{
  display:inline-block;
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid rgba(184,149,59,.65);
  background: linear-gradient(180deg, rgba(184,149,59,.20), rgba(138,109,40,.20));
  color: #f6f1e2;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  width: 100%;
}
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text:hover{
    background:rgba(138,109,40,.44);
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link){
  background: none;
  border: none;
  width: 100%;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text{
  background: none;
  border: none;
}
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text{
  justify-content: center;
}
.wc-block-components-checkout-return-to-cart-button{
  width: 100%;
}
/* Cart End */

/* Checkout Start */
.wc-block-components-text-input{
  color: black !important;
  font-weight: 600 !important;
}
.wc-blocks-components-select .wc-blocks-components-select__select{
  font-weight: 600 !important;
}
/* Checkout End */

/* Mobile Nav Start */
.mlf-mobile-nav{
  display: none;
}
.mobile-nav-inner{
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}
.mlf-mobile-nav img{
  height: 72px;
}
/* Mobile Nav End */

.mobile-menu{
  right: -100%;
  transition: all 0.3s ease-in-out;
  position: absolute;
  background: black;
  height: 100vh;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.mobile-menu ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li{
  font-size: 25px;
}

.mobile-menu.open{
  transition: all 0.3s ease-in-out;
  right: 0;
}

.close-button{
  right: 25px;
  top: 25px;
  position: absolute;
  font-size: 25px;
  font-weight: 600;
}

.close-button:hover{
  cursor: pointer;
}

@media (max-width: 980px){
  .mlf-header-inner{
    display: none;
  }
  .mlf-mobile-nav{
    display: flex;
  }
}