/**
 * Theme Name: childtheme
 * Template:   generatepress
 */

/* Layout */
.kp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.kp-product__header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.kp-product__title {
    margin: 0 0 0.5rem;
}

.kp-product__meta {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.kp-product__meta-item strong {
    font-weight: 600;
}
.kp-product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.kp-product-card {
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kp-product-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.kp-product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.kp-product-card__body {
    padding: 0.75rem 0.9rem 1rem;
}

.kp-product-card__title {
    font-size: 1rem;
    margin: 0 0 0.4rem;
}

.kp-product-card__meta span {
    font-size: 0.85rem;
    color: #666;
    margin-right: 0.5rem;
}

.kp-product-card__price {
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.kp-product-card__rating {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: #f5a623;
}

.kp-product-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}

/* Rating */
.kp-product__rating {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kp-product__rating-stars {
    font-size: 1.1rem;
}

.kp-star--full {
    color: #f5a623;
}

.kp-star--half {
    color: #f5a623;
    opacity: 0.7;
}

.kp-star--empty {
    color: #ccc;
}

.kp-product__body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .kp-product__body {
        grid-template-columns: 1fr;
    }
}

/* Main content */
.kp-product__image-wrapper {
    margin-bottom: 1rem;
}

.kp-product__image {
    width: 100%;
    height: auto;
    display: block;
}

.kp-product__short-desc {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Section titles */
.kp-product__section-title {
    font-size: 1.2rem;
    margin: 1rem 0;
}
.kp-product__subtitle {
    font-size: 1.05rem;
    color: #666;
    margin: 0 0 0.75rem;
}

/* Price table */
.kp-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.kp-price-table th,
.kp-price-table td {
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.kp-price-table th {
    text-align: left;
    font-weight: 600;
}

.kp-price-table__row--best {
    background-color: #f4f9ff;
}

.kp-price-table__shop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kp-price-table__shop-logo {
    max-width: 70px;
    max-height: 30px;
    height: auto;
}

.kp-price-table__badge {
    display: inline-block;
    background: #0b7dda;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.5rem;
}

.kp-price-table__price-old {
    text-decoration: line-through;
    color: #999;
    margin-right: 0.25rem;
    font-size: 0.9rem;
}

.kp-price-table__price-current {
    font-weight: 600;
}

.kp-price-table__discount {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.8rem;
    color: #d0021b;
}

.kp-price-table__shipping-free {
    color: #2a9d3f;
    font-weight: 600;
}

.kp-price-table__total {
    font-weight: 600;
}

.kp-price-table__total-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
}

.kp-price-table__cta .kp-btn {
    display: inline-block;
}

/* Button */
.kp-btn {
    display: inline-block;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.kp-btn--primary {
    background-color: #0b7dda;
    color: #fff;
}

.kp-btn--primary:hover {
    background-color: #095f9f;
}

/* Updated text */
.kp-price-table__updated {
    font-size: 0.8rem;
    color: #777;
}

/* Specs */
.kp-product__specs {
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 1rem;
    background: #fafafa;
}

.kp-specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.kp-specs-table th,
.kp-specs-table td {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
}

.kp-specs-table th {
    text-align: left;
    width: 40%;
    font-weight: 600;
}

/* Content under prices */
.kp-product__content {
    margin-top: 1.5rem;
}
