/* ========== Platform Custom CSS ========== */

/* Force light color scheme — Prevents mobile browsers (Samsung Internet "Force Dark Mode",
   Chrome auto-dark, Xiaomi MIUI browser etc.) from inverting page colors.
   Some phones apply OS-level dark mode to websites, causing black backgrounds. */
:root {
    color-scheme: light only;
    --swiper-theme-color: #222 !important;
}

/* Global heading & paragraph margins — override tenant CSS resets */
h1, h2, h3, h4, h5, h6 {
    margin: 20px 0 10px 0 !important;
}

p {
    margin: 0 0 10px 0 !important;
}

p.top-bar-text,
div.top-bar-text {
    margin: 0 !important;
}

div.top-bar-text p {
    margin: 0 !important;
    display: inline;
}

/* Nav icon for mobile menu items */
.menu-item-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.box-nav-ul .menu-item:hover>.sub-menu {
    background: #fff;
}

/* Nav item-link font weight override */
#header .box-nav-ul .item-link {
    font-weight: 400 !important;
}

/* Nav icon gap override */
#header .nav-icon {
    gap: 14px;
}

#header .nav-icon .nav-icon-item {
    margin-right: 5px;
}

/* All input fields must be 16px (prevents iOS auto-zoom on focus) */
textarea,
input[type=text],
input[type=password],
input[type=datetime],
input[type=datetime-local],
input[type=date],
input[type=month],
input[type=time],
input[type=week],
input[type=number],
input[type=email],
input[type=url],
input[type=search],
input[type=tel],
input[type=color] {
    font-size: 16px !important;
    color: #000 !important;
}

textarea::placeholder,
input::placeholder {
    color: #aaa !important;
}

/* Nav arrow indicator for items with sub-menus */
.box-nav-ul .menu-item.has-submenu>.item-link {
    position: relative;
    padding-right: 20px;
}

.box-nav-ul .menu-item.has-submenu>.item-link::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px !important;
    flex-shrink: 0;
    position: absolute;
    left: auto;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 1707 1024'%3E%3Cg transform='scale(1, -1) translate(0, -896)'%3E%3Cpath d='M0 789.333l853.333-853.333 853.333 853.333-151.467 151.467-701.867-701.867-701.867 701.866-151.467-151.466z'/%3E%3C/g%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 1707 1024'%3E%3Cg transform='scale(1, -1) translate(0, -896)'%3E%3Cpath d='M0 789.333l853.333-853.333 853.333 853.333-151.467 151.467-701.867-701.867-701.867 701.866-151.467-151.466z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-color: currentColor;
}

/* Mobile nav - arrow rotated to point right */
@media (max-width: 991px) {

    .box-nav-ul .menu-item.has-submenu>.item-link::after,
    .mobile-portal-nav .menu-item.has-submenu>.item-link::after {
        transform: translateY(-50%) rotate(-90deg);
    }
}

/* Mobile: hide all nav icons except cart */
@media (max-width: 991px) {

    .nav-icon .nav-search,
    .nav-icon .nav-order-tracking,
    .nav-icon .nav-account,
    .nav-icon .nav-wishlist {
        display: none !important;
    }
}

/* Mobile search bar - sticky below header */
.mobile-search-bar {
    background: #fff;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

/* Mobile search trigger - looks like a search input but opens modal */
.mobile-search-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 34px;
    background: #f8f8f8;
    color: #999;
    font-size: 14px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.mobile-search-trigger span:not(.svgi) {
    flex: 1;
}

.mobile-search-trigger i,
.mobile-search-trigger .icon,
.mobile-search-trigger .svgi {
    color: #51b549;
    font-size: 16px;
    flex: 0 0 auto;
}

/* Breadcrumb - always single line */
.tf-breadcrumb-list {
    white-space: nowrap;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
    .tf-breadcrumb-wrap {
        padding: 7.5px 0 !important;
        gap: 15px;
        font-size: 11px;
    }
}

/* Product page: hide mobile search bar, show magnifier icon instead */
@media (max-width: 991px) {
    .is-product-page .mobile-search-bar {
        display: none !important;
    }

    .is-product-page .nav-icon .nav-search {
        display: flex !important;
    }
}

/* Search offcanvas - full width on mobile */
@media (max-width: 991px) {
    .canvas-search {
        width: 100% !important;
    }

    /* Inside offcanvas, results should be 100% not 100vw */
    .canvas-search .site-search__results {
        width: 100%;
        left: 0;
        transform: none;
    }
}

/* Prevent iOS Safari auto-zoom on input focus (requires >= 16px) */
@media (max-width: 991px) {
    .site-search__input {
        font-size: 16px !important;
    }
}

/* ========== WebView Navigation Bar ========== */
/* Only visible when site is opened inside iOS WKWebView (App Store app) */

.webview-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.webview-navbar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 54px;
    border: none;
    background: transparent;
    color: #333;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease, transform 0.1s ease;
    padding: 0;
}

