/* Purowiki local preview: replace the inherited store shell on inner pages.
   The editorial homepage supplies its own header and is intentionally excluded. */
body:not(.home) {
  --purowiki-ink: #26180f;
  --purowiki-cocoa: #20140e;
  --purowiki-gold: #d0a153;
  --purowiki-line: #e8dfd1;
  color: var(--purowiki-ink);
  background: #fff;
}

body:not(.home) .website-wrapper,
body:not(.home) .main-page-wrapper {
  background: #fff !important;
  background-image: none !important;
}

/* A dark, compact navigation area links the catalogue to the Purowiki homepage. */
body:not(.home) .whb-header {
  background: var(--purowiki-cocoa) !important;
  background-image: none !important;
}
body:not(.home) .whb-top-bar,
body:not(.home) .whb-header-bottom .whb-col-left,
body:not(.home) .whb-header-bottom .whb-col-right {
  display: none !important;
}
body:not(.home) .whb-general-header,
body:not(.home) .whb-header-bottom {
  background: var(--purowiki-cocoa) !important;
  background-image: none !important;
  color: #f8f1e6 !important;
}
body:not(.home) .whb-general-header {
  border-bottom: 1px solid rgba(232, 199, 128, .15);
}
body:not(.home) .whb-header-bottom .whb-col-center {
  width: 100%;
  flex: 1 1 100%;
}
body:not(.home) .whb-header-bottom .wd-header-main-nav,
body:not(.home) .whb-header-bottom .wd-nav-main {
  width: 100%;
  justify-content: center;
}
body:not(.home) .whb-header-bottom .wd-nav-main > li > a {
  min-height: 53px;
  color: #f2e7d6 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .035em;
}
body:not(.home) .whb-header-bottom .wd-nav-main > li:hover > a,
body:not(.home) .whb-header-bottom .wd-nav-main > li.current-menu-item > a,
body:not(.home) .whb-header-bottom .wd-nav-main > li.current_page_item > a {
  color: var(--purowiki-gold) !important;
}
body:not(.home) .whb-general-header .site-logo img {
  max-height: 64px;
  object-fit: contain;
}
body:not(.home) .whb-general-header .wd-search-form input[type='text'],
body:not(.home) .whb-general-header .wd-search-form input[type='search'] {
  background: #342419 !important;
  border: 1px solid #735637 !important;
  color: #fff8ed !important;
  box-shadow: none !important;
}
body:not(.home) .whb-general-header .wd-search-form input::placeholder {
  color: #d0bd9f !important;
  opacity: 1;
}
body:not(.home) .whb-general-header .wd-search-form button,
body:not(.home) .whb-general-header .wd-tools-element,
body:not(.home) .whb-general-header .wd-tools-element a,
body:not(.home) .whb-general-header .wd-tools-icon {
  color: #f7ecd9 !important;
}
body:not(.home) .whb-general-header .wd-header-cart .wd-tools-inner {
  background: #a67d42 !important;
  color: #fff !important;
}
body:not(.home) .whb-general-header .wd-header-cart .wd-tools-inner * {
  color: #fff !important;
}

