/* Termék lista oldal */
.products-header-section {
    margin-top: 220px;
    margin-bottom: 200px;
    text-align: center;
}

.products-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 50px;
}

.products-search {
    position: relative;
    max-width: 520px;
    margin: 0 auto 60px;
}

.products-search input {
    width: 100%;
    padding: 14px 50px 14px 22px;
    border-radius: 50px;
    border: 1px solid var(--border-strong);
    background-color: var(--bg-subtle);
    font-size: 16px;
    color: var(--text);
}

.products-search input:focus {
    outline: none;
    border-color: var(--text);
}

.products-search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text);
    opacity: 0.5;
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: left;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.35s ease, border-color 0.35s ease;
}

a.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card[hidden] {
    display: none;
}

.product-card-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card-price {
    font-size: 15px;
    font-weight: 600;
    align-self: flex-end;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    background-color: #29b6d8;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 50px;
}

.product-card-placeholder {
    align-items: center;
    justify-content: center;
    aspect-ratio: 0.78;
    background: repeating-linear-gradient(45deg, var(--stripe-a), var(--stripe-a) 10px, var(--stripe-b) 10px, var(--stripe-b) 20px);
    color: var(--text-faint);
    font-size: 13px;
    text-align: center;
    box-shadow: none;
    border-style: dashed;
}

.products-empty {
    margin: 20px 0 0;
    color: var(--text-faint);
}

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

@media (max-width: 560px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* Termék részletező oldal */
.product-detail-section {
    margin-top: 220px;
    margin-bottom: 220px;
    max-width: 900px;
}

.product-detail-header {
    margin-bottom: 30px;
}

.product-detail-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-detail-collection {
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
}

.product-detail-gallery {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 40px;
}

.product-detail-gallery .project-gallery-item {
    aspect-ratio: 1;
}

.product-detail-gallery .project-gallery-item:nth-child(1),
.product-detail-gallery .project-gallery-item:nth-child(2) {
    aspect-ratio: 3 / 4;
}

.product-info-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.06);
    transition: background-color 0.35s ease, border-color 0.35s ease;
}

.product-info-card .product-detail-header,
.product-info-card .product-detail-title,
.product-info-card .product-detail-collection {
    margin-bottom: 0;
}

.product-info-card .product-detail-title {
    margin-bottom: 6px;
}

.product-price-line {
    font-size: 18px;
    margin: 24px 0;
}

.product-section {
    margin-bottom: 30px;
}

.product-section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 14px;
}

.size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.size-swatch {
    min-width: 46px;
    padding: 8px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.size-swatch:hover {
    border-color: var(--text);
}

.size-swatch.is-selected {
    background-color: var(--invert-bg);
    color: var(--invert-text);
    border-color: var(--invert-bg);
}

.size-guide-link {
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--text-muted);
}

.color-swatches {
    display: flex;
    gap: 16px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.color-swatch {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
}

.color-swatch.is-selected {
    border-color: var(--text);
}

.color-swatch-label {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.product-accordion {
    border-top: 1px solid var(--border);
    margin-bottom: 30px;
}

.accordion-item {
    border-bottom: 1px solid var(--border);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.accordion-icon {
    font-weight: 400;
    transition: transform 0.25s ease;
}

.accordion-item.is-open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.accordion-panel p {
    padding-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

.accordion-item.is-open .accordion-panel {
    opacity: 1;
}

.buy-btn {
    width: 100%;
    text-align: center;
    border: none;
    padding: 16px;
    font-size: 15px;
}

.buy-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.buy-btn:disabled:hover {
    background-color: var(--bg-muted);
    color: var(--text);
}

@media (max-width: 640px) {
    .product-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-info-card {
        padding: 24px;
    }

    .products-title {
        font-size: 30px;
    }

    .product-detail-title {
        font-size: 21px;
    }
}
