/* Shofy — vitrin düzeltmeleri */

.theme-shofy .tp-footer-cms-pages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-bottom: 10px;
}

.theme-shofy .tp-footer-cms-pages a {
	font-size: 14px;
	line-height: 1.4;
	color: #55585b;
	text-decoration: none;
}

.theme-shofy .tp-footer-cms-pages a:hover {
	color: var(--tp-common-black, #010f1c);
	text-decoration: underline;
}

/* Shofy — yalnızca checkout / hesap formları için ince düzeltmeler */

/* ── Logo boyutu: admin panelinden ayarlanabilir (varsayılan 35 px) ────────────── */
/* theme.json → customization → Logo → logo_max_height (px)                       */

.theme-shofy .logo img,
.theme-shofy .offcanvas__logo img {
    max-height: calc(var(--theme-logo-max-height, 35px) * var(--store-logo-scale, 1));
    width: auto;
    display: block;
}

.theme-shofy .tp-footer-logo img {
    max-height: calc(var(--theme-logo-max-height, 35px) * var(--store-logo-scale, 1));
    width: auto;
    display: block;
}

/* ── Ürün kartı görseli: dikey (portrait) alan + kırpmadan sığdır ────────────── */

/* Anasayfa kartı (tp-product-item / tp-product-thumb) */
.theme-shofy .tp-product-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}
.theme-shofy .tp-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* hover scale transition korunuyor */
}

/* Mağaza / shop kartı (tp-product-item-2 / tp-product-thumb-2) */
.theme-shofy .tp-product-thumb-2 {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
}
.theme-shofy .tp-product-thumb-2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Anasayfa kategori — daire içinde kırpma (ayar: --sf-cat-image-fit) */
.theme-shofy .sf-categories-section .tp-product-category-thumb a {
    width: var(--sf-cat-circle-size, 180px);
    height: var(--sf-cat-circle-size, 180px);
    overflow: hidden;
    border-radius: 50%;
}
.theme-shofy .sf-categories-section .tp-product-category-thumb img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: var(--sf-cat-image-fit, cover);
    display: block;
}

