/* =========================================================
   DenCo Enterprises Shop - static preservation stylesheet
   Derived from th-shop-mania v1.7.1 inline styles + live CSS
   ========================================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Pagefind theme --- */
:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: #2b2873;
  --pagefind-ui-text: #222;
  --pagefind-ui-background: #fff;
  --pagefind-ui-border: #ddd;
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: 'Jost', sans-serif;
}
/* Fit the widget into the header search col */
.thsm-search-widget { width: 100%; }
.thsm-search-widget .pagefind-ui__search-input {
  border-right: none !important;
}
.thsm-search-widget .pagefind-ui__search-clear {
  background: #2b2873;
  color: #fff;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #222;
  background: #fff;
  line-height: 1.6;
}
a { color: #2b2873; text-decoration: none; }
a:hover { color: #2b2873; text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: 'Jost', sans-serif; }

/* --- Container --- */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 10px;
}

/* =========================================================
   HEADER
   ========================================================= */
.thsm-header { background: #fff; }

.main-header {
  border-bottom: 1px solid #ebebeb;
}
.main-header .container { padding: 15px 10px; }

.desktop-main-header .main-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.main-header-col1 { flex: 0 0 auto; }
.main-header-col2 { flex: 1 1 auto; max-width: 480px; }
.main-header-col3 { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }

/* Logo */
.site-logo img { max-width: 250px; display: block; }

/* Search box */
.thsm-search-form { display: flex; }
.thsm-search-form input[type="search"] {
  flex: 1;
  border: 1px solid #ddd;
  border-right: none;
  padding: 8px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  outline: none;
  border-radius: 0;
}
.thsm-search-form button {
  background: #2b2873;
  border: none;
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 0;
}
.thsm-search-form button:hover { background: #1f1d5a; }
.thsm-search-form button svg { width: 16px; height: 16px; fill: #fff; }

/* Header icons */
.header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #444;
  font-size: 11px;
  gap: 2px;
  text-decoration: none;
}
.header-icon-link:hover { color: #2b2873; text-decoration: none; }
.header-icon-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Below header / nav */
.below-header {
  border-bottom: 1px solid #ebebeb;
  background: #fff;
}
.th-shop-mania-menu > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.th-shop-mania-menu > li > a:hover { color: #2b2873; text-decoration: none; }

/* Below-header two-column layout */
.below-header-bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}
.below-header-col1 {
  position: relative;
  flex-shrink: 0;
  margin-right: 16px;
}
.below-header-col2 {
  flex: 1;
  min-width: 0;
}

/* All Categories button */
.menu-category-list { position: relative; }
.toggle-cat-wrap { box-sizing: border-box; }
p.cat-toggle {
  display: inline-flex;
  align-items: center;
  background: #2b2873;
  color: #fff;
  padding: 9px 16px;
  border-radius: 5px;
  margin: 0;
  height: 45px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.cat-icon { display: inline-flex; flex-direction: column; justify-content: center; }
.cat-icon span { display: block !important; background-color: #fff; border-radius: 1px; }
.cat-top { margin: 3px; height: 2px; width: 26px; }
.cat-mid { margin: 3px; height: 2px; width: 12px; }
.cat-bot { margin: 3px; height: 2px; width: 18px; }
.cate-text { margin-left: 7px; font-size: 16px; font-weight: 500; }

/* Categories dropdown */
.product-cat-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ebebeb;
  border-top: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 100;
  list-style: none;
  padding: 0;
  margin: 0;
}
.product-cat-list.open { display: block; }
.product-cat-list li a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
}
.product-cat-list li:last-child a { border-bottom: none; }
.product-cat-list li a:hover { background: #f7f7f7; color: #2b2873; }

/* Nav links - no wrap at desktop */
.th-shop-mania-menu {
  display: flex;
  flex-wrap: nowrap;
}

/* Mobile header - hidden on desktop */
.responsive-main-header { display: none; }
.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #333;
}
.mobile-menu-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }

/* =========================================================
   STORE CLOSED NOTICE
   ========================================================= */
#woo-store-vacation {
  background-color: #2b2873 !important;
  padding: 1em 1.618em;
  margin: 1.617924em 0 2.617924em 0;
  border-left: 4px solid rgba(0,0,0,.15);
  border-radius: 2px;
}
#woo-store-vacation .woocommerce-info {
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* =========================================================
   FEATURED PRODUCT HERO (homepage)
   ========================================================= */
.wc-block-featured-product {
  margin-top: 22px;
  margin-bottom: 2em;
}
/* The wrapper IS the full hero block -- bg image + overlay + text all live inside it */
.wc-block-featured-product__wrapper {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding: 60px 20px;
}
.wc-block-featured-product__background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.background-dim__overlay {
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.5;
  z-index: 1;
}
/* All text/button children sit above the overlay */
.wc-block-featured-product__title,
.wc-block-featured-product__description,
.wc-block-featured-product__price,
.wc-block-featured-product__inner-blocks {
  position: relative;
  z-index: 2;
  max-width: 700px;
  width: 100%;
}
.wc-block-featured-product__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.wc-block-featured-product__description {
  font-size: 16px;
  margin: 0 0 12px;
  color: #fff;
}
.wc-block-featured-product__price {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #fff;
}
.wp-block-button .wp-block-button__link {
  display: inline-block;
  background: #2b2873;
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.wp-block-button .wp-block-button__link:hover { background: #1f1d5a; text-decoration: none; }

/* =========================================================
   PRODUCT GRID (shop / homepage)
   ========================================================= */
.page-head { display: none; }

.products-section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ebebeb;
  color: #222;
}

ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0 0 1.5em 0;
}

li.product { position: relative; }

.thunk-product-wrap { position: relative; overflow: hidden; }
.thunk-product { border: 1px solid #ebebeb; background: #fff; transition: box-shadow 0.2s; }
.thunk-product:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.thunk-product > a.woocommerce-loop-product__link { display: block; text-decoration: none; color: inherit; }
.thunk-product-image { position: relative; overflow: hidden; background: #f9f9f9; }
.thunk-product-image img { display: block; width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; transition: transform 0.3s; }
.thunk-product:hover .thunk-product-image img { transform: scale(1.04); }

/* Sale badge */
.onsale {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #2b2873;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 2;
  text-transform: uppercase;
}

.thunk-product-content { padding: 12px; }
.woocommerce-loop-product__title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
  color: #222;
  line-height: 1.3;
}

/* Prices */
.price { display: block; font-size: 15px; font-weight: 500; color: #222; }
.price del { color: #999; font-weight: 400; margin-right: 4px; }
.price ins { text-decoration: none; color: #222; }

/* Hover CTA */
.thunk-product-hover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.25s;
  z-index: 3;
}
.thunk-product:hover .thunk-product-hover { transform: translateY(0); }
.th-add-to-cart { text-align: center; }
.th-add-to-cart .button {
  display: inline-block;
  background: #2b2873;
  color: #fff;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.th-add-to-cart .button:hover { background: #1f1d5a; text-decoration: none; }

/* Out of stock */
li.outofstock .thunk-product { opacity: 0.75; }

/* =========================================================
   SINGLE PRODUCT PAGE
   ========================================================= */
.thunk-single-product-summary-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Gallery */
.woocommerce-product-gallery {
  float: left;
  width: 45%;
  margin-right: 2%;
}
.woocommerce-product-gallery__wrapper { display: flex; flex-direction: column; gap: 10px; }
.woocommerce-product-gallery__image { position: relative; }
.woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ebebeb;
}
.woocommerce-product-gallery__image.is-main { }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gallery-thumb {
  width: 70px;
  height: 70px;
  border: 1px solid #ddd;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: #2b2873; }

/* Summary */
.summary.entry-summary {
  float: right;
  width: 53%;
}
.product_title.entry-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 30px;
  color: #222;
  line-height: 1.2;
}
.summary .price {
  font-size: 24px;
  line-height: 31px;
  font-weight: 500;
  margin: 0 0 16px;
  display: block;
}
.summary .price del { color: #999; font-weight: 400; }
.summary .price ins { text-decoration: none; }
.woocommerce-product-details__short-description {
  font-size: 18px;
  line-height: 32px;
  margin: 0 0 20px;
  color: #444;
}
.product_meta { font-size: 14px; color: #666; margin: 10px 0 20px; }
.product_meta a { color: #2b2873; }

/* Store-closed button on single product */
.store-closed-notice {
  display: inline-block;
  background: #f0f0f0;
  color: #666;
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 2px;
  margin: 10px 0;
  cursor: default;
  font-style: italic;
}
.buy-on-amazon-btn {
  display: inline-block;
  background: #ff9900;
  color: #111;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.buy-on-amazon-btn:hover { background: #e68a00; color: #111; text-decoration: none; }

/* Product tabs */
.woocommerce-tabs { padding: 60px 0; clear: both; }
ul.tabs.wc-tabs {
  display: flex;
  border-bottom: 2px solid #ebebeb;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
ul.tabs.wc-tabs li { margin-right: 4px; }
ul.tabs.wc-tabs li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  border: 1px solid transparent;
  border-bottom: none;
  text-decoration: none;
  cursor: pointer;
  background: #f9f9f9;
}
ul.tabs.wc-tabs li.active a,
ul.tabs.wc-tabs li a:hover { color: #2b2873; background: #fff; border-color: #ebebeb; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { font-size: 15px; line-height: 1.7; color: #444; }
.tab-panel h2, .tab-panel h3 { font-size: 18px; margin: 20px 0 10px; }
.tab-panel ul li { list-style: disc; margin-left: 20px; }

/* Attributes table */
.shop_attributes { width: 100%; border-collapse: collapse; font-size: 14px; }
.shop_attributes th, .shop_attributes td {
  border: 1px solid #ebebeb;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.shop_attributes th { background: #f9f9f9; font-weight: 600; width: 35%; color: #555; }

/* Related products */
.related.products { clear: both; padding: 20px 0; }
.related.products h2 { font-size: 22px; font-weight: 600; margin: 0 0 20px; }

/* =========================================================
   STATIC PAGES
   ========================================================= */
.page-content-wrap { padding: 40px 0 60px; }
.page-content-wrap h1 { font-size: 30px; font-weight: 600; margin: 0 0 24px; color: #222; }
.page-content-wrap .entry-content { font-size: 16px; line-height: 1.75; color: #444; max-width: 760px; }
.page-content-wrap .entry-content h2 { font-size: 22px; margin: 32px 0 12px; color: #222; }
.page-content-wrap .entry-content ul { list-style: disc; padding-left: 24px; }
.page-content-wrap .entry-content ul li { margin-bottom: 6px; }
.page-content-wrap .entry-content a { color: #2b2873; }
.page-content-wrap .entry-content a:hover { text-decoration: underline; }

.store-closed-box {
  background: #f4f4f8;
  border-left: 4px solid #2b2873;
  padding: 20px 24px;
  border-radius: 2px;
  font-size: 17px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 32px;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.woocommerce-breadcrumb {
  font-size: 13px;
  color: #999;
  padding: 12px 0;
  margin-bottom: 20px;
}
.woocommerce-breadcrumb a { color: #999; }
.woocommerce-breadcrumb a:hover { color: #2b2873; }
.woocommerce-breadcrumb .sep { margin: 0 6px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #fff;
  border-top: 1px solid #ebebeb;
  padding: 20px 0;
  margin-top: 40px;
}
.footer-copyright {
  font-size: 13px;
  color: #888;
  display: inline-block !important;
  margin: 0;
}

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

@media (max-width: 768px) {
  .desktop-main-header { display: none; }
  .responsive-main-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; }
  .th-shop-mania-menu { display: none; }
  .th-shop-mania-menu.open { display: flex; flex-direction: column; width: 100%; }

  ul.products { grid-template-columns: repeat(2, 1fr); }

  .woocommerce-product-gallery { float: none; width: 100%; margin: 0 0 24px; }
  .summary.entry-summary { float: none; width: 100%; }
  .thunk-single-product-summary-wrap { flex-direction: column; }

  .wc-block-featured-product__wrapper { min-height: 320px; }
  .wc-block-featured-product__title { font-size: 22px; }
}

@media (max-width: 480px) {
  ul.products { grid-template-columns: 1fr; }
}

/* =========================================================
   TAB JS (simple toggle - no WP/jQuery needed)
   ========================================================= */
