/* Veins Land — storefront styles (Inter, black-on-white minimal theme) */

:root {
  --color-fg: rgb(0 0 0);
  --color-fg-muted: rgb(0 0 0 / 0.6);
  --color-bg: #fff;
  --color-border: rgb(230 230 230);
  --color-input-border: rgb(0 0 0 / 0.13);
  --color-btn-bg: #000;
  --color-btn-fg: #fff;
  --color-btn-hover: #333;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--color-fg); background: var(--color-bg); line-height: 1.6; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 28px; border: 1px solid var(--color-fg);
  background: transparent; color: var(--color-fg); font: 500 14px var(--font);
  text-decoration: none; cursor: pointer; border-radius: var(--radius);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: rgb(250 250 250); border-color: var(--color-btn-hover); color: var(--color-btn-hover); }
.btn-primary { background: var(--color-btn-bg); color: var(--color-btn-fg); border-color: var(--color-btn-bg); }
.btn-primary:hover { background: var(--color-btn-hover); border-color: var(--color-btn-hover); color: #fff; }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-light:hover { background: rgb(240 240 240); border-color: rgb(240 240 240); color: #000; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: #fff; z-index: 70; }
body.menu-open { overflow: hidden; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; }
.header-nav { display: flex; gap: 20px; align-items: center; }
.header-nav a { text-decoration: none; font-size: 14px; font-weight: 500; }
.header-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: center; }
.header-logo img { height: 40px; width: auto; border-radius: 4px; }
.header-logo span { font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 14px; justify-self: end; }
.header-icon { display: inline-flex; padding: 6px; position: relative; color: inherit; }
.cart-badge {
  position: absolute; top: -2px; right: -4px; background: #000; color: #fff;
  border-radius: 999px; font-size: 10px; font-weight: 600; line-height: 1;
  padding: 3px 6px; min-width: 16px; text-align: center;
}
.header-search { display: flex; align-items: center; border: 1px solid var(--color-input-border); border-radius: var(--radius); overflow: hidden; }
.header-search input { border: 0; padding: 7px 10px; font: 14px var(--font); width: 130px; outline: none; }
.header-search button { border: 0; background: transparent; padding: 6px 8px; cursor: pointer; display: inline-flex; }

.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: -12px; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 8px 0; min-width: 220px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a { display: block; padding: 8px 16px; }
.nav-drop-menu a:hover { background: rgb(245 245 245); text-decoration: none; }

