/*
Theme Name: Clyde Peptides
Theme URI: https://clydepeptides.com
Author: Clyde Peptides
Description: Custom theme for Clyde Peptides — UK research peptide supplier. Built for WooCommerce.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: clyde-peptides
*/

:root{
  --black:#000000;
  --plum:#1a1417;
  --plum-light:#241d21;
  --gold:#c9973f;
  --gold-bright:#e0b563;
  --gold-dim:#8a6a2e;
  --white:#f2ede4;
  --slate:#a89b8a;
  --line:rgba(201,151,63,0.22);
  --radius:3px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--black);
  color:var(--white);
  font-family:'Inter',system-ui,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
.container{max-width:1280px;margin:0 auto;padding:0 28px;}

h1,h2,h3,.display{
  font-family:'Fraunces',Georgia,serif;
  font-weight:500;
  line-height:1.15;
  margin:0 0 0.5em;
  color:var(--white);
}
p{margin:0 0 1em;max-width:62ch;color:var(--slate);}
.mono{font-family:'IBM Plex Mono',monospace;}
.caps{text-transform:uppercase;letter-spacing:0.12em;font-size:12.5px;}

/* ---------- Utility bar ---------- */
.utility-bar{
  background:var(--black);
  border-bottom:1px solid var(--line);
  padding:20px 0;
}
.utility-bar .container{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;}
.utility-bar .left,.utility-bar .right{display:flex;align-items:center;gap:28px;}
.utility-bar .right{justify-content:flex-end;}
.utility-bar a{font-family:'Fraunces',serif;font-size:12.5px;letter-spacing:0.1em;text-transform:uppercase;color:var(--slate);}
.utility-bar a:hover{color:var(--gold-bright);}
.utility-bar .logo{text-align:center;}
.utility-bar .logo img{height:46px;width:auto;margin:0 auto;}
.utility-bar .search{background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);padding:0;font-size:13px;color:var(--slate);flex:1;max-width:280px;display:flex;}
.utility-bar .search input{background:transparent;border:0;outline:0;color:var(--white);font-size:13px;font-family:'Inter',sans-serif;padding:8px 14px;width:100%;}
.utility-bar .search input::placeholder{color:var(--slate);}

/* ---------- Promo bar ---------- */
.promo-bar{
  background:linear-gradient(90deg,var(--gold-dim),var(--gold));
  color:var(--black);
  text-align:center;
  font-size:13px;
  font-weight:600;
  letter-spacing:0.02em;
  padding:11px 16px;
}
.promo-bar a{text-decoration:underline;}

.disclaimer-bar{
  background:var(--black);
  color:var(--white);
  text-align:center;
  font-size:13px;
  padding:10px 16px;
  border-bottom:1px solid var(--line);
}
.disclaimer-bar b{color:var(--gold-bright);font-weight:800;}
.disclaimer-bar em{font-style:italic;font-weight:600;}
.disclaimer-bar svg{color:var(--gold);}

/* ---------- Hero ---------- */
.hero{padding:70px 0 50px;text-align:center;}
.hero h1{
  font-size:clamp(34px,5vw,54px);
  max-width:18ch;
  margin:0 auto 14px;
}
.hero .subhead{color:var(--gold-bright);font-size:17px;max-width:44ch;margin:0 auto 30px;}
.btn{
  display:inline-block;
  background:var(--gold);
  color:var(--black);
  font-family:'Inter',sans-serif;
  font-weight:700;
  font-size:13.5px;
  letter-spacing:0.03em;
  text-transform:uppercase;
  padding:14px 32px;
  border-radius:var(--radius);
  border:0;
  cursor:pointer;
}
.btn:hover{background:var(--gold-bright);}
.btn.secondary{background:transparent;border:1px solid var(--gold);color:var(--gold-bright);}

/* ---------- Catalog head ---------- */
.catalog-head{
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  padding:36px 0 26px;border-bottom:1px solid var(--line);margin-bottom:32px;
}
.catalog-head h2{
  font-family:'Fraunces',serif;color:var(--gold);font-size:28px;letter-spacing:0.02em;margin:0;
}
.catalog-tools{display:flex;gap:12px;}
.catalog-search{display:flex;}
.catalog-tools input,.catalog-tools select{
  background:var(--plum);border:1px solid var(--line);color:var(--white);
  border-radius:var(--radius);padding:10px 14px;font-size:13.5px;font-family:'Inter',sans-serif;
}
.catalog-tools input::placeholder{color:var(--slate);}
@media (max-width:780px){
  .catalog-tools input{font-size:16px !important;}
}
/* Mini-cart widget (homepage cart rail) - correct WooCommerce classes */
.cart-rail .woocommerce-mini-cart-item img,
.cart-rail .mini_cart_item img,
.cart-rail ul.cart_list img{
  width:52px !important;height:52px !important;max-width:52px !important;min-width:52px !important;
  object-fit:cover !important;border-radius:var(--radius);display:block;
}

