/* Home sections follow frontend/index.html literally; the template main.css supplies the section
   styles (navbar_category, featured_products, city_box, categorySectionTab, tags_list, cyprusad_box).
   Only hero geometry fixes and small resets against app.css globals live here. */
.home-widget#discover{scroll-margin-top:20px}
/* Hero geometry (audited pixel-equivalent; keeps wrapping for edited copy). */
.home-widget .home_search{position:relative}
.home-widget .home-photo-credit{position:absolute;right:12px;bottom:8px;max-width:calc(100% - 24px);padding:3px 7px;border-radius:4px;background:rgba(255,255,255,.94);color:#364152;font-size:10px;line-height:1.4;text-decoration:underline;overflow-wrap:anywhere;z-index:1}
.home-widget .home-photo-credit:focus-visible{outline:3px solid #24364e;outline-offset:2px}
.home-widget .home_search_title{max-width:100%;min-width:0}
.home-widget .home_search_title h2{max-width:100%;overflow-wrap:anywhere;text-align:center;flex-wrap:wrap}
.home-widget .home_search_title>span{max-width:100%;overflow-wrap:anywhere}
.home-widget .home_search .form-info a{color:inherit}
@media(min-width:801px){
 .home-widget .home_search_wrapper{padding:0;min-width:0;max-width:100%}
 .home-widget .home_search .home_search_form{width:680px;max-width:100%}
 .home-widget .home_search .home_search_nav{margin-top:25px}
 .home-widget .home_search .home_search_bottom{position:absolute;bottom:3rem;left:0;width:100%;margin-top:0}
}
/* Template section title size (app.css raises it to 23px on mobile; the template has no override). */
.home-widget .section_title h2{font-size:18px;font-weight:500;overflow-wrap:anywhere}
.home-widget .section_title p{color:#707070;font-size:14px;margin:6px 0 0}
/* Template icon sizes inside home sections (app.css forces .icon to 24px). */
.home-widget .product_buttons .icon,.home-widget .product_content_phone .icon{width:1em;height:1em}
/* Project phone band: the template's div.phoneLink is a content-wide 21px row (text-sm, icon mr-1) in the centred band;
   the app renders it as a <button>, so only the button chrome is reset (no padding, no full-width stretch). The open menu
   keeps the template's own .dropdown-item rules (nowrap, .25rem 1.5rem .25rem .9rem padding), so a number stays on one line. */
.home-widget .product_content_phone .phoneLink{background:none;border:0;padding:0;color:#fff;font-weight:500;font-size:inherit;line-height:inherit;cursor:pointer}
/* Card texts wrap like the template (no mid-word breaks: the 768 Popüler column is only ~27px wide there too); the project
   price is one unbreakable unit like the template's "600.800₺'den". */
.home-widget .product_big_title a{color:inherit}
.home-widget .product_big_price strong{white-space:nowrap}
/* Card photos keep the frame of the template sample image of each section (vitrin1.jpg 260×176 for the vitrine, deals and
   projects; haber1.jpg 260×195 for the news, whose uploaded images carry an inline 404/282 frame from the news pages), so any
   real photo is cropped to the template card; the template min-height:180px / object-fit:cover still apply. Popüler Ürünler
   keeps the template's natural image aspect (populer1.jpg is portrait). */
.home-widget .featured_product_box .product_image img{aspect-ratio:260/176}
.home-widget.widget-news .featured_product_box .product_image img{aspect-ratio:4/3!important}
.home-widget.widget-popular .featured_product_box .product_image img{aspect-ratio:auto}
/* Honest empty state for a template section without rows (configurable per widget). */
.home-widget .home-empty{padding:14px 0;color:#707070}
.home-widget .builder-empty-preview{margin-top:8px}
/* Category columns: real labels may wrap. */
.home-widget .navbar_category_box{min-width:0}
.home-widget .navbar_category_box_content ul li a{overflow-wrap:anywhere}
.home-widget .navbar_category_box_content ul li span{flex:none;margin-left:8px}
.home-widget .categoryListColon ul li a{overflow-wrap:anywhere}
/* The template category tabs always hold five equal columns (index.html:782-941, 5 × .col); real categories may have fewer
   subcategories, so each column keeps its 20% share instead of stretching (stacked under 576px like the template). */
@media(min-width:576px){.home-widget .categorySectionTabContent .tab-pane>.row>.categoryListColon{flex:0 0 20%;max-width:20%}}
/* Keep the template's 1s opacity fade, but raise the action layer immediately for hit testing.
   Keyboard focus within the card reveals the same controls as pointer hover. */
.home-widget .featured_product_box .product_hover{transition-property:opacity}
.home-widget .featured_product_box:focus-within .product_hover{z-index:9999;opacity:1}
/* A touch screen has no hover state. Put both actions below the photo so each has its own tap target. */
@media (hover:none) and (pointer:coarse){
 .home-widget.widget-promotions .product_image{height:auto}
 .home-widget.widget-promotions .featured_product_box .product_hover{
  position:static;opacity:1;height:auto;width:100%;padding:.5rem 0 0;background:transparent;
 }
 .home-widget.widget-promotions .product_hover a h3{width:100%;overflow-wrap:anywhere}
 .home-widget.widget-promotions .product_hover .product_buttons{
  width:100%;flex-flow:row wrap;gap:.375rem;
 }
 .home-widget.widget-promotions .product_buttons a.btn{
  flex:1 1 8rem;min-height:44px;margin:0;padding:.375rem .5rem;line-height:1.25;white-space:normal;
 }
}
.home-widget a:focus-visible{outline:3px solid #ff6200;outline-offset:3px}
@media(max-width:575px){
 .home-widget .navbar_category_box{width:100%}
}
@media(prefers-reduced-motion:reduce){.home-widget .product_hover,.home-widget .city_hover a,.home-widget .city_hover span{transition:none}}
/* empty=demo: ZIP sample cards never navigate (links without a destination). */
.home-widget [data-demo] a:not([href]){cursor:default}
.home-widget .sc-demo-note.sr-only{margin:-1px}
.home-widget .phoneLink[aria-disabled=true]{cursor:default;opacity:.85}
/* Ad placeholder (template adbox1.jpg "Reklam Alanı") keeps the template box proportions. */
.home-widget .cyprusad_box_wrapper[data-ad-placeholder] img{display:block;width:100%;height:auto}
/* City photos are round in the ZIP (frontend/index.html:501-538; city1.jpg and the verified defaults are 260x260): an
   uploaded or MediaID photo of another ratio is cropped to the same square instead of leaving an oval card. */
.home-widget .city_box .city_picture img{aspect-ratio:1/1;object-fit:cover}
.home-widget .city_box .city_hover a::after{content:"";position:absolute;inset:0;border-radius:100%;cursor:pointer}

/* The full deals card is one detail target; decorative price/badge areas share the image link.
   No geometry or source typography changes; visible title/price links stay above the target. */
.home-widget.widget-deals .featured_product_box{position:relative}
.home-widget.widget-deals .product_image{position:static}
.home-widget.widget-deals .product_discount{pointer-events:none}
.home-widget.widget-deals [data-card-detail]::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;cursor:pointer}
.home-widget.widget-deals .featured_product_title,.home-widget.widget-deals .price{position:relative;z-index:2}

.home-widget.widget-projects .product_big_title a{color:inherit}