/* ---------- Flash messages ---------- */
.flash { padding: 10px 0; font-size: 14px; }
.flash-success { background: #e8f5e9; color: #1b5e20; }
.flash-error { background: #fdecea; color: #b71c1c; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.35); }
.hero-content { position: relative; color: #fff; padding-top: 60px; padding-bottom: 60px; }
.hero-content h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 700; max-width: 640px; margin-bottom: 24px; line-height: 1.15; }

/* ---------- Sections ---------- */
.section { padding: 56px 20px; }
.section-title { font-size: 26px; font-weight: 600; margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.link-arrow { font-size: 14px; font-weight: 500; }

/* ---------- Collection cards ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.collection-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  text-decoration: none; background: rgb(245 245 245); aspect-ratio: 4 / 3;
}
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.collection-card:hover img { transform: scale(1.03); }
.collection-card-title {
  position: absolute; left: 14px; bottom: 14px; background: #fff; color: #000;
  padding: 8px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
}

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card { text-decoration: none; display: block; }
.product-card-media {
  background: rgb(247 247 247); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-card-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.product-card:hover .product-card-title { text-decoration: underline; text-underline-offset: 3px; }
.product-card-price { color: var(--color-fg-muted); font-size: 14px; margin-top: 4px; }

/* ---------- Page headers ---------- */
.page-head { margin-bottom: 32px; }
.page-head h1, .page-title { font-size: 32px; font-weight: 600; margin-bottom: 12px; }
.page-lede { color: var(--color-fg-muted); max-width: 640px; }
.empty-state { color: var(--color-fg-muted); padding: 24px 0; }
.results-count { color: var(--color-fg-muted); margin-bottom: 20px; }
.search-form { display: flex; gap: 10px; max-width: 480px; }
.search-form input { flex: 1; }

/* ---------- Product page ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
.product-main-image { background: rgb(247 247 247); border-radius: var(--radius); overflow: hidden; }
.product-main-image img { width: 100%; height: auto; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb { border: 1px solid var(--color-border); border-radius: var(--radius); background: #fff; padding: 0; width: 72px; height: 72px; overflow: hidden; cursor: pointer; }
.thumb.is-active { border-color: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-vendor { color: var(--color-fg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.product-title { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 6px 0 10px; }
.product-price { font-size: 20px; margin-bottom: 22px; }
.option-group { border: 0; margin-bottom: 18px; }
.option-group legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pill input { position: absolute; opacity: 0; pointer-events: none; }
.option-pill span {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--color-border);
  border-radius: 999px; font-size: 14px; cursor: pointer; background: #fff;
  transition: background .15s, border-color .15s, color .15s;
}
.option-pill input:checked + span { background: #000; border-color: #000; color: #fff; }
.option-pill:hover span { border-color: #999; }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 18px 0 22px; }
.qty-row label { font-size: 13px; font-weight: 600; }
.qty-input { display: inline-flex; border: 1px solid var(--color-input-border); border-radius: var(--radius); overflow: hidden; }
.qty-input button { width: 36px; border: 0; background: #fff; font-size: 16px; cursor: pointer; }
.qty-input button:hover { background: rgb(245 245 245); }
.qty-input input { width: 52px; border: 0; text-align: center; font: 15px var(--font); outline: none; -moz-appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.product-description { margin-top: 30px; }

/* ---------- Rich text ---------- */
.rte p, .rte ul, .rte ol, .rte blockquote { margin-bottom: 14px; }
.rte h2, .rte h3, .rte h4 { margin: 22px 0 10px; font-weight: 600; }
.rte ul, .rte ol { padding-left: 22px; }
.rte blockquote { border-left: 3px solid var(--color-border); padding: 8px 18px; color: var(--color-fg-muted); }
.rte sup { font-size: 11px; }

/* ---------- Forms ---------- */
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=search], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--color-input-border);
  border-radius: var(--radius); font: 15px var(--font); background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: #000; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.phone-input { display: flex; gap: 8px; }
.phone-input select { flex: 0 0 auto; width: 118px; min-width: 0; }
.phone-input input { flex: 1; min-width: 0; }

/* ---------- Cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-fg-muted); padding: 0 8px 12px; border-bottom: 1px solid var(--color-border); }
.cart-table td { padding: 18px 8px; border-bottom: 1px solid var(--color-border); vertical-align: top; }
.cart-media img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius); background: rgb(247 247 247); }
.cart-item-title { font-weight: 500; text-decoration: none; }
.cart-item-title:hover { text-decoration: underline; }
.cart-item-variant, .cart-item-price { color: var(--color-fg-muted); font-size: 13px; margin-top: 3px; }
.cart-table .qty-input input { width: 64px; padding: 8px; }
.link-remove { border: 0; background: none; color: var(--color-fg-muted); font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 8px; padding: 0; }
.cart-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.cart-summary { max-width: 340px; width: 100%; margin-left: auto; text-align: right; }
.cart-subtotal { font-size: 17px; margin-bottom: 6px; }
.cart-note { color: var(--color-fg-muted); font-size: 13px; margin-bottom: 14px; }
.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart h2 { font-size: 24px; margin-bottom: 20px; font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.checkout-form h2 { font-size: 18px; font-weight: 600; margin: 26px 0 14px; }
.checkout-form h2:first-of-type { margin-top: 0; }
.checkout-hint { color: var(--color-fg-muted); font-size: 13px; margin-bottom: 14px; }
.checkout-secure { color: var(--color-fg-muted); font-size: 13px; margin-top: 12px; text-align: center; }
.checkout-summary { background: rgb(250 250 250); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
.checkout-summary h2 { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
.summary-items { list-style: none; }
.summary-items li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.summary-items img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); background: #fff; }
.summary-items li > div { flex: 1; }
.summary-title { font-size: 14px; font-weight: 500; }
.summary-variant, .summary-qty { font-size: 12px; color: var(--color-fg-muted); }
.summary-totals { border-top: 1px solid var(--color-border); padding-top: 14px; margin-top: 6px; }
.summary-totals div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.summary-grand { font-size: 16px !important; font-weight: 600; }
.summary-shipping-note { margin-top: 12px; font-size: 13px; color: var(--color-fg-muted); }
.product-shipping-note { font-size: 13px; color: var(--color-fg-muted); margin: -14px 0 22px; }

/* ---------- Success / account ---------- */
.success-box { max-width: 560px; margin: 40px auto; text-align: center; }
.success-box h1 { font-size: 28px; font-weight: 600; margin-bottom: 16px; }
.success-box p { margin-bottom: 14px; color: var(--color-fg-muted); }
.account-head { margin-bottom: 26px; }
.account-page h2 { font-size: 18px; font-weight: 600; margin: 22px 0 12px; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--color-fg-muted); padding: 0 8px 10px; border-bottom: 1px solid var(--color-border); }
.orders-table td { padding: 12px 8px; border-bottom: 1px solid var(--color-border); }
.orders-table tfoot td { border-bottom: 0; padding: 8px; color: var(--color-fg-muted); }
.orders-table tfoot .grand td { color: var(--color-fg); font-weight: 600; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgb(240 240 240); }
.status-paid { background: #e8f5e9; color: #1b5e20; }
.status-fulfilled { background: #e3f2fd; color: #0d47a1; }
.status-pending { background: #fff8e1; color: #8d6e00; }
.status-cancelled, .status-refunded { background: #fdecea; color: #b71c1c; }
.account-forms { max-width: 440px; }
.account-alt { margin-top: 18px; font-size: 14px; color: var(--color-fg-muted); }
address { font-style: normal; color: var(--color-fg-muted); }

/* ---------- Contact ---------- */
.contact-details { margin-bottom: 26px; color: var(--color-fg-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); margin-top: 60px; padding: 48px 0 32px; }
.footer-newsletter { text-align: center; max-width: 480px; margin: 0 auto 40px; }
.footer-newsletter h2 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.footer-newsletter p { color: var(--color-fg-muted); margin-bottom: 18px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input { flex: 1; }
.newsletter-form button { padding: 11px 22px; border: 1px solid #000; background: #000; color: #fff; border-radius: var(--radius); font: 500 14px var(--font); cursor: pointer; }
.newsletter-form button:hover { background: #333; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--color-border); padding-top: 22px; font-size: 13px; color: var(--color-fg-muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--color-fg-muted); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Mobile menu & nav toggle ---------- */
.nav-toggle { display: none; border: 0; background: none; padding: 8px; cursor: pointer; color: inherit; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: block; }
.mobile-menu { display: none; border-top: 1px solid var(--color-border); background: #fff; padding: 16px 20px 20px; }
.mobile-menu nav a { display: block; padding: 11px 4px; font-size: 15px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--color-border); }
.mobile-menu nav a:last-child { border-bottom: 0; }
.mobile-menu-sub { padding-left: 20px !important; color: var(--color-fg-muted); }
.mobile-search { display: flex; gap: 8px; margin-bottom: 12px; }
.mobile-search input { flex: 1; }
.mobile-search .btn { padding: 10px 18px; }

/* ---------- Product title row & share ---------- */
.product-title-row { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.product-title-row .product-title { flex: 1; }
.share-btn { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding: 9px; cursor: pointer; color: inherit; display: inline-flex; flex: 0 0 auto; margin-top: 4px; }
.share-btn:hover { border-color: #999; }
.share-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: 0 8px 24px rgb(0 0 0 / 0.1); padding: 6px 0; min-width: 180px; }
.share-menu a, .share-menu button { display: block; width: 100%; text-align: left; padding: 9px 16px; font: 14px var(--font); text-decoration: none; border: 0; background: none; cursor: pointer; color: inherit; }
.share-menu a:hover, .share-menu button:hover { background: rgb(245 245 245); }

/* ---------- Checkout policy note ---------- */
.checkout-policy-note { background: rgb(250 250 250); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0 16px; font-size: 13px; color: var(--color-fg-muted); }
.checkout-policy-note strong { color: var(--color-fg); }
.checkout-policy-note a { color: var(--color-fg); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25); text-decoration: none;
}
.whatsapp-float:active { transform: scale(.96); }
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .whatsapp-float { display: flex; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-layout, .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
  .header-inner { grid-template-columns: auto auto 1fr; gap: 8px; min-height: 56px; }
  .nav-toggle { display: inline-flex; }
  .header-nav { display: none; }
  .header-logo { justify-self: start; }
  .header-logo img { height: 34px; }
  .header-logo span { font-size: 16px; }
  .header-actions { gap: 8px; }
  .header-search { display: none; }
  /* Full-screen menu: covers the page content below the header bar and scrolls on its own. */
  .mobile-menu:not([hidden]) {
    display: block; position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff;
  }
  .product-thumbs { flex-wrap: wrap; }
  .product-main-image { display: flex; align-items: center; justify-content: center; }
  .product-main-image img { max-height: min(58vh, 460px); width: auto; max-width: 100%; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 600px) {
  .section { padding: 40px 16px; }
  .container { padding: 0 16px; }
  .page-head h1, .page-title { font-size: 26px; }
  .product-title { font-size: 23px; }
  .section-title { font-size: 22px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--color-border); padding: 14px 0; position: relative; }
  .cart-table td { border: 0; padding: 6px 0; }
  .cart-table td.ta-right { text-align: left; font-weight: 600; }
  .cart-footer { flex-direction: column; }
  .cart-summary { margin-left: 0; max-width: none; text-align: left; }
  .hero { min-height: 380px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .orders-table { display: block; overflow-x: auto; }
  .checkout-summary { padding: 18px; }
  .qty-input button { width: 40px; min-height: 40px; }
}