/* White title panels replace the inherited black smoke banner. */
body:not(.home) .wd-page-title {
  padding: 38px 0 31px !important;
  background: #fff !important;
  background-image: none !important;
  border-bottom: 1px solid var(--purowiki-line);
  color: var(--purowiki-ink) !important;
}
body:not(.home) .wd-page-title-bg {
  display: none !important;
  background: none !important;
}
body:not(.home) .wd-page-title .container::before {
  content: 'PUROWIKI  /  REHBER VE KATALOG';
  display: block;
  margin-bottom: 10px;
  color: #9a6b2e;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
}
body:not(.home) .wd-page-title .entry-title,
body:not(.home) .wd-page-title h1 {
  color: var(--purowiki-ink) !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(36px, 4.2vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1.14 !important;
  letter-spacing: -.035em;
  text-shadow: none !important;
}
body:not(.home) .wd-page-title .wd-breadcrumbs,
body:not(.home) .wd-page-title .wd-breadcrumbs a,
body:not(.home) .wd-page-title .wd-breadcrumbs span {
  color: #705e4b !important;
}
body:not(.home) .wd-page-title .wd-breadcrumbs a:hover {
  color: #9a6b2e !important;
}

/* The image travels with its category title during WoodMart's partial page navigation. */
body.tax-product_cat .wd-page-title h1.entry-title:has(> .pw-brand-emblem) {
  display: inline-flex !important;
  align-items: center;
  gap: 20px;
  max-width: 100%;
}
.pw-brand-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 116px;
  width: 116px;
  height: 78px;
  overflow: hidden;
  border: 1px solid #eadcc9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(49,31,17,.09);
}
.pw-brand-emblem--dark { background: #24160f; }
.pw-brand-emblem--fallback {
  flex-direction: column;
  gap: 1px;
  background: #24160f;
  color: #d9b76d;
}
.pw-brand-emblem__initials {
  font: 400 30px/1 Georgia, 'Times New Roman', serif;
  letter-spacing: .05em;
}
.pw-brand-emblem__name {
  max-width: 96%;
  overflow: hidden;
  color: #f1e4c6;
  font: 700 8px/1.2 Arial, sans-serif;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pw-brand-emblem img {
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
}
.pw-brand-heading-text { min-width: 0; }
@media (max-width: 767px) {
  body.tax-product_cat .wd-page-title h1.entry-title:has(> .pw-brand-emblem) { gap: 12px; }
  .pw-brand-emblem { flex-basis: 76px; width: 76px; height: 56px; border-radius: 10px; }
  .pw-brand-emblem__initials { font-size: 21px; }
  .pw-brand-emblem__name { font-size: 7px; }
}

/* Keep guide and brand pages on a clean white canvas. */
body:not(.home) .site-content,
body:not(.home) .entry-content,
body:not(.home) .wd-content-layout {
  background-color: transparent;
}
body:not(.home) .tc-brands__head h2,
body:not(.home) .site-content h2 {
  color: var(--purowiki-ink);
}
body.page-id-7761 .tc-brands {
  margin-block: 34px 55px;
}
body.page-id-7761 .tc-brands__head h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3vw, 39px);
  font-weight: 400;
}
body.page-id-7761 .tc-brands__card {
  background: #fff;
  border: 1px solid var(--purowiki-line);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(38, 24, 15, .045);
}
body.page-id-7761 .tc-brands__card:hover {
  border-color: #c9a66f;
  box-shadow: 0 14px 32px rgba(38, 24, 15, .09);
}