/* ---------- Shop layout: grid + cart rail ---------- */
.shop-layout{display:grid;grid-template-columns:1fr 300px;gap:32px;align-items:start;}
.cart-rail{
  background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;position:sticky;top:24px;
}
.cart-rail h3{font-family:'Fraunces',serif;color:var(--gold);font-size:16px;letter-spacing:0.06em;text-transform:uppercase;margin-bottom:14px;}
.cart-rail .banner{background:rgba(201,151,63,0.12);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;font-size:11.5px;color:var(--gold-bright);text-align:center;margin-bottom:16px;letter-spacing:0.02em;}
.cart-rail .empty{text-align:center;color:var(--slate);font-size:13px;padding:24px 0;}

/* ---------- Product grid ---------- */
.product-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:22px;
}
.product-card{
  background:var(--plum);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  position:relative;
}
.product-card .thumb{position:relative;aspect-ratio:4/5;background:var(--plum-light);overflow:hidden;}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;}
.product-card .spec-overlay{
  position:absolute;top:12px;left:12px;right:12px;z-index:2;
  font-family:'IBM Plex Mono',monospace;font-size:10px;color:var(--gold-bright);
  line-height:1.5;text-shadow:0 1px 3px rgba(0,0,0,0.8);
  pointer-events:none;
}
.product-card .spec-overlay .storage{color:var(--slate);text-shadow:0 1px 3px rgba(0,0,0,0.8);}
.product-card .badge{
  position:absolute;top:12px;z-index:3;font-family:'Inter',sans-serif;font-weight:700;
  font-size:11px;padding:4px 9px;border-radius:2px;letter-spacing:0.02em;
}
.product-card .badge.stock{right:12px;background:rgba(10,9,8,0.85);color:var(--gold-bright);border:1px solid var(--line);}
.product-card .add-btn{
  position:absolute;bottom:14px;right:14px;z-index:3;
  width:38px;height:38px;border-radius:50%;background:var(--gold);
  color:var(--black);display:flex;align-items:center;justify-content:center;
  font-size:20px;font-weight:700;border:0;cursor:pointer;
}
.product-card .add-btn:hover{background:var(--gold-bright);}
.product-card .info{padding:16px 18px 18px;display:flex;flex-direction:column;gap:5px;}
.product-card .name{font-family:'Fraunces',serif;font-size:16.5px;color:var(--white);}
.product-card .sizes{font-size:12px;color:var(--slate);}
.product-card .price-row{display:flex;align-items:baseline;gap:8px;margin-top:4px;}
.product-card .price-row .from{font-size:10.5px;color:var(--slate);text-transform:uppercase;letter-spacing:0.05em;}
.product-card .price-row .price{font-family:'IBM Plex Mono',monospace;color:var(--gold-bright);font-size:16px;font-weight:600;}
.product-card .out-of-stock{color:var(--slate);font-family:'IBM Plex Mono',monospace;font-size:12px;margin-top:4px;}

/* ---------- Section shell ---------- */
.section{padding:70px 0;}
.section-head{max-width:640px;margin-bottom:40px;}
.feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.feature-row .feature{border-top:1px solid var(--line);padding-top:18px;}
.feature-row .feature b{display:block;font-family:'Fraunces',serif;font-size:18px;margin-bottom:8px;color:var(--gold-bright);}
.feature-row .feature p{font-size:14px;}

/* ---------- Footer ---------- */
.site-footer{background:var(--black);color:var(--slate);padding:50px 0 30px;border-top:1px solid var(--line);}
.site-footer .foot-top{display:flex;justify-content:space-between;flex-wrap:wrap;gap:24px;margin-bottom:28px;}
.site-footer .foot-top img{height:26px;}
.site-footer nav ul{list-style:none;display:flex;flex-wrap:wrap;gap:20px;margin:0;padding:0;font-size:12.5px;}
.site-footer nav a:hover{color:var(--gold-bright);}
.site-footer .legal{font-size:11px;line-height:1.7;border-top:1px solid var(--line);padding-top:20px;}

