/*
Theme Name: Kobra Outfit Premium V6 Mobile Stability Fix
Author: Kobra Outfit
Version: 6.0.0
Description: Responsive WooCommerce fashion theme with hardened mobile navigation and product interactions.
Text Domain: kobra-outfit
*/
:root{--gold:#c9a04a;--black:#0a0a0a;--ink:#151515;--muted:#747474;--line:#e8e5df;--soft:#f7f6f3;--white:#fff}
*{box-sizing:border-box}html{margin:0!important;overflow-x:hidden}body{margin:0;color:var(--ink);background:#fff;font-family:Arial,Helvetica,sans-serif;line-height:1.5;overflow-x:hidden}img{max-width:100%;height:auto}a{text-decoration:none;color:inherit}.ko-wrap{width:min(1380px,calc(100% - 40px));margin-inline:auto}
.ko-top{height:34px;background:var(--black);color:#ddd;font-size:11px}.ko-top .ko-wrap{height:34px;display:flex;align-items:center;justify-content:center;gap:28px}.ko-top strong{color:#fff}
.ko-header{position:relative;background:#fff;border-bottom:1px solid var(--line);z-index:100}.ko-head{min-height:88px;display:flex;align-items:center;gap:28px}.ko-logo{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;width:185px;flex:0 0 185px;font-size:38px;font-weight:900;line-height:.82;letter-spacing:-2.7px}.ko-logo small{font-size:9px;letter-spacing:6px;color:var(--gold);margin-left:4px;margin-top:9px;font-weight:800}.ko-logo img{max-height:62px;width:auto}
.ko-nav{display:flex;align-items:center;justify-content:center;gap:28px;flex:1;min-width:0}.ko-nav li{list-style:none;margin:0}.ko-nav ul{display:flex;align-items:center;gap:28px;margin:0;padding:0;list-style:none}.ko-nav a{display:block;font-size:13px;font-weight:800;letter-spacing:.3px;padding:34px 0;white-space:nowrap}.ko-nav a:hover{color:var(--gold)}
.ko-head form{margin:0}.ko-search{width:220px;height:42px;border:1px solid transparent;background:#f3f3f1;border-radius:24px;padding:0 17px;font-size:13px;outline:none}.ko-search:focus{border-color:#ddd;background:#fff}.ko-actions{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:13px}.ko-actions a{font-size:19px}.ko-actions a:hover{color:var(--gold)}.ko-actions .ko-cart-count{font-size:10px;background:var(--black);color:#fff;border-radius:20px;padding:2px 6px;margin-left:-12px;margin-top:-19px}.ko-menu{display:none;border:0;background:transparent;font-size:26px;cursor:pointer;padding:6px}.ko-mobile-nav{display:none}
.ko-hero{min-height:560px;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.25),rgba(0,0,0,.05)),url('https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=2200&q=80') center/cover no-repeat}.ko-hero .ko-wrap{min-height:560px;display:flex;align-items:center}.ko-hero-content{max-width:620px;color:#fff;padding:60px 0}.ko-eyebrow{font-size:10px;letter-spacing:5px;font-weight:800}.ko-hero h1{font-size:clamp(50px,6vw,82px);line-height:.9;letter-spacing:-4px;margin:18px 0}.ko-gold{color:#d7ad57}.ko-hero p{font-size:15px;color:#eee;max-width:500px;margin:0 0 25px}.ko-btn{display:inline-flex;align-items:center;background:var(--gold);color:#111;border-radius:4px;padding:13px 24px;font-size:12px;font-weight:900;letter-spacing:.5px}.ko-btn:hover{background:#fff}
.ko-trust{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--line);margin-top:-32px;position:relative;z-index:3;background:#fff;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.05);overflow:hidden}.ko-trust>div{text-align:center;padding:19px 10px;border-right:1px solid var(--line)}.ko-trust>div:last-child{border-right:0}.ko-trust b,.ko-trust small{display:block}.ko-trust b{font-size:12px;margin-top:3px}.ko-trust small{font-size:10px;color:var(--muted);margin-top:3px}
.ko-section{margin:60px 0}.ko-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.ko-section-head h2{margin:0;font-size:25px;letter-spacing:-.5px}.ko-section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.ko-view{font-size:12px;font-weight:800;color:var(--gold)}
.ko-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.ko-cat{height:190px;border-radius:7px;overflow:hidden;position:relative;background:#ddd center/cover no-repeat;color:#fff}.ko-cat:after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,rgba(0,0,0,.72))}.ko-cat div{position:absolute;z-index:2;left:18px;bottom:16px}.ko-cat h3{margin:0 0 3px;font-size:17px}.ko-cat span{font-size:10px;color:#eee}
.ko-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.ko-card{min-width:0;border:1px solid var(--line);background:#fff;position:relative;overflow:hidden;border-radius:7px;transition:transform .2s,box-shadow .2s}.ko-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(0,0,0,.07)}.ko-card-img{aspect-ratio:1/1.18;background:#f2f2f2 center/cover no-repeat}.ko-card-body{padding:12px 13px 15px}.ko-card h3{font-size:13px;margin:9px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ko-price{font-size:13px;font-weight:800}.ko-rating{font-size:10px;color:#c59735;margin-top:6px}.ko-badge{display:inline-block;background:#111;color:#fff;font-size:8px;font-weight:800;padding:4px 7px;border-radius:2px}.ko-heart{position:absolute;right:10px;top:10px;width:30px;height:30px;display:grid;place-items:center;background:#fff;border-radius:50%;z-index:4;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.ko-strip{background:#0a0a0a;color:#fff;margin-top:70px}.ko-strip .ko-wrap{display:grid;grid-template-columns:repeat(3,1fr);text-align:center}.ko-strip .ko-wrap>div{padding:25px 10px;border-right:1px solid #242424}.ko-strip .ko-wrap>div:last-child{border:0}.ko-strip strong,.ko-strip span{display:block}.ko-strip strong{font-size:11px}.ko-strip span{font-size:10px;color:#888;margin-top:4px}
.ko-footer{background:#0a0a0a;color:#fff;padding:50px 0 18px}.ko-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:38px}.ko-footer h3{font-size:11px;letter-spacing:1.5px;margin:5px 0 14px}.ko-footer p,.ko-footer a{font-size:11px;color:#999}.ko-footer a:hover{color:#fff}.ko-copy{border-top:1px solid #252525;margin-top:35px;padding-top:16px;color:#777;font-size:10px}
.woocommerce .button,.woocommerce a.button,.woocommerce button.button{background:var(--gold);color:#111;border-radius:4px}.woocommerce ul.products li.product{border:1px solid var(--line);border-radius:7px;padding:10px}.woocommerce ul.products li.product img{border-radius:4px}
@media(max-width:1120px){.ko-nav{gap:16px}.ko-nav ul{gap:18px}.ko-search{width:170px}.ko-logo{width:155px;flex-basis:155px}.ko-products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.ko-top .ko-wrap{gap:12px}.ko-top .ko-wrap span:nth-child(n+3){display:none}.ko-head{min-height:72px;gap:12px}.ko-logo{width:150px;flex-basis:150px;font-size:31px}.ko-nav,.ko-head form{display:none}.ko-actions{margin-left:auto}.ko-menu{display:block}.ko-mobile-nav{display:none;border-top:1px solid var(--line);background:#fff;box-shadow:0 12px 25px rgba(0,0,0,.08)}.ko-mobile-nav.open{display:block}.ko-mobile-nav .ko-wrap{padding:10px 0}.ko-mobile-nav ul{list-style:none;padding:0;margin:0}.ko-mobile-nav li{border-bottom:1px solid #eee}.ko-mobile-nav a{display:block;padding:13px 4px;font-size:13px;font-weight:700}.ko-hero,.ko-hero .ko-wrap{min-height:500px}.ko-trust{grid-template-columns:repeat(2,1fr)}.ko-trust>div:nth-child(2){border-right:0}.ko-cats{grid-template-columns:repeat(2,1fr)}.ko-products{grid-template-columns:repeat(2,1fr);gap:10px}.ko-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.ko-wrap{width:calc(100% - 24px)}.ko-top{font-size:9px}.ko-logo{font-size:28px;width:135px;flex-basis:135px}.ko-actions{gap:8px}.ko-actions span{display:none}.ko-hero,.ko-hero .ko-wrap{min-height:440px}.ko-hero-content{padding:35px 0}.ko-hero h1{font-size:48px;letter-spacing:-3px}.ko-hero p{font-size:13px}.ko-section{margin:42px 0}.ko-section-head h2{font-size:20px}.ko-cat{height:150px}.ko-cat h3{font-size:14px}.ko-trust>div{padding:14px 6px}.ko-trust b{font-size:10px}.ko-trust small{font-size:9px}.ko-footer-grid{grid-template-columns:1fr}.ko-strip .ko-wrap{grid-template-columns:1fr}.ko-strip .ko-wrap>div{border-right:0;border-bottom:1px solid #242424}}
/* Elementor compatibility */
.elementor-page .ko-content,.ko-elementor-edit-area{width:min(1380px,calc(100% - 40px));margin-inline:auto;min-height:240px}
.elementor-page .elementor,.elementor-page .elementor-section,.elementor-page .elementor-container{max-width:100%}
.elementor-page .site-main,.elementor-page main{min-width:0}

/* V4 mobile navigation and product image corrections */
@media(max-width:850px){
  .ko-mobile-nav.open{display:block!important;visibility:visible;opacity:1}
  .ko-mobile-nav .ko-nav{display:block!important;flex:none;width:100%}
  .ko-mobile-nav .ko-nav ul{display:block!important;width:100%}
  .ko-mobile-nav .ko-nav a{padding:13px 4px!important}
  .ko-menu{position:relative;z-index:102;min-width:40px;min-height:40px;line-height:1}
}
.woocommerce div.product div.images img,
.woocommerce ul.products li.product a img{object-fit:contain;object-position:center;background:#f7f7f7}
.woocommerce div.product div.images .woocommerce-product-gallery__image{background:#f7f7f7}


/* V5: mobile navigation, product and cart interaction fixes */
.ko-header{isolation:isolate}
.ko-head{position:relative}
.ko-menu{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.ko-mobile-nav{position:relative;width:100%;z-index:1000;max-height:0;overflow:hidden;visibility:hidden;opacity:0;transition:max-height .25s ease,opacity .2s ease,visibility .2s}
.ko-mobile-nav.open{max-height:80vh;overflow-y:auto;visibility:visible;opacity:1;display:block!important}
.ko-mobile-nav .ko-wrap{display:block}
.ko-mobile-nav .ko-nav{display:block!important;width:100%;flex:none}
.ko-mobile-nav .ko-nav ul{display:block!important;width:100%;margin:0;padding:0}
.ko-mobile-nav .ko-nav li{display:block;width:100%;margin:0;padding:0}
.ko-mobile-nav .ko-nav a{display:block;width:100%;min-height:44px;padding:12px 8px!important;white-space:normal;touch-action:manipulation}
@media(max-width:850px){
 .ko-head{flex-wrap:nowrap}
 .ko-actions{margin-left:auto;flex-shrink:0}
 .ko-menu{display:flex!important;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;padding:0;position:relative;z-index:1002}
 .ko-mobile-nav{background:#fff;border-top:1px solid var(--line);box-shadow:0 12px 25px rgba(0,0,0,.12)}
 .ko-mobile-nav.open{padding-bottom:8px}
 body.admin-bar .ko-mobile-nav{z-index:1000}
 .woocommerce div.product{display:block;min-width:0}
 .woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important;max-width:100%;clear:both}
 .woocommerce div.product div.images{margin-bottom:22px!important}
 .woocommerce div.product form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
 .woocommerce div.product form.cart .quantity{float:none!important;margin:0!important}
 .woocommerce div.product form.cart .single_add_to_cart_button{float:none!important;min-height:44px;touch-action:manipulation}
 .woocommerce ul.products li.product a img{width:100%;height:auto;object-fit:contain}
 .woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce button.single_add_to_cart_button{min-height:44px;touch-action:manipulation}
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{width:100%;height:auto;object-fit:contain;object-position:center}
.woocommerce-message,.woocommerce-error,.woocommerce-info{overflow-wrap:anywhere}


/* V6 stability: keep the mobile drawer clickable and avoid invisible layers blocking product taps. */
.ko-header{position:relative;z-index:1000}
.ko-head{position:relative;z-index:1001}
.ko-mobile-nav{z-index:1002;pointer-events:none}
.ko-mobile-nav.open{pointer-events:auto}
.ko-mobile-nav a,.ko-menu,.woocommerce a.button,.woocommerce button.button,.woocommerce button.single_add_to_cart_button{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.ko-products a,.woocommerce ul.products li.product a,.woocommerce div.product a{position:relative;z-index:1;pointer-events:auto}
.ko-card-img{background-size:contain;background-repeat:no-repeat;background-position:center}
.woocommerce div.product div.images img,.woocommerce ul.products li.product a img{display:block;max-width:100%;height:auto;object-fit:contain;object-position:center}
@media(max-width:850px){
 .ko-header{z-index:10000}
 .ko-mobile-nav{position:absolute;left:0;right:0;top:100%;width:100%;max-height:0;overflow:hidden;visibility:hidden;opacity:0;pointer-events:none;background:#fff}
 .ko-mobile-nav.open{max-height:calc(100vh - 100px);overflow-y:auto;visibility:visible;opacity:1;pointer-events:auto;display:block!important}
 .ko-mobile-nav .ko-wrap{width:calc(100% - 28px);padding:8px 0 16px}
 .ko-mobile-nav ul{display:block!important;list-style:none;margin:0;padding:0}
 .ko-mobile-nav li{display:block!important;width:100%;margin:0!important;border-bottom:1px solid #eee}
 .ko-mobile-nav a{display:block!important;width:100%;min-height:48px;padding:14px 8px!important;line-height:1.4;white-space:normal}
 .ko-menu{position:relative;z-index:10003;flex:0 0 44px;min-width:44px;min-height:44px;display:flex!important;align-items:center;justify-content:center}
 .woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important;max-width:100%;clear:both}
 .woocommerce div.product form.cart{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
 .woocommerce div.product form.cart .quantity{float:none!important;margin:0!important}
 .woocommerce div.product form.cart .single_add_to_cart_button{float:none!important;min-height:46px;padding:12px 20px!important}
 .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
 .woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0}
 .woocommerce ul.products li.product a img{width:100%;height:auto}
}
