/* Phase 3: product, brand and permanent discovery-page experience. */

/* Shared directory / discovery surfaces */
.catalog-directory-hero{padding:82px 0 58px;background:linear-gradient(180deg,#f4f1ea 0%,var(--bg) 100%)}
.catalog-directory-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:70px;align-items:end}
.catalog-directory-hero h1,.catalog-landing-hero h1{margin:8px 0 20px;max-width:900px}
.catalog-directory-hero p:not(.eyebrow),.catalog-landing-hero p:not(.eyebrow){max-width:760px;font-size:18px;color:var(--muted)}
.catalog-directory-hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.catalog-discovery-tile{min-height:176px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;display:flex;flex-direction:column;box-shadow:var(--shadow-soft)}
.catalog-discovery-tile:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.catalog-discovery-tile small{font-size:10px;letter-spacing:.11em;font-weight:800;color:#7a8179}
.catalog-discovery-tile strong{font-size:25px;letter-spacing:-.035em;margin:18px 0 8px}
.catalog-discovery-tile span{margin-top:auto;font-size:13px;color:var(--muted)}
.catalog-link-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.catalog-link-rail{display:flex;gap:8px;overflow:auto;padding:13px 0;scrollbar-width:none}
.catalog-link-rail::-webkit-scrollbar{display:none}
.catalog-link-rail a{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:9px 13px;border:1px solid var(--line);border-radius:999px;background:#fbfaf7;font-size:12px}
.catalog-link-rail a:hover{background:#f1efe9;border-color:#d9d4ca}
.catalog-link-rail a span{min-width:22px;height:22px;border-radius:999px;background:#e7eee8;display:grid;place-items:center;font-size:10px;font-weight:800;color:#4e5b51}
.catalog-directory-section{padding-top:54px}
.catalog-filter-panel{background:#f1efe9;border:1px solid #e4e0d8;border-radius:28px;padding:24px;margin-bottom:46px}
.catalog-filter-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}
.catalog-filter-heading h2{font-size:30px;margin:0}
.catalog-filter-heading .eyebrow{margin-bottom:6px}
.catalog-filter-bar{display:grid;grid-template-columns:minmax(210px,1.7fr) repeat(3,minmax(150px,1fr)) auto;align-items:end;gap:10px;margin:0}
.catalog-filter-bar label{font-size:10px;letter-spacing:.05em;color:#777f77;gap:6px}
.catalog-filter-bar label>span{font-weight:800}
.catalog-filter-bar input,.catalog-filter-bar select{min-width:0;width:100%;border-radius:13px;background:#fff}
.catalog-filter-bar .btn{height:46px;white-space:nowrap}
.catalog-filter-panel .ranking-directory-note{margin:16px 0 0;padding-top:16px;border-top:1px solid #dedad1;font-size:12px;color:#737973}
.catalog-results-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 28px}
.catalog-results-head h2{font-size:36px;margin:0}
.catalog-results-head .eyebrow{margin-bottom:7px}
.compact-sort-form label{flex-direction:row;align-items:center;font-size:12px;white-space:nowrap}
.compact-sort-form select{width:auto;min-width:160px;border-radius:999px;padding:9px 34px 9px 13px}

/* Product card system */
.catalog-product-grid{gap:22px 15px}
.catalog-product-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:10px;display:flex;flex-direction:column;min-width:0;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.catalog-product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-soft);border-color:#d9d4ca}
.catalog-product-card .ranked-product-main{display:block;min-width:0}
.catalog-product-media{border-radius:18px;margin-bottom:0;position:relative;background:#f3f0e9}
.catalog-product-media img{object-fit:contain;padding:12px;background:#f8f6f1}
.catalog-product-copy{padding:15px 8px 10px;gap:7px}
.product-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.product-card-topline .product-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-category-mini{font-size:9px;font-weight:700;color:#7a817a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.product-card-title{font-size:17px;line-height:1.28;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:43px}
.product-card-commerce{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:24px}
.catalog-product-copy .product-mrp{font-size:14px;font-weight:800;color:#202720}
.availability-mini{font-size:9px;font-weight:750;padding:4px 7px;border-radius:999px;background:#edf1ed;color:#5f685f}
.availability-mini.availability-out-of-stock{background:#f3e9e7;color:#8b5752}
.product-card-description{font-size:12px!important;line-height:1.45;min-height:34px;color:#747a73!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.catalog-product-actions{margin-top:auto;border-top:1px solid #eeeae3;padding:11px 8px 4px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.catalog-product-actions a{font-size:12px;font-weight:750}
.catalog-product-actions .ranked-detail-link{color:#4d554e}
.catalog-product-actions .ranked-buy-link{background:#1f2c24;color:#fff;padding:8px 11px;border-radius:999px}
.catalog-product-actions .ranked-buy-link:hover{background:#142019}

/* Product page */
.product-hero-v3{padding:52px 0 76px;background:linear-gradient(180deg,#f4f1eb 0%,#fbfaf7 72%,var(--bg) 100%)}
.product-hero-grid-v3{grid-template-columns:minmax(420px,.9fr) minmax(0,1.1fr);gap:72px;align-items:start}
.product-showcase{position:sticky;top:104px;min-width:0}
.product-hero-media-v3{aspect-ratio:1/1.03;border-radius:34px;background:#f7f5f0;border:1px solid var(--line);position:relative;box-shadow:0 25px 70px rgba(35,42,36,.07)}
.product-hero-media-v3 img{object-fit:contain;padding:28px;background:#f8f6f1}
.product-availability-chip{position:absolute;left:18px;top:18px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);font-size:10px;font-weight:800;box-shadow:0 5px 18px rgba(0,0,0,.06)}
.product-availability-chip.product-availability-out-of-stock{background:rgba(250,238,236,.94);color:#7c4e49}
.product-showcase-note{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;color:#7c827b;font-size:10px;font-weight:750;letter-spacing:.03em;padding:14px}
.product-showcase-note span{position:relative}
.product-showcase-note span+span::before{content:"•";position:absolute;left:-10px;color:#afb4ae}
.product-hero-copy-v3{padding-top:4px}
.product-hero-copy-v3 h1{font-size:clamp(44px,5.2vw,74px);margin:10px 0 18px;max-width:860px}
.product-summary-v3{font-size:18px!important;line-height:1.65;max-width:760px}
.product-commerce-summary{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(260px,1.3fr);gap:18px;align-items:center;margin:30px 0 22px;padding:20px;border-radius:24px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-soft)}
.product-mrp-block{display:flex;flex-direction:column;border-right:1px solid var(--line);padding-right:18px}
.product-mrp-block small{font-size:9px;letter-spacing:.11em;font-weight:800;color:#7f867f}
.product-mrp-block strong{font-size:28px;letter-spacing:-.035em;margin:3px 0}
.product-mrp-block span{font-size:10px;color:#838882}
.product-mrp-missing strong{font-size:20px}
.product-hero-actions-v3{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.product-hero-actions-v3 .btn{min-height:44px}
.product-ranking-strip-v3{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:17px 0 6px}
.product-ranking-strip-v3>*{padding:7px 10px;border-radius:999px;background:#edf0eb;font-size:11px}
.product-ranking-strip-v3 a{background:#253027;color:#fff}
.ranking-context-note{margin:0 0 20px}
.product-facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0}
.product-facts-grid>div,.product-facts-grid>a{padding:14px 15px;background:#f2f0ea;border:1px solid #e4e0d8;border-radius:16px;display:flex;flex-direction:column;min-width:0}
.product-facts-grid small,.brand-facts-grid small{font-size:8px;letter-spacing:.1em;font-weight:800;color:#858b84}
.product-facts-grid strong,.brand-facts-grid strong{font-size:14px;margin:3px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-facts-grid span,.brand-facts-grid span{font-size:10px;color:#7d837d}
.product-facts-grid>a:hover{background:#e9eee9;border-color:#d5ddd6}
.purchase-box-v3{margin-top:22px;padding:22px;border-radius:24px;box-shadow:none}
.purchase-box-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.purchase-box-head h2{margin:4px 0 0}
.purchase-box-head>span{font-size:10px;font-weight:800;background:#f0eee8;border-radius:999px;padding:7px 9px;color:#6f756e}
.purchase-links-v3{gap:9px}
.retailer-link-v3{padding:14px 15px;background:#fbfaf7}
.retailer-link-v3 span small{font-size:8px;letter-spacing:.09em;font-weight:800;color:#8a9089}
.retailer-link-v3 span em{font-style:normal;font-size:10px;color:#7b817a}
.retailer-link-v3 b{font-size:12px;white-space:nowrap}
.retailer-link-primary{background:#eef2ed;border-color:#d6dfd7}
.product-reading-grid{align-items:start}
.product-reading-grid>div:first-child{position:sticky;top:112px}
.product-prose{max-width:760px}
.product-info-cards .info-card{min-height:230px}
.authenticity-panel-v3{border-color:#dbe4dc;background:linear-gradient(145deg,#edf3ee,#f7f6f1)}
.product-guide-grid{gap:15px}
.product-guide-card{min-height:250px}
.product-guide-card b{margin-top:auto;font-size:13px}
.product-mobile-cta{display:none}

/* Brand page */
.brand-hero-v3{padding:58px 0 78px;background:linear-gradient(180deg,#f3f0e9 0%,var(--bg) 100%)}
.brand-hero-grid-v3{grid-template-columns:minmax(380px,.86fr) minmax(0,1.14fr);gap:72px}
.brand-showcase{position:relative;min-height:430px;display:grid;place-items:center}
.brand-showcase-image{position:absolute;inset:0;border-radius:34px;overflow:hidden;border:1px solid var(--line);background:#edeae3;box-shadow:var(--shadow-soft)}
.brand-showcase-image img{width:100%;height:100%;object-fit:cover}
.brand-showcase-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,25,20,.02),rgba(18,25,20,.20))}
.brand-hero-logo-v3{width:min(280px,72%);height:210px;border-radius:30px;position:relative;z-index:2;background:rgba(255,255,255,.96);box-shadow:0 24px 65px rgba(24,31,26,.12)}
.brand-hero-logo-v3.brand-logo-overlay{position:absolute;left:26px;bottom:26px;width:210px;height:140px;border-radius:22px}
.brand-hero-logo-v3 img{max-width:70%;max-height:52%}
.brand-hero-copy-v3 h1{font-size:clamp(48px,6vw,82px);margin:7px 0 8px}
.brand-hero-copy-v3 .hero-sub{max-width:740px;font-size:18px;line-height:1.65}
.brand-hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin:26px 0}
.brand-facts-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0}
.brand-facts-grid>div{padding:14px 15px;background:#fff;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column}
.brand-official-link{display:inline-flex;font-size:13px;font-weight:750;margin-top:4px;color:#34443a}
.brand-official-link:hover{text-decoration:underline;text-underline-offset:3px}
.brand-reading-grid>div:first-child{position:sticky;top:112px}
.brand-category-strip{padding:38px 0;background:#202720;color:#f2f5f1}
.compact-section-head{margin-bottom:18px}
.compact-section-head h2{font-size:30px}
.brand-category-strip .eyebrow{color:#9ca69d}
.brand-category-rail a{background:#2a332b;border-color:#3b463d;color:#eef2ed}
.brand-category-rail a:hover{background:#354036;border-color:#4a574c}
.brand-category-rail a span{background:#465349;color:#fff}
.brand-products-section{scroll-margin-top:90px}

/* Brand directory */
.brand-search-panel{margin-bottom:42px;padding:18px;background:#f1efe9;border-radius:22px;border:1px solid #e4e0d8}
.brand-inline-search{margin:0;max-width:760px}
.catalog-brand-grid{gap:16px}
.catalog-brand-card{padding:20px;min-height:255px}
.catalog-brand-card-media{height:92px}
.catalog-brand-card-media img{max-width:150px;max-height:66px}
.catalog-brand-card-copy{padding:0;gap:8px}
.catalog-brand-card-copy>strong{font-size:23px}
.brand-card-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;color:#7b817a;text-transform:uppercase;letter-spacing:.05em}
.brand-card-topline small{font-size:10px;color:#7b817a}
.catalog-brand-card-copy>b{margin-top:auto;font-size:12px;color:#36453b}

/* Category / concern landing pages */
.catalog-landing-hero{padding:72px 0 62px;background:linear-gradient(180deg,#f3f0e9 0%,var(--bg) 100%)}
.catalog-landing-hero-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:72px;align-items:end}
.landing-stat-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:26px}
.landing-stat-row span{padding:10px 13px;background:#fff;border:1px solid var(--line);border-radius:999px;font-size:11px;color:#697068}
.landing-stat-row strong{font-size:15px;color:#273129;margin-right:3px}
.landing-brand-stack{background:#fff;border:1px solid var(--line);border-radius:26px;padding:20px;box-shadow:var(--shadow-soft)}
.landing-brand-stack>small{display:block;font-size:9px;letter-spacing:.11em;font-weight:800;color:#7e857d;margin:0 0 9px}
.landing-brand-stack>a{display:grid;grid-template-columns:48px 1fr auto;gap:12px;align-items:center;padding:10px 4px;border-top:1px solid #eeeae3}
.landing-brand-stack>a:first-of-type{border-top:0}
.landing-brand-stack img{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#f7f5f0;padding:4px}
.landing-brand-stack span{display:flex;flex-direction:column}
.landing-brand-stack span small{font-size:10px;color:#858b84}
.landing-brand-stack>a>b{color:#798079}
.discovery-category-grid{grid-template-columns:repeat(3,1fr)}
.discovery-category-card{min-height:260px}
.discovery-category-card b{font-size:12px;margin-top:16px}
.concern-index-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.concern-index-card{min-height:280px;border-radius:28px;padding:28px;display:flex;flex-direction:column;border:1px solid rgba(50,55,50,.05)}
.concern-index-card>span{font-size:10px;font-weight:800;letter-spacing:.1em;color:#747c74}
.concern-index-card h2{font-size:35px;margin:24px 0 12px}
.concern-index-card p{max-width:560px;color:#5f675f}
.concern-index-card b{margin-top:auto;font-size:13px}
.concern-index-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-soft)}
.concern-method-note{margin-top:24px;padding:20px 22px;border:1px solid var(--line);border-radius:20px;background:#fff;display:grid;grid-template-columns:180px 1fr;gap:24px}
.concern-method-note p{margin:0;color:var(--muted);font-size:13px}
.concern-explainer-card{min-height:290px;border-radius:28px;padding:28px;display:flex;flex-direction:column}
.concern-explainer-card>small{font-size:9px;letter-spacing:.12em;font-weight:800;color:#707870}
.concern-explainer-card h2{font-size:35px;margin:24px 0 12px}
.concern-explainer-card p{font-size:14px!important;line-height:1.6}
.concern-explainer-card a{margin-top:auto;font-size:12px;font-weight:800}
.concern-category-rail{flex-wrap:wrap;overflow:visible}
.catalog-concern-rail{display:flex;gap:10px;overflow:auto;scrollbar-width:none;padding-bottom:4px}
.catalog-concern-rail::-webkit-scrollbar{display:none}
.catalog-concern-rail .concern-card{min-width:180px;min-height:120px;padding:18px;border-radius:20px;display:flex;flex-direction:column}
.catalog-concern-rail .concern-card span{font-size:18px;font-weight:750}
.catalog-concern-rail .concern-card b{margin-top:auto;font-size:11px}

/* Responsive */
@media (max-width:1180px){
  .catalog-directory-hero-grid,.catalog-landing-hero-grid{gap:42px}
  .product-hero-grid-v3,.brand-hero-grid-v3{gap:44px}
  .catalog-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr)) auto}
  .catalog-filter-bar label:first-child{grid-column:span 2}
  .discovery-category-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:920px){
  .catalog-directory-hero-grid,.catalog-landing-hero-grid,.product-hero-grid-v3,.brand-hero-grid-v3{grid-template-columns:1fr}
  .catalog-directory-hero-actions{grid-template-columns:1fr 1fr}
  .product-showcase,.product-reading-grid>div:first-child,.brand-reading-grid>div:first-child{position:static}
  .product-showcase{max-width:620px;margin-inline:auto;width:100%}
  .brand-showcase{min-height:390px;max-width:680px;width:100%}
  .product-commerce-summary{grid-template-columns:1fr}
  .product-mrp-block{border-right:0;border-bottom:1px solid var(--line);padding:0 0 14px}
  .product-hero-actions-v3{justify-content:flex-start}
  .catalog-product-grid{grid-template-columns:repeat(3,1fr)}
  .concern-index-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:820px){
  .desktop-nav a[href="/categories"],.desktop-nav a[href="/popular-korean-beauty-products-india"]{display:none}
  .catalog-directory-hero,.catalog-landing-hero{padding:56px 0 46px}
  .catalog-directory-hero-actions{grid-template-columns:1fr 1fr}
  .catalog-filter-bar{grid-template-columns:1fr 1fr}
  .catalog-filter-bar label:first-child{grid-column:1/-1}
  .catalog-filter-bar .btn{grid-column:1/-1}
  .catalog-product-grid{grid-template-columns:repeat(2,1fr)}
  .product-hero-v3{padding-top:34px}
  .product-facts-grid,.brand-facts-grid{grid-template-columns:1fr 1fr}
  .product-mobile-cta{position:fixed;left:12px;right:12px;bottom:74px;z-index:280;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 14px;background:rgba(31,44,36,.96);color:#fff;border-radius:18px;box-shadow:0 14px 44px rgba(20,28,22,.25);backdrop-filter:blur(18px)}
  .product-mobile-cta>div{min-width:0;display:flex;flex-direction:column}
  .product-mobile-cta small{font-size:8px;color:#aeb9b0;text-transform:uppercase;letter-spacing:.06em}
  .product-mobile-cta strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:52vw}
  .product-mobile-cta>a{flex:0 0 auto;background:#fff;color:#1f2c24;padding:10px 12px;border-radius:999px;font-size:11px;font-weight:800}
  .brand-showcase{min-height:330px}
  .concern-index-grid{grid-template-columns:1fr}
  .concern-method-note{grid-template-columns:1fr;gap:8px}
}

@media (max-width:600px){
  .catalog-directory-hero h1,.catalog-landing-hero h1{font-size:44px}
  .catalog-directory-hero-actions{grid-template-columns:1fr}
  .catalog-discovery-tile{min-height:140px}
  .catalog-filter-panel{padding:16px;border-radius:22px}
  .catalog-filter-heading,.catalog-results-head{align-items:flex-start;flex-direction:column}
  .catalog-filter-bar{grid-template-columns:1fr}
  .catalog-filter-bar label:first-child,.catalog-filter-bar .btn{grid-column:auto}
  .catalog-product-grid{grid-template-columns:1fr 1fr;gap:12px 9px}
  .catalog-product-card{padding:7px;border-radius:19px}
  .catalog-product-media{border-radius:14px}
  .catalog-product-media img{padding:8px}
  .catalog-product-copy{padding:11px 5px 8px}
  .product-card-topline{align-items:flex-start;flex-direction:column;gap:2px}
  .product-category-mini{max-width:100%}
  .product-card-title{font-size:14px;min-height:36px}
  .product-card-description{display:none!important}
  .catalog-product-actions{padding:9px 4px 2px}
  .catalog-product-actions .ranked-detail-link{font-size:10px}
  .catalog-product-actions .ranked-buy-link{font-size:10px;padding:7px 8px}
  .product-hero-media-v3{border-radius:24px}
  .product-hero-media-v3 img{padding:16px}
  .product-hero-copy-v3 h1{font-size:43px}
  .product-facts-grid,.brand-facts-grid{grid-template-columns:1fr 1fr}
  .purchase-box-v3{padding:16px}
  .retailer-link-v3{align-items:flex-start;flex-direction:column;gap:8px}
  .retailer-link-v3 b{align-self:flex-end}
  .brand-showcase{min-height:280px}
  .brand-hero-logo-v3.brand-logo-overlay{left:16px;bottom:16px;width:165px;height:108px}
  .catalog-brand-grid{grid-template-columns:1fr}
  .discovery-category-grid{grid-template-columns:1fr}
  .concern-index-card{min-height:235px;padding:22px}
  .concern-index-card h2,.concern-explainer-card h2{font-size:30px}
  .catalog-concern-rail .concern-card{min-width:150px}
}