/* ---------- WooCommerce baseline (matches card design above) ---------- */
.woocommerce ul.products,
.woocommerce ul.products.columns-3,
.woocommerce ul.products.columns-4{
  display:grid !important;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr)) !important;
  gap:22px !important;
  list-style:none !important;
  padding:0 !important;
  margin:0 0 40px !important;
  width:100% !important;
}
.woocommerce ul.products li.product{
  float:none !important;
  width:auto !important;
  margin:0 !important;
  background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);padding:0 0 16px;
  clear:none !important;
}
.woocommerce ul.products li.product a{display:block;}
.woocommerce ul.products li.product img{
  width:100% !important;
  height:auto !important;
  max-width:none !important;
  aspect-ratio:4/5;object-fit:cover;display:block;
}
.woocommerce ul.products li.product h2,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:'Fraunces',serif;font-size:16px;color:var(--white);padding:14px 16px 0;margin:0;}
.woocommerce ul.products li.product .price{font-family:'IBM Plex Mono',monospace;color:var(--gold-bright);padding:0 16px;display:block;}
.woocommerce ul.products li.product .button{margin:12px 16px 0 !important;width:calc(100% - 32px);text-align:center;background:var(--gold);color:var(--black);font-weight:700;text-transform:uppercase;font-size:12.5px;border-radius:var(--radius);padding:11px;white-space:normal;}
.woocommerce div.product .woocommerce-tabs{margin-top:40px;}
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button{background:var(--gold);color:var(--black);border-radius:var(--radius);font-weight:700;text-transform:uppercase;font-size:12.5px;}
.woocommerce a.button:hover, .woocommerce button.button:hover{background:var(--gold-bright);}
.woocommerce div.product p.price, .woocommerce div.product span.price{color:var(--gold-bright);font-family:'IBM Plex Mono',monospace;}

.cart-link-mobile{display:none;position:relative;align-items:center;color:var(--gold-bright);}
.cart-link-mobile .cart-count{
  position:absolute;top:-8px;right:-9px;background:var(--gold);color:var(--black);
  font-family:'Inter',sans-serif;font-size:10.5px;font-weight:700;
  width:17px;height:17px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;line-height:1;
}
@keyframes cartBump{0%{transform:scale(1);}35%{transform:scale(1.3);}100%{transform:scale(1);}}
.cart-bump{animation:cartBump .4s ease;}

@media (max-width:900px){
  .shop-layout{grid-template-columns:1fr;}
  .cart-rail{position:static;}
}
@media (max-width:780px){
  html{overflow-x:hidden;}
  .utility-bar .container{
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;row-gap:12px;gap:12px;
  }
  .utility-bar .left{order:1;}
  .utility-bar .logo{order:2;flex:1 1 100%;text-align:center;}
  .cart-link-mobile{display:flex !important;order:3;}
  .utility-bar .right{
    order:4;display:flex !important;flex-wrap:wrap;width:100%;
    justify-content:center;align-items:center;row-gap:10px;gap:16px;
  }
  .utility-bar .right .search{order:-1;flex:1 1 100%;max-width:none;}
  .utility-bar .right .cart-link-desktop{display:none;}
  .feature-row{grid-template-columns:1fr;}
  .site-footer .foot-top{flex-direction:column;}
}

