﻿.pottery-section {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.42) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.72) 100%),
        url("/media/thumb/1280/headers/pottery-section-bg-clean.jpg?v=20260929-srgb-v2") center / cover no-repeat;
    background-color: #000000; /* Черный фон из макета */
    padding: 100px 0;
    color: #FFFFFF;
}

/* Промо-блок */
.pottery-hero {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 80px;
}

.pottery-hero-content h2 {
    font-size: 42px;
    max-width: 600px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.view-all-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
}

/* Карточки категорий */
.pottery-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.cat-card {
    height: clamp(340px, 26vw, 410px);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #111111;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-decoration: none;
    color: #FFFFFF;
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.cat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.74) 100%);
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.54);
}

.cat-card:focus-visible {
    outline: 3px solid #A8C8A0;
    outline-offset: 4px;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 64%;
    border-radius: inherit;
    margin-bottom: 0;
    background: var(--brand-accent);
    position: absolute;
    inset: 0;
    z-index: -2;
    transition: transform 0.25s ease;
}

.cat-card:hover img {
    transform: scale(1.04);
}

.cat-name {
    padding-right: 62px;
    font-weight: 900;
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: anywhere;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.42);
}

.cat-arrow {
    position: absolute;
    right: 24px;
    bottom: 27px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: #FFFFFF;
    transition: transform 0.25s ease, color 0.25s ease;
}

.cat-arrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
}

.cat-card:hover .cat-arrow {
    transform: translateX(4px);
    color: #A8C8A0;
}

/* Витрина товаров */
.pottery-products-swiper {
    overflow: hidden;
    margin-right: -20px;
    padding: 2px 20px 44px 2px;
}

.pottery-products-swiper .swiper-slide {
    display: flex;
    height: auto;
}

.pottery-products-swiper:not(.swiper-initialized) .pottery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pottery-grid .product-card {
    width: 100%;
    background: #FFFFFF;
    color: #1E3A2B;
    min-height: 0;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.pottery-grid .product-card--out-stock {
    background: #E9ECE9;
    box-shadow: none;
}

.pottery-grid .product-card--out-stock .product-thumb img {
    filter: grayscale(1);
    opacity: 0.58;
}

.pottery-grid .product-card--out-stock .product-info,
.pottery-grid .product-card--out-stock .product-title a,
.pottery-grid .product-card--out-stock .price-main,
.pottery-grid .product-card--out-stock .product-type {
    color: #59635D;
}

.pottery-grid .product-thumb {
    display: flex;
    min-height: 0;
    align-items: stretch;
    justify-content: center;
    aspect-ratio: 3 / 4;
    padding: 0;
    background: var(--brand-accent);
    border-bottom: 0;
    overflow: hidden;
}

.pottery-grid .product-thumb img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    border-radius: 4px;
    background: var(--brand-accent);
    transform: scale(1.14);
    transform-origin: center center;
}

.pottery-grid .product-badge-group {
    top: 18px;
    left: 18px;
    max-width: calc(100% - 72px);
}

.pottery-grid .product-badge {
    border: 1px solid rgba(30, 58, 43, 0.18);
    border-radius: 999px;
    background: var(--brand-accent);
    color: #1E3A2B;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pottery-grid .product-badge--hit {
    border-color: rgba(30, 58, 43, 0.14);
    background: #A8C8A0;
    color: #1E3A2B;
}

.pottery-grid .product-favorite-btn {
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(30, 58, 43, 0.12);
    background: rgba(var(--brand-accent-rgb), 0.92);
    color: rgba(30, 58, 43, 0.52);
    box-shadow: 0 8px 18px rgba(30, 58, 43, 0.1);
}

.pottery-grid .product-favorite-btn:hover,
.pottery-grid .product-favorite-btn.is-active {
    background: #A8C8A0;
    color: #1E3A2B;
}

.pottery-grid .product-info {
    align-items: center;
    gap: 12px;
    padding: 18px 24px 24px;
    text-align: center;
}

.pottery-grid .product-meta {
    justify-content: center;
    color: rgba(30, 58, 43, 0.58);
    font-size: 14px;
}

