/* ============================================================
   EYMEN E-TİCARET
   STABİL ANA SAYFA CSS
   - color-mix YOK
   - nikel-* YOK
   - Sektörden bağımsız
   - Tema rengi: --theme-primary
============================================================ */

:root {
    --store-primary: var(--theme-primary, #2563eb);
    --store-secondary: var(--theme-secondary, #111827);
    --store-bg: #f6f7f9;
    --store-card: #ffffff;
    --store-border: #e5e7eb;
    --store-text: #1f2937;
    --store-muted: #6b7280;
    --store-soft: #f8fafc;
}

/* ============================================================
   ANA HERO
============================================================ */

.store-home-hero {
    padding: 20px 0 32px;
    background: var(--store-bg);
}

.store-home-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.store-home-main {
    width: 100%;
    min-width: 0;
}

/* ============================================================
   KATEGORİ PANELİ
============================================================ */

.store-category-panel {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--store-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

.store-category-title {
    min-height: 56px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--store-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.store-category-title i {
    font-size: 18px;
}

.store-category-list {
    display: block;
    background: #fff;
}

.store-category-group {
    position: relative;
    border-bottom: 1px solid #eef0f3;
}

.store-category-group:last-child {
    border-bottom: 0;
}

.store-category-item {
    width: 100%;
    min-height: 43px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    background: #fff;
    color: #333;
    text-decoration: none;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s ease;
}

.store-category-item:hover,
.store-category-group.open > .store-category-item {
    background: #f7f8fa;
    color: var(--store-primary);
}

.store-category-item i {
    font-size: 11px;
    color: #9ca3af;
}

.store-category-arrow {
    transition: transform .2s ease;
}

.store-category-group.open .store-category-arrow {
    transform: rotate(90deg);
}

.store-subcategory-list {
    display: none;
    padding: 7px 10px 10px 20px;
    background: #f9fafb;
}

.store-category-group.open .store-subcategory-list {
    display: block;
}

.store-subcategory-item {
    min-height: 34px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5f6672;
    text-decoration: none;
    font-size: 12px;
    border-radius: 6px;
}

.store-subcategory-item:hover {
    background: #fff;
    color: var(--store-primary);
}

.store-category-all-link {
    min-height: 36px;
    margin-top: 5px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--store-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.store-category-footer-link {
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--store-border);
    color: var(--store-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.store-empty-small {
    padding: 18px;
    color: var(--store-muted);
    font-size: 12px;
}

/* ============================================================
   SLIDER
============================================================ */

.store-home-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1300 / 600;
    min-height: 400px;
    overflow: hidden;
    border-radius: 14px;
    background: #e5e7eb;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .06);
}

.store-home-slider .carousel-inner,
.store-home-slider .carousel-item {
    width: 100%;
    height: 100%;
}

.store-slider-media,
.store-slider-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.store-slider-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.store-slider-content {
    position: absolute;
    z-index: 5;
    left: 42px;
    top: 50%;
    transform: translateY(-50%);
    width: min(500px, 52%);
    padding: 25px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .14);
}

.store-slider-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--store-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.store-slider-content h1,
.store-slider-content h2 {
    margin: 0 0 10px;
    color: #171717;
    font-size: clamp(27px, 2.7vw, 42px);
    line-height: 1.1;
    font-weight: 800;
}

.store-slider-content p {
    margin: 0 0 17px;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.55;
}

.store-primary-button {
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    background: var(--store-primary);
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.store-primary-button:hover {
    color: #fff;
    opacity: .92;
}

.store-home-slider .carousel-control-prev,
.store-home-slider .carousel-control-next {
    width: 52px;
}

.store-home-slider .carousel-control-prev-icon,
.store-home-slider .carousel-control-next-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .45);
    background-size: 17px;
}

.store-home-slider .carousel-indicators {
    margin-bottom: 15px;
}

.store-home-slider .carousel-indicators button {
    width: 9px;
    height: 9px;
    margin: 0 4px;
    border-radius: 50%;
    border: 0;
}

.store-slider-empty {
    min-height: 400px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    background: #fff;
    color: var(--store-muted);
}

.store-slider-empty-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--store-primary);
    font-size: 26px;
}

.store-slider-empty strong,
.store-slider-empty span {
    display: block;
}

.store-slider-empty strong {
    margin-bottom: 4px;
    color: var(--store-text);
}

/* ============================================================
   PROMO KARTLARI
============================================================ */

.store-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.store-promo-card {
    min-height: 145px;
    padding: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .04);
    transition: .2s ease;
}

.store-promo-card:hover {
    transform: translateY(-2px);
    border-color: #cfd4dc;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.store-promo-content {
    min-width: 0;
}

