
/* =========================
   INYRI PRODUCT LIST PAGE
========================= */

#products.section {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 5% 72px;
}

/* Section heading */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 32px;
}

.section-eyebrow {
    margin: 0 0 10px;
    color: var(--gold-dark, #a77c2b);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    color: var(--text, #211e25);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.product-count {
    flex-shrink: 0;
    padding-bottom: 5px;
    color: var(--muted, #88838a);
    font-size: 12px;
    letter-spacing: 0.4px;
}

/* Product grid */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 22px;
    align-items: stretch;
}

/* Product card */

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid #f0edf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(36, 26, 34, 0.035);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #e7d9bd;
    box-shadow: 0 12px 28px rgba(36, 26, 34, 0.09);
}

/* Image */

.product-image-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 0.88 / 1;
    background: #f8f5f2;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.04);
}

/* Image placeholder */

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(145deg, #faf6f1, #f0e7df);
    color: #9b846c;
}

.placeholder-symbol {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    line-height: 1;
}

.placeholder-label {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    letter-spacing: 5px;
}

/* Discount badge */

.discount-badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 2;
    padding: 7px 11px;
    border-radius: 3px;
    background: #5b2589;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.7px;
}

/* Product information */

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 19px 17px 17px;
}

.product-category {
    margin-bottom: 9px;
    color: var(--gold-dark, #a77c2b);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.6px;
    line-height: 1.5;
    text-transform: uppercase;
}

.product-name {
    margin: 0;
    min-height: 44px;
    color: var(--text, #211e25);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-name a:hover {
    color: var(--gold-dark, #a77c2b);
}

/* Pricing */

.product-pricing {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-top: 13px;
    min-height: 25px;
}

.current-price {
    color: #282129;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.original-price {
    color: #a39ba1;
    font-size: 12px;
    text-decoration: line-through;
}

.product-discount {
    color: #8a3e68;
    font-size: 11px;
    font-weight: 600;
}

/* Actions */

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: auto;
    padding-top: 19px;
}

.product-action {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.product-action.view {
    border-color: #332831;
    background: #332831;
    color: #fff;
}

.product-action.view:hover {
    border-color: #59434f;
    background: #59434f;
}

.product-action.whatsapp {
    border-color: #e8dfd6;
    background: #fff;
    color: #55463f;
}

.product-action.whatsapp:hover {
    border-color: #bda77d;
    background: #faf6ef;
    color: #332831;
}

/* Empty collection state */

.empty-state {
    max-width: 650px;
    margin: 25px auto 0;
    padding: 65px 28px;
    border: 1px solid #eee5dd;
    border-radius: 10px;
    background: #fcfaf8;
    text-align: center;
}

.empty-icon {
    margin-bottom: 20px;
    color: var(--gold, #d7ad55);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    line-height: 1;
}

.empty-state h3 {
    margin: 0 0 14px;
    color: var(--text, #211e25);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    line-height: 1.3;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto 25px;
    color: var(--muted, #88838a);
    font-size: 14px;
    line-height: 1.9;
}

.empty-state .hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 13px 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-decoration: none;
}

.empty-state .hero-button.primary {
    background: #332831;
    color: #fff;
    transition: background 0.2s ease;
}

.empty-state .hero-button.primary:hover {
    background: #59434f;
}

/* =========================
   RESPONSIVE
========================= */

/* Small desktops and laptops */

@media (max-width: 1100px) {
    #products.section {
        padding-right: 4%;
        padding-left: 4%;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 25px 18px;
    }

    .product-info {
        padding: 16px 14px;
    }
}

/* Tablets */

@media (max-width: 760px) {
    #products.section {
        padding-top: 34px;
        padding-bottom: 48px;
    }

    .section-heading {
        align-items: flex-end;
        margin-bottom: 24px;
        gap: 12px;
    }

    .section-heading h2 {
        font-size: clamp(25px, 4.5vw, 34px);
    }

    .section-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .product-count {
        font-size: 11px;
        white-space: nowrap;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .product-image-wrap {
        aspect-ratio: 0.82 / 1;
    }

    .product-info {
        padding: 14px 12px;
    }

    .product-category {
        margin-bottom: 7px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    .product-name {
        min-height: 42px;
        font-size: 13px;
    }

    .product-pricing {
        gap: 6px;
        margin-top: 10px;
    }

    .current-price {
        font-size: 17px;
    }

    .original-price,
    .product-discount {
        font-size: 10px;
    }

    .product-actions {
        gap: 7px;
        padding-top: 14px;
    }

    .product-action {
        min-height: 39px;
        padding: 10px 7px;
        font-size: 9px;
        letter-spacing: 0.6px;
    }

    .discount-badge {
        top: 9px;
        left: 9px;
        padding: 6px 8px;
        font-size: 9px;
    }
}

/* Small mobile phones */

@media (max-width: 380px) {
    #products.section {
        padding: 27px 12px 40px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .product-grid {
        column-gap: 10px;
        row-gap: 17px;
    }

    .product-info {
        padding: 12px 9px;
    }

    .product-name {
        font-size: 12px;
    }

    .current-price {
        font-size: 15px;
    }

    .product-action {
        font-size: 8px;
        letter-spacing: 0.3px;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-image,
    .product-name a,
    .product-action,
    .empty-state .hero-button {
        transition: none;
    }

    .product-card:hover,
    .product-card:hover .product-image {
        transform: none;
    }
}
