/*
Theme Name: Intentio
Theme URI: https://intentio.shop
Author: Intentio
Author URI: https://intentio.shop
Description: Custom WooCommerce theme for Intentio Model Railways
Version: 1.0
Text Domain: intento
*/

/* ===============================
   ADMIN BAR OFFSET (WP)
   ===============================
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
*/
/* ===============================
   RESET & BASE
   =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
}

#page, .site, .site-content {
  margin: 0 !important;
  padding: 0 !important;
}

:root {
  --intentio-blue: #0b2a4a;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0b1a2b;
  color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Sora', sans-serif;
}

a {
  color: #ffffff;
  text-decoration: none;
}

/* ===============================
   HEADER (BLUE BANNER ONLY)
   =============================== */
.site-header {
  position: relative;
  width: 100%;
  background: var(--intentio-blue);
  z-index: 20;
  display: flex;
  flex-direction: column;
}

/* Header inner layout */
.header-inner {
  width: 100%;
  height: 120px;
  padding: 0 40px 0 24px;
  display: grid;
  grid-template-columns: auto auto minmax(280px, 700px) 1fr auto;
  align-items: center;
  column-gap: 24px;
}

/* Logo */
.header-logo {
  grid-column: 1;
  min-width: max-content;
}

.header-logo img,
.site-logo {
  height: 96px;
  width: auto;
  max-width: none;
  display: block;
}

/* Phone */
.header-phone {
  grid-column: 2;
  white-space: nowrap;
}

.header-phone a {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.phone-label {
  font-size: 12px;
  opacity: 0.85;
}

.phone-number {
  font-size: 18px;
  font-weight: 600;
}

/* Search */
.header-search {
  grid-column: 3;
  width: 100%;
}

/* SEARCH – MAGNIFYING GLASS (RESTORED) */
.header-search form {
  position: relative;
  width: 100%;
  margin: 0;
}

.header-search label {
  display: block;
  margin: 0;
}

.header-search input[type="search"],
.header-search input[name="s"],
.header-search .search-field {
  width: 100% !important;
  height: 44px !important;
  padding: 0 44px 0 14px !important;

  border: none !important;
  border-radius: 0 !important;

  background-color: #ffffff !important;
  color: #0b1a2b !important;
  font-size: 15px !important;
  line-height: 44px !important;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
}

.header-search input::placeholder {
  color: #6b7280 !important;
}

.header-search input[type="submit"],
.header-search button,
.header-search .search-submit {
  display: none !important;
}

/* Right cluster */
.header-right {
  grid-column: 5;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ===============================
   HERO
   =============================== */
.hero {
  height: 85vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11,26,43,0.85),
    rgba(11,26,43,0.25)
  );
}

.hero-content {
  position: relative;
  z-index: 5;
  padding: 150px 60px;
  max-width: 720px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.hero p {
  margin-bottom: 1.5rem;
}

.hero a.button {
  display: inline-block;
  background-color: #c62828;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero a.button:hover {
  background-color: #b71c1c;
  transform: translateY(-2px);
}

/* ===============================
   PRIMARY NAV – RED BAR
   =============================== */
.site-nav {
  width: 100%;
  background-color: #c62828;
}

.site-nav .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0 40px;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 64px;
  gap: 0;
}

.site-nav .nav-menu li {
  position: relative;
}

.site-nav .nav-menu li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 1px;
  background-color: rgba(255,255,255,0.35);
}

.site-nav .nav-menu a {
  display: block;
  padding: 0 26px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  color: #ffffff;
  text-decoration: none;

  line-height: 64px;
  border-radius: 4px;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-menu a:hover {
  background-color: #ffffff;
  color: #0b2a4a;
  text-decoration: none;
}

/* ===============================
   WOOCOMMERCE BUTTONS
   =============================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.add_to_cart_button,
.woocommerce a.checkout-button {
  background-color: #c62828 !important;
  color: #ffffff !important;
  border-radius: 4px;
  font-weight: 600;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background-color: #b71c1c !important;
}

/* Push Woo content below header */
body.woocommerce .site-main,
body.woocommerce-page .site-main {
  margin-top: 72px;
}

/* ===============================
   FOOTER
   =============================== */
.site-footer {
  background: var(--intentio-blue);
  color: #ffffff;
}

/* ROW A – 4 COLUMN FOOTER */
.footer-row-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 24px;
  padding: 24px 40px;
  align-items: start;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 8px;
}

.footer-menu a {
  color: #aaa;
  font-size: 0.95rem;
  text-decoration: none;
}

.footer-menu a:hover {
  text-decoration: underline;
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* Newsletter */
.footer-newsletter {
  max-width: 100%;
}

.newsletter-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  width: 100%;
  gap: 0;
  margin-bottom: 1.5rem;
}

.newsletter-form input,
.newsletter-form button {
  height: 60px;
  box-sizing: border-box;
}

.newsletter-form input {
  flex: 1;
  padding: 0 14px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
}

.newsletter-form button {
  padding: 0 18px;
  border-radius: 0 4px 4px 0;
  background-color: #c62828;
  color: #ffffff;
  border: none;
  font-weight: 600;
}

.newsletter-form button:hover {
  background-color: #b71c1c;
}

