/* Calm Paw Haven — Global Styles */
:root {
  --terracotta: #C97B5E;
  --terracotta-dark: #A9603F;
  --brown: #7A4A3A;
  --cream: #FDF8F5;
  --cream-deep: #F5EDE6;
  --sage: #8B9A7B;
  --ink: #3A2E28;
  --gray: #8A7E76;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(122, 74, 58, 0.10);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--cream); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--cream-deep); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--brown); letter-spacing: 0.3px; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--terracotta); text-decoration: none; }
.cart-btn { background: var(--terracotta); color: var(--white) !important; padding: 9px 18px; border-radius: 999px; border: none; font-weight: 600; cursor: pointer; font-size: 15px; font-family: var(--font); }
.cart-btn:hover { background: var(--terracotta-dark); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--cream) 0%, var(--cream-deep) 100%); padding: 80px 24px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: 44px; line-height: 1.25; color: var(--brown); margin-bottom: 18px; }
.hero h1 .accent { color: var(--terracotta); }
.hero p { font-size: 19px; color: var(--gray); margin-bottom: 32px; }
.btn-primary { display: inline-block; background: var(--terracotta); color: var(--white); padding: 15px 38px; border-radius: 999px; font-weight: 700; font-size: 17px; border: none; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--terracotta-dark); text-decoration: none; }
.btn-secondary { display: inline-block; border: 2px solid var(--terracotta); color: var(--terracotta-dark); padding: 13px 34px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: all 0.2s; }
.btn-secondary:hover { background: var(--terracotta); color: var(--white); text-decoration: none; }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.section-title { text-align: center; font-size: 32px; color: var(--brown); margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--gray); max-width: 640px; margin: 0 auto 44px; font-size: 17px; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(122, 74, 58, 0.16); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--sage); margin-bottom: 6px; }
.product-card h3 { font-size: 19px; color: var(--brown); margin-bottom: 8px; }
.product-card p { font-size: 14.5px; color: var(--gray); flex: 1; }
.product-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.price { font-size: 22px; font-weight: 800; color: var(--terracotta-dark); }
.price small { font-size: 13px; color: var(--gray); font-weight: 400; text-decoration: line-through; margin-left: 6px; }
.add-btn { background: var(--terracotta); color: var(--white); border: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: 14px; font-family: var(--font); }
.add-btn:hover { background: var(--terracotta-dark); }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-card { background: var(--white); border-radius: var(--radius); padding: 32px 26px; text-align: center; box-shadow: var(--shadow); }
.value-card .icon { font-size: 38px; margin-bottom: 14px; }
.value-card h3 { color: var(--brown); font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 14.5px; color: var(--gray); }

/* Product detail */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 20px 24px 0; font-size: 14px; color: var(--gray); }
.breadcrumb a { color: var(--terracotta-dark); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery .main-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); cursor: zoom-in; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery .thumbs img { width: 82px; height: 82px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; cursor: pointer; transition: border-color 0.15s; }
.gallery .thumbs img:hover, .gallery .thumbs img.active { border-color: var(--terracotta); }
.lightbox { position: fixed; inset: 0; background: rgba(58, 46, 40, 0.92); z-index: 300; display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 85vh; width: auto; height: auto; border-radius: 12px; object-fit: contain; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: #fff; border: none; width: 52px; height: 52px; border-radius: 999px; font-size: 24px; cursor: pointer; }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-close { position: absolute; top: 20px; right: 28px; background: none; color: #fff; font-size: 36px; border: none; cursor: pointer; }
.product-info h1 { font-size: 32px; color: var(--brown); margin: 8px 0 12px; }
.product-info .price { font-size: 30px; margin-bottom: 16px; display: block; }
.product-info .desc { color: var(--gray); margin-bottom: 20px; }
.buy-box { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.qty { display: flex; align-items: center; border: 2px solid var(--cream-deep); border-radius: 999px; overflow: hidden; }
.qty button { background: var(--cream); border: none; width: 42px; height: 42px; font-size: 20px; cursor: pointer; color: var(--brown); }
.qty span { width: 48px; text-align: center; font-weight: 700; }
.buy-box .btn-primary { width: 100%; text-align: center; }
.trust-row { display: flex; gap: 18px; margin-top: 16px; font-size: 13.5px; color: var(--gray); flex-wrap: wrap; }
.trust-row span { background: var(--cream-deep); padding: 6px 14px; border-radius: 999px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { text-align: left; padding: 13px 20px; font-size: 14.5px; }
.spec-table th { background: var(--cream-deep); color: var(--brown); width: 34%; }
.spec-table td { color: var(--gray); border-top: 1px solid var(--cream-deep); }

/* Policy / content pages */
.page-content { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; background: var(--white); }
.page-content h1 { color: var(--brown); font-size: 32px; margin-bottom: 24px; }
.page-content h2 { color: var(--brown); font-size: 22px; margin: 28px 0 10px; }
.page-content p, .page-content li { color: var(--gray); font-size: 16px; margin-bottom: 12px; }
.page-content ul { padding-left: 24px; }

/* Footer */
.site-footer { background: var(--brown); color: var(--cream); margin-top: 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; opacity: 0.85; margin-top: 10px; }
.footer-col h4 { font-size: 15px; margin-bottom: 14px; letter-spacing: 0.5px; }
.footer-col a { display: block; color: var(--cream); opacity: 0.85; font-size: 14px; margin-bottom: 9px; }
.footer-col a:hover { opacity: 1; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(253, 248, 245, 0.2); text-align: center; padding: 18px; font-size: 13px; opacity: 0.7; }

/* Cart drawer */
.cart-drawer { position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100vh; background: var(--white); box-shadow: -8px 0 32px rgba(0,0,0,0.18); z-index: 200; transition: right 0.3s; display: flex; flex-direction: column; }
.cart-drawer.open { right: 0; }
.cart-head { padding: 20px 24px; border-bottom: 1px solid var(--cream-deep); display: flex; justify-content: space-between; align-items: center; }
.cart-head h3 { color: var(--brown); }
.cart-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gray); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--cream-deep); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.cart-item .name { font-weight: 700; font-size: 14px; color: var(--brown); }
.cart-item .p { font-size: 13px; color: var(--terracotta-dark); font-weight: 700; }
.cart-item button { background: none; border: none; color: var(--gray); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 0; }
.cart-foot { padding: 20px 24px; border-top: 1px solid var(--cream-deep); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; color: var(--brown); margin-bottom: 14px; }
.cart-note { font-size: 12.5px; color: var(--gray); text-align: center; margin-top: 10px; }
.overlay { position: fixed; inset: 0; background: rgba(58, 46, 40, 0.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 32px; }
  .product-detail { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 20px; }
}