/* ---------- Age verification gate ---------- */
.age-gate-overlay{
  position:fixed;inset:0;z-index:9999;
  background:var(--black);
  display:flex;align-items:flex-start;justify-content:center;
  padding:60px 20px;overflow-y:auto;
}
.age-gate-overlay.hidden{display:none;}
.age-gate-box{max-width:640px;width:100%;text-align:center;}
.age-gate-logo{
  display:inline-block;border:1px solid var(--gold);border-radius:6px;
  padding:18px 26px;margin-bottom:32px;
}
.age-gate-logo b{font-family:'Fraunces',serif;color:var(--gold);font-size:15px;letter-spacing:0.04em;display:block;line-height:1.4;}
.age-gate-title{
  font-family:'Fraunces',serif;color:var(--gold);
  font-size:clamp(30px,5vw,46px);letter-spacing:0.1em;
  margin-bottom:20px;text-transform:uppercase;
}
.age-gate-divider{width:64px;height:2px;background:var(--gold);margin:0 auto 28px;}
.age-gate-text{color:var(--white);font-size:16px;line-height:1.6;max-width:52ch;margin:0 auto 30px;}
.age-gate-check{
  display:flex;align-items:center;gap:12px;justify-content:center;
  margin-bottom:28px;font-size:15px;color:var(--white);text-align:left;max-width:480px;margin-left:auto;margin-right:auto;
}
.age-gate-check input{width:20px;height:20px;accent-color:var(--gold);flex-shrink:0;}
.age-gate-enter{
  display:block;width:100%;padding:18px;
  background:var(--gold-dim);color:rgba(0,0,0,0.5);
  font-family:'Inter',sans-serif;font-weight:700;font-size:15px;letter-spacing:0.15em;text-transform:uppercase;
  border:0;border-radius:var(--radius);cursor:not-allowed;margin-bottom:28px;
  transition:background 0.15s,color 0.15s;
}
.age-gate-enter.active{background:var(--gold);color:var(--black);cursor:pointer;}
.age-gate-enter.active:hover{background:var(--gold-bright);}
.age-gate-optional{border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:26px;}
.age-gate-optional .tag{color:var(--gold);font-size:12px;letter-spacing:0.15em;text-transform:uppercase;display:block;margin-bottom:10px;}
.age-gate-optional p{color:var(--slate);font-size:14px;margin-bottom:14px;max-width:none;}
.age-gate-optional input{
  width:100%;background:var(--black);border:1px solid var(--line);color:var(--white);
  padding:13px 16px;border-radius:var(--radius);font-size:14px;
}
.age-gate-links{color:var(--slate);font-size:13.5px;margin-bottom:24px;}
.age-gate-links a{color:var(--white);text-decoration:underline;}
.age-gate-exit{font-family:'Fraunces',serif;color:var(--gold-bright);letter-spacing:0.1em;text-transform:uppercase;font-size:14px;display:block;margin-bottom:8px;cursor:pointer;}
.age-gate-exit-note{color:var(--slate);font-size:12.5px;max-width:52ch;margin:0 auto;}

/* ---------- Product card hover reveal ---------- */
.product-card .thumb img{transition:filter 0.3s ease;}
.product-card:hover .thumb img{filter:blur(6px) brightness(0.35);}
.product-card:hover .spec-overlay{opacity:0;}
.product-card .spec-overlay{transition:opacity 0.2s ease;}
.product-card .hover-info{
  position:absolute;inset:0;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:20px;
  opacity:0;pointer-events:none;
  transition:opacity 0.3s ease;
}
.product-card:hover .hover-info{opacity:1;}
.product-card .hover-info .h-name{
  font-family:'Fraunces',serif;color:var(--gold-bright);
  font-size:13px;letter-spacing:0.12em;text-transform:uppercase;margin-bottom:12px;
}
.product-card .hover-info .h-desc{color:var(--white);font-size:14.5px;line-height:1.5;max-width:26ch;}

/* ---------- Footer (rebuilt) ---------- */
.site-footer{text-align:center;padding:70px 0 30px;}
.footer-brand{margin-bottom:36px;}
.footer-brand img{height:44px;width:auto;margin:0 auto;}
.footer-nav ul{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:34px;margin:0 0 36px;padding:0;}
.footer-nav a{font-family:'Fraunces',serif;font-size:13px;letter-spacing:0.1em;text-transform:uppercase;color:var(--slate);}
.footer-nav a:hover{color:var(--gold-bright);}
.footer-social{margin-bottom:40px;}
.footer-social a{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border:1px solid var(--line);border-radius:50%;color:var(--slate);
}
.footer-social a:hover{color:var(--gold-bright);border-color:var(--gold);}
.footer-newsletter{max-width:520px;margin:0 auto 44px;}
.footer-newsletter .tag{color:var(--gold);font-size:12.5px;letter-spacing:0.18em;text-transform:uppercase;display:block;margin-bottom:10px;}
.footer-newsletter p{color:var(--slate);font-size:14px;margin-bottom:20px;}
.footer-newsletter form{display:flex;gap:10px;}
.footer-newsletter input{
  flex:1;background:var(--black);border:1px solid var(--line);color:var(--white);
  padding:14px 16px;border-radius:var(--radius);font-size:14px;
}
.footer-newsletter button{
  background:var(--gold);color:var(--black);border:0;border-radius:var(--radius);
  padding:0 26px;font-family:'Inter',sans-serif;font-weight:700;font-size:12.5px;letter-spacing:0.1em;text-transform:uppercase;cursor:pointer;
}
.footer-newsletter button:hover{background:var(--gold-bright);}
.footer-divider{width:100%;max-width:200px;height:1px;background:var(--line);margin:0 auto 36px;}
.footer-contact{margin-bottom:36px;}
.footer-contact .name{font-family:'Fraunces',serif;font-size:16px;color:var(--white);margin-bottom:8px;}
.footer-contact a{color:var(--slate);text-decoration:underline;font-size:14px;}
.footer-contact .note{color:var(--slate);font-size:13px;margin-top:6px;}
.footer-legal ul{list-style:none;display:flex;justify-content:center;flex-wrap:wrap;gap:14px 26px;margin:0 0 30px;padding:0;}
.footer-legal a{font-size:11.5px;letter-spacing:0.06em;text-transform:uppercase;color:var(--slate);}
.footer-legal a:hover{color:var(--gold-bright);}
.footer-copyright{color:var(--slate);font-size:13px;margin-bottom:14px;}
.footer-disclaimer{color:var(--slate);font-size:12px;line-height:1.9;max-width:60ch;margin:0 auto;}

