/* ─── STORTo Custom Styles ─── */
/* Overrides for WooCommerce / Extendable theme */

/* ─── Falling Letters ─── */
@font-face {
  font-family: 'Storto';
  src: url('/wp-content/uploads/fonts/storto.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.storto-falling-letters {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.storto-falling-letter {
  position: absolute;
  font-family: 'Storto', sans-serif;
  color: #FF6B2B;
  opacity: 0;
  animation: storto-fall linear infinite;
  top: -120px;
}

@keyframes storto-fall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg); }
  10% { opacity: 0.5; }
  90% { opacity: 0.25; }
  100% { opacity: 0; transform: translateY(110vh) rotate(360deg); }
}

/* ─── Product images full width on mobile/tablet ─── */
@media (max-width: 1024px) {
  .woocommerce div.product div.images,
  .woocommerce div.product div.images img,
  .wp-block-woocommerce-product-image-gallery,
  .wc-block-product-image-gallery {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .woocommerce div.product div.images img,
  .wc-block-product-image-gallery img {
    width: 100% !important;
    height: auto !important;
  }
}

/* ─── Tag/Term Description ─── */
.wp-block-term-description,
.wp-block-term-description p {
  font-family: 'Storto', sans-serif !important;
  text-align: left !important;
  font-size: clamp(18px, 2.5vw, 24px) !important;
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* ─── FAQ Section ─── */
.storto-faq {
  padding: 100px 48px;
  background: #0a0a0a;
  color: white;
  position: relative;
  z-index: 1;
}

.storto-faq-title {
  font-family: 'Storto', sans-serif;
  font-size: clamp(48px, 7vw, 84px);
  line-height: 0.95;
  margin-bottom: 48px;
}

.storto-faq-title span {
  color: #FF6B2B;
}

.storto-faq-title {
  text-align: center;
}

.storto-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.storto-faq-item {
  border-bottom: 1px solid #222;
  padding: 24px 0;
}

.storto-faq-item summary {
  font-family: 'Storto', sans-serif;
  font-size: 2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.storto-faq-item summary::-webkit-details-marker {
  display: none;
}

.storto-faq-item summary::after {
  content: '+';
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  color: #FF6B2B;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.storto-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.storto-faq-item summary:hover {
  color: #FF6B2B;
}

.storto-faq-item p {
  font-size: 1rem;
  line-height: 1.8;
  color: #999;
  margin-top: 16px;
  padding-right: 48px;
}

@media (max-width: 768px) {
  .storto-faq {
    padding: 60px 24px;
  }
}

/* ─── Override theme color variables ─── */
body {
  --wp--preset--color--tertiary: #a8e0f9 !important;
  --wp--preset--color--secondary: #0a0a0a !important;
  --wp--custom--elements--button--color--background: #FF6B2B !important;
  --wp--custom--elements--button--color--text: #ffffff !important;
}

/* ─── Product card bg ─── */
.has-tertiary-background-color {
  background-color: #a8e0f9 !important;
}

/* Card text */
.wc-block-components-product-name,
.wc-block-components-product-price,
.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  color: #0a0a0a !important;
}

/* ─── Buttons: orange bg, white text ─── */
.wc-block-components-product-button__button,
.wc-block-components-product-button .wp-block-button__link,
.wp-block-button__link,
.wc-block-grid__product .wp-block-button__link,
.wc-block-grid__product .add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce ul.products li.product .button {
  background-color: #FF6B2B !important;
  background: #FF6B2B !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  padding: 12px 24px !important;
  transition: background 0.2s, color 0.2s !important;
}

/* ─── Buttons: darker orange on hover/active ─── */
.wc-block-components-product-button__button:hover,
.wc-block-components-product-button__button:active,
.wc-block-components-product-button .wp-block-button__link:hover,
.wc-block-components-product-button .wp-block-button__link:active,
.wp-block-button__link:hover,
.wp-block-button__link:active,
.woocommerce a.button:hover,
.woocommerce a.button:active,
.woocommerce button.button:hover,
.woocommerce button.button:active,
.woocommerce .button:hover,
.woocommerce .button:active,
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:active {
  background-color: #e55a1f !important;
  background: #e55a1f !important;
  color: #ffffff !important;
}

/* ─── Page background ─── */
body,
.wp-site-blocks {
  background: #fafaf8 !important;
}


/* ─── Product image area ─── */
.wc-block-grid__product-image,
.woocommerce ul.products li.product a img {
  background: #f0ede6 !important;
}

/* ─── Single Product Page ─── */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #FF6B2B !important;
  font-weight: 700 !important;
}

.woocommerce div.product .single_add_to_cart_button {
  background: #0a0a0a !important;
  color: white !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  padding: 16px 32px !important;
  border: none !important;
}

.woocommerce div.product .single_add_to_cart_button:hover {
  background: #FF6B2B !important;
}

/* ─── Cart & Checkout ─── */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: #0a0a0a !important;
  color: white !important;
  border-radius: 0 !important;
}

.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: #FF6B2B !important;
}
