/* ==========================================================
home.css — Ana Sayfa Ozel Stiller
   ========================================================== */

/* ── Değişkenler ── */
:root {
    --hm-primary:     #0f766e;
    --hm-primary-dk:  #115e59;
    --hm-primary-lt:  rgba(15, 118, 110, 0.08);
    --hm-accent:      #ff9900;
    --hm-dark:        var(--mm-text-primary, #0f172a);
    --hm-body:        var(--mm-text-muted, #334155);
    --hm-muted:       var(--mm-text-muted, #475569);
    --hm-border:      var(--mm-border-color, #e2e8f0);
    --hm-bg:          var(--mm-bg-surface2, #faf9f9);
    --hm-white:       var(--mm-bg-surface, #ffffff);
    --hm-radius:      12px;
    --hm-radius-lg:   20px;
    --hm-shadow:      0 4px 24px rgba(9,169,193,0.10);
    --hm-transition:  .2s ease;
}

/* ── Genel Reset ── */
.hm-section { padding: 64px 0; }
.hm-section--sm { padding: 40px 0; }
.hm-section--deferred {
    content-visibility: auto;
    contain-intrinsic-size: 1px 760px;
}
.hm-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 767px) {
    .hm-section { padding: 40px 0; }
    .hm-container { padding: 0 16px; }
}

/* ── Bölüm Başlığı ── */
.hm-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--hm-primary);
    margin-bottom: 12px;
}
.hm-section-badge::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--hm-primary);
    border-radius: 2px;
}
.hm-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--hm-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}
.hm-section-sub {
    font-size: 1rem;
    color: var(--hm-muted);
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. ANNOUNCEMENT BAR
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-announcement {
    background: var(--hm-primary);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    letter-spacing: .02em;
}
.hm-announcement a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. HERO SLIDER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. KATEGORİ KARTLARI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--categories { background: var(--hm-bg); }
.hm-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .hm-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 576px) { .hm-cat-grid { grid-template-columns: 1fr; gap: 16px; } }

.hm-cat-card {
    background: var(--hm-white);
    border-radius: var(--hm-radius-lg);
    overflow: hidden;
    border: 1px solid var(--hm-border);
    text-decoration: none;
    transition: transform var(--hm-transition), box-shadow var(--hm-transition), border-color var(--hm-transition);
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.hm-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hm-shadow);
    border-color: rgba(9,169,193,.25);
    text-decoration: none;
}
.hm-cat-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #dff6f9, #e8f5fe);
    display: block;
}
.hm-cat-card__body {
    padding: 18px 20px 20px;
}
.hm-cat-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-dark);
    margin: 0 0 6px;
}
.hm-cat-card__desc {
    font-size: 13px;
    color: var(--hm-muted);
    margin: 0 0 14px;
    line-height: 1.5;
}
.hm-cat-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-primary);
    text-decoration: none;
}
.hm-cat-card:hover .hm-cat-card__link { gap: 9px; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. ÖNE ÇIKAN ÜRÜNLER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--products { background: var(--hm-white); }
.hm-products-swiper { padding: 8px 4px 32px; }
.hm-product-card {
    background: var(--hm-white);
    border-radius: var(--hm-radius-lg);
    border: 1px solid var(--hm-border);
    overflow: hidden;
    transition: transform var(--hm-transition), box-shadow var(--hm-transition), border-color var(--hm-transition);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.hm-product-card:hover {
    box-shadow: var(--hm-shadow);
    border-color: rgba(9,169,193,.3);
    transform: translateY(-4px);
}
.hm-product-card__img-wrap {
    position: relative;
    overflow: hidden;
}
.hm-product-card__img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, #dff6f9, #e8f5fe);
    display: block;
    transition: transform .4s ease;
}
.hm-product-card:hover .hm-product-card__img { transform: scale(1.04); }
.hm-product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--hm-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.hm-product-card__body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.hm-product-card__cat {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--hm-primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.hm-product-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-dark);
    margin: 0 0 8px;
    line-height: 1.4;
    flex: 1;
}
.hm-product-card__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--hm-primary-dk);
    margin-bottom: 14px;
}
.hm-product-card__price--offer {
    font-size: 14px;
    font-weight: 600;
    color: var(--hm-muted);
}
.hm-product-card__footer {
    display: flex;
    gap: 8px;
}
.hm-product-card__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color var(--hm-transition), color var(--hm-transition), border-color var(--hm-transition), transform var(--hm-transition);
    border: 2px solid var(--hm-primary);
    color: var(--hm-primary);
    background: transparent;
}
.hm-product-card__btn:hover, .hm-product-card__btn--filled {
    background: var(--hm-primary);
    color: #fff;
}
.hm-product-card__btn--filled:hover { background: var(--hm-primary-dk); border-color: var(--hm-primary-dk); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. GÜVEN ROZETLERİ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--trust { background: var(--hm-primary); }
.hm-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .hm-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hm-trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

.hm-trust-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 24px 16px;
    border-radius: var(--hm-radius-lg);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    transition: background var(--hm-transition);
}
.hm-trust-card:hover { background: rgba(255,255,255,.18); }
.hm-trust-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
    color: #fff;
}
.hm-trust-card__title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
}
.hm-trust-card__text {
    font-size: 12.5px;
    color: rgba(255,255,255,.92);
    line-height: 1.5;
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. MÜŞTERİ YORUMLARI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--testimonials { background: var(--hm-bg); }
.hm-testimonials-swiper { padding: 8px 4px 32px; }
.hm-testimonial-card {
    background: var(--hm-white);
    border-radius: var(--hm-radius-lg);
    padding: 28px;
    border: 1px solid var(--hm-border);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.hm-testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}
.hm-testimonial-stars i { color: #f6ab00; font-size: 14px; }
.hm-testimonial-text {
    font-size: 14.5px;
    color: var(--hm-body);
    line-height: 1.7;
    margin: 0 0 18px;
    flex: 1;
    font-style: italic;
}
.hm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hm-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--hm-primary-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--hm-primary-dk);
    font-size: 16px;
    flex-shrink: 0;
}
.hm-testimonial-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--hm-dark);
    margin: 0;
}
.hm-testimonial-label {
    font-size: 12px;
    color: var(--hm-muted);
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. BLOG YAZILARI
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--blog { background: var(--hm-white); }
.hm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 991px) { .hm-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .hm-blog-grid { grid-template-columns: 1fr; } }