.webview-navbar__btn:active {
    transform: scale(0.92);
    color: #007AFF;
}

.webview-navbar__btn svg {
    width: 22px;
    height: 22px;
}

.webview-navbar__btn--disabled {
    color: #ccc;
    pointer-events: none;
}

/* Add bottom padding to body when webview navbar is visible */
body:has(.webview-navbar) {
    padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Product page: stack on top of existing 80px product-page padding */
body[data-page-type="product"]:has(.webview-navbar) {
    padding-bottom: calc(80px + 54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Offset ALL fixed/sticky bottom elements when webview navbar is visible */
body:has(.webview-navbar) .progress-wrap {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

body:has(.webview-navbar) .whatsapp-widget {
    bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Product page: sticky mobile order bar (Sipariş Ver) */
body:has(.webview-navbar) .sticky-mobile-order-bar {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Theme sticky add-to-cart bar */
body:has(.webview-navbar) .tf-sticky-btn-atc {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Bottom navigation bar (if exists) */
body:has(.webview-navbar) .tf-bottom-navigation,
body:has(.webview-navbar) .mobile-bottom-nav {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Cookie consent bar */
body:has(.webview-navbar) .cc-window,
body:has(.webview-navbar) #cc-main {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Filter apply/clear fixed bar */
body:has(.webview-navbar) .filter-fixed-bottom {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Checkout page: mobile fixed bottom buttons (Satın Al, İleri, Devam Et) */
body:has(.webview-navbar) .checkout-mobile-fixed,
body:has(.webview-navbar) .mobile-fixed-bottom {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)) !important;
}

/* ========== NavClient Mobile Menu ========== */

/* Bottom links container (Sipariş Takip, Giriş Yap wrapper) */
.mobile-nav-bottom-links {
    width: 100%;
    margin-top: 0;
}

/* Individual bottom link (Sipariş Takip, Giriş Yap) */
.mobile-nav-bottom-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    width: 100%;
    color: var(--main, #333);
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

/* Language/Currency section */
.mobile-nav-lang-currency {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

/* ========== Mobile Menu Header Row (Lang/Currency + Close) ========== */
/* Used in NavClient mobile menu - header row replaces bottom switchers */
@media (max-width: 1024px) {
    .mobile-menu-header-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 10px 0;
        margin-bottom: 5px;
    }

    .mobile-menu-header-row .mobile-menu-close {
         
        flex-shrink: 0;
    }

    .mobile-menu-header-switchers {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .mobile-menu-header-switchers .switcher-box,
    .mobile-menu-header-switchers .header-currency-trigger {
        font-size: 12px;
        padding: 5px 10px;
    }

    /* Reduce top padding since header row handles spacing */
    .box-navigation:has(.mobile-menu-header-row) {
        padding-top: 15px !important;
    }
}

/* Hide bottom lang/currency section (moved to header row) */
.mobile-nav-lang-currency {
    display: none !important;
}

.canvas-mb .mb-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 15px 10px 20px;
    gap: 10px;
    flex-shrink: 0;
}

.canvas-mb .mb-header-row .icon-close-popup {
    position: static !important;
    flex-shrink: 0;
}

.canvas-mb .mb-header-switchers {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.canvas-mb .mb-header-switchers .switcher-box,
.canvas-mb .mb-header-switchers .header-currency-trigger {
    font-size: 12px;
    padding: 5px 10px;
}

/* Reduce top padding since header row handles spacing */
.canvas-mb .mb-canvas-content {
    padding-top: 8px !important;
}

/* Icon + label wrapper inside menu items */
.menu-item-icon-label {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Simple link variant (no flex:1) */
.menu-item-icon-label-simple {
    display: flex;
    align-items: center;
}
.box-nav-ul .menu-list .menu-link-text .menu-item-icon{
margin-right: 5px;
}
/* ========== Header Switcher Boxes (Lang / Currency) ========== */
/* Hide lang/currency switchers in header on mobile — only show inside hamburger menu */
@media (max-width: 1024px) {
    .nav-icon > .nav-lang,
    .nav-icon > .nav-currency {
        display: none !important;
    }
}

.switcher-box {
    display: inline-flex;
    align-items: center;
    gap: 0px;
    padding: 7px 14px;
    border: thin solid #bbb;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    color: inherit;
}

.switcher-box .switcher-sep {
    margin: 0 5px;
    color: #bbb;
    font-weight: 300;
}

.switcher-box .switcher-item {
    font-weight: 400;
    color: inherit;
}

.switcher-box:has(.switcher-sep) .switcher-item.active {
    font-weight: 700;
}

/* ========== Cart Badge Override ========== */
#header .nav-icon .count-box {
    background-color: var(--color-primary, var(--primary)) !important;
}

/* ========== Footer Icon Protection ========== */
/* Prevent checkout/tenant CSS icon resets from collapsing footer social icons */
#footer .tf-social-icon .box-icon {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#footer .tf-social-icon .box-icon i[class^="icon-"],
#footer .tf-social-icon .box-icon i[class*=" icon-"] {
    width: auto !important;
    height: auto !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

/* ========== Topbar Custom Colors ========== */
/* Applied via CSS variables set from admin panel (--topbar-bg, --topbar-text) */
.tf-top-bar[style*="--topbar-bg"] {
    background-color: var(--topbar-bg) !important;
}

.tf-top-bar[style*="--topbar-text"] {
    color: var(--topbar-text) !important;
}

.tf-top-bar[style*="--topbar-text"] .top-bar-text,
.tf-top-bar[style*="--topbar-text"] .tf-btn.btn-line,
.tf-top-bar[style*="--topbar-text"] .tf-social-icon a,
.tf-top-bar[style*="--topbar-text"] .tf-social-icon i {
    color: var(--topbar-text) !important;
    margin-bottom: 0 !important;
}

.tf-top-bar[style*="--topbar-text"] .tf-social-icon .box-icon {
    border-color: var(--topbar-text) !important;
}

.tf-top-bar[style*="--topbar-padding"] .tf-top-bar_wrap {
    padding: var(--topbar-padding) 0 !important;
}

.tf-top-bar[style*="--topbar-font-size"] .top-bar-text,
.tf-top-bar[style*="--topbar-font-size"] .top-bar-text span,
.tf-top-bar[style*="--topbar-font-size"] .top-bar-text p,
.tf-top-bar[style*="--topbar-font-size"] .tf-btn.btn-line {
    font-size: var(--topbar-font-size) !important;
}

/* ========== CLS Prevention ========== */
/* Reserve space for critical above-fold elements to prevent layout shift (CLS) */

/* Header: prevent CLS on scroll show/hide transitions */
#header {
    min-height: 60px;
    contain: layout style;
}

/* Main banner/slider area: reserve minimum space on mobile */
@media (max-width: 991px) {
    .tf-slideshow,
    .flat-slider,
    [class*="slideshow"],
    .slider-home {
        min-height: 200px;
    }
}

/* Desktop slider reserve */
@media (min-width: 992px) {
    .tf-slideshow,
    .flat-slider,
    [class*="slideshow"],
    .slider-home {
        min-height: 400px;
    }
}

/* ========== Product Image Aspect Ratio ========== */
/* Tenant-configurable via --product-image-ratio CSS custom property */
/* Set from admin panel → CustomAssetsSSR → :root { --product-image-ratio: 3/4; } */

/* Product list cards — override theme's default 1/1.4 ratio */
.card-product .card-product-wrapper {
    aspect-ratio: var(--product-image-ratio, 3/4) !important;
    background-color: #f8f8f8;
}

.card-product .card-product-wrapper img {
    object-fit: contain !important;
    object-position: center !important;
}

/* Product detail — main slider images */
.tf-product-media-main .item,
.product-main-image {
    aspect-ratio: var(--product-image-ratio, 3/4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
}

.tf-product-media-main .item img,
.product-main-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    max-height: none !important;
}

/* Product detail — thumbnail images */
.tf-product-media-thumbs .item img,
.product-main-slider .swiper-slide img {
    aspect-ratio: var(--product-image-ratio, 3/4);
    object-fit: contain !important;
    background-color: #f8f8f8;
}

/* Responsive: no special overrides needed — aspect-ratio works on all sizes */

/* ========== Swiper Pagination Bullets ========== */
/* Bullets use the icon system: tenants can override shape via IconEditor (--icon-bullet-custom) */
.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    padding: 10px;
    margin: 2px !important;
}

/* Override default bullet rendering to use mask-image icon system */
.swiper-pagination-bullet {
    background: none !important;
    border-radius: 0 !important;
    position: relative;
    width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px)) !important;
    height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px)) !important;
    opacity: var(--swiper-pagination-bullet-inactive-opacity, .2) !important;
}

.swiper-pagination-bullet::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--swiper-pagination-bullet-inactive-color, #000);
    -webkit-mask-image: var(--icon-bullet-custom, var(--icon-bullet));
    mask-image: var(--icon-bullet-custom, var(--icon-bullet));
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.swiper-pagination-bullet-active {
    opacity: var(--swiper-pagination-bullet-opacity, 1) !important;
}

.swiper-pagination-bullet-active::after {
    background-color: var(--swiper-pagination-color, var(--swiper-theme-color, #222));
}

/* sw-dots theme variant: disable default ::before pseudo (icon handles it all) */
.sw-dots .swiper-pagination-bullet::before {
    content: none !important;
}

.sw-dots .swiper-pagination-bullet {
    border: none !important;
}
@media (min-width: 992px) {
    .favorite-btn--mobile{
       display: none !important;
    }
}
.category-page-title{
        margin-top: 0 !important;
}
label {
    font-weight: normal;
}
.footer .footer-heading{
    margin-bottom: 5px;
}


input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  box-sizing: border-box;
  background-color: #ffffff; 
  border: 1.5px solid #caced1; 
  border-radius: 4px; 
  cursor: pointer;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  transition: all 0.2s ease; 
}
input[type="checkbox"]:checked {
  background-color: #1e3d3b; 
  border-color: #1e3d3b;
}
input[type="checkbox"]:checked::after {
 content: "";
    position: absolute;
    left: 50%;
    top: 43%;
    width: 7px;
    height: 11px;
    border: solid #ffffff;
    border-width: 0 1px 1px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.auth-google-btn
 {
    color: #000;
    border: 1px solid #555;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    border-radius: 4px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background .2s;
    display: flex;
}
.auth-google-btn:hover {
    background: #fff;
}

.addresstab {
    flex: 1 1 0%;
    padding: 12px 20px;
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: rgb(51, 51, 51);
}
.addresstabcont{
    display: "flex";
    gap: 10px;
    margin-bottom: 20;
    background: "#edf1f2";
    padding: 8px;
    border-radius: 6px
}

main:has(.sepet-page) , main:has(.siparis-bilgileri-page),  main:has(.fatura-page),  main:has(.odeme-page){
  background-color: #f6f6f6;
}

.siparis-bilgileri-page .toggle-section{
  margin-top:20px;
}

/* ========== Product Spotlight Banner ========== */
/* Banner with background image, left promo image, and "+" toggle product popup */

.product-spotlight-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 600px;
}

.product-spotlight-banner__bg {
    display: block;
    width: 100%;
    line-height: 0;
}

.product-spotlight-banner__bg img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.product-spotlight-banner__inner {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

/* Left promotional image */
.product-spotlight-banner__left {
    flex: 0 0 auto;
   align-items: stretch;
    z-index: 2;
}

.product-spotlight-banner__left a {
    display: flex;
    width: 100%;
}

.product-spotlight-banner__left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Toggle button + popup area */
.product-spotlight-banner__action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* "+" toggle button */
.product-spotlight-banner__toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #3d7b74;
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 5;
    position: absolute;
    left: var(--spotlight-btn-x, 50%);
    top: var(--spotlight-btn-y, 50%);
    transform: translate(-50%, -50%);
    -webkit-tap-highlight-color: transparent;
}

.product-spotlight-banner__toggle:hover {
    background-color: #2d5f59;
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.product-spotlight-banner__toggle.is-open {
    background-color: #2d5f59;
}

.product-spotlight-banner__toggle-icon {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product popup card */
.product-spotlight-banner__popup {
    position: absolute;
    left: var(--spotlight-btn-x, 50%);
    top: var(--spotlight-btn-y, 50%);
    transform: translate(-50%, calc(-100% - 30px));
    z-index: 10;
    animation: spotlight-popup-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 240px;
}

@keyframes spotlight-popup-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-100% - 20px)) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, calc(-100% - 30px)) scale(1);
    }
}

.product-spotlight-banner__product {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    min-width: 240px;
    max-width: 320px;
}

.product-spotlight-banner__product-img-link {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: block;
}

.product-spotlight-banner__product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-spotlight-banner__product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-spotlight-banner__product-name {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
}

.product-spotlight-banner__product-name:hover {
    color: #3d7b74;
}

.product-spotlight-banner__product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.product-spotlight-banner__price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.product-spotlight-banner__price-current {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.product-spotlight-banner__price-current.has-discount {
    color: #c53030;
}

.product-spotlight-banner__buy-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;
    background-color: #3d7b74;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    text-align: center;
    transition: background-color 0.2s ease;
    align-self: flex-start;
}

.product-spotlight-banner__buy-btn:hover {
    background-color: #2d5f59;
}

/* Loading state */
.product-spotlight-banner__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.product-spotlight-banner__spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e0e0e0;
    border-top-color: #3d7b74;
    border-radius: 50%;
    animation: spotlight-spin 0.6s linear infinite;
}

