/**
 * Masaüstü / tablet — klasik e-ticaret yerleşimi (Nest tarzı iskelet, OtoGo renkleri)
 */

:root {
    --layout-max-desktop: 1320px;
    --desk-border: #eef2f7;
    --desk-topbar-bg: #f8fafc;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .app-shell {
        max-width: min(720px, 100%);
        padding: 0 24px 108px;
    }

    .product-grid--store,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .product-card__figure {
        height: 132px;
    }

    .hero-layout {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        gap: 18px;
        align-items: stretch;
    }

    .promo-trio {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .promo-card {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 200px;
    }
}

@media (min-width: 1024px) {
    .header-desktop {
        display: block;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        background: #fff;
        border-bottom: 1px solid var(--desk-border);
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    }

    .header-mobile {
        display: none !important;
    }

    .search-row--mobile-only {
        display: none !important;
    }

    .bottom-nav {
        display: none !important;
    }

    .app-shell {
        max-width: min(var(--layout-max-desktop), 100%);
        margin: 0 auto;
        padding: 0 28px 40px;
    }

    /* Üst menü ile içerik arasında nefes payı */
    main.page {
        padding-top: clamp(22px, 2.8vw, 40px);
    }

    .desk-inner {
        max-width: var(--layout-max-desktop);
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .desk-topbar {
        background: var(--desk-topbar-bg);
        font-size: 0.82rem;
        color: var(--color-text-muted);
        border-bottom: 1px solid var(--desk-border);
    }

    .desk-topbar__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 0;
        flex-wrap: wrap;
    }

    .desk-topbar__links {
        display: flex;
        gap: 16px;
        flex-wrap: wrap;
    }

    .desk-topbar__links a:hover {
        color: var(--color-primary);
    }

    .desk-topbar__promo {
        margin: 0;
        flex: 1;
        text-align: center;
        font-weight: 600;
        color: var(--color-text);
        min-width: 200px;
    }

    .desk-topbar__right {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

    .desk-topbar__sep {
        opacity: 0.4;
    }

    .desk-masthead {
        padding: 16px 0;
    }

    .desk-masthead__grid {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
    }

    .desk-masthead__brandrow {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .desk-back {
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--color-text-muted);
        white-space: nowrap;
    }

    .desk-back:hover {
        color: var(--color-primary);
    }

    .desk-logo {
        font-size: 1.65rem;
        font-weight: 900;
        letter-spacing: -0.03em;
        color: var(--color-text);
    }

    .desk-logo:hover {
        color: var(--color-primary);
    }

    .desk-search {
        width: 100%;
    }

    .desk-search__wrap {
        display: flex;
        align-items: stretch;
        border: 2px solid #e8edf5;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        max-width: 100%;
        width: 100%;
    }

    .desk-search__cat {
        border: 0;
        background: #f8fafc;
        padding: 0 14px;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--color-text);
        cursor: pointer;
        border-right: 1px solid var(--desk-border);
    }

    .desk-search__input {
        flex: 1;
        border: 0;
        padding: 12px 14px;
        font-size: 0.95rem;
        min-width: 0;
    }

    .desk-search__btn {
        background: var(--color-primary);
        color: #fff;
        border: 0;
        padding: 0 18px;
        cursor: pointer;
        display: grid;
        place-items: center;
    }

    .desk-search__btn:hover {
        background: var(--color-primary-dark);
    }

    .desk-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .desk-action {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 10px;
        border-radius: 10px;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--color-text-muted);
        text-decoration: none;
    }

    .desk-action:hover {
        background: #f1f5f9;
        color: var(--color-primary);
    }

    .desk-action--emphasis {
        color: var(--color-primary);
    }

    .desk-action__icon {
        width: 22px;
        height: 22px;
    }

    .desk-navbar {
        border-top: 1px solid var(--desk-border);
        padding: 14px 0 22px;
    }

    .desk-navbar__row {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
        flex-wrap: wrap;
    }

    .desk-cat-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 18px;
        border-radius: 8px;
        background: var(--color-primary);
        color: #fff;
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
    }

    .desk-cat-btn:hover {
        background: var(--color-primary-dark);
    }

    .desk-cat-wrapper:hover .desk-cat-dropdown {
        display: block !important;
    }

    .desk-cat-dropdown a:hover {
        background: #f1f5f9;
        color: var(--color-primary) !important;
    }

    .desk-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 22px;
        justify-content: flex-start;
        flex: 1 1 auto;
        margin-right: auto;
    }

    .desk-menu a {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--color-text);
    }

    .desk-menu a:hover {
        color: var(--color-primary);
    }

    .desk-hotline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
        text-align: right;
        text-decoration: none;
        color: inherit;
    }

    .desk-hotline:hover .desk-hotline__num,
    .desk-hotline:hover .desk-hotline__cap {
        color: #16a34a;
    }

    .desk-hotline__icon {
        width: 24px;
        height: 24px;
        color: #22c55e;
        flex: 0 0 auto;
    }

    .desk-hotline__num {
        display: block;
        font-size: 1.15rem;
        font-weight: 900;
        color: var(--color-primary);
    }

    .desk-hotline__cap {
        font-size: 0.75rem;
        color: var(--color-text-muted);
        font-weight: 600;
    }

    .hero-layout {
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
        gap: 22px;
        margin-bottom: 24px;
        align-items: stretch;
    }

    .hero.hero--primary {
        margin-bottom: 0;
    }

    .hero-side__card {
        min-height: 100%;
        align-items: flex-end;
    }

    .promo-trio {
        flex-direction: row;
        gap: 18px;
        margin-bottom: 28px;
    }

    .promo-card {
        flex: 1;
        min-height: 140px;
        border-radius: var(--radius-xl);
    }

    .promo-card__title {
        max-width: none;
        font-size: 1.05rem;
    }

    .section-head--split {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 20px;
        margin-bottom: 20px;
    }

    .section-head__link--mobile-only {
        display: none !important;
    }

    .product-tabs--desktop {
        display: flex;
        align-items: center;
        gap: 6px 20px;
        flex-wrap: wrap;
    }

    .product-tabs__link {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--color-text-muted);
        padding: 6px 0;
        border-bottom: 2px solid transparent;
    }

    .product-tabs__link:hover,
    .product-tabs__link.is-active {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
    }

    .product-grid--store,
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 22px;
    }

    @media (max-width: 1200px) {
        .product-grid--store,
        .product-grid {
            grid-template-columns: repeat(4, 1fr);
        }
    }

    @media (max-width: 1100px) {
        .product-grid--store,
        .product-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    .product-card {
        border: 1px solid var(--desk-border);
        border-radius: 12px;
        transition: box-shadow 0.15s ease, border-color 0.15s ease;
    }

    .product-card:hover {
        border-color: rgba(59, 130, 246, 0.35);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

    .product-card__figure {
        height: 180px;
        margin: 14px 14px 0;
    }

    .product-card__figure.has-image::after {
        content: none;
    }

    .product-card__meta {
        padding: 12px 16px 52px;
    }

    .product-card__cat {
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--color-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
    }

    .product-card__brand {
        font-size: 0.7rem;
    }

    .product-card__rating-line {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 6px 0 8px;
        font-size: 0.82rem;
        color: #f59e0b;
    }

    .product-card__rating-val,
    .product-card__rating-count {
        color: var(--color-text-muted);
        font-weight: 600;
    }

    .product-card__old-price {
        display: inline;
        font-size: 0.82rem;
        color: var(--color-text-muted);
        font-weight: 600;
    }

    .product-card__qty-hint {
        display: none;
    }

    .product-card__row {
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px 12px;
    }

    .product-card__price {
        font-size: 1.05rem;
        color: var(--color-primary);
    }

    .product-card__badge--home {
        display: inline-block;
    }

    .product-card__add {
        position: absolute;
        right: 12px;
        bottom: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 40px;
        height: 36px;
        padding: 0 12px;
        border-radius: 8px;
        background: #f1f5f9;
        color: var(--color-text);
        font-size: 0.78rem;
        font-weight: 800;
        text-decoration: none;
        z-index: 3;
    }

    .product-card__add:hover {
        background: var(--color-primary);
        color: #fff;
    }

    .product-card--listing .product-card__arrow {
        display: none;
    }

    .category-strip__list {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
        row-gap: 14px;
    }

    .category-strip {
        margin: 0 0 20px;
    }

    body.page-product-detail main.page {
        display: grid;
        grid-template-columns: 500px 1fr;
        gap: 32px;
        align-items: start;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0 40px;
    }

    .detail-hero {
        padding-top: 0px;
        position: sticky;
        top: 10px;
        margin: 0 !important;
    }

    .detail-visual {
        width: 500px !important;
        height: 500px !important;
        max-height: 500px !important;
        border-radius: 10px !important;
        overflow: hidden;
        background: #fff;
    }

    .detail-sheet {
        margin: 0;
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.04);
        padding: 24px 28px !important;
    }

    .panel-card {
        max-width: 100%;
    }

    /* Detay sayfasını tam ekran genişliği yap ve yukarı doğru daralt */
    body.page-product-detail .app-shell {
        max-width: 100% !important;
        padding: 0 40px 40px !important;
    }

    body.page-product-detail main.page {
        padding-top: 12px !important;
    }
}

@media (max-width: 1023px) {
    .header-desktop {
        display: none;
    }
}

@media (min-width: 768px) {
    .product-card__actions {
        flex-direction: row !important;
        gap: 8px !important;
    }
    .product-card__btn-add {
        flex: 1.1 !important;
    }
    .product-card__btn-buy {
        flex: 0.9 !important;
    }
}
