:root {
    --shop-ink: #172033;
    --shop-muted: #687386;
    --shop-line: #e5e9f0;
    --shop-surface: #f6f8fb;
    --shop-accent: var(--primary-color);
}

.home-products-section,
.home-contact-section {
    padding: 84px 0;
    background: var(--bg-color);
}


.text-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.text-link i,
.home-product-detail i {
    transition: transform .2s ease;
}

.text-link:hover i,
.home-product-card:hover .home-product-detail i {
    transform: translateX(4px);
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(22, 32, 51, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.home-product-card:hover {
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 14px 30px rgba(22, 32, 51, .1);
    transform: translateY(-5px);
}

.home-product-link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
}

.home-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eef2f7;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.04);
}

.home-product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 5px;
    background: var(--shop-accent);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
}

.home-product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.home-product-category,
.home-product-code {
    color: var(--shop-muted);
    font-size: .75rem;
}

.home-product-category {
    margin-bottom: 7px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.home-product-info h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-code {
    margin: 7px 0 15px;
}

.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--shop-line);
}

.home-product-footer strong {
    color: var(--shop-ink);
    font-size: 1.05rem;
}

.home-product-footer small {
    color: var(--shop-muted);
    font-size: .68rem;
}

.home-product-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: .78rem;
    font-weight: 700;
}

.home-empty-products {
    padding: 32px;
    border: 1px dashed var(--shop-line);
    border-radius: 10px;
    color: var(--shop-muted);
    text-align: center;
}

/* Staggered category rail: each card expands to the full row on hover. */
.products-section .products-category-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    overflow: visible;
    padding: 10px 8px 24px;
}

.products-section .category-card {
    position: relative;
    width: 72%;
    min-height: 178px;
    align-self: flex-start;
    overflow: visible;
    border: 1px solid var(--border-color);
    border-radius: 9px;
    background: var(--card-bg);
    will-change: width, transform;
    transition: width .45s cubic-bezier(.22, .61, .36, 1), transform .3s ease, box-shadow .3s ease;
}

.products-section .category-card:nth-child(even) {
    align-self: flex-end;
}

.products-section .category-card:hover,
.products-section .category-card:focus-within {
    z-index: 1;
    width: 100%;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 32, 51, .16);
}

.products-section .category-card-link {
    display: flex;
    min-height: 178px;
    height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: inherit;
}

.products-section .category-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.products-section .category-avatar::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 24%, rgba(12, 20, 35, .78) 100%);
    content: "";
}

.products-section .category-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.products-section .category-card:hover .category-avatar img {
    transform: scale(1.08);
}

.products-section .category-content {
    position: relative;
    z-index: 1;
    padding: 16px 14px;
}

.products-section .category-title {
    display: block;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.home-product-grid .product-card-modern {
    border-radius: 9px;
    box-shadow: 0 4px 16px rgba(22, 32, 51, .05);
}

.home-product-grid .product-info {
    padding: 15px;
}

.home-product-grid .product-title {
    font-size: 1rem;
}

.home-product-grid .product-price-wrapper {
    margin-bottom: 10px;
}

.home-contact-section {
    padding-bottom: 40px;
}

.home-contact-section .home-section-heading {
    align-items: center;
}

.home-contact-section .row {
    margin-top: 18px;
}

.home-contact-section #iletisim-bilgileri {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-right: 0;
    margin-left: 0;
}

.home-contact-section #iletisim-bilgileri>[class*="col-"] {
    width: auto;
    max-width: none;
    margin: 0 !important;
    padding: 0;
}

.home-contact-section .contact-info-card {
    height: 100%;
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    box-shadow: 0 5px 18px rgba(22, 32, 51, .04);
}

.home-contact-section .contact-info-card .icon {
    color: var(--shop-accent);
}

@media (max-width: 991px) {
    .products-section .products-category-grid {
        gap: 12px;
        padding: 8px 4px 20px;
    }

    .products-section .category-card {
        width: 78%;
        min-height: 160px;
    }

    .home-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-contact-section #iletisim-bilgileri {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-section .category-card-link {
        min-height: 160px;
    }
}

@media (max-width: 767px) {

    .home-products-section,
    .home-contact-section {
        padding: 58px 0;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-contact-section .btn {
        width: 100%;
    }

    .home-contact-section #iletisim-bilgileri {
        grid-template-columns: 1fr;
    }
}

/* Modern category discovery grid. */
.category-showcase {
    padding: 82px 0 74px;
}

.category-showcase-grid {
    display: grid;
    grid-auto-rows: 190px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #dce2ea;
    box-shadow: 0 8px 22px rgba(22, 32, 51, .08);
    color: #fff;
    isolation: isolate;
    transition: transform .3s ease, box-shadow .3s ease;
}

.category-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.category-tile:hover,
.category-tile:focus-visible {
    z-index: 1;
    box-shadow: 0 16px 32px rgba(22, 32, 51, .18);
    color: #fff;
    outline: none;
    transform: translateY(-5px);
}

.category-tile>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.22, .61, .36, 1), filter .35s ease;
}

.category-tile:hover>img,
.category-tile:focus-visible>img {
    filter: saturate(1.08);
    transform: scale(1.07);
}

.category-tile-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(9, 16, 28, .03) 25%, rgba(9, 16, 28, .82) 100%);
}

.category-tile-content {
    position: absolute;
    right: 18px;
    bottom: 17px;
    left: 18px;
    z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 12px;
}

.category-tile-number {
    align-self: start;
    color: rgba(255, 255, 255, .72);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.category-tile-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-tile-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    font-size: .75rem;
    transition: background .25s ease, transform .25s ease;
}

.category-tile:hover .category-tile-arrow,
.category-tile:focus-visible .category-tile-arrow {
    background: var(--shop-accent);
    border-color: var(--shop-accent);
    transform: rotate(45deg);
}

.category-showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 24px;
    color: var(--shop-muted);
    font-size: .9rem;
}

.category-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.category-showcase-link i {
    transition: transform .25s ease;
}

.category-showcase-link:hover i {
    transform: translateX(4px);
}

.home-trust-section .section-title {
    max-width: 680px;
    margin-bottom: 32px;
}

.home-trust-section .section-title .subtitle:before {
    left: 0;
    transform: none;
}

.home-trust-section .feature-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(22, 32, 51, .06);
}

@media (max-width: 767px) {
    .category-showcase {
        padding: 58px 0 52px;
    }

    .category-showcase-heading {
        margin-bottom: 24px;
    }

    .category-showcase-heading p {
        max-width: 520px;
    }

    .category-showcase-grid {
        grid-auto-rows: 172px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 11px;
    }

    .category-tile:first-child {
        grid-column: span 2;
        grid-row: span 1;
    }

    .category-tile-content {
        right: 13px;
        bottom: 13px;
        left: 13px;
        gap: 7px;
    }

    .category-tile-title {
        font-size: .88rem;
    }

    .category-tile-arrow {
        width: 29px;
        height: 29px;
    }

    .category-showcase-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}