@keyframes spotlight-spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.product-spotlight-banner__empty {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .product-spotlight-banner {
        display: flex;
        flex-direction: column;
    }

    .product-spotlight-banner__bg {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .product-spotlight-banner__bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .product-spotlight-banner__inner {
        position: relative;
        flex-direction: column;
        min-height: 320px;
    }

    .product-spotlight-banner__left {
        width: 100%;
        max-height: 200px;
        order: -1;
    }

    .product-spotlight-banner__left-img {
        width: 100%;
        height: auto;
        max-height: 200px;
        object-fit: cover;
    }

    .product-spotlight-banner__action {
        min-height: 200px;
    }

    .product-spotlight-banner__popup {
        min-width: 200px;
        max-width: calc(100vw - 40px);
        left: 50%;
        transform: translate(-50%, calc(-100% - 30px));
    }

    @keyframes spotlight-popup-in {
        from {
            opacity: 0;
            transform: translate(-50%, calc(-100% - 20px)) scale(0.95);
        }
        to {
            opacity: 1;
            transform: translate(-50%, calc(-100% - 30px)) scale(1);
        }
    }

    .product-spotlight-banner__product {
        max-width: none;
    }
}

/* ========== Category Circles — Configurable Visible Count ========== */
/* Panel users set --desktop-visible and --mobile-visible via component props.
   Uses container query units (cqi) so items size relative to the scroll wrapper's visible area. */

.tf-categories-wrap[style*="--desktop-visible"],
.tf-categories-wrap[style*="--mobile-visible"] {
    container-type: inline-size;
}

/* Desktop: use --desktop-visible */
.tf-categories-wrap[style*="--desktop-visible"] .tf-categories-container {
    flex-wrap: nowrap;
}

.tf-categories-wrap[style*="--desktop-visible"] .tf-categories-container > .collection-item-circle {
    min-width: calc(100cqi / var(--desktop-visible)) !important;
    max-width: calc(100cqi / var(--desktop-visible));
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Also size the shopall circle consistently */
.tf-categories-wrap[style*="--desktop-visible"] .tf-shopall-wrap > .collection-item-circle {
    min-width: calc(100cqi / var(--desktop-visible)) !important;
    max-width: calc(100cqi / var(--desktop-visible));
    flex: 0 0 auto;
    box-sizing: border-box;
}

/* Mobile: override with --mobile-visible */
@media (max-width: 767px) {
    .tf-categories-wrap[style*="--mobile-visible"] .tf-categories-container > .collection-item-circle {
        min-width: calc(100cqi / var(--mobile-visible)) !important;
        max-width: calc(100cqi / var(--mobile-visible));
    }

    .tf-categories-wrap[style*="--mobile-visible"] .tf-shopall-wrap > .collection-item-circle {
        min-width: calc(100cqi / var(--mobile-visible)) !important;
        max-width: calc(100cqi / var(--mobile-visible));
    }
}

/* Ensure the image and saleoff wrapper adapt to the circle width */
.tf-categories-wrap[style*="--desktop-visible"] .collection-item-circle .collection-image,
.tf-categories-wrap[style*="--desktop-visible"] .collection-item-circle .has-saleoff-wrap,
.tf-categories-wrap[style*="--mobile-visible"] .collection-item-circle .collection-image,
.tf-categories-wrap[style*="--mobile-visible"] .collection-item-circle .has-saleoff-wrap {
    width: 70% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
}

/* Smooth scroll hint for the peek effect */
.tf-categories-wrap[style*="--desktop-visible"],
.tf-categories-wrap[style*="--mobile-visible"] {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.tf-categories-wrap[style*="--desktop-visible"] .collection-item-circle,
.tf-categories-wrap[style*="--mobile-visible"] .collection-item-circle {
    scroll-snap-align: start;
}

/* ========== Kişiye Özel Option Buttons ========== */
/* Pill-style option selector (e.g. color: Beyaz / Siyah) */

.kisiye-ozel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.kisiye-ozel-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 24px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    min-width: 56px;
    text-align: center;
    line-height: 1.3;
    user-select: none;
}

.kisiye-ozel-option:hover {
    border-color: #888;
    background: #fafafa;
}

.kisiye-ozel-option.selected {
    border-color: var(--color-primary, #1e3d3b);
    background: var(--color-primary, #1e3d3b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kisiye-ozel-option:active {
    transform: scale(0.96);
}

/* ========== Contact Form (Puck Component) ========== */

.contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
    padding: 20px 0;
}

.contact-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-form-field {
    position: relative;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e1dcd8;
    padding: 16px 4px 16px 4px;
    font-size: 16px;
    font-family: inherit;
    color: #333;
    background: transparent;
    outline: none;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
    border-bottom-color: #1d3435;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
    color: #aaa;
    font-weight: 400;
}

.contact-form-select {
    cursor: pointer;
    color: #333;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 32px;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.contact-form-error {
    color: #c53030;
    font-size: 13px;
    padding: 8px 0;
}

.contact-form-submit {
    display: inline-block;
    margin-top: 16px;
    padding: 14px 36px;
    background-color: var(--contact-btn-color, #1d3435);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    align-self: flex-start;
    -webkit-tap-highlight-color: transparent;
}

.contact-form-submit:hover {
    opacity: 0.9;
}

.contact-form-submit:active {
    transform: scale(0.97);
}

.contact-form-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Success state */
.contact-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 20px;
    text-align: center;
    animation: contact-form-fade-in 0.4s ease;
}

.contact-form-success p {
    font-size: 17px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

@keyframes contact-form-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 16px 0;
    }

    .contact-form-submit {
        width: 100%;
        text-align: center;
    }
}