/* === COLLECTION SECTION === */
.collection-with-text {
    padding: 20px 20px 10px;
    background: #FAF7F4;
    overflow-x: hidden;
}

.collection-grid {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

/* Текст слева */
.collection-text {

    font-size: 18px;
    line-height: 1.7;
    color: #333;
    padding-top: 12px;
    font-family: 'PT Mono', monospace;
}

.text-banner h2 {
    font-size: 58px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 0 0 32px;
    color: #1a1a1a;
    font-family: 'PT Mono', monospace;
}
.collection-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.5px;
    margin: 0 0 32px;
    color: #1a1a1a;
}

/* === PRODUCTS GRID — одна сетка === */
.collection-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
}

/* === PRODUCT ITEM === */
.shop-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    border-radius: 5px;
    height: 500px;
}

/* Обёртка для hover-эффекта */
.shop-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 5px;
    display: block;
}

.shop-item-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover-смена изображений */
.shop-item-image.main { opacity: 1; }
.shop-item-image.hover { opacity: 0; }
.shop-item-image-wrapper:hover .main { opacity: 0; }
.shop-item-image-wrapper:hover .hover { opacity: 1; }

/* Zoom при hover */
.shop-item-image-wrapper:hover .shop-item-image img {
    transform: scale(1.04);
}

.shop-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    font-family: 'PT Mono', monospace;
}

.shop-item-title a {
    color: #333;
    text-decoration: none;
}

.shop-item-title a:hover {
    color: #000;
}

.shop-item-price {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    font-family: 'PT Mono', monospace;
}

/* === ADD TO CART === */
.shop-item-add-to-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.shop-item-add-to-cart .quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.shop-item-add-to-cart .quantity input {
    width: 60px;
    padding: 5px;
    font-size: 14px;
    font-family: 'PT Mono', monospace;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 5px;
}

/* кнопка — полностью из старого CSS */
.add-to-cart-button {
    position: relative;
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: 'PT Mono', monospace;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    width: 300px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
    opacity: 1;
    animation: fadeInUp 0.6s ease-out forwards;
}

.add-to-cart-button:hover {
    background: #f9f9f9;
    color: #000;
    border: 1px solid #000;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* ripple эффект */
.add-to-cart-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    opacity: 0;
}

.add-to-cart-button:active::after {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: 0s;
}

/* пустое сообщение */
.shop-empty {
    text-align: center;
    padding: 20px;
    font-size: 18px;
    font-family: 'PT Mono', monospace;
    color: #333;
}

/* анимация */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === АДАПТИВ === */
@media(max-width: 1450px) {
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .collection-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .shop-item {
        height: 700px;
    }
    
    .shop-item-image-wrapper {
        height: 600px;
    }
}

@media (max-width: 940px) {
    .shop-item-title a {
        font-size: 12px;
    }
    .shop-item-price {
        font-size: 12px;
    }
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .collection-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .shop-item {
        height: 500px;
    }
    
    .shop-item-image-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .shop-item {
        height: 400px;
    }
    
    .shop-item-image-wrapper {
        height: 300px;
    }
    
    .shop-item-image img {
        height: 200px;
    }

    .collection-with-text {
        padding: 10px 16px 100px;
    }
    .collection-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
    .add-to-cart-button {
        width: 100%;
        max-width: 280px;
        font-size: 13px;
        padding: 11px 18px;
    }
}

@media (max-width: 640px) {
    .collection-title {
        font-size: 40px;
    }
    .shop-item-title {
        font-size: 16px;
    }
    .shop-item-price {
        font-size: 14px;
    }
    .add-to-cart-button {
        font-size: 12px;
        padding: 10px 16px;
    }
}

.divider-wrapper {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 0 20px;
  }
  
  /* Сама линия — тонкая, правильного цвета */
  .divider-line {
    width: 100%;
    height: 0;
    border-top: 1px solid rgb(206, 205, 201);
  }