/*
Theme Name: Prompotolok
Theme URI: https://game-out.ru
Author: Maxim Vagizov
Author URI: https://vagizov.com
Description: Custom catalog theme for Prompotolok.
Version: 0.1.0
Text Domain: prompotolok
*/

.product-container,
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.product-hero,
.landing-hero {
    padding: 72px 0 48px;
    background: #f7f7f7;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.product-hero__media img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.product-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.product-gallery img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 10px;
}

.product-price {
    margin: 24px 0;
    font-size: 28px;
    font-weight: 700;
}

.product-price__old {
    margin-left: 12px;
    font-size: 18px;
    text-decoration: line-through;
    color: #888;
}

.product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding: 14px 22px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.product-content,
.product-request,
.landing-content,
.landing-debug {
    padding: 48px 0;
}

.product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.product-attributes th,
.product-attributes td {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.product-attributes th {
    width: 280px;
}

.landing-label {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
}

.landing-debug pre {
    overflow: auto;
    padding: 16px;
    background: #111;
    color: #fff;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .product-hero__grid {
        grid-template-columns: 1fr;
    }
}

.landing-products {
    padding: 48px 0;
    background: #fff;
}

.landing-section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.catalog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fff;
}

.catalog-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    text-decoration: none;
}

.catalog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.catalog-card__placeholder {
    color: #777;
    font-size: 14px;
}

.catalog-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.catalog-card__body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.catalog-card__body h3 a {
    color: inherit;
    text-decoration: none;
}

.catalog-card__sku {
    color: #777;
    font-size: 14px;
}

.catalog-card__price {
    margin-top: auto;
    font-size: 20px;
    font-weight: 700;
}

.catalog-card__button {
    display: inline-flex;
    justify-content: center;
    margin-top: 6px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.catalog-card__status {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f0e8ff;
    color: #5b25b5;
    font-size: 12px;
    font-weight: 700;
}

.landing-admin-note {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8db;
    color: #5a4700;
}

.landing-empty {
    padding: 24px;
    border-radius: 16px;
    background: #f7f7f7;
}

@media (max-width: 1100px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .landing-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 520px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}

.catalog-archive-hero {
    padding: 72px 0 48px;
    background: #f7f7f7;
}

.catalog-archive-breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    color: #777;
    font-size: 14px;
}

.catalog-archive-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.catalog-archive-description {
    max-width: 820px;
    margin-top: 20px;
    color: #555;
    line-height: 1.7;
}

.catalog-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.catalog-archive-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff;
}

.catalog-archive-children,
.catalog-archive-filters,
.catalog-archive-products {
    padding: 42px 0;
}

.catalog-archive-children + .catalog-archive-filters,
.catalog-archive-filters + .catalog-archive-products {
    padding-top: 0;
}

.catalog-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fff;
    color: #111;
    text-decoration: none;
    font-size: 14px;
}

.catalog-chip--muted {
    color: #666;
    background: #f7f7f7;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 36px;
}

.catalog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    color: #111;
    text-decoration: none;
}

.catalog-pagination .page-numbers.current {
    background: #111;
    color: #fff;
    border-color: #111;
}

@media (max-width: 760px) {
    .catalog-archive-hero {
        padding: 48px 0 32px;
    }
}

.catalog-main-categories {
    padding: 48px 0;
    background: #fff;
}

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.catalog-category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 120px;
    padding: 22px;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    background: #fff;
    color: #111;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.catalog-category-card:hover {
    transform: translateY(-2px);
    border-color: #d2d2d2;
    box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.catalog-category-card__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.catalog-category-card__count {
    margin-top: auto;
    color: #777;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .catalog-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .catalog-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .catalog-category-grid {
        grid-template-columns: 1fr;
    }
}

/* Woodmart-like product grid/card */
.products.elements-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: -15px;
    margin-left: -15px;
}

.products.elements-grid.wd-spacing-30 {
    row-gap: 30px;
}

.product-grid-item {
    position: relative;
    width: 33.333333%;
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 30px;
}

.product-grid-item.col-6 {
    width: 33.333333%;
}

.product-wrapper {
    position: relative;
    height: 100%;
    padding: 0;
    background: #fff;
    transition: box-shadow .25s ease, transform .25s ease;
}

.content-product-imagin {
    position: absolute;
    inset: -15px -15px -20px;
    z-index: -1;
    background: #fff;
    opacity: 0;
    box-shadow: 0 0 10px rgba(0,0,0,.12);
    transition: opacity .25s ease;
}

.product-grid-item:hover .content-product-imagin {
    opacity: 1;
}

.product-element-top {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    text-align: center;
}

.product-image-link,
.hover-img a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 296px;
    text-decoration: none;
    background: #fff;
}

.product-image-link img,
.hover-img img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 296px;
    object-fit: contain;
    margin: 0 auto;
}

.hover-img {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    background: #fff;
}

.product-grid-item:hover .hover-img {
    opacity: 1;
    visibility: visible;
}

.wrapp-swatches {
    display: none;
}

.quick-shop-wrapper {
    display: none;
}

.product-information {
    position: relative;
    text-align: center;
}

.wd-entities-title {
    margin: 0 0 8px;
    color: #333;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.wd-entities-title a {
    color: inherit;
    text-decoration: none;
}

.wd-entities-title a:hover {
    color: rgba(51,51,51,.65);
}

.product-rating-price {
    margin-bottom: 8px;
}

.wrapp-product-price {
    min-height: 24px;
}

.price {
    display: inline-block;
    color: #2d2a2a;
    font-size: 15px;
    line-height: 1.4;
}

