/* ========================================
   SHOP CATALOG (archive-product)
   ======================================== */
.shop-catalog {
    padding: 0 1.25rem; /* px-5 */
    margin-top: 40px;
    margin-bottom: 60px; 
}

.shop-catalog__container {
    max-width: 1228px;
    margin: 0 auto;
    min-height: fit-content;
}

.shop-catalog__title {
    font-size: 3rem; /* text-5xl */
    font-weight: 600; /* font-[600] */
    color: #211F1F; /* warm-black */
    margin-bottom: 2rem;
}

.shop-catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* grid-cols-4 */
    gap: 2.5rem; /* gap-10 */
    margin-top: 40px;
}

.dk-before-shop-loop {
    display: grid;
    grid-template-rows: auto auto; /* 2 ряда */
    grid-template-columns: 1fr; /* 1 колонка в первом ряду */
    gap: 0.625rem;
}

/* Второй ряд — две колонки */
.dk-before-shop-loop .woocommerce-result-count {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    margin: 0;
}

.dk-before-shop-loop .woocommerce-ordering {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    margin: 0;
    justify-self: end;
}
/* ========================================
   PRODUCT CARD (content-product)
   ======================================== */
.product-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card__image-wrapper {
    position: relative;
    padding-bottom: 100%; /* Квадрат */
    background: #f8f8f8;
    overflow: hidden;
}

.product-card__image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 0.875rem;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__badge--sale {
    background: #ef4444;
    color: #ffffff;
}

.product-card__badge--soldout {
    background: #6b7280;
    color: #ffffff;
}

.product-card__info {
    padding: 1.25rem 1.25rem 1.5rem;
}

.product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #211F1F;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    
    /* Ограничиваем в 2 строки */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__description {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #211F1F;
    margin: 0 0 1rem 0;
}

.product-card__price .woocommerce-Price-amount {
    color: #211F1F;
}

.product-card__price del {
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 400;
    margin-right: 0.5rem;
}

.product-card__price ins {
    text-decoration: none;
    color: #ef4444;
}

.product-card__actions {
    margin-top: 0.5rem;
}

.product-card__add-to-cart {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background: #211F1F;
    color: #ffffff;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.3s ease;
    text-decoration: none;
}

.product-card__add-to-cart:hover {
    background: #3a3a3a;
}

.product-card__soldout-label {
    display: inline-block;
    width: 100%;
    padding: 10px 20px;
    background: #f3f4f6;
    color: #6b7280;
    text-align: center;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* ========================================
   SINGLE PRODUCT (single-product)
   ======================================== */
.product-single {
    padding: 0 1.25rem;
    margin-top: 40px;
    margin-bottom: 60px;
}

.product-single__container {
    max-width: 1228px;
    margin: 0 auto;
}

.product-single__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.product-single__gallery {
    position: sticky;
    top: 2rem;
}

.product-single__main-image {
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
    margin-bottom: 1rem;
}

.product-single__main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-single__thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.product-single__thumbnail {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-single__thumbnail:hover {
    border-color: #211F1F;
}

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

.product-single__info {
    padding-top: 0.5rem;
}

.product-single__title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #211F1F;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.product-single__price {
    font-size: 2rem;
    font-weight: 700;
    color: #211F1F;
    margin: 0 0 1.5rem 0;
}

.product-single__price .woocommerce-Price-amount {
    color: #211F1F;
}

.product-single__price del {
    color: #9ca3af;
    font-size: 1.25rem;
    font-weight: 400;
    margin-right: 0.75rem;
}

.product-single__price ins {
    text-decoration: none;
    color: #ef4444;
}

.product-single__description {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem 0;
}

.product-single__cart {
    margin: 0 0 2rem 0;
}

.product-single__add-to-cart {
    display: inline-block;
    padding: 14px 40px;
    background: #211F1F;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.product-single__add-to-cart:hover {
    background: #3a3a3a;
}

.product-single__soldout {
    display: inline-block;
    padding: 14px 40px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
}

.product-single__meta {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.product-single__meta > div {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.product-single__meta > div span {
    font-weight: 600;
    color: #211F1F;
}

.product-single__meta a {
    color: #211F1F;
    text-decoration: none;
}

.product-single__meta a:hover {
    text-decoration: underline;
}

.product-single__full-description {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.product-single__full-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #211F1F;
    margin: 0 0 1.5rem 0;
}

.product-single__full-description p {
    color: #4b5563;
    line-height: 1.8;
    max-width: 800px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .shop-catalog__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .shop-catalog {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    
    .shop-catalog__title {
        font-size: 2rem;
    }
    
    .shop-catalog__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-single__wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-single__gallery {
        position: relative;
        top: 0;
    }
    
    .product-single__title {
        font-size: 1.75rem;
    }
    
    .product-single__price {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .shop-catalog__grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .product-card__info {
        padding: 0.75rem;
    }
    
    .product-card__title {
        font-size: 0.875rem;
    }
    
    .product-card__price {
        font-size: 1rem;
    }
    
    .product-card__add-to-cart {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .product-single__add-to-cart {
        width: 100%;
        text-align: center;
    }
}