/*
Theme Name: PDK
Theme URI: https://pdk.local/
Author: Kirill Art Design
Description: Custom WordPress and WooCommerce theme for Pa de Kale.
Version: 0.2.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: pdk
*/

body {
  background: var(--bg, #fff);
}

:root {
  --color-text-dark-half-shade: #666;
  --color-text-light-half-shade: #d8d8d8;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pdk-content > * + * {
  margin-top: 1rem;
}

.pdk-content p {
  line-height: 1.75;
  color: rgba(51, 51, 51, 0.72);
}

.pdk-content h2,
.pdk-content h3 {
  margin-top: 2rem;
  color: var(--color-text-dark, #333);
}

.pdk-content ul,
.pdk-content ol {
  padding-left: 1.25rem;
  color: rgba(51, 51, 51, 0.72);
}

.head-tags {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.head-tags-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.head-tags-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 47.9375rem) {
  .head-tags-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .head-tags-list .item {
    flex: 0 0 auto;
  }
}

.pdk-blog-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pdk-blog-content * {
  max-width: 100%;
}

.pdk-blog-content p {
  font-size: 1.125rem;
  line-height: 1.8;
}

.pdk-blog-content strong {
  color: var(--color-text-dark, #333);
}

.pdk-blog-content a {
  color: var(--color-btn-bg, #525665);
  font-weight: 600;
  text-decoration: none;
}

.pdk-blog-content h2,
.pdk-blog-content h3 {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 2rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.pdk-blog-content figure {
  margin: 2rem 0;
}

.pdk-blog-content table,
.pdk-blog-content iframe,
.pdk-blog-content video {
  max-width: 100%;
}

.pdk-blog-content table {
  display: block;
  overflow-x: auto;
}

.pdk-blog-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 2rem;
  object-fit: cover;
}

.pdk-blog-content blockquote {
  border-left: 4px solid var(--color-btn-bg, #525665);
  padding-left: 1.25rem;
  color: var(--color-text-dark, #333);
  font-size: 1.25rem;
  line-height: 1.8;
}

@media (min-width: 64rem) {
  .pdk-blog-aside {
    position: sticky;
    top: 15rem;
    align-self: flex-start;
  }
}

.pdk-wp-block {
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(51, 51, 51, 0.08);
}

.woocommerce-notices-wrapper {
  width: min(100% - 2rem, 90rem);
  margin: 1rem auto 0;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  padding: 1rem 1.25rem;
  color: rgba(51, 51, 51, 0.75);
}

.woocommerce-message {
  border-color: rgba(66, 158, 88, 0.28);
}

.woocommerce-error {
  border-color: rgba(197, 35, 48, 0.28);
}

.pdk-shop-ordering .woocommerce-ordering {
  margin: 0;
}

.pdk-shop-ordering select {
  border: 0;
  background: transparent;
  color: var(--color-text-dark, #333);
  font: inherit;
  outline: none;
}

[data-shop-filter-form] input[type="checkbox"] {
  accent-color: #2d2d2d;
}

.pdk-favorite-active {
  border-color: rgba(244, 63, 94, 0.28) !important;
  color: rgb(244, 63, 94) !important;
}

.pdk-favorite-active svg {
  fill: currentColor;
}

.pdk-lightbox-open {
  overflow: hidden;
}

.pdk-gallery-zoom-trigger {
  cursor: zoom-in;
}

.pdk-gallery-zoom-hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text-dark, #333);
  box-shadow: 0 0.75rem 1.5rem rgba(51, 51, 51, 0.12);
  opacity: 0;
  transform: translateY(-0.25rem);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.pdk-gallery-zoom-hint svg {
  width: 1.125rem;
  height: 1.125rem;
}

.pdk-gallery-zoom-trigger:hover .pdk-gallery-zoom-hint,
.pdk-gallery-zoom-trigger:focus-visible .pdk-gallery-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

.pdk-product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(0.5rem);
}

.pdk-product-lightbox.is-open {
  display: flex;
}

.pdk-product-lightbox__figure {
  display: flex;
  max-width: min(100%, 90rem);
  max-height: 88svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.pdk-product-lightbox__image {
  max-width: 100%;
  max-height: calc(88svh - 2.5rem);
  object-fit: contain;
}

.pdk-product-lightbox__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.3;
}

.pdk-product-lightbox__close,
.pdk-product-lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-dark, #333);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pdk-product-lightbox__close:hover,
.pdk-product-lightbox__nav:hover {
  background: #fff;
  transform: translateY(-0.0625rem);
}

.pdk-product-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
}

.pdk-product-lightbox__close svg,
.pdk-product-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.pdk-product-lightbox__nav {
  top: 50%;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
}

.pdk-product-lightbox__nav:hover {
  transform: translateY(calc(-50% - 0.0625rem));
}

.pdk-product-lightbox__nav--prev {
  left: 1rem;
}

.pdk-product-lightbox__nav--next {
  right: 1rem;
}

@media (max-width: 47.9375rem) {
  .pdk-gallery-zoom-hint {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    opacity: 1;
    transform: none;
  }

  .pdk-product-lightbox {
    padding: 0.75rem;
  }

  .pdk-product-lightbox__figure {
    max-height: 84svh;
  }

  .pdk-product-lightbox__image {
    max-height: calc(84svh - 2.5rem);
  }

  .pdk-product-lightbox__nav {
    top: auto;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    transform: none;
  }

  .pdk-product-lightbox__nav:hover {
    transform: translateY(-0.0625rem);
  }
}

[data-shop-results],
.shop-products-grid {
  max-width: 100%;
  min-width: 0;
}

.pdk-shop-layout {
  min-width: 0;
}

@media (min-width: 64rem) {
  .pdk-shop-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
}

.shop-products-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-carousel,
.product-carousel .swiper,
.product-carousel .swiper-wrapper {
  max-width: 100%;
  min-width: 0;
}

.pdk-home-gifts-grid {
  display: none;
}

.pdk-home-gifts-carousel {
  display: block;
}

@media (min-width: 64rem) {
  .pdk-home-gifts-carousel,
  .pdk-home-gifts-carousel-nav {
    display: none;
  }

  .pdk-home-gifts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .shop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 87.5rem) {
  .shop-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pdk-live-search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 80;
  width: 100%;
  color: var(--color-text-dark, #333);
}

.pdk-live-search-results[hidden] {
  display: none;
}

.pdk-live-search-panel {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.375rem;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  max-height: min(30rem, 70vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pdk-live-search-group + .pdk-live-search-group {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pdk-live-search-heading {
  padding: 0.85rem 1rem 0.35rem;
  color: var(--color-btn-bg, #525665);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdk-live-search-list {
  padding: 0.25rem;
}

.pdk-live-search-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdk-live-search-item:hover,
.pdk-live-search-item:focus-visible {
  background: var(--bg-minor-shade, #f7f7f7);
  outline: none;
}

.pdk-live-search-item--term {
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.pdk-live-search-thumb,
.pdk-live-search-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--bg-minor-shade, #f7f7f7);
}

.pdk-live-search-thumb {
  object-fit: cover;
}

.pdk-live-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-btn-bg, #525665);
  font-size: 0.82rem;
  font-weight: 700;
}

.pdk-live-search-item--term .pdk-live-search-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
}

.pdk-live-search-body {
  min-width: 0;
}

.pdk-live-search-title,
.pdk-live-search-meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdk-live-search-title {
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
}

.pdk-live-search-meta {
  margin-top: 0.2rem;
  color: rgba(51, 51, 51, 0.76);
  font-size: 0.78rem;
}

.pdk-live-search-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.95rem 1rem;
  color: var(--color-btn-bg, #525665);
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 0.15s ease;
}

.pdk-live-search-all:hover {
  background: var(--bg-minor-shade, #f7f7f7);
}

.pdk-live-search-loading,
.pdk-live-search-empty {
  padding: 1rem;
  color: rgba(51, 51, 51, 0.8);
  font-size: 0.9rem;
}

.pdk-live-search-empty-title {
  color: var(--color-text-dark, #333);
  font-size: 1rem;
  font-weight: 700;
}

.pdk-live-search-empty p {
  margin-top: 0.25rem;
}

@media (max-width: 47.9375rem) {
  .pdk-live-search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    bottom: auto;
    left: 0;
    width: 100%;
  }

  .pdk-live-search-panel {
    max-height: min(24rem, 58svh);
    border-radius: 0.375rem;
  }
}

.pdk-content p,
.pdk-content ul,
.pdk-content ol {
  color: rgba(51, 51, 51, 0.86);
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  color: rgba(51, 51, 51, 0.86);
}

.text-ink-900\/32 {
  color: rgba(51, 51, 51, 0.56) !important;
}

.text-ink-900\/46 {
  color: rgba(51, 51, 51, 0.68) !important;
}

.text-ink-900\/48 {
  color: rgba(51, 51, 51, 0.7) !important;
}

.text-ink-900\/50 {
  color: rgba(51, 51, 51, 0.72) !important;
}

.text-ink-900\/52 {
  color: rgba(51, 51, 51, 0.74) !important;
}

.text-ink-900\/56 {
  color: rgba(51, 51, 51, 0.76) !important;
}

.text-ink-900\/60 {
  color: rgba(51, 51, 51, 0.78) !important;
}

.text-ink-900\/62 {
  color: rgba(51, 51, 51, 0.8) !important;
}

.text-ink-900\/66 {
  color: rgba(51, 51, 51, 0.82) !important;
}

.text-ink-900\/70,
.text-ink-900\/72 {
  color: rgba(51, 51, 51, 0.86) !important;
}

.text-ink-900\/76,
.text-ink-900\/78 {
  color: rgba(51, 51, 51, 0.9) !important;
}

.blog-tag-input:checked + .blog-tag-label {
  border-color: var(--color-btn-bg, #525665) !important;
  background: var(--color-btn-bg, #525665) !important;
  color: var(--color-text-light, #fff) !important;
}

.blog-tag-input:checked + .blog-tag-label:hover {
  color: var(--color-text-light, #fff) !important;
}

.text-white\/45,
.text-white\/50,
.text-white\/56 {
  color: rgba(255, 255, 255, 0.76) !important;
}

.text-white\/58,
.text-white\/60,
.text-white\/62,
.text-white\/64 {
  color: rgba(255, 255, 255, 0.84) !important;
}

.text-white\/70,
.text-white\/74,
.text-white\/76 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.text-white\/82,
.text-white\/86,
.text-white\/88 {
  color: rgba(255, 255, 255, 0.94) !important;
}

.placeholder\:text-ink-900\/30::placeholder {
  color: rgba(51, 51, 51, 0.56) !important;
}

.placeholder\:text-white\/45::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
}

.pdk-contact-map {
  position: relative;
  min-height: 28rem;
  height: 100%;
}

.pdk-contact-map iframe {
  display: block;
  width: 100%;
  height: 28rem;
}

.pdk-content a:not(.button-primary):not(.button-secondary):not(.button-ghost):not(.wp-block-button__link),
.pdk-blog-content :where(p, li, dd, blockquote) a,
.pdk-wp-block :where(p, li, dd, blockquote) a {
  color: #2d2d2d;
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: rgba(45, 45, 45, 0.48);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.pdk-content a:not(.button-primary):not(.button-secondary):not(.button-ghost):not(.wp-block-button__link):hover,
.pdk-blog-content :where(p, li, dd, blockquote) a:hover,
.pdk-wp-block :where(p, li, dd, blockquote) a:hover {
  color: #111;
  text-decoration-color: currentColor;
}

.pdk-feedback {
  margin-top: 4rem;
}

.pdk-feedback .feedback {
  max-width: 48rem;
  margin-inline: auto;
}

.pdk-feedback .feedback__title {
  color: var(--color-text-dark, #333);
  font-family: var(--font-family-heading, inherit);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.pdk-feedback .wpcf7-form {
  margin-top: 1.5rem;
}

.pdk-feedback .feedback__fields {
  display: grid;
  gap: 1rem;
}

.pdk-feedback .form-control {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  background: var(--bg-minor-shade, #f7f7f7);
  padding: 0.95rem 1rem;
  color: var(--color-text-dark, #333);
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pdk-feedback textarea.form-control {
  min-height: 6rem;
  resize: vertical;
}

.pdk-feedback .form-control:focus {
  border-color: var(--color-btn-bg, #525665);
  background: #fff;
}

.pdk-feedback .wpcf7-not-valid {
  border-color: rgba(197, 35, 48, 0.45);
}

.pdk-feedback .wpcf7-not-valid-tip {
  margin-top: 0.45rem;
  color: #9f3f34;
  font-size: 0.85rem;
}

.pdk-feedback .wpcf7-list-item {
  margin: 0;
}

.pdk-feedback .wpcf7-acceptance label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: rgba(51, 51, 51, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pdk-feedback .wpcf7-acceptance input {
  margin-top: 0.35rem;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  accent-color: #2d2d2d;
}

.pdk-feedback .wpcf7-acceptance a {
  color: #2d2d2d;
  font-weight: 650;
  text-decoration-line: underline;
  text-underline-offset: 0.2em;
}

.pdk-feedback .feedback__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-btn-bg, #525665);
  padding: 0.95rem 1.6rem;
  color: var(--color-text-light, #fff);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pdk-feedback .feedback__submit-btn:hover {
  background: var(--color-btn-bg-minor-shade, #616677);
  transform: translateY(-1px);
}

.pdk-feedback .wpcf7-spinner {
  margin: 0.75rem 0 0 0.75rem;
}

.pdk-feedback .wpcf7-response-output {
  margin: 1rem 0 0 !important;
  border-radius: 1rem;
  padding: 0.95rem 1rem !important;
  color: rgba(51, 51, 51, 0.86);
}

@media (min-width: 64rem) {
  .pdk-contact-map {
    min-height: 100%;
  }

  .pdk-contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 48rem) {
  .pdk-feedback .feedback__fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pdk-feedback .feedback__field-area--wide,
  .pdk-feedback .feedback__submit,
  .pdk-feedback .wpcf7-response-output {
    grid-column: 1 / -1;
  }
}