.hm-blog-card {
    background: var(--hm-white);
    border-radius: var(--hm-radius-lg);
    border: 1px solid var(--hm-border);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform var(--hm-transition), box-shadow var(--hm-transition), border-color var(--hm-transition);
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.hm-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hm-shadow);
    border-color: rgba(9,169,193,.25);
}
.hm-blog-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #dff6f9, #e8f5fe);
    display: block;
}
.hm-blog-card__body { padding: 20px; }
.hm-blog-card__date {
    font-size: 12px;
    color: var(--hm-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.hm-blog-card__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--hm-dark);
    margin: 0 0 10px;
    line-height: 1.4;
}
.hm-blog-card:hover .hm-blog-card__title { color: var(--hm-primary); }
.hm-blog-card__excerpt {
    font-size: 13px;
    color: var(--hm-muted);
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. CTA BAND
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hm-section--cta {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    text-align: center;
    padding: 80px 24px;
}
.hm-cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 14px;
}
.hm-cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.75);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.hm-btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--hm-accent);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    border: 2px solid var(--hm-accent);
    transition: transform var(--hm-transition), background-color var(--hm-transition), border-color var(--hm-transition), box-shadow var(--hm-transition);
    box-shadow: 0 8px 24px rgba(255,153,0,.35);
}
.hm-btn-accent:hover {
    background: #e68900;
    border-color: #e68900;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255,153,0,.45);
}

/* ── Ortak yardımcılar ── */
.hm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 36px;
}
.hm-section-header__right a {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--hm-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 6px;
}
.hm-section-header__right a:hover { text-decoration: underline; }
.hm-swiper-nav {
    display: flex;
    gap: 8px;
}
.hm-swiper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--hm-border);
    background: var(--hm-white);
    color: var(--hm-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--hm-transition), color var(--hm-transition), border-color var(--hm-transition), background-color var(--hm-transition);
    font-size: 13px;
}
.hm-swiper-btn:hover { border-color: var(--hm-primary); color: var(--hm-primary); }
.hm-swiper-btn:disabled { opacity: .35; cursor: not-allowed; }
