/*
Theme Name: Kapanci Premium
Theme URI: https://kapanciistanbul.com
Author: Kapancı İstanbul
Description: Premium bilingual WooCommerce theme for Kapancı İstanbul with editorial fashion design, EN/TR interface, responsive layouts, wishlist-ready styling, lookbook, account, cart and checkout design.
Version: 2.4.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: kapanci-premium
Tags: e-commerce, woocommerce, fashion, responsive, translation-ready
License: GNU General Public License v2 or later
*/

:root{
 --kp-bg:#f7f4ef;--kp-paper:#fffdfa;--kp-ink:#1e1a17;--kp-muted:#756d66;
 --kp-line:#ded7cf;--kp-brown:#2b1e16;--kp-sand:#e9e1d7;--kp-max:1440px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--kp-bg);color:var(--kp-ink);font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.55}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.kp-container{width:min(var(--kp-max),calc(100% - 40px));margin:auto}
.screen-reader-text{position:absolute;left:-9999px}
.kp-header{height:80px;background:rgba(255,253,250,.97);border-bottom:1px solid var(--kp-line);position:sticky;top:0;z-index:100;backdrop-filter:blur(12px)}
.admin-bar .kp-header{top:32px}
.kp-header-inner{height:100%;display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
.kp-logo{font-family:Georgia,serif;letter-spacing:.34em;text-align:center;font-size:18px;text-transform:uppercase}
.kp-logo small{display:block;font:7px Arial;letter-spacing:.42em;margin-top:4px}
.kp-icon-btn{width:42px;height:42px;border:0;background:none;font-size:19px;display:inline-grid;place-items:center}
.kp-actions{display:flex;justify-content:flex-end;align-items:center}
.kp-lang{display:flex;border:1px solid var(--kp-line);margin-right:6px;background:#fff}
.kp-lang a{padding:7px 9px;font-size:10px}
.kp-lang a.active{background:var(--kp-brown);color:#fff}
.kp-cart{position:relative}
.kp-count{position:absolute;right:0;top:0;min-width:17px;height:17px;border-radius:50%;background:var(--kp-brown);color:white;display:grid;place-items:center;font-size:9px}
.kp-drawer{position:fixed;left:0;top:0;bottom:0;width:min(430px,92vw);background:var(--kp-paper);z-index:300;transform:translateX(-102%);transition:.3s;padding:24px;box-shadow:0 20px 60px rgba(0,0,0,.2)}
.kp-drawer.open{transform:none}
.kp-scrim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:250}
.kp-scrim.open{display:block}
.kp-drawer-head{display:flex;justify-content:space-between;align-items:center;padding-bottom:18px;border-bottom:1px solid var(--kp-line)}
.kp-drawer nav a{display:block;font:27px Georgia,serif;padding:14px 0;border-bottom:1px solid var(--kp-line)}
.kp-hero{height:690px;position:relative;background-position:center;background-size:cover}
.kp-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,14,10,.62),rgba(20,14,10,.07) 68%)}
.kp-hero-copy{position:absolute;z-index:2;left:7%;bottom:90px;color:white;max-width:540px}
.kp-hero-copy h1{font:400 56px Georgia,serif;margin:0 0 12px}
.kp-hero-copy p{font-size:12px;letter-spacing:.09em;margin-bottom:24px}
.kp-btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{
 display:inline-flex!important;align-items:center;justify-content:center;min-height:46px!important;padding:0 24px!important;
 background:var(--kp-brown)!important;color:#fff!important;border:1px solid var(--kp-brown)!important;border-radius:0!important;
 font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase!important;font-weight:400!important
}
.kp-btn-light{background:white!important;color:var(--kp-brown)!important;border-color:white!important}
.kp-section{padding:72px 0}
.kp-title{text-align:center;font:400 38px Georgia,serif;margin:0 0 30px}
.kp-category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.kp-category-card{height:510px;position:relative;overflow:hidden}
.kp-category-card img{width:100%;height:100%;object-fit:cover;transition:.45s}
.kp-category-card:hover img{transform:scale(1.035)}
.kp-category-card:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent 45%,rgba(0,0,0,.65))}
.kp-category-copy{position:absolute;left:22px;bottom:22px;color:#fff;z-index:2}
.kp-category-copy strong{display:block;font:30px Georgia,serif}.kp-category-copy span{font-size:10px;letter-spacing:.08em}
.kp-editorial{display:grid;grid-template-columns:1.1fr .9fr;background:var(--kp-paper)}
.kp-editorial img{width:100%;height:650px;object-fit:cover}
.kp-editorial-copy{padding:70px;display:flex;justify-content:center;flex-direction:column}
.kp-editorial-copy h2{font:44px Georgia,serif;margin:0 0 18px}.kp-editorial-copy p{color:var(--kp-muted);line-height:1.8}
.kp-lookbook{display:grid;grid-template-columns:1.2fr .8fr;gap:24px}
.kp-lookbook .big img{height:720px;width:100%;object-fit:cover}.kp-lookbook .stack{display:grid;gap:24px}.kp-lookbook .stack img{height:348px;width:100%;object-fit:cover}
.kp-page-head{text-align:center;padding:58px 0 34px;border-bottom:1px solid var(--kp-line)}
.kp-page-head h1{font:46px Georgia,serif;margin:0 0 10px}
.kp-content{padding:50px 0 75px}
.kp-about{display:grid;grid-template-columns:1fr 1fr;min-height:650px}
.kp-about img{width:100%;height:100%;object-fit:cover}.kp-about-copy{padding:70px;display:flex;justify-content:center;flex-direction:column}.kp-about-copy h1{font:46px Georgia,serif;margin:0 0 18px}
.kp-values{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:26px}.kp-value{border:1px solid var(--kp-line);padding:20px 10px;text-align:center;font-size:11px}
.kp-contact{display:grid;grid-template-columns:.8fr 1.2fr;gap:40px}.kp-card{background:var(--kp-paper);border:1px solid var(--kp-line);padding:28px}
.kp-field{display:grid;gap:7px;margin-bottom:13px}.kp-field input,.kp-field textarea{padding:12px;border:1px solid var(--kp-line);background:#fff}
.kp-footer{background:#20160f;color:#f4ece4;padding:56px 0 22px}.kp-footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:35px}.kp-footer h4{font-size:11px;letter-spacing:.08em}.kp-footer a{display:block;color:#d8cbc0;font-size:12px;padding:4px 0}.kp-footer-bottom{margin-top:35px;border-top:1px solid rgba(255,255,255,.15);padding-top:18px;font-size:10px;color:#b8aa9d}
.kp-toast{position:fixed;right:20px;bottom:20px;background:var(--kp-brown);color:white;padding:14px 18px;z-index:500;transform:translateY(100px);transition:.25s}.kp-toast.show{transform:none}

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb{margin:25px 0;color:var(--kp-muted);font-size:11px}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,1fr);gap:18px;margin:0!important}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product{width:auto!important;margin:0!important;float:none!important}
.woocommerce ul.products li.product a img{aspect-ratio:4/5;object-fit:cover;background:var(--kp-sand);margin:0 0 12px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:11px!important;letter-spacing:.06em;padding:0!important}
.woocommerce ul.products li.product .price{font-size:12px!important;color:var(--kp-ink)!important}
.woocommerce span.onsale{border-radius:0!important;background:var(--kp-brown)!important;min-height:auto!important;line-height:1!important;padding:8px!important;font-size:10px!important}
.woocommerce div.product{padding:40px 0 75px}
.woocommerce div.product div.images img{background:var(--kp-sand)}
.woocommerce div.product .product_title{font:36px Georgia,serif}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--kp-ink)!important;font-size:15px!important}
.woocommerce div.product form.cart .variations select{padding:11px;border:1px solid var(--kp-line);background:#fff}
.woocommerce div.product form.cart div.quantity{margin-right:10px}
.woocommerce .quantity .qty{height:46px;border:1px solid var(--kp-line)}
.woocommerce-tabs ul.tabs{padding:0!important}.woocommerce div.product .woocommerce-tabs ul.tabs li{border-radius:0!important;background:transparent!important;border-color:var(--kp-line)!important}
.woocommerce table.shop_table{border-radius:0!important;border-color:var(--kp-line)!important;background:var(--kp-paper)}
.woocommerce-cart table.cart img{width:90px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container--default .select2-selection--single{border:1px solid var(--kp-line);border-radius:0;padding:11px;background:#fff;min-height:44px}
.woocommerce-info,.woocommerce-message,.woocommerce-error{border-top-color:var(--kp-brown)!important;background:var(--kp-paper)}
.woocommerce-account .woocommerce-MyAccount-navigation{width:25%}.woocommerce-account .woocommerce-MyAccount-content{width:72%}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;padding:0;margin:0}.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:12px;border-bottom:1px solid var(--kp-line)}
@media(max-width:900px){
 .kp-category-grid,.kp-editorial,.kp-lookbook,.kp-about,.kp-contact{grid-template-columns:1fr}
 .woocommerce ul.products{grid-template-columns:repeat(2,1fr)}
 .kp-editorial-copy,.kp-about-copy{padding:45px 28px}.kp-footer-grid{grid-template-columns:1fr 1fr}
 .woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{width:100%;float:none}
}
@media(max-width:782px){.admin-bar .kp-header{top:46px}}
@media(max-width:620px){
 .kp-container{width:calc(100% - 24px)}.kp-header{height:68px}.kp-logo{font-size:15px}.kp-hide-mobile{display:none}
 .kp-hero{height:560px}.kp-hero-copy{left:22px;right:22px;bottom:55px}.kp-hero-copy h1{font-size:40px}
 .kp-category-card{height:430px}.kp-footer-grid{grid-template-columns:1fr}
 .woocommerce ul.products{gap:10px}
}


/* ===== Kapanci Premium 2.0 layout corrections ===== */
html,body{max-width:100%;overflow-x:hidden}
.kp-header{height:76px;background:#fffdfa;position:sticky;top:0;z-index:1000}
.kp-header-inner{height:76px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.kp-header-left{display:flex;align-items:center}
.kp-brand{display:flex;align-items:center;justify-content:center;min-width:0}
.kp-wordmark{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;color:var(--kp-ink);line-height:1}
.kp-wordmark span{font-family:Georgia,serif;font-size:21px;letter-spacing:.34em;padding-left:.34em}
.kp-wordmark small{font-size:7px;letter-spacing:.42em;padding-left:.42em;margin-top:7px}
.custom-logo-link{display:flex!important;align-items:center;justify-content:center;max-width:320px;max-height:64px;line-height:0}
.custom-logo-link img,.custom-logo{display:block!important;width:auto!important;height:auto!important;max-width:320px!important;max-height:60px!important;object-fit:contain!important}
.kp-menu-button{display:flex;flex-direction:column;justify-content:center;gap:5px}
.kp-menu-button span{display:block;width:20px;height:1px;background:currentColor}
.kp-actions{min-width:0}
.kp-lang{flex:0 0 auto}
.kp-icon-btn{flex:0 0 42px}
.kp-cart-icon{font-size:18px}
.kp-count{right:1px;top:1px}
.kp-drawer{padding-top:max(24px,env(safe-area-inset-top));overflow-y:auto}
.kp-drawer-menu,.kp-drawer nav ul{list-style:none;margin:0;padding:18px 0}
.kp-drawer-menu a,.kp-drawer nav a{display:block;font:26px Georgia,serif;padding:13px 0;border-bottom:1px solid var(--kp-line)}
.kp-drawer[aria-hidden="false"]{transform:none}

.kp-hero{height:clamp(560px,72vh,760px);min-height:560px;position:relative;background-size:cover;background-position:center center;overflow:hidden}
.kp-hero:after{display:none}
.kp-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(24,17,13,.62) 0%,rgba(24,17,13,.29) 39%,rgba(24,17,13,.04) 72%)}
.kp-hero-inner{position:relative;z-index:2;height:100%;display:flex;align-items:flex-end;padding-bottom:clamp(56px,8vh,92px)}
.kp-hero-copy{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:min(560px,75%);max-width:560px;color:#fff;padding:0}
.kp-eyebrow{margin:0 0 13px!important;font-size:10px!important;letter-spacing:.22em!important;text-transform:uppercase}
.kp-hero-copy h1{font:400 clamp(42px,5vw,68px)/1.02 Georgia,serif;margin:0 0 18px;max-width:100%;overflow-wrap:normal;word-break:normal}
.kp-hero-subtitle{margin:0 0 26px!important;font-size:11px!important;line-height:1.5!important;letter-spacing:.1em!important;max-width:430px}
.kp-btn{white-space:nowrap}
.kp-section-categories{padding-top:56px}
.kp-category-card{height:clamp(420px,50vw,570px)}
.kp-editorial{overflow:hidden}
.kp-editorial-copy{min-width:0}
.woocommerce ul.products li.product .button{margin-top:8px!important}

@media(max-width:1024px){
  .kp-container{width:min(100% - 32px,var(--kp-max))}
  .kp-header-inner{grid-template-columns:80px 1fr 150px}
  .custom-logo-link img,.custom-logo{max-width:260px!important;max-height:54px!important}
  .kp-wordmark span{font-size:18px}
  .kp-hero{height:640px;background-position:54% center}
  .kp-hero-copy{width:min(500px,65%)}
  .kp-category-grid{gap:12px}
  .kp-category-card{height:470px}
}

@media(max-width:767px){
  .admin-bar .kp-header{top:46px}
  .kp-header,.kp-header-inner{height:66px}
  .kp-header-inner{grid-template-columns:54px 1fr auto;gap:6px}
  .kp-container{width:calc(100% - 24px)}
  .kp-actions{gap:0}
  .kp-lang a{padding:6px 7px}
  .kp-hide-mobile{display:none!important}
  .kp-icon-btn{width:36px;flex-basis:36px}
  .custom-logo-link{max-width:210px;max-height:48px}
  .custom-logo-link img,.custom-logo{max-width:210px!important;max-height:44px!important}
  .kp-wordmark span{font-size:15px;letter-spacing:.28em;padding-left:.28em}
  .kp-wordmark small{font-size:6px;margin-top:5px}
  .kp-hero{height:600px;min-height:600px;background-position:58% center}
  .kp-hero-overlay{background:linear-gradient(0deg,rgba(24,17,13,.72) 0%,rgba(24,17,13,.18) 55%,rgba(24,17,13,.02) 100%)}
  .kp-hero-inner{align-items:flex-end;padding-bottom:48px}
  .kp-hero-copy{width:100%;max-width:100%}
  .kp-hero-copy h1{font-size:42px;line-height:1.03;max-width:330px}
  .kp-hero-subtitle{max-width:310px}
  .kp-category-grid{grid-template-columns:1fr!important}
  .kp-category-card{height:500px}
  .kp-editorial{grid-template-columns:1fr!important}
  .kp-editorial img{height:500px}
  .kp-editorial-copy{padding:40px 24px}
}

@media(max-width:420px){
  .kp-header-inner{grid-template-columns:42px 1fr auto}
  .kp-lang a{font-size:9px;padding:6px}
  .kp-cart{width:34px;flex-basis:34px}
  .custom-logo-link img,.custom-logo{max-width:185px!important}
  .kp-wordmark span{font-size:14px}
  .kp-hero{height:560px;min-height:560px;background-position:61% center}
  .kp-hero-copy h1{font-size:37px;max-width:290px}
  .kp-category-card{height:440px}
}


/* ===== Kapanci Premium 2.2: requested corrections only ===== */

/* Larger centered header logo */
.kp-brand .custom-logo-link{
  max-width:420px!important;
  max-height:72px!important;
}
.kp-brand .custom-logo-link img,
.kp-brand .custom-logo{
  width:auto!important;
  height:auto!important;
  max-width:420px!important;
  max-height:68px!important;
  object-fit:contain!important;
}
.kp-brand .kp-wordmark span{
  font-size:28px!important;
}
.kp-brand .kp-wordmark small{
  font-size:9px!important;
}

/* Keep the Turkish/English hero title together on one line */
.kp-hero-copy{
  width:min(760px,88%)!important;
  max-width:760px!important;
}
.kp-hero-copy h1{
  white-space:nowrap!important;
  max-width:none!important;
  font-size:clamp(38px,4.5vw,68px)!important;
  line-height:1!important;
  letter-spacing:-0.02em!important;
}

@media(max-width:1024px){
  .kp-brand .custom-logo-link{
    max-width:340px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:340px!important;
    max-height:60px!important;
  }
  .kp-hero-copy{
    width:88%!important;
    max-width:720px!important;
  }
  .kp-hero-copy h1{
    font-size:clamp(34px,4.6vw,54px)!important;
  }
}

@media(max-width:767px){
  .kp-brand .custom-logo-link{
    max-width:250px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:250px!important;
    max-height:50px!important;
  }
  .kp-brand .kp-wordmark span{
    font-size:20px!important;
  }
  .kp-brand .kp-wordmark small{
    font-size:7px!important;
  }
  .kp-hero-copy{
    width:100%!important;
    max-width:100%!important;
  }
  .kp-hero-copy h1{
    white-space:nowrap!important;
    font-size:clamp(29px,8vw,42px)!important;
    letter-spacing:-0.035em!important;
  }
}

@media(max-width:420px){
  .kp-brand .custom-logo-link{
    max-width:205px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:205px!important;
    max-height:44px!important;
  }
  .kp-hero-copy h1{
    font-size:clamp(25px,7.7vw,34px)!important;
  }
}


/* ===== Kapanci Premium 2.3: exact requested fixes ===== */

/* Bigger header area so the real uploaded logo can be shown clearly */
.kp-header,
.kp-header-inner{
  height:104px!important;
}

.kp-brand{
  overflow:visible!important;
}

.kp-brand .custom-logo-link{
  width:520px!important;
  max-width:520px!important;
  height:88px!important;
  max-height:88px!important;
  overflow:visible!important;
}

.kp-brand .custom-logo-link img,
.kp-brand .custom-logo{
  display:block!important;
  width:100%!important;
  max-width:520px!important;
  height:88px!important;
  max-height:88px!important;
  object-fit:contain!important;
  object-position:center!important;
}

.kp-brand .kp-wordmark span{
  font-size:36px!important;
}
.kp-brand .kp-wordmark small{
  font-size:11px!important;
}

/* Keep the hero headline together */
.kp-hero-copy h1{
  white-space:nowrap!important;
}

/* Tablet */
@media(max-width:1024px){
  .kp-header,
  .kp-header-inner{
    height:94px!important;
  }
  .kp-brand .custom-logo-link{
    width:410px!important;
    max-width:410px!important;
    height:76px!important;
    max-height:76px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:410px!important;
    height:76px!important;
    max-height:76px!important;
  }
}

/* Mobile */
@media(max-width:767px){
  .kp-header,
  .kp-header-inner{
    height:82px!important;
  }
  .kp-brand .custom-logo-link{
    width:280px!important;
    max-width:280px!important;
    height:62px!important;
    max-height:62px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:280px!important;
    height:62px!important;
    max-height:62px!important;
  }
}

/* Small mobile */
@media(max-width:420px){
  .kp-brand .custom-logo-link{
    width:230px!important;
    max-width:230px!important;
    height:56px!important;
    max-height:56px!important;
  }
  .kp-brand .custom-logo-link img,
  .kp-brand .custom-logo{
    max-width:230px!important;
    height:56px!important;
    max-height:56px!important;
  }
}


/* ===== Kapanci Premium 2.4: ONLY logo doubled ===== */
.kp-brand .custom-logo-link,
.kp-brand .kp-wordmark{
  position:relative!important;
  z-index:5!important;
  transform:scale(2)!important;
  transform-origin:center center!important;
}

/* Keep the doubled logo visible without changing other elements */
.kp-brand{
  overflow:visible!important;
}
.kp-header,
.kp-header-inner{
  overflow:visible!important;
}

@media(max-width:767px){
  .kp-brand .custom-logo-link,
  .kp-brand .kp-wordmark{
    transform:scale(2)!important;
  }
}