/* ---------- WooCommerce checkout, order-received & my-account (dark theme) ---------- */
.woocommerce-order, .woocommerce-checkout, .woocommerce-account{color:var(--white);}
.woocommerce-thankyou-order-received{font-family:'Fraunces',serif;font-size:20px;color:var(--gold-bright);margin-bottom:24px;}
.woocommerce-order-overview{list-style:none;display:flex;flex-wrap:wrap;gap:24px;padding:20px;margin:0 0 30px;background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);}
.woocommerce-order-overview li{font-size:13px;color:var(--slate);}
.woocommerce-order-overview li strong{display:block;color:var(--white);font-size:15px;margin-top:4px;}
table.shop_table, .woocommerce-checkout-review-order-table{width:100%;border-collapse:collapse;background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:30px;}
table.shop_table th, .woocommerce-checkout-review-order-table th{background:var(--black);color:var(--gold);text-transform:uppercase;font-size:12px;letter-spacing:0.06em;padding:12px 16px;text-align:left;border-bottom:1px solid var(--line);}
table.shop_table td, .woocommerce-checkout-review-order-table td{padding:12px 16px;border-bottom:1px solid var(--line);color:var(--white);font-size:14px;}
table.shop_table tfoot th, table.shop_table tfoot td{font-weight:700;color:var(--gold-bright);}
table.shop_table td.product-thumbnail img,
table.shop_table td.product-thumbnail a img,
.woocommerce-cart-form img,
.cart_item img{
  width:64px !important;
  height:64px !important;
  max-width:64px !important;
  object-fit:cover;
  border-radius:var(--radius);
  display:block;
}
table.shop_table td.product-name{vertical-align:middle;}
@media (max-width:600px){
  table.shop_table td.product-thumbnail img,
  .woocommerce-cart-form img,
  .cart_item img{width:52px !important;height:52px !important;max-width:52px !important;}
}
.woocommerce-customer-details, .woocommerce-columns{display:flex;flex-wrap:wrap;gap:24px;margin-bottom:30px;}
.woocommerce-column{flex:1;min-width:240px;background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);padding:20px;}
.woocommerce-column h2, .woocommerce-column h3{font-family:'Fraunces',serif;color:var(--gold);font-size:16px;margin:0 0 12px;}
.woocommerce-column address{color:var(--slate);font-style:normal;line-height:1.7;}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select{
  background:var(--black);border:1px solid var(--line);color:var(--white);border-radius:var(--radius);padding:12px 14px;font-size:14px;
}
.woocommerce form .form-row label{color:var(--slate);font-size:13px;margin-bottom:6px;display:block;}
#order_review_heading, .woocommerce-checkout #order_review{background:var(--plum);border:1px solid var(--line);border-radius:var(--radius);padding:20px;}
.woocommerce-MyAccount-navigation ul{list-style:none;padding:0;}
.woocommerce-MyAccount-navigation a{color:var(--slate);text-decoration:none;display:block;padding:10px 0;border-bottom:1px solid var(--line);}
.woocommerce-MyAccount-navigation a:hover, .woocommerce-MyAccount-navigation .is-active a{color:var(--gold-bright);}
.woocommerce-Message, .woocommerce-info, .woocommerce-error, .woocommerce-message{
  background:var(--plum);border:1px solid var(--line);border-left:3px solid var(--gold);color:var(--white);border-radius:var(--radius);padding:14px 18px;margin-bottom:20px;list-style:none;
}
.woocommerce a.button, .woocommerce button.button.alt, .woocommerce input.button{
  background:var(--gold);color:var(--black);border-radius:var(--radius);font-weight:700;text-transform:uppercase;font-size:12.5px;padding:12px 22px;border:0;
}
.woocommerce a.button:hover, .woocommerce button.button.alt:hover{background:var(--gold-bright);}
