.pw-product-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px;
}

.pw-product {
    color: #202124;
}

.pw-product-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: start;
}

.pw-main-image {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    border-radius: 14px;
}

.pw-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-image-placeholder {
    display: grid;
    height: 100%;
    place-items: center;
    color: #737373;
}

.pw-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.pw-thumbnail {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
}

.pw-thumbnail.is-active {
    border-color: #202124;
}

.pw-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pw-product-summary h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}

.pw-short-description {
    margin: 0 0 24px;
    color: #5c6065;
    font-size: 1.08rem;
    line-height: 1.65;
}

.pw-product-details {
    margin: 0 0 26px;
    border-top: 1px solid #e1e3e5;
}

.pw-product-details div {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 11px 0;
    border-bottom: 1px solid #e1e3e5;
}

.pw-product-details dt {
    font-weight: 700;
}

.pw-product-details dd {
    margin: 0;
}

.pw-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 24px 0;
}

.pw-price strong {
    font-size: 2rem;
    line-height: 1.1;
}

.pw-original-price {
    color: #74777b;
    text-decoration: line-through;
}

.pw-whatsapp-button {
    display: inline-flex;
    min-height: 52px;
    padding: 0 26px;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    background: #128c4a;
    border-radius: 8px;
    transition: background .2s ease, transform .2s ease;
}

.pw-whatsapp-button:hover {
    color: #fff;
    background: #0f793f;
    transform: translateY(-1px);
}

.pw-admin-notice {
    padding: 12px 14px;
    background: #fff8d8;
    border-left: 4px solid #dba617;
}

.pw-product-description {
    max-width: 800px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #e1e3e5;
    line-height: 1.75;
}

.pw-product-description h2 {
    margin-top: 0;
}

@media (max-width: 760px) {
    .pw-product-page {
        padding: 32px 18px;
    }

    .pw-product-top {
        grid-template-columns: 1fr;
    }

    .pw-thumbnail {
        width: 64px;
        height: 64px;
    }
}

.pw-products-section {
    width: 100%;
    margin: 40px 0;
}

.pw-products-title,
.pw-archive-header h1 {
    margin: 0 0 28px;
}

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

.pw-product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
    box-shadow: 0 5px 22px rgba(20, 24, 28, .05);
}

.pw-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    text-decoration: none;
}

.pw-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.pw-card-image:hover img {
    transform: scale(1.025);
}

.pw-card-content {
    padding: 18px;
}

.pw-card-content h3 {
    margin: 0 0 9px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.pw-card-content h3 a {
    color: inherit;
    text-decoration: none;
}

.pw-card-content p {
    margin: 0 0 14px;
    color: #65696e;
    line-height: 1.5;
}

.pw-card-price {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: baseline;
    margin: 14px 0;
}

.pw-card-price span {
    color: #74777b;
    font-size: .9rem;
    text-decoration: line-through;
}

.pw-card-price strong {
    font-size: 1.15rem;
}

.pw-card-link,
.pw-more-link {
    display: inline-flex;
    color: #202124;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pw-archive-header {
    margin-bottom: 34px;
}

.pw-archive-description {
    max-width: 760px;
}

.pw-pagination {
    margin-top: 40px;
}

.pw-shortcode-warning {
    padding: 12px 14px;
    background: #fff8d8;
    border-left: 4px solid #dba617;
}

@media (max-width: 980px) {
    .pw-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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