/* Shopee-inspired discovery patterns, in the established GawangPinas identity. */
.shop-student .marketplace-home{margin-top:24px}
.marketplace-welcome{display:grid;grid-template-columns:minmax(0,3fr) minmax(240px,1fr);gap:16px}
.marketplace-banner{display:grid;grid-template-columns:1.15fr 1fr;background:var(--primary-soft);overflow:hidden;border-radius:6px}
.marketplace-banner-copy{padding:32px}
.marketplace-banner h1{font-size:32px;line-height:1.12;letter-spacing:-.025em;color:var(--navy);margin:0 0 14px;font-weight:700}
.marketplace-banner p{font-size:14px;line-height:1.6;margin:0 0 22px;max-width:38ch}
.marketplace-banner .btn{gap:10px;font-size:13px}
.marketplace-banner-image{width:100%;height:100%;min-height:280px;object-fit:cover}
.marketplace-sourcing{background:var(--bg-soft);padding:28px;display:flex;flex-direction:column;justify-content:center;border-radius:6px}
.marketplace-sourcing h2{font-size:21px;line-height:1.25;color:var(--navy);margin:0 0 12px}
.marketplace-sourcing p{font-size:14px;line-height:1.6;margin:0 0 20px}
.marketplace-sourcing a{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;text-decoration:none}
.marketplace-sourcing-label{text-decoration:underline;text-underline-offset:4px}
.marketplace-sourcing a:hover{text-decoration:none}
.marketplace-shortcuts{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));padding:24px 0;margin-bottom:24px;border-bottom:1px solid var(--line);gap:12px}
.marketplace-shortcuts a{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;color:var(--navy);font-size:12px;line-height:1.4;padding:8px 4px}
.marketplace-shortcuts .material-symbols-outlined{display:grid;place-items:center;width:48px;height:48px;background:var(--primary-soft);color:var(--primary);border-radius:12px;font-size:26px}
.marketplace-shortcuts a:hover{color:var(--primary);text-decoration:underline;text-underline-offset:4px}
.marketplace-section{margin-bottom:32px}
.shop-student .marketplace-home .home-categories-grid{gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line)}
.shop-student .marketplace-home .home-categories-grid>a{padding:12px 8px!important;border-right:1px solid var(--line)!important;align-items:center;text-align:center;gap:4px;transition:background .18s ease-out}
.marketplace-home .home-category-icon{width:30px;height:30px}
.marketplace-home .home-category-icon .material-symbols-outlined{font-size:18px}
.marketplace-home .home-category-name{font-size:12px;line-height:1.3}
.marketplace-home .home-category-count{font-size:10px;margin-top:0}
.shop-student .marketplace-home .home-categories-grid>a:hover{background:var(--primary-soft)!important}
.shop-student .marketplace-home .product-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.shop-student .marketplace-home .product-card{background:var(--bg-card);border:1px solid var(--line);border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
.shop-student .marketplace-home .product-card:hover{border-color:var(--primary)}
.shop-student .marketplace-home .product-card-img-wrapper{border-radius:0;aspect-ratio:1}
.shop-student .marketplace-home .product-card-body{padding:12px;border:0;flex:1}
.shop-student .marketplace-home .product-title{font-size:13px;line-height:1.5}
.shop-student .marketplace-home .product-price{font-size:20px;font-variant-numeric:tabular-nums}
.shop-student .marketplace-home .product-meta-row{flex-wrap:wrap;gap:8px}
.shop-student .marketplace-home .product-card-actions{padding:0 12px 12px;gap:6px;flex-wrap:wrap}
.shop-student .marketplace-home .product-card-actions .btn{flex:1;min-height:36px;padding:6px;font-size:11px;white-space:nowrap}
.marketplace-home a:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
.marketplace-home ::selection{background:var(--primary);color:#FDFBF7}
@media(max-width:1050px){.marketplace-welcome{grid-template-columns:1fr}.marketplace-sourcing{padding:20px;display:block}.marketplace-sourcing h2{font-size:18px}.marketplace-sourcing p{display:inline;margin-right:12px}.marketplace-sourcing a{margin-top:8px}.shop-student .marketplace-home .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:768px){.shop-student .marketplace-home{margin-top:16px}.marketplace-banner-copy{padding:24px}.marketplace-banner h1{font-size:27px}.marketplace-banner-image{min-height:260px}.marketplace-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px;padding:20px 0}.shop-student .marketplace-home .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.marketplace-section>div:first-child{gap:12px}.marketplace-section>div:first-child>a{flex-shrink:0}}
@media(max-width:540px){.marketplace-banner{grid-template-columns:1fr}.marketplace-banner-copy{padding:24px}.marketplace-banner h1{font-size:28px}.marketplace-banner-image{height:150px;min-height:0;object-position:center 60%}.marketplace-sourcing{padding:20px}.marketplace-sourcing p{display:block}.shop-student .marketplace-home .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-student .marketplace-home .product-card-body{padding:10px}.shop-student .marketplace-home .product-card-actions{padding:0 10px 10px}.marketplace-section h2{font-size:17px!important}.marketplace-section>div:first-child{align-items:start!important}}
@media(prefers-reduced-motion:reduce){.shop-student .marketplace-home .home-categories-grid>a{transition:none}}

.marketplace-mobile-search{display:none}
@media(max-width:768px){.marketplace-mobile-search{display:flex;margin-bottom:16px;border:1px solid var(--input-border);border-radius:4px;background:var(--input-bg);overflow:hidden}.marketplace-mobile-search input{min-width:0;flex:1;border:0;padding:12px;font:inherit;font-size:14px;background:transparent;color:var(--navy)}.marketplace-mobile-search input::placeholder{color:var(--muted);opacity:1}.marketplace-mobile-search button{display:grid;place-items:center;border:0;background:var(--primary);color:#FDFBF7;width:48px;cursor:pointer}.marketplace-mobile-search:focus-within{outline:2px solid var(--primary);outline-offset:2px}}

.home-promotions{position:relative;isolation:isolate;border-radius:6px;overflow:hidden;background:var(--primary-soft);margin-bottom:28px}
.home-promotions-heading{margin:0}
.home-promotions-controls[hidden],.home-promotion-pagination[hidden]{display:none}
.home-promotions-controls button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:42px;height:72px;border:0;border-radius:3px;background:#20171480;color:#fff;cursor:pointer}
.home-promotions-controls button:first-child{left:0}.home-promotions-controls button:last-child{right:0}
.home-promotions-controls button:hover{background:#201714c0}
.home-promotion-track{display:flex;gap:0;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0}
.home-promotion-track::-webkit-scrollbar{display:none}
.home-promotion-slide{display:grid;grid-template-columns:1.25fr 1fr;flex:0 0 100%;min-width:0;height:260px;min-height:260px;background:#5d1916;color:#fff;overflow:hidden;scroll-snap-align:start;text-decoration:none}
.home-promotion-slide:nth-child(3n+2){background:#6c3603}.home-promotion-slide:nth-child(3n){background:#284a38}
.home-promotion-slide:hover{color:#fff;text-decoration:none}
.home-promotion-copy{padding:34px 48px 34px 64px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left}
.home-promotion-copy-group{display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:100%;text-align:left}
.home-promotion-slide h2{font-size:clamp(22px,2.2vw,30px);line-height:1.08;letter-spacing:-.025em;margin:0 0 10px;color:#fff;font-weight:800;text-wrap:wrap}
.home-promotion-price{font-size:24px;font-weight:700;color:#ffe3a2;margin:0 0 6px;font-variant-numeric:tabular-nums}
.home-promotion-price>span{font-size:14px;font-weight:400;color:#fff1d7}
.home-promotion-moq{font-size:12px;color:#fff1d7;margin:0 0 10px}
.home-promotion-cta{display:inline-flex;align-items:center;gap:16px;background:#ffe3a2;color:#3c1912;padding:9px 20px;border-radius:5px;font-size:14px;font-weight:800;text-transform:uppercase}
.home-promotion-slide img{width:100%;height:100%;min-height:0;max-height:260px;object-fit:cover;background:var(--bg-card)}
.home-promotion-pagination{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;z-index:2;background:#20171480;border-radius:24px;padding:4px 10px}
.home-promotion-dots{display:flex;align-items:center;gap:2px}
.home-promotion-dots button{display:grid;place-items:center;width:24px;height:28px;border:0;background:transparent;padding:0;cursor:pointer}
.home-promotion-dots button::after{content:'';width:8px;height:8px;border-radius:50%;background:#fff8;border:1px solid #fff}
.home-promotion-dots button[aria-current=true]::after{background:#ffe3a2;border-color:#ffe3a2;width:10px;height:10px}
.home-promotion-pause{display:grid;place-items:center;width:28px;height:28px;background:transparent;color:#fff;border:0;cursor:pointer}
.home-promotion-pause span{font-size:19px}
.home-promotions button:focus-visible,.home-promotion-track:focus-visible{outline:2px solid #ffe3a2;outline-offset:-3px}
.home-promotion-status{padding:32px;color:var(--muted);min-height:240px}
@media(max-width:768px){.home-promotion-slide{height:250px;min-height:250px;grid-template-columns:1.15fr 1fr}.home-promotion-copy{padding:33px 24px 33px 44px}.home-promotion-slide h2{font-size:21px}.home-promotion-slide img{min-height:0;max-height:250px}.home-promotions-controls button{width:30px;height:56px}.home-promotion-cta{font-size:13px;padding:10px 16px}.home-promotion-price{font-size:23px}}
@media(max-width:440px){.home-promotion-slide{grid-template-columns:1.2fr 1fr}.home-promotion-copy{padding:32px 16px 32px 36px}.home-promotion-slide h2{font-size:18px;line-height:1.15}.home-promotion-price{font-size:21px}.home-promotion-moq{display:none}.home-promotion-cta{padding:10px;font-size:12px;gap:5px}.home-promotion-slide img{max-height:250px}.home-promotion-dots{gap:0}.home-promotion-dots button{width:20px}}

.home-promotion-slide h2{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
@media(max-width:768px){.home-promotion-pagination{bottom:3px;padding:0 8px}.home-promotion-dots button,.home-promotion-pause{height:24px}}

.home-promotion-dots button[hidden]{display:none}
.home-promotion-position{color:#fff;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}

/* Give mobile copy priority; full titles stay readable beside a smaller photo. */
@media(max-width:768px){
  .home-promotion-slide{position:relative;grid-template-columns:64% 36%;height:auto;min-height:250px}
  .home-promotion-copy{grid-column:1;min-width:0;padding:24px 14px 44px 38px}
  .home-promotion-slide h2{display:block;-webkit-line-clamp:unset;overflow:visible;font-size:18px;line-height:1.2;overflow-wrap:anywhere}
  .home-promotion-slide img{position:absolute;inset:0 0 0 auto;width:36%;height:100%;max-height:none;min-height:0;object-fit:cover}
  .home-promotion-price{font-size:21px;line-height:1.3}
  .home-promotion-price>span{font-size:11px}
  .home-promotion-cta{font-size:12px;padding:10px 12px;gap:8px;min-height:38px}
}
@media(max-width:440px){
  .home-promotion-slide{grid-template-columns:68% 32%;min-height:240px}
  .home-promotion-copy{padding:22px 12px 42px 34px}
  .home-promotion-slide h2{font-size:16px;line-height:1.25}
  .home-promotion-slide img{width:32%}
  .home-promotion-price{font-size:20px}
  .home-promotion-moq{display:none}
  .home-promotions-controls button{width:26px;height:44px}
  .home-promotions-controls .material-symbols-outlined{font-size:20px}
  .home-promotion-pagination{gap:6px}
}

.home-promotion-title-detail{white-space:nowrap}
.home-promotion-slide h2{text-wrap:balance}

/* Fill the banner photo panel edge to edge using the separate square assets. */
.home-promotion-slide img{object-fit:cover;object-position:center;padding:0;background:transparent;box-sizing:border-box}
@media(max-width:768px){.home-promotion-slide img{object-fit:cover;padding:0}}

@media(min-width:769px){.home-promotion-slide{grid-template-columns:65% 35%}}
