/* Anasayfa — profesyonel bölüm düzeni */

.page-home main {
    background: #f3f4f6;
}

.hp-page {
    padding-top: 0.75rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .hp-page {
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }
}

.hp-block-wrap {
    margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .hp-block-wrap {
        margin-bottom: 1.25rem;
    }
}

.hp-block-wrap--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hp-block-wrap--bleed .hp-block-shell {
    border-radius: 0;
    box-shadow: none;
}

.hp-block-shell {
    height: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.hp-block-shell--card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

/* Bölüm başlığı */
.hp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5e7eb;
}

.hp-section-header__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .hp-section-header__title {
        font-size: 1.35rem;
    }
}

.hp-section-header__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.hp-section-header__link:hover {
    color: #1d4ed8;
}

.hp-section-header__link svg {
    width: 1rem;
    height: 1rem;
}

/* USP şeridi */
.hp-usp-strip {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0ea5e9 100%);
    color: #fff;
    padding: 0.85rem 0;
}

.hp-usp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

@media (min-width: 768px) {
    .hp-usp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.hp-usp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-width: 0;
}

.hp-usp-item__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.hp-usp-item__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
}

.hp-usp-item__text {
    margin: 0.15rem 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hp-usp-item__title {
        font-size: 0.875rem;
    }
    .hp-usp-item__text {
        font-size: 0.78rem;
    }
}

/* Kategori grid */
.hp-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .hp-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .hp-category-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
    }
}

.hp-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.75rem 0.35rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.hp-category-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.hp-category-card--has-image {
    position: relative;
    justify-content: flex-end;
    align-items: stretch;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    background-color: #f3f4f6;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
}

.hp-category-card--has-image:hover {
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.hp-category-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(15, 23, 42, 0.28) 45%,
        rgba(15, 23, 42, 0.08) 100%
    );
    pointer-events: none;
}

.hp-category-card--has-image .hp-category-card__name {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: auto;
    padding: 0.55rem 0.4rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hp-category-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1;
}

.hp-category-card__name {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (min-width: 768px) {
    .hp-category-card__icon {
        width: 3.35rem;
        height: 3.35rem;
        font-size: 1.25rem;
    }
    .hp-category-card__name {
        font-size: 0.78rem;
    }
}

@media (max-width: 767px) {
    .hp-category-card--desktop-only {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hp-category-card--mobile-only {
        display: none !important;
    }
}

/* Yorum carousel */
.hp-reviews-carousel {
    position: relative;
}

.hp-review-card {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.hp-review-card__stars {
    display: flex;
    gap: 0.1rem;
    color: #fbbf24;
    font-size: 0.75rem;
}

.hp-review-card__comment {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #374151;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-review-card__meta {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.75rem;
    color: #6b7280;
}

.hp-review-card__meta strong {
    color: #111827;
    font-weight: 600;
}

.hp-review-card__product {
    display: block;
    margin-top: 0.15rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.hp-review-card__product:hover {
    text-decoration: underline;
}

/* Ürün kartları — anasayfa iyileştirmesi */
.hp-page .product-card {
    border-radius: 0.75rem;
    border-color: #e5e7eb;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hp-page .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hp-page .swiper-button-next,
.hp-page .swiper-button-prev {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
}

.hp-page .group:hover .swiper-button-next,
.hp-page .group:hover .swiper-button-prev,
.hp-page .hp-reviews-carousel:hover .swiper-button-next,
.hp-page .hp-reviews-carousel:hover .swiper-button-prev {
    opacity: 1;
}

.hp-page .swiper-button-disabled {
    opacity: 0.35 !important;
    pointer-events: none;
}

/* Slider tam genişlik */
.hp-block-wrap--bleed .swiper-container {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Promo ticker — kompakt slider benzeri şerit (HTML blok) */
.hp-promo-ticker {
    --hp-promo-accent: #fbbf24;
    --hp-promo-bg: linear-gradient(105deg, #0f172a 0%, #1e3a8a 42%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}

.hp-promo-ticker__bar {
    background: var(--hp-promo-bg);
    color: #fff;
    min-height: 2.375rem;
    position: relative;
}

.hp-promo-ticker__bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(251, 191, 36, 0.12) 45%,
        rgba(251, 191, 36, 0.22) 50%,
        rgba(251, 191, 36, 0.12) 55%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: hp-promo-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hp-promo-shimmer {
    0%, 100% { background-position: 120% 0; }
    50% { background-position: -20% 0; }
}

.hp-promo-ticker__list {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: 2.375rem;
}

.hp-promo-ticker__item {
    display: none;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.45rem 0;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-promo-ticker__item.is-active {
    display: flex;
}

.hp-promo-ticker__item:hover {
    color: #fff;
    opacity: 0.92;
}

.hp-promo-ticker__item--static {
    cursor: default;
}

.hp-promo-ticker__item--static:hover {
    opacity: 1;
}

.hp-promo-ticker__item--static .hp-promo-ticker__arrow {
    display: none;
}

.hp-promo-ticker__item--link {
    cursor: pointer;
}

.hp-promo-ticker__icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.45rem;
    background: rgba(251, 191, 36, 0.2);
    color: var(--hp-promo-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.hp-promo-ticker__text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-promo-ticker__text strong {
    font-weight: 700;
}

.hp-promo-ticker__sep {
    margin: 0 0.35rem;
    opacity: 0.55;
}

.hp-promo-ticker__sub {
    font-weight: 500;
    opacity: 0.88;
}

.hp-promo-ticker__arrow {
    flex-shrink: 0;
    font-size: 0.65rem;
    opacity: 0.65;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hp-promo-ticker__item:hover .hp-promo-ticker__arrow {
    transform: translateX(2px);
    opacity: 1;
}

.hp-promo-ticker__dots {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    padding: 0 0 0.35rem;
}

.hp-promo-ticker__dot {
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hp-promo-ticker__dot.is-active {
    background: var(--hp-promo-accent);
    transform: scale(1.15);
}

@media (min-width: 768px) {
    .hp-promo-ticker__bar {
        min-height: 2.125rem;
        padding: 0.2rem 0;
    }

    .hp-promo-ticker__list {
        min-height: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.4rem;
        padding: 0.15rem 0;
    }

    .hp-promo-ticker__item,
    .hp-promo-ticker__item.is-active {
        display: flex;
        flex: 0 1 auto;
        width: auto;
        padding: 0.28rem 0.6rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hp-promo-ticker__item--link:hover {
        background: rgba(255, 255, 255, 0.14);
        transform: translateY(-1px);
    }

    .hp-promo-ticker__item--static:hover {
        background: rgba(255, 255, 255, 0.07);
        transform: none;
    }

    .hp-promo-ticker__icon {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.72rem;
    }

    .hp-promo-ticker__text {
        flex: 0 1 auto;
        font-size: 0.75rem;
    }

    .hp-promo-ticker__sub {
        display: none;
    }

    .hp-promo-ticker__dots {
        display: none;
    }

    .hp-promo-ticker__arrow {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hp-promo-ticker__list {
        flex-wrap: nowrap;
        gap: 0.45rem;
    }

    .hp-promo-ticker__text {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp-promo-ticker__bar::before {
        animation: none;
    }
}