.store-promo-content > span {
    display: block;
    margin-bottom: 5px;
    color: var(--store-primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.store-promo-content h3 {
    margin: 0 0 5px;
    color: #202124;
    font-size: 17px;
    font-weight: 800;
}

.store-promo-content p {
    margin: 0 0 10px;
    color: #747982;
    font-size: 11px;
    line-height: 1.45;
}

.store-promo-content strong {
    color: #30343b;
    font-size: 11px;
}

.store-promo-card img {
    width: 95px;
    height: 95px;
    flex: 0 0 95px;
    object-fit: contain;
}

.store-promo-icon {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #eef4ff;
    color: var(--store-primary);
    font-size: 27px;
}

/* ============================================================
   BÖLÜMLER
============================================================ */

.store-products-section,
.store-brands-section {
    padding: 56px 0;
}

.store-products-section {
    background: #fff;
}

.store-brands-section {
    background: #f7f8fa;
}

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

.store-section-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--store-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.store-section-heading h2 {
    margin: 0 0 5px;
    color: #202124;
    font-size: 29px;
    font-weight: 800;
}

.store-section-heading p {
    margin: 0;
    color: #7b818b;
    font-size: 13px;
}

.store-section-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--store-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

/* ============================================================
   ÜRÜN TABLARI
============================================================ */

.store-product-tabs {
    margin-bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.store-tab-button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #fff;
    color: #59616d;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.store-tab-button:hover,
.store-tab-button.active {
    border-color: var(--store-primary);
    background: var(--store-primary);
    color: #fff;
}

.store-tab-content {
    display: none;
}

.store-tab-content.active {
    display: block;
}

/* ============================================================
   ÜRÜN KARTLARI
============================================================ */

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.store-product-card {
    overflow: hidden;
    border: 1px solid var(--store-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
    transition: .2s ease;
}

.store-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

.store-product-media {
    position: relative;
    height: 235px;
    padding: 16px;
    display: grid;
    place-items: center;
    background: #fafafa;
    border-bottom: 1px solid #edf0f2;
}

.store-product-media > a {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.store-product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-product-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 5px 8px;
    border-radius: 6px;
    background: var(--store-primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
}

.store-product-badge-new {
    background: #159867;
}

.store-product-badge-sale {
    background: #dc2626;
}

.store-no-image {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #c3c7cf;
    font-size: 38px;
}

.store-product-body {
    padding: 15px;
}

.store-product-brand {
    display: block;
    margin-bottom: 5px;
    color: var(--store-primary);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.store-product-name {
    min-height: 44px;
    display: block;
    color: #252a31;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.store-product-name:hover {
    color: var(--store-primary);
}

.store-product-category {
    margin-top: 5px;
    color: #969ca5;
    font-size: 10px;
}

.store-product-price {
    min-height: 50px;
    margin: 13px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.store-product-price del {
    color: #9ca3af;
    font-size: 11px;
}

.store-product-price strong {
    color: #181b20;
    font-size: 18px;
    font-weight: 800;
}

.store-add-cart-btn {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: 8px;
    background: var(--store-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.store-add-cart-btn:hover:not(:disabled) {
    opacity: .92;
}

.store-add-cart-btn:disabled {
    background: #b7bcc4;
    cursor: not-allowed;
}

.store-empty-state {
    padding: 38px 22px;
    border: 1px dashed #d8dce2;
    border-radius: 12px;
    background: #fafafa;
    color: var(--store-muted);
    text-align: center;
}

/* ============================================================
   MARKALAR
============================================================ */

.store-brand-count {
    color: #868d96;
    font-size: 12px;
}

.store-brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.store-brand-card {
    min-height: 120px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    background: #fff;
    color: #3d434b;
    text-decoration: none;
    transition: .2s ease;
}

.store-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, .06);
}

.store-brand-logo {
    width: 100%;
    height: 58px;
    display: grid;
    place-items: center;
}

.store-brand-logo img {
    max-width: 100%;
    max-height: 54px;
    object-fit: contain;
}

.store-brand-logo span {
    color: #333;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.store-brand-card strong {
    max-width: 100%;
    overflow: hidden;
    color: #5b626c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   AVANTAJLAR
============================================================ */

.store-benefits-section {
    padding: 28px 0 34px;
    background: #fff;
}

.store-benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--store-border);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}

.store-benefit-card {
    min-height: 100px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-right: 1px solid var(--store-border);
}

.store-benefit-card:last-child {
    border-right: 0;
}

.store-benefit-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--store-primary);
    font-size: 19px;
}

.store-benefit-card strong,
.store-benefit-card span {
    display: block;
}

.store-benefit-card strong {
    margin-bottom: 3px;
    color: #292d33;
    font-size: 12px;
}

.store-benefit-card span {
    color: #8b919a;
    font-size: 10px;
    line-height: 1.4;
}

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

@media (max-width: 1199.98px) {

    .store-home-layout {
        grid-template-columns: 235px minmax(0, 1fr);
    }

    .store-home-slider {
        min-height: 370px;
    }

    .store-slider-content {
        left: 30px;
        width: min(450px, 58%);
    }

    .store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .store-home-layout {
        grid-template-columns: 1fr;
    }

    .store-category-panel {
        display: none;
    }

    .store-home-slider {
        aspect-ratio: 16 / 9;
        min-height: 340px;
    }

    .store-promo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-promo-card img,
    .store-promo-icon {
        display: none;
    }

    .store-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .store-benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-benefit-card:nth-child(2) {
        border-right: 0;
    }

    .store-benefit-card:nth-child(1),
    .store-benefit-card:nth-child(2) {
        border-bottom: 1px solid var(--store-border);
    }
}

@media (max-width: 767.98px) {

    .store-home-hero {
        padding: 10px 0 20px;
    }

    .store-home-slider {
        aspect-ratio: 16 / 10;
        min-height: 285px;
        border-radius: 10px;
    }

    .store-slider-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
        top: auto;
        transform: none;
        width: auto;
        padding: 14px;
        border-radius: 9px;
    }

    .store-slider-content h1,
    .store-slider-content h2 {
        margin-bottom: 7px;
        font-size: 22px;
    }

    .store-slider-content p {
        display: none;
    }

    .store-primary-button {
        min-height: 38px;
        margin-top: 4px;
    }

    .store-home-slider .carousel-control-prev,
    .store-home-slider .carousel-control-next {
        display: none;
    }

    .store-promo-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .store-promo-card {
        min-height: 110px;
    }

    .store-promo-card img {
        display: block;
        width: 80px;
        height: 80px;
        flex-basis: 80px;
    }

    .store-promo-icon {
        display: grid;
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .store-products-section,
    .store-brands-section {
        padding: 40px 0;
    }

    .store-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-section-heading h2 {
        font-size: 24px;
    }

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

    .store-product-media {
        height: 170px;
        padding: 9px;
    }

    .store-product-body {
        padding: 11px;
    }

    .store-product-name {
        min-height: 40px;
        font-size: 12px;
    }

    .store-product-price strong {
        font-size: 16px;
    }

    .store-add-cart-btn {
        min-height: 38px;
        font-size: 11px;
    }

    .store-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .store-brand-card {
        min-height: 100px;
        padding: 9px;
    }
}

@media (max-width: 575.98px) {

    .store-home-slider {
        min-height: 250px;
    }

    .store-slider-content {
        padding: 12px;
    }

    .store-slider-content h1,
    .store-slider-content h2 {
        font-size: 20px;
    }

    .store-tab-button {
        min-height: 36px;
        padding: 0 10px;
        font-size: 10px;
    }

    .store-product-media {
        height: 150px;
    }

    .store-product-badge {
        top: 7px;
        left: 7px;
    }

    .store-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-benefit-card {
        padding: 14px 10px;
    }

    .store-benefit-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
}
/* ============================================================
   ÜRÜN ADI TAM GÖRÜNSÜN
============================================================ */

.store-product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.store-product-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.store-product-name {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    color: #252a31 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

/* Fiyat ve buton mümkün olduğunca aşağıda kalsın */
.store-product-price {
    margin-top: auto !important;
    padding-top: 14px !important;
}

.store-add-cart-btn {
    margin-top: 0 !important;
}


/* TÜM ÜRÜNLER SAYFASI İÇİN */

.all-product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.all-product-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

.all-product-name {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow-wrap: anywhere !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

.all-product-price {
    margin-top: auto !important;
    padding-top: 14px !important;
}
/* ============================================================
   ÜRÜN RESMİ ALANI DÜZELTME
============================================================ */

.store-product-media {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}

    .store-product-media > a {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .store-product-media img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 165px !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }


/* TÜM ÜRÜNLER SAYFASI */

.all-product-media {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fff !important;
}

    .all-product-media > a {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .all-product-media img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 165px !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }


/* MOBİL */

@media (max-width: 767.98px) {

    .store-product-media,
    .all-product-media {
        height: 150px !important;
        min-height: 150px !important;
        max-height: 150px !important;
    }

        .store-product-media img,
        .all-product-media img {
            max-height: 130px !important;
        }
}