/* HappyOnam marketplace theme — customer storefront only */
:root {
  --forest: #ff5a1f;
  --forest-dark: #161310;
  --leaf: #e6491a;
  --sage: #ffe8dc;
  --sage-light: #fff3eb;
  --paper: #fffaf6;
  --cream: #f7eadf;
  --peach: #ff845a;
  --rose: #d92f6a;
  --ink: #1d1917;
  --muted: #716b67;
  --card: #fff;
  --border: #e9e1db;
  --bg: var(--paper);
  --pink: var(--rose);
  --pink-dark: #b91f57;
  --green: #287a58;
  --display: "Manrope", "DM Sans", ui-sans-serif, sans-serif;
  --sans: "DM Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { background: var(--paper); color: var(--ink); font-family: var(--sans); }
.storefront-body h1, .storefront-body h2, .storefront-body h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; }
.page-shell, .container { width: min(100%, 1360px); padding-inline: clamp(1rem, 3.4vw, 3rem); }
.store-eyebrow { color: var(--rose); font-size: .68rem; font-weight: 800; letter-spacing: .14em; }

/* Buttons and controls */
.store-btn { min-height: 3.25rem; padding: .8rem 1.3rem; border-radius: .55rem; font-size: .78rem; font-weight: 800; letter-spacing: .01em; }
.store-btn-primary { background: var(--forest-dark); box-shadow: 0 10px 24px rgba(29,25,23,.16); }
.store-btn-primary:hover { background: var(--rose); }
.store-btn-secondary { border-color: #d9cec7; background: #fff; color: var(--ink); }
.store-btn-secondary:hover { background: var(--sage-light); }
.text-link { color: var(--ink); font-size: .76rem; font-weight: 800; }
.text-link:hover { color: var(--rose); }

/* Header */
.announcement-bar { background: var(--forest-dark); color: #fff; }
.announcement-bar p { gap: 1rem; padding: .5rem 1rem; font-size: .65rem; font-weight: 700; letter-spacing: .04em; }
.announcement-divider { color: var(--peach); }
.site-header { border-color: var(--border); background: rgba(255,255,255,.95); box-shadow: 0 4px 18px rgba(35,25,20,.035); }
.site-header-inner { width: min(100%, 1440px); min-height: 4.8rem; padding-inline: clamp(1rem,3.5vw,3rem); }
.logo { gap: .65rem; }
.logo-mark { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .78rem; background: linear-gradient(135deg, var(--forest) 0 52%, var(--rose) 52%); color: #fff; font-family: var(--display); font-size: 1.25rem; font-weight: 800; box-shadow: 0 8px 16px rgba(255,90,31,.2); transform: rotate(-4deg); }
.logo > span:last-child { line-height: .94; }
.logo strong { font-family: var(--display); font-size: 1.28rem; font-weight: 800; letter-spacing: -.06em; }
.logo small { margin-top: .28rem; color: var(--rose); font-size: .49rem; font-weight: 800; letter-spacing: .18em; }
.desktop-nav { gap: clamp(1rem,2.5vw,2.1rem); }
.desktop-nav a { padding: 1.7rem 0; color: #554f4b; font-size: .73rem; font-weight: 800; }
.desktop-nav a::after { bottom: 1.1rem; height: 2px; background: var(--forest); }
.header-actions { gap: .08rem; }
.header-icon-link, .cart-btn, .account-menu summary { gap: .35rem; border-radius: .55rem; color: var(--ink); font-size: .68rem; font-weight: 700; }
.header-icon-link:hover, .cart-btn:hover, .account-menu summary:hover { background: var(--sage-light); }
.badge { background: var(--rose); }
.account-popover { border-color: var(--border); border-radius: .75rem; box-shadow: 0 18px 45px rgba(35,25,20,.14); }
.category-nav { border-top: 1px solid #f1ebe7; background: #fff; }
.category-nav > div { display: flex; justify-content: center; gap: clamp(1.2rem,3vw,3rem); width: min(100%,1360px); margin: auto; padding: .65rem clamp(1rem,3.5vw,3rem); overflow-x: auto; scrollbar-width: none; }
.category-nav > div::-webkit-scrollbar { display: none; }
.category-nav a { flex: 0 0 auto; color: #665f5a; font-size: .68rem; font-weight: 700; }
.category-nav a:hover { color: var(--forest); }
.category-nav .category-sale { color: var(--rose); }

/* Marketplace hero */
.market-hero { display: grid; grid-template-columns: minmax(0,.82fr) minmax(30rem,1.18fr); align-items: stretch; gap: clamp(1rem,3vw,2.5rem); min-height: 37rem; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.market-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem,4vw,4rem); border-radius: 1.5rem; background: #ffd84d; background-image: radial-gradient(circle at 8% 10%,rgba(255,255,255,.45) 0 5rem,transparent 5.1rem), linear-gradient(145deg,#ffe774,#ffd13a); }
.hero-chip { align-self: flex-start; margin: 0; padding: .42rem .68rem; border-radius: 999px; background: rgba(255,255,255,.72); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-chip span { color: var(--rose); }
.market-hero h1 { max-width: 8em; margin: 1rem 0 1.15rem; font-size: clamp(3.5rem,6vw,6.7rem); line-height: .87; }
.market-hero h1 em { color: var(--rose); font-style: normal; }
.market-hero .hero-lede { max-width: 33rem; margin: 0; color: #554611; font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
.market-hero .hero-actions { margin-top: 1.7rem; }
.market-hero .hero-proof { margin-top: 2.5rem; border-color: rgba(71,54,0,.18); }
.market-hero .hero-proof strong { font-size: .68rem; }
.market-hero .hero-proof span { color: #76672d; }
.market-hero-visual { position: relative; min-height: 37rem; overflow: hidden; border-radius: 1.5rem; background: linear-gradient(145deg,#ff7041,#f14b78); }
.market-hero-visual::before { position: absolute; top: -8rem; right: -7rem; width: 25rem; height: 25rem; border: 4rem solid rgba(255,255,255,.13); border-radius: 50%; content: ""; }
.market-hero-visual::after { position: absolute; bottom: -7rem; left: -5rem; width: 17rem; height: 17rem; border-radius: 50%; background: #8b2bbd; content: ""; }
.hero-product { position: absolute; z-index: 2; display: block; overflow: hidden; background: #eee; box-shadow: 0 24px 50px rgba(85,17,28,.24); }
.hero-product img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-product:hover img { transform: scale(1.035); }
.hero-product-main { top: 2.2rem; right: 8%; width: 58%; height: 31.5rem; border-radius: 9rem 9rem 1.1rem 1.1rem; transform: rotate(2deg); }
.hero-product-side { bottom: 2rem; left: 6%; width: 29%; height: 17rem; border: .55rem solid #fff; border-radius: 1rem; transform: rotate(-6deg); }
.hero-product-caption { position: absolute; right: .85rem; bottom: .85rem; left: .85rem; display: grid; grid-template-columns: 1fr auto; padding: .75rem .85rem; border-radius: .65rem; background: rgba(255,255,255,.93); backdrop-filter: blur(10px); transform: rotate(-2deg); }
.hero-product-caption small { grid-column: 1/-1; color: var(--rose); font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-product-caption strong { overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.hero-product-caption b { font-size: .72rem; }
.hero-sticker { position: absolute; top: 2.2rem; left: 5%; z-index: 3; display: grid; width: 6.4rem; height: 6.4rem; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #d8ff5f; color: var(--ink); font-size: .75rem; font-weight: 700; line-height: .9; text-align: center; text-transform: uppercase; transform: rotate(-11deg); }
.hero-sticker strong { font-size: 1.1rem; }

.perks-strip { border-block: 1px solid var(--border); background: #fff; }
.perks-strip > div { display: grid; grid-template-columns: repeat(4,1fr); padding-top: .9rem; padding-bottom: .9rem; }
.perks-strip span { display: flex; justify-content: center; gap: .5rem; border-right: 1px solid var(--border); color: #5f5854; font-size: .67rem; font-weight: 700; }
.perks-strip span:last-child { border: 0; }
.perks-strip b { color: var(--forest); }

/* Category discovery */
.category-section { padding-top: 5.5rem; padding-bottom: 5rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2, .section-intro h2 { margin: .35rem 0 0; font-size: clamp(2rem,4vw,3.5rem); line-height: 1; }
.section-heading > p { max-width: 27rem; color: var(--muted); font-size: .8rem; }
.market-category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; }
.market-category-card { position: relative; display: grid; justify-items: center; min-height: 17rem; padding: 1.1rem .8rem 1rem; overflow: hidden; border-radius: 1.1rem; transition: transform .22s ease,box-shadow .22s ease; }
.market-category-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(45,32,24,.1); }
.market-category-1 { background: #ffe3d8; }.market-category-2 { background: #e4e1ff; }.market-category-3 { background: #dcf4e4; }.market-category-4 { background: #fff0b8; }.market-category-5 { background: #f8ddeb; }
.category-number { position: absolute; top: .8rem; left: .9rem; color: rgba(29,25,23,.45); font-size: .57rem; font-weight: 800; }
.category-image { display: block; width: 9rem; height: 9rem; overflow: hidden; border: .35rem solid rgba(255,255,255,.8); border-radius: 50%; background: #fff; }
.category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.market-category-card:hover img { transform: scale(1.07); }
.category-placeholder { display: grid; place-items: center; color: var(--rose); font-size: 2.5rem; font-weight: 800; }
.market-category-card strong { align-self: end; margin-top: .65rem; font-family: var(--display); font-size: 1.05rem; letter-spacing: -.04em; }
.market-category-card small { color: rgba(29,25,23,.58); font-size: .6rem; }

/* Campaign */
.campaign { display: grid; grid-template-columns: .86fr 1.14fr; min-height: 24rem; padding-inline: clamp(1rem,3.4vw,3rem); }
.campaign-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem,5vw,4.5rem); border-radius: 1.25rem 0 0 1.25rem; background: var(--rose); color: #fff; }
.campaign-copy .store-eyebrow { color: #ffd9e8; }
.campaign-copy h2 { margin: .45rem 0 1rem; font-size: clamp(2.7rem,5vw,5rem); line-height: .88; }
.campaign-copy p:not(.store-eyebrow) { max-width: 30rem; margin: 0; color: #ffe5ee; font-size: .78rem; }
.campaign-btn { margin-top: 1.4rem; background: #fff; color: var(--rose); }
.campaign-art { position: relative; overflow: hidden; border-radius: 0 1.25rem 1.25rem 0; background: #7352d8; }
.campaign-word { position: absolute; top: 50%; left: 50%; z-index: 1; color: #e7ff75; font-family: var(--display); font-size: clamp(5rem,11vw,10rem); font-weight: 800; letter-spacing: -.1em; transform: translate(-50%,-50%) rotate(-6deg); }
.shape { position: absolute; display: block; }
.shape-one { top: -4rem; right: 3rem; width: 14rem; height: 14rem; border: 2.7rem solid #ff8b61; border-radius: 50%; }
.shape-two { bottom: -4rem; left: 2rem; width: 12rem; height: 12rem; border-radius: 2rem; background: #ffd84d; transform: rotate(24deg); }
.shape-three { right: 2rem; bottom: 1rem; color: #fff; font-size: 5rem; font-style: normal; }

/* Collection and product cards */
.collection-section { padding-top: 6rem; padding-bottom: 6rem; }
.collection-intro { padding-bottom: 1.2rem; }
.shop-filter { grid-template-columns: minmax(17rem,1.5fr) minmax(9rem,.55fr) auto auto; margin: 1.5rem 0 .75rem; }
.shop-filter input, .shop-filter select, .price-filter summary { min-height: 3rem; border-color: var(--border); border-radius: .55rem; background: #fff; }
.shop-search input { padding-left: 2.5rem; }
.price-filter summary { width: 6.5rem; }
.filter-reset { font-weight: 700; }
.quick-occasions { gap: .5rem; margin-bottom: 2.2rem; padding-bottom: .2rem; }
.quick-occasions a { padding: .52rem .85rem; border: 1px solid var(--border); background: #fff; font-weight: 700; }
.quick-occasions a:hover, .quick-occasions a[aria-current="page"] { border-color: var(--ink); background: var(--ink); }
.collection-count { margin-bottom: 1rem; color: var(--muted); font-size: .65rem; }
.product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2.3rem 1rem; }
.product-card { position: relative; }
.product-card-media { border-radius: .85rem; background: #f1ece8; }
.product-image { aspect-ratio: 4/5; }
.product-card:hover .product-image img { transform: scale(1.045); }
.product-ribbon { top: .65rem; left: .65rem; padding: .35rem .55rem; border-radius: .32rem; background: #fff3cf; color: #8b5a00; }
.new-ribbon { background: #eaffb2; color: #425e00; }
.wish-btn { top: .6rem; right: .6rem; width: 2.35rem; height: 2.35rem; border: 0; background: rgba(255,255,255,.92); color: var(--ink); }
.wish-btn.saved { background: var(--rose); }
.product-media-actions { right: .55rem; bottom: .55rem; left: .55rem; }
.product-media-actions .availability, .product-media-actions .sold-out, .product-media-actions .text-link { border: 0; border-radius: .45rem; font-size: .61rem; }
.quick-add { border-radius: .45rem; background: var(--ink); font-size: .65rem; }
.quick-add:hover { background: var(--rose); }
.quick-add b { border-radius: .3rem; }
.product-body { padding: .8rem .1rem 0; }
.product-kicker { color: var(--rose); font-size: .57rem; letter-spacing: .08em; }
.product-title-row h3 { font-family: var(--sans); font-size: .86rem; font-weight: 700; letter-spacing: -.02em; }
.price { font-size: .76rem; }
.desc { min-height: 0; margin: .35rem 0 0; font-size: .67rem; -webkit-line-clamp: 1; }
.product-seller { margin: .3rem 0 0; overflow: hidden; color: #8a817b; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.store-empty { border-color: #dccfc7; background: #fff; }
.empty-flower, .auth-flower { background: var(--sage); color: var(--rose); }

/* Trust, footer, drawer */
.promise-band { background: var(--ink); }
.promise-band span { color: var(--peach); }
.promise-band p { color: #aaa19b; }
.site-footer { border: 0; background: #171310; color: #eee7e2; }
.footer-logo .logo-mark { box-shadow: none; }
.footer-brand > p, .footer-links a, .footer-note p { color: #a9a09a; font-family: var(--sans); }
.footer-bottom { border-color: #2d2723; color: #837a74; }
#cart-overlay { background: rgba(22,19,16,.58); }
#cart-drawer { background: #fff; box-shadow: -20px 0 55px rgba(22,19,16,.2); }
.drawer-head { border-color: var(--border); }
.free-ship { background: var(--sage-light); }
.free-ship-copy > span { color: var(--forest); }
.free-ship-fill { background: linear-gradient(90deg,var(--forest),var(--rose)); }
.upsell-add { background: var(--ink); }

/* Product and utility pages */
.product-page { padding-top: 2rem; }
.breadcrumbs { color: var(--muted); }
.product-detail { grid-template-columns: minmax(0,1.05fr) minmax(25rem,.8fr); }
.main-image-wrap { border-radius: 1.2rem; }
.main-image-wrap > img { aspect-ratio: 1/1.07; }
.image-note { border-radius: .4rem; color: var(--rose); font-weight: 800; }
.detail-info h1 { font-size: clamp(2.5rem,4.5vw,4.7rem); }
.stars { color: #f2a000; }
.price.big { font-family: var(--display); font-weight: 800; }
.detail-description { font-family: var(--sans); font-size: .9rem; }
.purchase-panel { border-radius: .8rem; background: var(--sage-light); }
.detail-assurances div > span { background: var(--sage); color: var(--rose); }
.review-form, .review-login-card, .review-card { border-color: var(--border); }
.simple-page-head h1, .checkout-head h1, .confirmation-page h1 { letter-spacing: -.07em; }
.cart-summary-card, .checkout-panel, .checkout-summary, .confirmation-card, .customer-order-card { border-color: var(--border); box-shadow: 0 14px 40px rgba(35,25,20,.06); }
.checkout-panel-head { background: #fffaf6; }
.checkout-panel-head > span { background: var(--sage); color: var(--rose); }
.store-field input:focus, .store-field textarea:focus, .store-field select:focus, .store-auth-form input:focus { border-color: var(--forest); outline-color: rgba(255,90,31,.12); }
.gift-toggle input:checked + span { background: var(--forest); }
.payment-methods input:checked + span { border-color: var(--forest); background: var(--sage-light); box-shadow: 0 0 0 2px rgba(255,90,31,.09); }
.checkout-promise { background: var(--sage-light); }
.checkout-promise > span { color: var(--rose); }
.confirmation-mark { background: var(--sage); color: var(--rose); }
.saved-collection-note { background: var(--sage-light); }
.saved-collection-note > span { color: var(--rose); }
.store-login-visual { border-radius: 1.25rem; }
.store-login-visual::after { background: linear-gradient(180deg,transparent 25%,rgba(22,19,16,.85)); }
.store-login-visual .store-eyebrow { color: #ffd84d; }
.store-auth-card h2 { font-size: 2.1rem; }
.auth-flower { border-radius: .75rem; }
.phone-input { border-color: var(--border); }

@media (max-width: 1100px) {
  .market-hero { grid-template-columns: minmax(0,.9fr) minmax(25rem,1.1fr); }
  .market-category-grid { grid-template-columns: repeat(5,minmax(9.5rem,1fr)); overflow-x: auto; padding-bottom: .8rem; scrollbar-width: thin; }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 780px) {
  .announcement-bar p span:nth-child(n+2) { display: none; }
  .site-header-inner { min-height: 4.25rem; }
  .desktop-nav { display: none; }
  .category-nav > div { justify-content: flex-start; }
  .category-nav a { padding-block: .12rem; }
  .market-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 1rem; }
  .market-hero-copy { min-height: 29rem; padding: 2.2rem; }
  .market-hero h1 { font-size: clamp(3.5rem,13vw,5.7rem); }
  .market-hero-visual { min-height: 31rem; }
  .hero-product-main { height: 26rem; }
  .hero-product-side { height: 14rem; }
  .perks-strip > div { grid-template-columns: repeat(2,1fr); gap: .8rem 0; }
  .perks-strip span:nth-child(2) { border-right: 0; }
  .category-section { padding-top: 4rem; padding-bottom: 4rem; }
  .market-category-grid { grid-template-columns: repeat(5,10rem); }
  .market-category-card { min-height: 15rem; }
  .category-image { width: 7.5rem; height: 7.5rem; }
  .campaign { grid-template-columns: 1fr; }
  .campaign-copy { min-height: 23rem; border-radius: 1.1rem 1.1rem 0 0; }
  .campaign-art { min-height: 18rem; border-radius: 0 0 1.1rem 1.1rem; }
  .collection-section { padding-top: 4rem; }
  .shop-filter { grid-template-columns: 1fr; }
  .product-grid, .related-section .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-detail { grid-template-columns: 1fr; }
  .main-image-wrap { border-radius: 1rem; }
  .store-login-visual { border-radius: 1rem; }
}

@media (max-width: 560px) {
  .page-shell { padding-inline: .85rem; }
  .logo-mark { width: 2.2rem; height: 2.2rem; }
  .logo strong { font-size: 1.05rem; }
  .search-shortcut { display: none; }
  .market-hero { padding-inline: .65rem; }
  .market-hero-copy { min-height: 27rem; padding: 1.5rem; border-radius: 1.1rem; }
  .market-hero h1 { font-size: clamp(3rem,16vw,4.7rem); }
  .market-hero .hero-lede { font-size: .84rem; }
  .market-hero .hero-actions { align-items: flex-start; flex-direction: column; gap: .9rem; }
  .market-hero .hero-proof { gap: .5rem; margin-top: 1.8rem; }
  .market-hero-visual { min-height: 25rem; border-radius: 1.1rem; }
  .hero-product-main { top: 1.5rem; right: 5%; width: 67%; height: 21.5rem; border-radius: 7rem 7rem .8rem .8rem; }
  .hero-product-side { bottom: 1rem; left: 3%; width: 34%; height: 10.5rem; }
  .hero-sticker { top: 1.4rem; left: 3%; width: 5.2rem; height: 5.2rem; }
  .hero-product-caption { display: none; }
  .perks-strip span { font-size: .58rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .market-category-grid { grid-template-columns: repeat(5,8.8rem); }
  .market-category-card { min-height: 13rem; }
  .category-image { width: 6.6rem; height: 6.6rem; }
  .campaign { padding-inline: .65rem; }
  .campaign-copy { padding: 2rem 1.5rem; }
  .campaign-art { min-height: 13rem; }
  .campaign-word { font-size: 4.5rem; }
  .collection-section { padding-inline: .85rem; }
  .collection-intro { align-items: flex-start; }
  .product-grid, .related-section .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem .55rem; }
  .product-card-media { border-radius: .65rem; }
  .product-image { aspect-ratio: 4/5.2; }
  .product-media-actions .availability { display: none; }
  .product-media-actions { display: flex; justify-content: flex-end; }
  .quick-add { min-height: 2rem; padding-left: .6rem; }
  .quick-add span { display: none; }
  .product-body { padding-top: .6rem; }
  .product-title-row { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .product-title-row h3 { font-size: .76rem; }
  .product-kicker { margin-bottom: .25rem; font-size: .5rem; }
  .desc { display: none; }
  .product-ribbon { max-width: calc(100% - 3.4rem); overflow: hidden; font-size: .52rem; text-overflow: ellipsis; white-space: nowrap; }
  .promise-band > div { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .detail-info h1 { font-size: 2.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
