/*
Theme Name: TryCasual Mobile Front
Theme URI: https://trycasual.in/
Description: Mobile-first WooCommerce front page for TryCasual.
Version: 1.1.0
Author: TryCasual
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: trycasual-mobile-front
*/

:root{
  --tc-primary:#9f2089;
  --tc-primary-dark:#7d176d;
  --tc-soft:#fff3fb;
  --tc-pink:#f8dff1;
  --tc-text:#222;
  --tc-muted:#777;
  --tc-line:#e8e8e8;
  --tc-bg:#fff;
}

*,
*::before,
*::after{box-sizing:border-box}

html{margin:0!important;padding:0!important}
body{
  margin:0!important;
  padding:0!important;
  background:#f5f5f5;
  color:var(--tc-text);
  font-family:Arial,Helvetica,sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.admin-bar{padding-top:0!important}
a{text-decoration:none;color:inherit}
button,input{font:inherit}

/* Main mobile canvas */
.tc-mf-app{
  width:100%;
  max-width:620px;
  min-height:100vh;
  margin:0 auto;
  background:var(--tc-bg);
  overflow:hidden;
}

/* Offer strip */
.tc-mf-top{
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--tc-primary);
  color:#fff;
  padding:0 8px;
  font-size:10px;
  line-height:1;
  font-weight:700;
}

/* Header */
.tc-mf-header{
  width:100%;
  height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  background:#fff;
  border-bottom:1px solid var(--tc-line);
}
.tc-mf-header>a:first-child{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  color:#333;
  font-size:19px;
}
.tc-mf-logo{
  display:inline-flex;
  align-items:center;
  font-size:21px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.5px;
  color:var(--tc-primary)!important;
  white-space:nowrap;
}
.tc-mf-logo b{color:#333}
.tc-mf-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:6px;
}
.tc-mf-actions a{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  color:#333!important;
  border-radius:8px;
  font-size:18px;
}

/* Search */
.tc-mf-search-wrap{
  position:relative;
  z-index:30;
  background:#fff;
  padding:8px 10px 7px;
}
.tc-mf-search{
  width:100%;
  height:43px;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center;
  overflow:hidden;
  border:1px solid #d8d8d8!important;
  border-radius:8px!important;
  background:#f7f7f7!important;
  box-shadow:none!important;
}
.tc-mf-search input{
  flex:1;
  min-width:0;
  height:100%;
  padding:0 12px!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:#333;
  font-size:13px!important;
}
.tc-mf-search input::placeholder{color:#888}
.tc-mf-search button{
  flex:0 0 44px;
  width:44px!important;
  height:100%;
  border:0!important;
  background:var(--tc-primary)!important;
  color:#fff!important;
  cursor:pointer;
  font-size:18px!important;
}
#tc-mf-search-suggestions{
  display:none;
  position:absolute;
  top:54px;
  left:10px;
  right:10px;
  max-height:360px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #ddd;
  border-radius:8px;
  box-shadow:0 10px 28px rgba(0,0,0,.16);
  z-index:100;
}
.tc-mf-search-item{
  min-height:61px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-bottom:1px solid #eee;
  color:#222;
}
.tc-mf-search-item:last-child{border-bottom:0}
.tc-mf-search-item img{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border-radius:6px;
  object-fit:cover;
  background:#f5f5f5;
}
.tc-mf-search-item span{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:11px;
}
.tc-mf-search-item b{
  font-size:11px;
  line-height:1.25;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.tc-mf-search-item small{
  color:var(--tc-primary);
  font-size:11px;
  font-weight:800;
}
.tc-mf-search-empty{
  padding:20px 10px;
  text-align:center;
  color:#777;
  font-size:11px;
}

/* Category banner slider */
.tc-mf-banner{
  width:calc(100% - 20px);
  height:172px;
  margin:3px 10px 0;
  overflow:hidden;
  border-radius:8px;
  background:#f3dced;
}
.tc-mf-banner-track{
  width:100%;
  height:100%;
  display:flex;
  transition:transform .38s ease;
  will-change:transform;
}
.tc-mf-banner-slide{
  position:relative;
  flex:0 0 100%;
  width:100%;
  height:172px;
  overflow:hidden;
  cursor:pointer;
  background:linear-gradient(110deg,#f8e5f4,#efd0e9);
}
.tc-mf-banner-slide::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.84),rgba(255,255,255,.18));
  pointer-events:none;
}
.tc-mf-banner-slide img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.35;
}
.tc-mf-banner-copy{
  position:relative;
  z-index:2;
  width:72%;
  padding:25px 17px;
}
.tc-mf-banner-copy h2{
  margin:0 0 6px;
  color:#222;
  font-size:24px;
  line-height:1.08;
  font-weight:900;
}
.tc-mf-banner-copy p{
  margin:0 0 13px;
  color:#555;
  font-size:10px;
  font-weight:700;
}
.tc-mf-banner-copy span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 11px;
  border-radius:5px;
  background:#222;
  color:#fff;
  font-size:9px;
  font-weight:800;
}
.tc-mf-dots{
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  color:#c8a8c1;
  font-size:8px;
  letter-spacing:2px;
}
.tc-mf-dots b{color:var(--tc-primary)}