.newsletter-description,
.newsletter-disclaimer {
  text-align: left;
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Footer padding tweaks */
.footer-col-b {
  padding-left: clamp(24px, 4vw, 64px);
}

.footer-col-b .footer-title,
.footer-col-c .footer-title {
  margin-bottom: 1.1rem;
}

/* Footer social icons */
.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials .social-icon svg {
  width: 48px;
  height: 48px;
  fill: #ffffff;
}

/* Payment Icons */
.payment-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-col-right .payment-title {
  text-align: right;
}

.payment-icons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.payment-icons img {
  height: 60px;
  width: auto;
  padding: 2px 2px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.payment-icons img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-col-right .footer-payments-text {
  text-align: right;
  color: #aaa;
  font-size: 0.95rem;
}

.footer-phone-number {
  font-size: 18px;
  font-weight: 600;
  text-align: right;
}

/* ROW B */
.footer-bottom {
  background-color: #071b2f;
  border-top: none;
  padding: 10px 40px;
  font-size: 13px;
  text-align: left;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: rgba(255,255,255,0.8);
}

.footer-bottom a {
  transition: color 0.2s ease;
}

.footer {
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

/* ===============================
   SHOP – PDF BUTTON (SINGLE PRODUCT)
   =============================== */
.intentio-pdf-button {
  display: inline-block;
  padding: 10px 16px;
  background: #0b1c2d;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.intentio-pdf-button:hover {
  background: #c62828;
  color: #fff;
}

/* ===============================
   SHOP – DESKTOP EMPTY LEFT COLUMN (SHOP + CATEGORY)
   IMPORTANT: This targets ONLY shop/category via body classes
   =============================== */
body.woocommerce-shop .site-main,
body.woocommerce-product-category .site-main {
  display: grid;
  grid-template-columns: 260px 1fr; /* empty | products */
  gap: 40px;
  align-items: start;
}

/* Empty spacer column */
body.woocommerce-shop .site-main::before,
body.woocommerce-product-category .site-main::before {
  content: "";
  display: block;
}

/* Products + ordering forced into right column */
body.woocommerce-shop .site-main > *,
body.woocommerce-product-category .site-main > * {
  grid-column: 2;
}

/* ===============================
   SHOP GRID FIXES (DO NOT REMOVE)
   =============================== */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

/* kill floats */
.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* kill legacy first/last clears */
.woocommerce ul.products li.first,
.woocommerce ul.products li.last {
  clear: none !important;
}

/* kill clearfix pseudo grid items */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===============================
   PRODUCT CARDS (SHOP GRID)
   =============================== */
.woocommerce ul.products li.product {
  background: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 16px;
  text-align: left;

  display: flex;
  flex-direction: column;
  height: 100%;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 12px;
  background: #f3f4f6;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #0b1c2d;
  margin: 0 0 4px;
}

.woocommerce ul.products li.product .price {
  font-size: 14px;
  font-weight: 700;
  color: #0b1c2d;
  margin-bottom: 10px;
}

.woocommerce ul.products li.product a.button {
  margin-top: auto;
  align-self: flex-start;

  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;

  background: #0b1c2d;
  color: #ffffff;
  border-radius: 4px;

  transition: background-color 0.2s ease, transform 0.15s ease;
}

.woocommerce ul.products li.product a.button:hover {
  background: #c62828;
  transform: translateY(-1px);
}

/* ===============================
   SINGLE PRODUCT – TIDY (SCOPED ONLY)
   Does NOT affect shop grid or homepage
   =============================== */
body.single-product .woocommerce div.product {
  margin-top: 40px;
}

body.single-product .woocommerce div.product .product_title {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

body.single-product .woocommerce div.product .price {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

body.single-product .woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

body.single-product .woocommerce div.product form.cart {
  margin-bottom: 28px;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  background: #c62828;
  color: #ffffff;
}

body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #b71c1c;
}

body.single-product .woocommerce div.product .product_meta {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 20px;
}

body.single-product .woocommerce div.product .product_meta a {
  color: rgba(255,255,255,0.8);
}

/* ===============================
   MOBILE (HEADER/HERO)
   =============================== */
@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 0 16px;
    height: auto;
    row-gap: 16px;
  }

  .header-phone {
    display: none;
  }

  .header-search {
    grid-column: 1 / -1;
  }

  .hero-content {
    padding: 100px 24px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}


/* ===============================
   SCALE FLASH — POSITIONING
   =============================== */


/* SHOP GRID — anchor to product card */
.woocommerce ul.products li.product {
  position: relative;
}

/* SINGLE PRODUCT — correct anchor */
.woocommerce div.product .woocommerce-product-gallery__image {
  position: relative;
}

/* Single product image wrapper */
.intentio-image-wrap {
  position: relative;
  display: block;
}

/* Flash container */
.intentio-scale-flash {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
}


/* ===============================
   SCALE FLASH — SIZE CONTROL
   =============================== */

/* Shop grid size */
.intentio-scale-flash img {
  width: 96px;
  height: auto;
  display: block;
}

/* Single product size */
body.single-product .intentio-scale-flash img {
  width: 96px;   /* your chosen big size */
}





body.page:not(.woocommerce-page) .site-main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 32px;

  box-shadow:
    inset 1px 0 0 rgba(255,255,255,0.12),
    inset -1px 0 0 rgba(255,255,255,0.12);
}




/* ===============================
   DEBUG (OFF BY DEFAULT)
   Uncomment when needed
   =============================== */
/*
body.woocommerce-page * {
  outline: 1px solid rgba(0, 255, 255, 0.45) !important;
}

body.woocommerce-page .site-main,
body.woocommerce-page .woocommerce-result-count,
body.woocommerce-page .woocommerce-ordering,
body.woocommerce-page ul.products,
body.woocommerce-page li.product {
  outline: 2px solid rgba(0, 255, 255, 0.9) !important;
}

body.woocommerce-shop .site-main::before,
body.woocommerce-product-category .site-main::before {
  background: rgba(0, 255, 255, 0.08);
}

body.single-product .woocommerce-product-gallery {
  outline: 6px solid red !important;
}

*/

.woocommerce-message {
  display: none;
}