/* Keep the three curated cigar categories visible above the long brand filter. */
body.woocommerce-shop .purowiki-curated-categories,
body.tax-product_cat .purowiki-curated-categories {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
body.woocommerce-shop .purowiki-curated-categories a,
body.tax-product_cat .purowiki-curated-categories a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 43px;
  padding: 9px 13px;
  border: 1px solid #e7d9c4;
  border-radius: 13px;
  background: #fbf8f2;
  color: var(--purowiki-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
body.woocommerce-shop .purowiki-curated-categories a span,
body.tax-product_cat .purowiki-curated-categories a span {
  color: #9a6b2e;
  font-size: 17px;
  line-height: 1;
}
body.woocommerce-shop .purowiki-curated-categories a:hover,
body.tax-product_cat .purowiki-curated-categories a:hover {
  border-color: #c9a66f;
  background: #f3eadb;
  color: #4c301a;
  transform: translateX(2px);
}
body.woocommerce-shop .purowiki-curated-categories a:focus-visible,
body.tax-product_cat .purowiki-curated-categories a:focus-visible {
  outline: 3px solid var(--purowiki-gold);
  outline-offset: 3px;
}
body.woocommerce-shop .elementor-element-ccefa4d .promo-banner-wrapper,
body.tax-product_cat .elementor-element-ccefa4d .promo-banner-wrapper {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(38, 24, 15, .13);
}
body.woocommerce-shop .elementor-element-ccefa4d .wrapper-content-banner,
body.tax-product_cat .elementor-element-ccefa4d .wrapper-content-banner {
  background: linear-gradient(180deg, rgba(27, 18, 12, .78), rgba(22, 16, 12, .94)) !important;
}

/* The Puro shortcuts are individual engraved wood planks. */
body:not(.home) .tc-puro-hizli-gecis {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 13px;
  margin: 22px 0 30px !important;
}
body.tax-product_cat.term-puro .elementor-widget-container .term-description p.tc-puro-hizli-gecis.tc-puro-hizli-gecis a:nth-child(n) {
  position: relative;
  display: flex !important;
  min-height: 72px !important;
  align-items: center;
  justify-content: center;
  padding: 14px 25px !important;
  border: 1px solid #482611 !important;
  border-radius: 10px !important;
  background-color: #714022 !important;
  background-image: linear-gradient(rgba(44, 20, 8, .16), rgba(39, 17, 7, .24)), url('walnut-wood-v1.webp') !important;
  background-size: cover !important;
  background-position: center 35% !important;
  box-shadow: inset 0 2px rgba(255, 224, 159, .28), inset 0 -4px rgba(48, 20, 7, .28), 0 4px 0 #4a2815, 0 8px 15px rgba(53, 30, 15, .18) !important;
  color: #fff8e8 !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  text-shadow: 0 1px 2px #2e160a;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a::before,
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a::after {
  content: '';
  position: absolute;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 1px solid #6b411f;
  border-radius: 50%;
  background: #d9ad6a;
  box-shadow: inset 0 1px rgba(255, 245, 205, .7), 0 1px 2px rgba(32, 12, 5, .5);
}
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a::before { left: 10px; }
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a::after { right: 10px; }
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a:nth-child(2n) { background-position: center 61% !important; }
body.tax-product_cat.term-puro .term-description .tc-puro-hizli-gecis a:nth-child(3n) { background-position: 70% 20% !important; }
body.tax-product_cat.term-puro .elementor-widget-container .term-description p.tc-puro-hizli-gecis.tc-puro-hizli-gecis a:nth-child(n):hover,
body.tax-product_cat.term-puro .elementor-widget-container .term-description p.tc-puro-hizli-gecis.tc-puro-hizli-gecis a:nth-child(n):focus-visible {
  color: #fff !important;
  filter: brightness(1.16);
  transform: translateY(-2px);
  box-shadow: inset 0 2px rgba(255, 224, 159, .34), inset 0 -4px rgba(48, 20, 7, .24), 0 6px 0 #4a2815, 0 12px 18px rgba(53, 30, 15, .23) !important;
}

/* The Puro catalogue filter is set into the same real walnut surface. */
body.tax-product_cat.term-puro .tc-cigar-filters {
  border: 1px solid #55311d !important;
  border-radius: 22px !important;
  background-color: #412718 !important;
  background-image: linear-gradient(125deg, rgba(29, 15, 8, .73), rgba(49, 25, 12, .62)), url('walnut-wood-v1.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 1px rgba(255, 231, 188, .16), 0 14px 30px rgba(42, 24, 13, .16) !important;
  color: #fff5e8 !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters__intro h2,
body.tax-product_cat.term-puro .tc-cigar-filters__fields label {
  color: #fff5e8 !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters__intro p,
body.tax-product_cat.term-puro .tc-cigar-filters__note {
  color: #e8d8c0 !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters .tc-cigar-filters__guides > a:nth-child(n) {
  border: 1px solid #a47645 !important;
  background-color: #714022 !important;
  background-image: linear-gradient(rgba(38, 19, 8, .34), rgba(36, 17, 8, .45)), url('walnut-wood-v1.webp') !important;
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 1px rgba(255, 227, 181, .18), 0 8px 16px rgba(24, 11, 5, .28) !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters .tc-cigar-filters__guides > a:nth-child(n):hover {
  filter: brightness(1.13);
  transform: translateY(-2px);
}
body.tax-product_cat.term-puro .tc-cigar-filters__fields select {
  border: 1px solid #d5b78e !important;
  background: #fffaf2 !important;
  color: #291a10 !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters__actions button {
  border: 1px solid #f3d89d !important;
  background: #d9aa61 !important;
  color: #24160d !important;
  box-shadow: 0 4px 0 #6b431f !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters__actions button:hover {
  background: #f0c882 !important;
  transform: translateY(-1px);
}
body.tax-product_cat.term-puro .tc-cigar-filters__actions a {
  color: #ffe3ac !important;
}
body.tax-product_cat.term-puro .tc-cigar-filters :is(a, button, select):focus-visible {
  outline: 3px solid #f3cb7e !important;
  outline-offset: 3px;
}
body.tax-product_cat.term-puro .elementor-widget-container .term-description p.tc-puro-hizli-gecis.tc-puro-hizli-gecis a:nth-child(n):focus-visible {
  outline: 3px solid #d7a75b !important;
  outline-offset: 4px;
}
@media (max-width: 520px) {
  body:not(.home) .tc-puro-hizli-gecis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  body.tax-product_cat.term-puro .elementor-widget-container .term-description p.tc-puro-hizli-gecis.tc-puro-hizli-gecis a:nth-child(n) {
    min-height: 78px !important;
    font-size: 14px !important;
    padding-inline: 18px !important;
  }
  body:not(.home) .tc-puro-hizli-gecis a::before { left: 5px; }
  body:not(.home) .tc-puro-hizli-gecis a::after { right: 5px; }
}

/* Product information follows the same clean catalogue palette. */
body.single-product .product_title {
  color: var(--purowiki-ink) !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-weight: 400 !important;
  letter-spacing: -.025em;
}
body.single-product .wd-single-price .price,
body.single-product .wd-single-price .price .amount {
  color: #9a6b2e !important;
}
body.single-product .wd-info-box {
  background: #fff !important;
  border: 1px solid var(--purowiki-line);
  border-left: 4px solid var(--purowiki-gold);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(38, 24, 15, .045);
}
body.single-product .tc-product-category-widget .product-categories > li:not(.cat-item-187):not(.cat-item-172):not(.cat-item-202) {
  display: none !important;
}
body.single-product .tc-product-category-widget .product-categories > li > a {
  color: var(--purowiki-ink);
}
body.single-product .tc-product-category-widget .product-categories a:hover,
body.single-product .tc-product-category-widget .product-categories .current-cat > a {
  color: #9a6b2e !important;
}

/* Warm editorial footer instead of the inherited flat black bar. */
body:not(.home) .wd-footer {
  background: var(--purowiki-cocoa) !important;
  border-top: 4px solid var(--purowiki-gold);
  color: #eee2d0;
}
body:not(.home) .wd-footer h4,
body:not(.home) .wd-footer .widget-title {
  color: #f7ecda !important;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
body:not(.home) .wd-footer a {
  color: #d8c6ae !important;
}
body:not(.home) .wd-footer a:hover {
  color: var(--purowiki-gold) !important;
}

@media (max-width: 1024px) {
  body:not(.home) .wd-toolbar {
    background: var(--purowiki-cocoa) !important;
    border-top: 1px solid #846139 !important;
    box-shadow: 0 -7px 24px rgba(32, 20, 14, .12);
  }
  body:not(.home) .wd-toolbar .wd-tools-element,
  body:not(.home) .wd-toolbar .wd-tools-element a,
  body:not(.home) .wd-toolbar .wd-toolbar-label,
  body:not(.home) .wd-toolbar .wd-tools-icon {
    color: #f3e8d8 !important;
  }
  body:not(.home) .wd-toolbar .wd-tools-count {
    background: var(--purowiki-gold) !important;
    color: #20140e !important;
  }
  body:not(.home) .mobile-nav.wd-side-hidden {
    background: #fff !important;
  }
  body:not(.home) .mobile-nav .wd-search-form {
    background: #fff !important;
    border-bottom: 1px solid var(--purowiki-line);
  }
  body:not(.home) .mobile-nav .wd-nav-mob-tab {
    background: #f9f5ed !important;
  }
  body:not(.home) .mobile-nav .wd-nav-mob-tab > li > a {
    color: #60432a !important;
    font-size: 12px;
    letter-spacing: .12em;
  }
  body:not(.home) .mobile-nav .wd-nav-mob-tab > li.wd-active > a {
    color: #8e622c !important;
  }
  body:not(.home) .mobile-nav .wd-nav-mob-tab > li.wd-active::after,
  body:not(.home) .mobile-nav .wd-nav-mob-tab > li.wd-active > a::after {
    background-color: var(--purowiki-gold) !important;
  }
  body:not(.home) .mobile-nav .wd-nav-mobile > li > a {
    color: var(--purowiki-ink) !important;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
  }
  body:not(.home) .mobile-nav .wd-nav-mobile > li.current-menu-item > a,
  body:not(.home) .mobile-nav .wd-nav-mobile > li > a:hover {
    color: #9a6b2e !important;
  }
  body:not(.home) .whb-general-header {
    border-bottom: 0;
  }
  body:not(.home) .wd-page-title {
    padding: 29px 0 25px !important;
  }
  body:not(.home) .wd-page-title .entry-title,
  body:not(.home) .wd-page-title h1 {
    font-size: clamp(31px, 7vw, 44px) !important;
  }
}