/* Sections */
.tc-mf-section{
  width:100%;
  padding:2px 10px 5px;
}
.tc-mf-section-head{
  min-height:28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:6px 1px 7px;
}
.tc-mf-section-head h2{
  margin:0!important;
  color:#222;
  font-size:16px!important;
  line-height:1.2;
  font-weight:800;
}
.tc-mf-view{
  flex:0 0 auto;
  color:var(--tc-primary)!important;
  font-size:10px;
  line-height:1;
  font-weight:800;
}

/* Horizontal product rails */
.tc-mf-row{
  width:100%;
  display:flex;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:1px 1px 7px;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}
.tc-mf-row::-webkit-scrollbar{display:none}

/* Product card */
.tc-mf-card{
  position:relative;
  flex:0 0 155px;
  width:155px;
  min-width:155px;
  display:block;
  overflow:hidden;
  background:#fff;
  border:1px solid #e7e7e7;
  border-radius:8px;
  color:#222!important;
  scroll-snap-align:start;
}
.tc-mf-card>img{
  display:block;
  width:100%;
  height:158px;
  margin:0!important;
  padding:0!important;
  object-fit:cover;
  background:#f5f5f5;
}
.tc-mf-card-body{padding:7px}
.tc-mf-card-title{
  height:29px;
  overflow:hidden;
  color:#333;
  font-size:11px;
  line-height:1.3;
  font-weight:700;
}
.tc-mf-price{
  margin-top:4px;
  color:#222;
  font-size:14px;
  line-height:1.2;
  font-weight:900;
}
.tc-mf-price del{
  margin-left:4px;
  color:#999;
  font-size:9px;
  font-weight:400;
}

/* Discount banner */
.tc-mf-discount{
  width:calc(100% - 20px);
  min-height:82px;
  margin:9px 10px;
  padding:14px 15px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border-radius:8px;
  overflow:hidden;
  background:linear-gradient(100deg,#9f2089,#c33aaa);
  color:#fff;
}
.tc-mf-discount h3{
  margin:0!important;
  color:#fff;
  font-size:17px!important;
  line-height:1.1;
}
.tc-mf-discount p{
  margin:5px 0 0;
  color:#fff;
  font-size:9px;
  opacity:.92;
}
.tc-mf-discount strong{
  flex:0 0 auto;
  color:#fff;
  font-size:29px;
  line-height:1;
  font-weight:900;
}

/* Filter */
.tc-mf-filter{
  width:100%;
  padding:0 10px 3px;
}
.tc-mf-filter-row{
  display:flex;
  gap:6px;
  overflow-x:auto;
  scrollbar-width:none;
}
.tc-mf-filter-row::-webkit-scrollbar{display:none}
.tc-mf-filter-btn{
  flex:0 0 auto;
  min-height:32px;
  padding:0 10px;
  border:1px solid #d2d2d2!important;
  border-radius:6px!important;
  background:#fff!important;
  color:#444!important;
  font-size:10px!important;
  line-height:1!important;
  font-weight:700;
  white-space:nowrap;
}
.tc-mf-filter-btn.active{
  border-color:var(--tc-primary)!important;
  background:var(--tc-soft)!important;
  color:var(--tc-primary)!important;
}
.tc-mf-price-row{
  display:flex;
  gap:6px;
  margin-top:7px;
}
.tc-mf-price-row input{
  flex:1;
  min-width:0;
  height:34px;
  padding:0 8px!important;
  border:1px solid #d2d2d2!important;
  border-radius:6px!important;
  outline:0;
  background:#fff!important;
  font-size:11px!important;
}
.tc-mf-apply{
  flex:0 0 auto;
  height:34px;
  padding:0 11px!important;
  border:1px solid var(--tc-primary)!important;
  border-radius:6px!important;
  background:#fff!important;
  color:var(--tc-primary)!important;
  font-size:10px!important;
  font-weight:800;
}

/* 2-column random product grid */
.tc-mf-grid{
  width:100%;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  padding:0 10px;
  margin-top:8px;
}
.tc-mf-grid .tc-mf-card{
  width:100%;
  min-width:0;
  flex:none;
}
.tc-mf-grid .tc-mf-card>img{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
}
.tc-mf-loading{
  padding:18px 10px 25px;
  text-align:center;
  color:#777;
  font-size:10px;
}

/* Desktop: keep mobile canvas but don't break layout */
@media (min-width:621px){
  body{background:#ededed}
  .tc-mf-app{box-shadow:0 0 28px rgba(0,0,0,.08)}
}