.pottery-grid .product-stock,
.pottery-grid .product-desc,
.pottery-grid .product-tags,
.pottery-grid .product-favorite-inline,
.pottery-grid .price-old {
    display: none;
}

.pottery-grid .product-title {
    max-width: 300px;
    min-height: 64px;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
}

.pottery-grid .product-title a {
    color: #1E3A2B;
}

.pottery-grid .product-footer {
    width: 100%;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    gap: 13px;
}

.pottery-grid .price-wrapper {
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.pottery-grid .price-wrapper::after {
    display: none !important;
    content: none !important;
}

.pottery-grid .price-main {
    color: #1E3A2B;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.12;
}

.pottery-grid .price-main span {
    display: block;
    margin-top: 7px;
    color: rgba(30, 58, 43, 0.68);
    font-size: 14px;
    font-weight: 800;
}

.pottery-grid .add-to-cart-btn {
    flex: 0 0 auto;
    width: 100%;
    min-height: 58px;
    gap: 12px;
    border-radius: 999px;
    background: #1E3A2B;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 900;
}

.pottery-grid .add-to-cart-icon {
    width: 22px;
    height: 22px;
}

.pottery-grid .add-to-cart-btn:hover {
    background: #A8C8A0;
    color: #1E3A2B;
}

.pottery-grid .product-thumb-link {
    cursor: grab;
}

.pottery-products-swiper.swiper-grabbing .product-thumb-link {
    cursor: grabbing;
}

.pottery-products-pagination {
    position: static;
    margin-top: 20px;
    text-align: center;
}

.pottery-products-swiper.swiper-horizontal > .pottery-products-pagination.swiper-pagination-bullets-dynamic {
    margin-inline: auto;
    left: auto;
    transform: none;
}

.pottery-products-swiper .pottery-products-pagination .swiper-pagination-bullet {
    --pottery-dot-color: #A8C8A0;
    width: 24px !important;
    height: 24px !important;
    margin: 0 2px !important;
    background: radial-gradient(circle, var(--pottery-dot-color) 0 4px, transparent 4.5px);
    opacity: 1;
}

.pottery-products-swiper .pottery-products-pagination .swiper-pagination-bullet-active {
    --pottery-dot-color: #FFFFFF;
}

.pottery-products-pagination .swiper-pagination-bullet:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
}

.center-btn {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    background: #A8C8A0;
    color: #1E3A2B;
    text-decoration: none;
    font-weight: 600;
}

/* Component-scoped geometry wins over the older shared mobile card overrides.
   Portrait originals must fit without cutting off handles, spouts or lids. */
html body .pottery-products-swiper .product-card.product-card {
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
}

html body .pottery-products-swiper .pottery-grid {
    align-items: flex-start;
}

html body .pottery-products-swiper .product-card.product-card :is(.product-card-media, .product-thumb-link, .product-thumb) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    aspect-ratio: 4 / 5 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