/* İç sayfa header — logo / menü çakışmasını önle */
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .logo {
    max-width: 100%;
    line-height: 1;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .logo a {
    display: inline-block;
    max-width: 100%;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .logo img {
    max-width: 100%;
    width: auto;
    height: auto;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 {
    margin-left: 0;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 4px;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li {
    margin-right: 14px;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li > a {
    padding: 16px 0;
    white-space: nowrap;
}
.theme-shofy .tp-header-style-primary .tp-header-bottom-2.tp-header-sticky.header-sticky .main-menu.menu-style-2 > nav > ul > li > a {
    padding-top: 12px;
    padding-bottom: 12px;
}
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li {
        margin-right: 10px;
    }
    .theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li > a {
        font-size: 14px;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li {
        margin-right: 8px;
    }
    .theme-shofy .tp-header-style-primary .tp-header-bottom-2 .main-menu.menu-style-2 > nav > ul > li > a {
        font-size: 13px;
        padding: 14px 0;
    }
}
@media only screen and (min-width: 992px) and (max-width: 1199px), only screen and (min-width: 768px) and (max-width: 991px) {
    .theme-shofy .sf-categories-section .tp-product-category-thumb a {
        width: min(var(--sf-cat-circle-size, 180px), 150px);
        height: min(var(--sf-cat-circle-size, 180px), 150px);
    }
}

.theme-shofy .page-checkout .billing-wrapper .form_control,
.theme-shofy .page-checkout .billing-wrapper select.kf-select {
    width: 100%;
}

.theme-shofy .page-checkout .checkout-form textarea.form_control {
    min-height: 120px;
    resize: vertical;
}

.theme-shofy .page-checkout .payment-method-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theme-shofy .page-checkout .payment-method-wrapper ul li.form-check {
    padding: 10px 16px 10px 40px;
    margin-bottom: 15px;
    border: 1px solid var(--tp-border-1, #eaeaea);
    border-radius: 6px;
    cursor: pointer;
}

.theme-shofy .page-checkout .payment-method-wrapper li.is-active {
    border-color: var(--tp-theme-primary, #0989ff);
}

.theme-shofy .ps-field.is-error .form_control,
.theme-shofy .kf-field.is-error input,
.theme-shofy .kf-field.is-error select {
    border-color: #dc3545;
}

.theme-shofy .tp-shop-area .pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-shofy .tp-shop-area .pagination ul li a.active {
    color: var(--tp-theme-primary, #0989ff);
}

.theme-shofy .tp-mega-menu a.has-mega-cat-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.theme-shofy .tp-mega-cat-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.theme-shofy .tp-banner-item.tp-banner-item--no-overlay {
    padding: 0;
    overflow: hidden;
}

.theme-shofy .tp-banner-item.tp-banner-item--no-overlay .tp-banner-thumb {
    z-index: 0;
    position: relative;
    height: 260px;
}

.theme-shofy .tp-banner-item.tp-banner-item--no-overlay .tp-banner-item__image-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* Açılır menü — genişlik içeriğe göre */
.theme-shofy .main-menu > nav > ul > li > .tp-submenu.sf-nav-dropdown,
.theme-shofy .main-menu > nav > ul > li > .tp-submenu:not(.tp-mega-menu) {
    width: max-content;
    min-width: 12rem;
    max-width: min(22rem, 92vw);
}
.theme-shofy .main-menu > nav > ul > li > .tp-submenu.sf-nav-dropdown li a,
.theme-shofy .main-menu > nav > ul > li > .tp-submenu:not(.tp-mega-menu) li a {
    white-space: nowrap;
    width: auto;
    display: block;
}
.theme-shofy .main-menu > nav > ul > li > .tp-mega-menu.mega-menu-style-2 {
    left: 0;
    right: auto;
    width: max-content;
    max-width: min(960px, 96vw);
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 28px;
    padding: 20px 28px 12px;
}
.theme-shofy .main-menu > nav > ul > li > .tp-mega-menu.mega-menu-style-2 > li.sf-mega-menu-column {
    float: none;
    width: auto;
    min-width: 9rem;
    max-width: 16rem;
    margin-bottom: 16px;
    overflow: visible;
}
.theme-shofy .main-menu > nav > ul > li > .tp-mega-menu.mega-menu-style-2 > li.sf-mega-menu-column .tp-submenu {
    position: static;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
    padding: 6px 0 0;
    min-width: 0;
    transform: none;
    display: block;
}

/* Mağaza sol filtre — kompakt kart */
.theme-shofy .sf-shop-sidebar {
    position: sticky;
    top: 88px;
    align-self: flex-start;
}
.theme-shofy .sf-shop-widget {
    background: var(--tp-common-white, #fff);
    border: 1px solid var(--tp-border-1, #eaeaea);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.theme-shofy .sf-shop-widget.mb-24 {
    margin-bottom: 16px;
}
.theme-shofy .sf-shop-widget-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--tp-border-1, #eaeaea);
}
.theme-shofy .sf-shop-widget-title.no-border {
    border-bottom: 0;
    padding-bottom: 0;
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li {
    margin: 0;
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li:not(:last-child) {
    margin-bottom: 2px;
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li a {
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li a::after {
    display: none;
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li a:hover,
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li a.active {
    background: rgba(9, 137, 255, 0.08);
    color: var(--tp-theme-primary, #0989ff);
}
.theme-shofy .sf-shop-widget .tp-shop-widget-categories ul li a span {
    font-size: 11px;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--tp-grey-1, #f3f4f6);
    color: var(--tp-text-2, #767a7d);
}
.theme-shofy .sf-shop-widget .tp-shop-widget-search input[type="search"] {
    font-size: 13px;
    padding: 8px 40px 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--tp-border-1, #eaeaea);
}
.theme-shofy .sf-shop-widget--filters .shop-filter-accordion--flat .shop-filter-accordion__item {
    border: 0;
    border-radius: 8px;
    background: var(--tp-grey-1, #f7f7f8);
    margin-bottom: 8px;
}
.theme-shofy .sf-shop-widget--filters .shop-filter-accordion--flat .shop-filter-accordion__trigger {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
}
.theme-shofy .sf-shop-widget--filters .shop-filter-accordion--flat .shop-filter-accordion__panel {
    padding: 0 12px 10px;
    font-size: 13px;
}
.theme-shofy .tp-filter-offcanvas-area .sf-shop-sidebar {
    position: static;
    top: auto;
}
