/* Leather Masterhood — brand stylesheet
   Palette: BROWN #382B1E | TAN #C89F76 | CREAM #F5EFE6 | DARK #2B1B12 */

:root {
  --brown: #382B1E;
  --tan: #C89F76;
  --cream: #F5EFE6;
  --offwhite: #F8F6F2;
  --dark: #2B1B12;
  --white: #FFFFFF;
  --error: #B3261E;
  --max-width: 1200px;
  --header-max-width: 1440px;
  --radius: 4px;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--brown); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Announcement bar */
.announce-bar { background: var(--brown); color: var(--cream); text-align: center; font-size: 0.82rem; letter-spacing: 0.3px; padding: 9px 16px; }
.announce-bar strong { color: var(--tan); }

/* Trust badge strip */
.trust-strip { background: var(--offwhite); border-bottom: 1px solid #ece5d8; padding: 22px 0; }
.trust-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; justify-content: center; text-align: left; }
.trust-item .trust-icon { width: 34px; height: 34px; flex-shrink: 0; color: var(--brown); }
.trust-item .trust-icon svg { width: 100%; height: 100%; }
.trust-item span { font-size: 0.88rem; font-weight: 600; color: var(--dark); line-height: 1.3; }

/* Header */
.site-header { background: var(--dark); color: var(--cream); position: sticky; top: 0; z-index: 100; }
.site-header .header-inner { max-width: var(--header-max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; justify-self: center; }
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-img { height: 68px; width: auto; display: block; }
.main-nav { display: flex; gap: 0; align-items: center; width: 100%; }
.main-nav.nav-left { justify-self: start; justify-content: space-evenly; }
.main-nav.nav-right { justify-self: end; justify-content: space-evenly; }
.main-nav a { color: var(--cream); font-size: 1.08rem; font-weight: 500; letter-spacing: 0.2px; white-space: nowrap; padding: 0 6px; }
.main-nav a:hover { color: var(--tan); text-decoration: none; }
.cart-link { display: flex; align-items: center; gap: 6px; border: 1px solid var(--tan); padding: 7px 14px; border-radius: var(--radius); }
.nav-whatsapp { display: flex; align-items: center; gap: 6px; color: #25D366; font-weight: 600; }
.nav-whatsapp:hover { color: #1ebe57; text-decoration: none; }
.nav-whatsapp svg { width: 18px; height: 18px; }

.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); text-decoration: none; }
.whatsapp-float svg { width: 30px; height: 30px; }
.cart-count { background: var(--tan); color: var(--dark); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: bold; }
.nav-toggle { display: none; }

/* Hero */
.hero { background: linear-gradient(rgba(30,20,14,0.72), rgba(30,20,14,0.72)), url('/images/hero-bg.jpg') center/cover no-repeat; color: var(--cream); padding: 130px 0; text-align: center; }
.hero h1 { color: var(--cream); font-size: 3.4rem; max-width: 900px; margin: 0 auto 24px; line-height: 1.15; }
.hero p { font-size: 1.35rem; max-width: 650px; margin: 0 auto 34px; color: var(--tan); }

/* Buttons */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; cursor: pointer; border: 2px solid transparent; font-size: 1rem; }
.btn-primary { background: var(--tan); color: var(--dark); border-color: var(--tan); }
.btn-primary:hover { background: #b98d5f; text-decoration: none; }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--dark); text-decoration: none; }
.btn-dark { background: var(--brown); color: var(--cream); border-color: var(--brown); }
.btn-dark:hover { background: var(--dark); text-decoration: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; text-align: center; }

section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: #6b5644; max-width: 600px; margin: 0 auto 40px; }
.alt-bg { background: var(--offwhite); }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; }
.category-card { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--offwhite) url('/images/placeholder.svg') center/cover no-repeat; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(43,27,18,0.1); text-decoration: none; }
.category-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.category-card .category-card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px 12px; background: linear-gradient(0deg, rgba(20,12,8,0.85), rgba(20,12,8,0)); }
.category-card h3 { margin: 0; font-size: 1.05rem; color: var(--cream); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 52px 28px; }
.product-card { background: var(--white); border: 1px solid #e6dccb; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { text-decoration: none; box-shadow: 0 8px 20px rgba(43,27,18,0.1); }
.product-card .thumb { aspect-ratio: 3 / 4; background: var(--offwhite) url('/images/placeholder.svg') center/cover no-repeat; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .info { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tan); margin-bottom: 6px; }
.product-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; color: var(--dark); margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-card .price { font-weight: 700; color: var(--brown); font-size: 1.1rem; }

.breadcrumb { font-size: 0.85rem; color: #8a7460; margin-bottom: 24px; }
.breadcrumb a { color: #8a7460; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery .main-image { aspect-ratio: 3/4; background: var(--white) url('/images/placeholder.svg') center/cover no-repeat; border-radius: var(--radius); overflow: hidden; border: 1px solid #e6dccb; }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pd-thumb { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; border: 2px solid #e6dccb; background: var(--white); cursor: pointer; padding: 0; flex-shrink: 0; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-thumb.active { border-color: var(--brown); }
.pd-thumb:hover { border-color: var(--tan); }
.pd-lightbox { position: fixed; inset: 0; background: rgba(20,12,8,0.9); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 40px; }
.pd-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.pd-lightbox-close { position: absolute; top: 20px; right: 28px; color: var(--cream); font-size: 2rem; cursor: pointer; line-height: 1; }
.pd-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--cream); font-size: 2.5rem; cursor: pointer; padding: 12px 18px; user-select: none; }
.pd-lightbox-prev { left: 10px; }
.pd-lightbox-next { right: 10px; }
.product-info .cat-label { color: var(--tan); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.5px; }
.product-info h1 { font-size: 1.75rem; margin: 8px 0 16px; }
.product-info .price { font-size: 1.6rem; font-weight: 700; color: var(--brown); margin-bottom: 20px; }
.product-info .hook { font-size: 1.05rem; margin-bottom: 24px; color: #4a3a2c; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-row input { width: 60px; padding: 8px; text-align: center; border: 1px solid #d8c9b3; border-radius: var(--radius); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag-pill { background: var(--offwhite); border: 1px solid #e6dccb; border-radius: 20px; padding: 4px 12px; font-size: 0.8rem; color: #6b5644; }
.add-confirm { margin-top: 14px; color: #2e7d32; font-weight: 600; display: none; }

.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; text-align: center; }
.feature-strip .feature h3 { font-size: 1.35rem; }
.feature-strip .feature p { color: #6b5644; font-size: 1.05rem; }

.about-hero-img, .workshop-strip { background: var(--tan); height: 320px; border-radius: var(--radius); overflow: hidden; }
.about-hero-img img, .workshop-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid #e6dccb; vertical-align: middle; }
.cart-item-row { display: flex; align-items: center; gap: 14px; }
.cart-item-thumb { width: 70px; height: 90px; background: var(--white) url('/images/placeholder.svg') center/cover no-repeat; border-radius: var(--radius); overflow: hidden; }
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-qty-input { width: 50px; padding: 6px; text-align: center; border: 1px solid #d8c9b3; border-radius: var(--radius); }
.remove-btn { color: var(--error); background: none; border: none; cursor: pointer; font-size: 0.85rem; text-decoration: underline; }
.cart-summary { max-width: 360px; margin-left: auto; background: var(--white); border: 1px solid #e6dccb; padding: 24px; border-radius: var(--radius); }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.cart-summary .total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid #e6dccb; padding-top: 10px; margin-top: 10px; }
.empty-cart { text-align: center; padding: 60px 0; color: #8a7460; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 12px; border: 1px solid #d8c9b3; border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; }
.form-status { margin-top: 12px; font-weight: 600; }

.site-footer { background: var(--dark); color: var(--tan); padding: 48px 0 24px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: var(--cream); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; }
.footer-grid a { color: var(--tan); font-size: 0.9rem; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid p { color: #b39a83; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid #4a3a2c; padding-top: 20px; font-size: 0.8rem; color: #8a7460; text-align: center; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 40px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

@media (max-width: 860px) {
  .product-detail, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.1rem; }
}
@media (max-width: 640px) {
  .site-header .header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 0; }
  .logo { order: 1; }
  .logo-img { height: 46px; }
  .nav-toggle { order: 2; display: block; background: none; border: none; color: var(--cream); font-size: 1.5rem; cursor: pointer; }
  .main-nav.nav-left, .main-nav.nav-right { order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 14px 0; display: none; }
  .main-nav.nav-left.open, .main-nav.nav-right.open { display: flex; }
  .main-nav.nav-left.open { border-bottom: 1px solid #4a3a2c; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 36px 18px; }
}

/* Product description */
.pd-description { margin: 28px 0; padding-top: 24px; border-top: 1px solid #e6dccb; }
.pd-description h2 { font-size: 1.15rem; margin-bottom: 10px; }
.pd-description p { color: #4a3a2c; font-size: 1rem; line-height: 1.7; }

/* Reviews */
.reviews-section { margin-top: 20px; padding-top: 28px; border-top: 1px solid #e6dccb; }
.reviews-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.reviews-summary .stars { color: var(--tan); font-size: 1.3rem; letter-spacing: 2px; }
.reviews-summary .reviews-count { color: #6b5644; font-size: 0.9rem; }
.review-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.review-item { border: 1px solid #e6dccb; border-radius: var(--radius); padding: 16px 18px; background: var(--offwhite); }
.review-item .review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-item .review-name { font-weight: 700; color: var(--dark); }
.review-item .review-stars { color: var(--tan); letter-spacing: 1px; }
.review-item .review-date { color: #8a7460; font-size: 0.78rem; }
.review-item .review-comment { color: #4a3a2c; font-size: 0.95rem; line-height: 1.6; }
.review-empty { color: #8a7460; font-style: italic; margin-bottom: 24px; }
.review-form { max-width: 480px; background: var(--white); border: 1px solid #e6dccb; border-radius: var(--radius); padding: 22px; }
.review-form h3 { margin-bottom: 16px; font-size: 1.05rem; }
.review-star-input { display: flex; gap: 6px; margin-bottom: 4px; }
.review-star-input button { background: none; border: none; font-size: 1.6rem; color: #d8c9b3; cursor: pointer; padding: 0; line-height: 1; }
.review-star-input button.active, .review-star-input button:hover { color: var(--tan); }

/* Made-to-order size selector on product detail pages */
.pd-size-row { display: none; margin: 14px 0; }
.pd-size-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.pd-size-row select { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid #d8c9b3; border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: #fff; }
.pd-size-error { display: none; color: #B3261E; font-size: 0.9rem; margin-top: 6px; }
.cart-item-size { font-size: 0.85rem; color: #6b5c4b; margin-top: 2px; }