.price .amount {
    color: #2d2a2a;
    font-weight: 600;
}

.fade-in-block {
    position: relative;
    opacity: 1;
}

.hover-content.wd-more-desc {
    overflow: hidden;
    max-height: 42px;
    margin: 8px 0 12px;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.wd-more-desc-btn {
    display: none;
}

.wd-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
}

.wrap-wishlist-button,
.wrap-quickview-button {
    width: 42px;
    height: 42px;
}

.wd-action-btn {
    position: relative;
    width: 42px;
    height: 42px;
}

.wd-action-btn a {
    display: block;
    width: 42px;
    height: 42px;
    overflow: hidden;
    color: transparent;
    text-decoration: none;
    white-space: nowrap;
}

.wd-wishlist-btn a::before,
.wd-quick-view-btn a::before {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    line-height: 1;
}

.wd-wishlist-btn a::before {
    content: "♡";
}

.wd-quick-view-btn a::before {
    content: "⌕";
}

.wd-add-btn {
    flex: 1 1 auto;
    max-width: 160px;
}

.wd-add-btn .button {
    display: inline-flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 5px 18px;
    border-radius: 35px;
    background: #f4a51c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease;
}

.wd-add-btn .button:hover {
    background: #DE961A;
    color: #fff;
}

.prompotolok-product-placeholder {
    display: flex;
    width: 100%;
    min-height: 296px;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #f7f7f7;
}

@media (max-width: 1024px) {
    .product-grid-item,
    .product-grid-item.col-6 {
        width: 50%;
    }
}

@media (max-width: 520px) {
    .products.elements-grid {
        margin-right: -8px;
        margin-left: -8px;
    }

    .product-grid-item,
    .product-grid-item.col-6 {
        width: 50%;
        padding-right: 8px;
        padding-left: 8px;
    }

    .product-image-link,
    .hover-img a,
    .prompotolok-product-placeholder {
        min-height: 210px;
    }

    .product-image-link img,
    .hover-img img {
        max-height: 210px;
    }

    .wd-entities-title {
        font-size: 14px;
    }

    .hover-content.wd-more-desc {
        display: none;
    }

    .wrap-wishlist-button,
    .wrap-quickview-button {
        display: none;
    }

    .wd-add-btn {
        max-width: none;
    }
}
.single-product-page {
    padding: 40px 0 70px;
}

.single-product-page .container {
    width: min(100% - 30px, 1180px);
    margin: 0 auto;
}

.product-image-summary-wrap {
    margin-bottom: 50px;
}

.product-image-summary-inner {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    gap: 40px;
    align-items: flex-start;
}

.woocommerce-product-gallery {
    position: relative;
}

.woocommerce-product-gallery__image {
    margin: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
}

.prompotolok-product-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.prompotolok-product-thumb {
    display: block;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.prompotolok-product-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.summary-inner {
    position: sticky;
    top: 30px;
}

.product_title.wd-entities-title {
    margin: 0 0 18px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.single-product-page .price {
    margin: 0 0 22px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: #222;
}

.single-product-page .price del {
    margin-right: 8px;
    color: #999;
    font-size: 18px;
    font-weight: 400;
}

.single-product-page .price ins {
    text-decoration: none;
}

.woocommerce-product-details__short-description {
    margin-bottom: 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.65;
}

.wd-add-btn {
    margin-bottom: 24px;
}

.wd-add-btn .button,
.single-product-request__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 3px;
    background: #222;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s ease;
}

.wd-add-btn .button:hover,
.single-product-request__button:hover {
    opacity: .85;
    color: #fff;
}

.product_meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    color: #777;
    font-size: 14px;
}

.product_meta a {
    color: #333;
    text-decoration: none;
}

.woocommerce-tabs {
    margin-top: 45px;
}

.wc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 0 0 25px;
    padding: 0;
    border-bottom: 1px solid #e5e5e5;
    list-style: none;
}

.wc-tabs li {
    margin: 0;
    padding: 0;
}

.wc-tabs a {
    display: block;
    padding: 0 0 14px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

.wc-tabs .active a {
    border-bottom: 2px solid #222;
}

.woocommerce-Tabs-panel {
    margin-bottom: 35px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

.woocommerce-Tabs-panel h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.3;
}

.shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.shop_attributes th,
.shop_attributes td {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: top;
}

.shop_attributes th {
    width: 260px;
    color: #333;
    font-weight: 600;
}

.shop_attributes td {
    color: #555;
}

.single-product-request {
    margin-top: 50px;
    padding: 32px;
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
}

.single-product-request__title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
}

.single-product-request__text {
    margin-bottom: 20px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.prompotolok-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 30px;
    background: #f5f5f5;
    color: #999;
    text-align: center;
}

@media (max-width: 900px) {
    .product-image-summary-inner {
        grid-template-columns: 1fr;
    }

    .summary-inner {
        position: static;
    }
}

@media (max-width: 600px) {
    .single-product-page {
        padding: 25px 0 50px;
    }

    .product_title.wd-entities-title {
        font-size: 25px;
    }

    .single-product-page .price {
        font-size: 21px;
    }

    .prompotolok-product-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .wc-tabs {
        gap: 18px;
    }

    .shop_attributes th,
    .shop_attributes td {
        display: block;
        width: 100%;
    }

    .shop_attributes th {
        padding-bottom: 4px;
        border-bottom: 0;
    }

    .shop_attributes td {
        padding-top: 0;
    }

    .single-product-request {
        padding: 24px 20px;
    }
}