html body .pottery-products-swiper .product-card.product-card .product-thumb img {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

html body .pottery-products-swiper .product-card.product-card .product-info {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 14px !important;
    text-align: left !important;
}

html body .pottery-products-swiper .product-card.product-card .product-meta {
    text-align: left !important;
    justify-content: flex-start !important;
}

html body .pottery-products-swiper .product-card.product-card .product-title {
    display: block !important;
    min-height: 2.6em !important;
    max-height: none !important;
    max-width: none;
    margin: 0 !important;
    overflow: visible;
    -webkit-line-clamp: unset !important;
    text-align: left !important;
}

html body .pottery-products-swiper .product-card.product-card :is(.product-title, .product-title a) {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

html body .pottery-products-swiper .product-card.product-card .product-footer {
    align-items: stretch !important;
    margin-top: 8px !important;
    padding: 0 !important;
    gap: 12px !important;
}

html body .pottery-products-swiper .product-card.product-card .price-wrapper {
    width: 100%;
    align-items: stretch !important;
}

html body .pottery-products-swiper .product-card.product-card .price-main {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 8px !important;
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.2 !important;
    text-align: left !important;
}

html body .pottery-products-swiper .product-card.product-card .price-unit {
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    color: #64756b;
}

html body .pottery-products-swiper .product-card.product-card .add-to-cart-btn {
    height: auto !important;
    min-height: 46px !important;
    border-radius: 11px !important;
}

@media (max-width: 768px) {
    html body .pottery-products-swiper .product-card.product-card .product-info {
        padding: 12px 10px 10px !important;
    }

    html body .pottery-products-swiper .product-card.product-card :is(.product-title, .product-title a) {
        font-size: 15px !important;
    }

    html body .pottery-products-swiper .product-card.product-card .price-main {
        font-size: 20px !important;
    }

    .pottery-section {
        padding: 64px 0;
    }

    .pottery-hero {
        gap: 34px;
        margin-bottom: 48px;
    }

    .pottery-hero-content h2 {
        font-size: 30px;
    }

    .pottery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pottery-products-swiper:not(.swiper-initialized) .pottery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cat-card {
        height: 300px;
        padding: 20px;
    }

    .cat-card img {
        height: 100%;
    }

    .cat-name {
        padding-right: 54px;
        font-size: 21px;
    }

    .cat-arrow {
        right: 18px;
        bottom: 23px;
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .pottery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cat-card {
        height: 220px;
        padding: 14px;
    }

    .cat-name {
        padding-right: 38px;
        font-size: 18px;
    }

    .cat-arrow {
        right: 12px;
        bottom: 18px;
        width: 20px;
        height: 20px;
    }

    .cat-arrow::before {
        width: 8px;
        height: 8px;
    }

    .pottery-products-swiper:not(.swiper-initialized) .pottery-grid {
        grid-template-columns: 1fr;
    }
}

/* contact-icons-unified-v2 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg,
.contact-card > [class*="icon"]:first-child svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.contact-card__icon svg *:not([fill="none"]),
.contact-method__icon svg *:not([fill="none"]),
.contact-channel__icon svg *:not([fill="none"]),
.contact-icon svg *:not([fill="none"]),
.contacts-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-page .contact-card [class*="icon"] svg *:not([fill="none"]),
.contacts-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-section .contact-card [class*="icon"] svg *:not([fill="none"]),
.contact-card > [class*="icon"]:first-child svg *:not([fill="none"]) {
  fill: currentColor !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img,
.contact-card > [class*="icon"]:first-child img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

/* contact-icons-unified-v3 */
.contact-card__icon,
.contact-method__icon,
.contact-channel__icon,
.contact-icon,
.contacts-page .contact-card [class*="icon"],
.contact-page .contact-card [class*="icon"],
.contacts-section .contact-card [class*="icon"],
.contact-section .contact-card [class*="icon"],
.contact-card > [class*="icon"]:first-child {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--color-primary, var(--green-dark, #183f2c)) !important;
  border: 1px solid var(--color-primary, var(--green-dark, #183f2c)) !important;
  color: var(--color-white, #fff) !important;
  box-shadow: 0 12px 26px rgba(24, 63, 44, 0.16) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  overflow: hidden !important;
}

.contact-card__icon svg,
.contact-method__icon svg,
.contact-channel__icon svg,
.contact-icon svg,
.contacts-page .contact-card [class*="icon"] svg,
.contact-page .contact-card [class*="icon"] svg,
.contacts-section .contact-card [class*="icon"] svg,
.contact-section .contact-card [class*="icon"] svg {
  width: 26px !important;
  height: 26px !important;
  color: currentColor !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.2 !important;
}

.contact-card__icon img,
.contact-method__icon img,
.contact-channel__icon img,
.contact-icon img,
.contacts-page .contact-card [class*="icon"] img,
.contact-page .contact-card [class*="icon"] img,
.contacts-section .contact-card [class*="icon"] img,
.contact-section .contact-card [class*="icon"] img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

.contact-card__icon::before,
.contact-method__icon::before,
.contact-channel__icon::before,
.contact-icon::before,
.contacts-page .contact-card [class*="icon"]::before,
.contact-page .contact-card [class*="icon"]::before,
.contacts-section .contact-card [class*="icon"]::before,
.contact-section .contact-card [class*="icon"]::before {
  color: currentColor !important;
}

/* contact-icons-unified-v4 */
.contact-card [class*="icon"],
.contact-card [class*="logo"],
.contacts-card [class*="icon"],
.contacts-card [class*="logo"],
.contact-method [class*="icon"],
.contact-method [class*="logo"],
.contacts-method [class*="icon"],
.contacts-method [class*="logo"],
.contacts-grid [class*="icon"],
.contacts-grid [class*="logo"],
.contacts-list [class*="icon"],
.contacts-list [class*="logo"],
.contact-links [class*="icon"],
.contact-links [class*="logo"] {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: #1b4330 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: 0 14px 28px rgba(27, 67, 48, 0.16) !important;
    overflow: hidden !important;
}

.contact-card [class*="icon"]::before,
.contact-card [class*="icon"]::after,
.contact-card [class*="logo"]::before,
.contact-card [class*="logo"]::after,
.contacts-card [class*="icon"]::before,
.contacts-card [class*="icon"]::after,
.contacts-card [class*="logo"]::before,
.contacts-card [class*="logo"]::after,
.contact-method [class*="icon"]::before,
.contact-method [class*="icon"]::after,
.contact-method [class*="logo"]::before,
.contact-method [class*="logo"]::after,
.contacts-method [class*="icon"]::before,
.contacts-method [class*="icon"]::after,
.contacts-method [class*="logo"]::before,
.contacts-method [class*="logo"]::after {
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.contact-card [class*="icon"] svg,
.contact-card [class*="logo"] svg,
.contacts-card [class*="icon"] svg,
.contacts-card [class*="logo"] svg,
.contact-method [class*="icon"] svg,
.contact-method [class*="logo"] svg,
.contacts-method [class*="icon"] svg,
.contacts-method [class*="logo"] svg,
.contacts-grid [class*="icon"] svg,
.contacts-grid [class*="logo"] svg,
.contacts-list [class*="icon"] svg,
.contacts-list [class*="logo"] svg,
.contact-links [class*="icon"] svg,
.contact-links [class*="logo"] svg {
    width: 28px !important;
    height: 28px !important;
    color: #ffffff !important;
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [stroke],
.contact-card [class*="logo"] svg [stroke],
.contacts-card [class*="icon"] svg [stroke],
.contacts-card [class*="logo"] svg [stroke],
.contact-method [class*="icon"] svg [stroke],
.contact-method [class*="logo"] svg [stroke],
.contacts-method [class*="icon"] svg [stroke],
.contacts-method [class*="logo"] svg [stroke],
.contacts-grid [class*="icon"] svg [stroke],
.contacts-grid [class*="logo"] svg [stroke],
.contacts-list [class*="icon"] svg [stroke],
.contacts-list [class*="logo"] svg [stroke],
.contact-links [class*="icon"] svg [stroke],
.contact-links [class*="logo"] svg [stroke] {
    stroke: currentColor !important;
}

.contact-card [class*="icon"] svg [fill]:not([fill="none"]),
.contact-card [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-card [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-card [class*="logo"] svg [fill]:not([fill="none"]),
.contact-method [class*="icon"] svg [fill]:not([fill="none"]),
.contact-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-method [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-method [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-grid [class*="logo"] svg [fill]:not([fill="none"]),
.contacts-list [class*="icon"] svg [fill]:not([fill="none"]),
.contacts-list [class*="logo"] svg [fill]:not([fill="none"]),
.contact-links [class*="icon"] svg [fill]:not([fill="none"]),
.contact-links [class*="logo"] svg [fill]:not([fill="none"]) {
    fill: currentColor !important;
}

.contact-card [class*="icon"] img,
.contact-card [class*="logo"] img,
.contacts-card [class*="icon"] img,
.contacts-card [class*="logo"] img,
.contact-method [class*="icon"] img,
.contact-method [class*="logo"] img,
.contacts-method [class*="icon"] img,
.contacts-method [class*="logo"] img,
.contacts-grid [class*="icon"] img,
.contacts-grid [class*="logo"] img,
.contacts-list [class*="icon"] img,
.contacts-list [class*="logo"] img,
.contact-links [class*="icon"] img,
.contact-links [class*="logo"] img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    filter: brightness(0) invert(1) !important;
    mix-blend-mode: normal !important;
}
/* end-contact-icons-unified-v4 */

