/* Treasure storefront - scoped to .treasure-* classes only.
   This does not restyle Blocksy header/footer or WooCommerce
   checkout, cart or account pages. */

:root {
  --treasure-navy: #183a59;
  --treasure-navy-light: #285878;
  --treasure-rose: #c63d6b;
  --treasure-blush: #fff0f2;
  --treasure-cream: #fffaf6;
  --treasure-charcoal: #29272b;
  --treasure-muted: #77747a;
  --treasure-border: #eadfe1;
}

.treasure-storefront .treasure-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
}

.treasure-hero {
  background: linear-gradient(105deg, #fff2f1, #fdf7ed);
  padding: 35px 0;
}
.treasure-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 35px;
}
.treasure-eyebrow {
  color: var(--treasure-rose);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.treasure-hero h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 60px;
  line-height: 1.08;
  color: var(--treasure-navy);
  margin: 18px 0;
}
.treasure-hero p {
  color: #756b70;
  line-height: 1.8;
  max-width: 450px;
}
.treasure-hero-media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(174, 126, 126, .15);
}
.treasure-btn {
  display: inline-block;
  background: var(--treasure-navy);
  color: #fff !important;
  border: 0;
  padding: 14px 25px;
  font-weight: 700;
  border-radius: 4px;
  text-decoration: none;
}
.treasure-btn:hover,
.treasure-btn:focus {
  background: var(--treasure-navy-light);
  color: #fff;
}

.treasure-perks {
  max-width: 1220px;
  margin: 0 auto;
  padding: 25px 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  text-align: center;
}
.treasure-perk {
  padding: 16px;
  background: var(--treasure-cream);
  border-radius: 10px;
  font-size: 13px;
}
.treasure-perk b {
  display: block;
  margin-bottom: 5px;
  color: var(--treasure-navy);
}

.treasure-heading {
  text-align: center;
  margin: 50px 0 24px;
}
.treasure-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 36px;
  color: var(--treasure-navy);
  margin: 7px 0;
}
.treasure-heading p {
  font-size: 13px;
  color: var(--treasure-muted);
}

.treasure-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 20px;
}
.treasure-category {
  border: 1px solid var(--treasure-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: var(--treasure-charcoal);
  display: block;
  text-align: center;
  padding-bottom: 14px;
}
.treasure-category:hover {
  box-shadow: 0 9px 28px rgba(0, 0, 0, .07);
}
.treasure-category-photo {
  display: block;
  background: var(--treasure-cream);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.treasure-category-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.treasure-category-name {
  display: block;
  font-weight: 700;
  color: var(--treasure-navy);
  margin-top: 12px;
}
.treasure-category-count {
  display: block;
  font-size: 12px;
  color: var(--treasure-muted);
}

.treasure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.treasure-product {
  border: 1px solid #eee7e7;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: .2s;
}
.treasure-product:hover {
  box-shadow: 0 9px 28px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}
.treasure-photo {
  position: relative;
  background: #f5f0eb;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.treasure-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.treasure-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  background: #fff;
  color: var(--treasure-rose);
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 3px;
  font-weight: 700;
}
.treasure-details {
  padding: 15px;
}
.treasure-details small {
  color: #9a8690;
  font-size: 11px;
}
.treasure-details h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0;
  min-height: 36px;
}
.treasure-details h3 a {
  color: var(--treasure-charcoal);
  text-decoration: none;
}
.treasure-price {
  color: var(--treasure-navy);
  font-weight: 700;
  font-size: 18px;
}
.treasure-details .add_to_cart_button,
.treasure-details .button {
  width: 100%;
  margin-top: 14px;
  text-align: center;
}

.treasure-sale {
  background: var(--treasure-blush);
  margin: 55px auto;
  max-width: 1220px;
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid #f4d7df;
  border-bottom: 1px solid #f4d7df;
}
.treasure-sale h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 32px;
  color: var(--treasure-rose);
  margin: 5px 0;
}
.treasure-sale p {
  font-size: 13px;
  color: #6e5e65;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile: match the mockup, hero stacks, image first, grid 2 across. */
@media (max-width: 1024px) {
  .treasure-grid,
  .treasure-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .treasure-hero { padding: 20px 0; }
  .treasure-hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .treasure-hero h1 { font-size: 41px; }
  .treasure-hero-media { order: -1; }
  .treasure-perks { grid-template-columns: 1fr; gap: 8px; }
  .treasure-grid,
  .treasure-category-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .treasure-details { padding: 10px; }
  .treasure-details h3 { font-size: 13px; }
  .treasure-heading h2 { font-size: 29px; }
  .treasure-heading { margin-top: 35px; }
}
@media (max-width: 380px) {
  .treasure-grid,
  .treasure-category-grid { grid-template-columns: 1fr; }
}

/* --- WooCommerce product, cart and checkout: light, mobile-first --- */
/* These rules only polish native WooCommerce/Blocksy output. They do
   not change prices, taxes, shipping or payment behaviour. */
.treasure-storefront.woocommerce div.product .woocommerce-product-gallery img {
  border-radius: 12px;
}
.treasure-storefront.woocommerce div.product .product_title {
  color: var(--treasure-navy);
  font-family: Georgia, serif;
  font-weight: 400;
}
.treasure-storefront.woocommerce div.product p.price,
.treasure-storefront.woocommerce div.product span.price {
  color: var(--treasure-navy);
  font-weight: 700;
}
.treasure-storefront.woocommerce .variations select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--treasure-border);
  border-radius: 6px;
}
.treasure-storefront.woocommerce .single_add_to_cart_button,
.treasure-storefront.woocommerce .checkout-button,
.treasure-storefront.woocommerce #place_order {
  background: var(--treasure-navy) !important;
  border-radius: 4px;
}
.treasure-storefront.woocommerce .single_add_to_cart_button:hover,
.treasure-storefront.woocommerce .checkout-button:hover,
.treasure-storefront.woocommerce #place_order:hover {
  background: var(--treasure-navy-light) !important;
}
.treasure-storefront.woocommerce .woocommerce-message,
.treasure-storefront.woocommerce .woocommerce-info {
  border-top-color: var(--treasure-navy);
  background: var(--treasure-cream);
}
.treasure-storefront.woocommerce form .form-row input.input-text,
.treasure-storefront.woocommerce form .form-row select,
.treasure-storefront.woocommerce form .form-row textarea {
  padding: 11px 12px;
  border: 1px solid var(--treasure-border);
  border-radius: 6px;
}
@media (max-width: 760px) {
  .treasure-storefront.woocommerce .col2-set .col-1,
  .treasure-storefront.woocommerce .col2-set .col-2,
  .treasure-storefront.woocommerce-checkout .col2-set .col-1,
  .treasure-storefront.woocommerce-checkout .col2-set .col-2 {
    width: 100%;
    float: none;
  }
  .treasure-storefront.woocommerce table.shop_table_responsive tr td::before {
    color: var(--treasure-navy);
    font-weight: 700;
  }
}
