/* XH shop page — header, gift grid, occasion/price finder */
.xh-shop-page, .xh-sh{
	--xh-ink:#343434; --xh-cream:#F5F1E8; --xh-card:#F3EEE7; --xh-maroon:#7A1229;
	--xh-gold:#F2C14E; --xh-butter:#FCF4D6; --xh-muted:#6E6A64; --xh-line:#D9D4CC;
	--xh-serif:"Forum", var(--wd-title-font, Georgia), serif;
	--xh-sans:var(--wd-text-font, "Work Sans", Arial, sans-serif);
	background:#fff;
}
.xh-shop-page .website-wrapper{ background:#fff; }
.xh-shop-page .main-page-wrapper{ padding:0 !important; margin:0 !important; background:transparent; }
body .xh-shop{ display:block; width:100%; max-width:none; padding:0; margin:0; }
.xh-wrap{ max-width:1240px; margin:0 auto; padding:0 48px; box-sizing:border-box; }
body .xh-sh button, body .xh-shop button, body .xh-shop select{
	font-family:var(--xh-sans); text-transform:none; letter-spacing:0; box-shadow:none; min-height:0; }

/* ---------- Header ---------- */
.xh-sh{ background:var(--xh-ink); color:var(--xh-cream); position:relative; z-index:50; font-family:var(--xh-sans); }
.xh-sh a{ color:inherit; text-decoration:none; }
.xh-sh-top{ max-width:1240px; margin:0 auto; padding:18px 48px 16px; box-sizing:border-box;
	display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px;
	border-bottom:1px solid rgba(245,241,232,.14); }
.xh-sh-left{ display:flex; align-items:center; }
.xh-sh-right{ display:flex; align-items:center; justify-content:flex-end; gap:22px; }
.xh-sh-brand{ display:flex; flex-direction:column; align-items:center; gap:6px; }
.xh-sh-brand img{ width:56px; height:auto; display:block; }
.xh-sh-brand span{ font-size:10px; letter-spacing:.32em; text-transform:uppercase; color:var(--xh-gold); white-space:nowrap; }

body .xh-sh .xh-sh-custom{ display:inline-flex; align-items:center; gap:9px; height:38px; padding:0 14px;
	background:transparent; border:1px solid rgba(242,193,78,.75); border-radius:0; color:var(--xh-gold);
	font-size:12px; letter-spacing:.16em; text-transform:uppercase; cursor:pointer; transition:background .25s ease, color .25s ease; }
.xh-sh-custom img{ width:20px; height:20px; object-fit:contain; display:block; }
body .xh-sh .xh-sh-custom:hover, .xh-sh-drop.is-open > .xh-sh-custom{ background:rgba(242,193,78,.1); }
.xh-sh-custom svg, .xh-sh-colbtn svg{ transition:transform .25s ease; }
.xh-sh-drop.is-open > button svg{ transform:rotate(180deg); }

.xh-sh-drop{ position:relative; }
.xh-sh-menu{ list-style:none; margin:0; padding:10px 0; position:absolute; top:calc(100% + 10px); left:0; min-width:220px;
	background:var(--xh-ink); border:1px solid rgba(245,241,232,.16); box-shadow:0 18px 40px rgba(0,0,0,.28);
	opacity:0; visibility:hidden; transform:translateY(-4px); transition:opacity .2s ease, transform .2s ease, visibility .2s; z-index:60; }
.xh-sh-drop.is-open > .xh-sh-menu{ opacity:1; visibility:visible; transform:none; }
.xh-sh-menu li{ margin:0; }
.xh-sh-menu a{ display:block; padding:9px 20px; font-size:14px; color:var(--xh-cream); white-space:nowrap; transition:color .2s ease, background .2s ease; }
.xh-sh-menu a:hover, .xh-sh-menu a[aria-current]{ color:var(--xh-gold); background:rgba(245,241,232,.05); }

.xh-sh-about{ font-size:14px; letter-spacing:.04em; }
.xh-sh-about:hover{ color:var(--xh-gold); }
body .xh-sh .xh-sh-icon{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; padding:0;
	background:transparent; border:0; color:var(--xh-cream); cursor:pointer; transition:color .2s ease; }
body .xh-sh .xh-sh-icon:hover{ color:var(--xh-gold); }
.xh-sh-bag{ position:relative; display:inline-flex; }
.xh-sh-bag img{ width:26px; height:auto; display:block; transition:transform .3s ease; }
.xh-sh-bag:hover img{ transform:translateY(-2px) rotate(-3deg); }
.xh-sh-count{ position:absolute; top:-6px; right:-9px; min-width:17px; height:17px; padding:0 4px; box-sizing:border-box;
	border-radius:9px; background:var(--xh-gold); color:var(--xh-ink); font-size:10px; font-weight:600; line-height:17px; text-align:center; }
.xh-sh-count.is-empty{ display:none; }

.xh-sh-search{ max-width:1240px; margin:0 auto; padding:14px 48px; box-sizing:border-box; display:flex; gap:12px;
	border-bottom:1px solid rgba(245,241,232,.14); }
.xh-sh-search[hidden]{ display:none; }
body .xh-sh-search input[type=search]{ flex:1; height:42px; padding:0 4px; background:transparent; border:0;
	border-bottom:1px solid rgba(245,241,232,.5); border-radius:0; color:var(--xh-cream); font-size:16px; }
body .xh-sh-search input::placeholder{ color:rgba(245,241,232,.55); }
body .xh-sh .xh-sh-search button{ height:42px; padding:0 22px; background:var(--xh-gold); border:0; border-radius:0;
	color:var(--xh-ink); font-size:12px; letter-spacing:.16em; text-transform:uppercase; cursor:pointer; }

.xh-sh-nav{ max-width:1240px; margin:0 auto; padding:0 48px; box-sizing:border-box; display:flex; align-items:center; justify-content:center; gap:34px; height:58px; }
.xh-sh-nav > a, body .xh-sh .xh-sh-colbtn{ position:relative; font-size:14px; letter-spacing:.04em; color:var(--xh-cream);
	padding:6px 0; transition:color .2s ease; }
body .xh-sh .xh-sh-colbtn{ display:inline-flex; align-items:center; gap:6px; background:transparent; border:0; cursor:pointer; height:auto; font-weight:400; }
.xh-sh-nav > a:hover, body .xh-sh .xh-sh-colbtn:hover{ color:var(--xh-gold); }
.xh-sh-nav > a.is-active, body .xh-sh .xh-sh-colbtn.is-active{ color:var(--xh-gold); }
.xh-sh-nav > a.is-active::after, .xh-sh-colbtn.is-active::after{ content:""; position:absolute; left:50%; bottom:-12px; width:22px; height:12px;
	transform:translateX(-50%); background:url("https://thebfactory.in/wp-content/uploads/2026/09/ribbon.png") center/contain no-repeat; }
.xh-sh-sep{ width:1px; height:18px; background:rgba(245,241,232,.3); }
.xh-sh-cols .xh-sh-menu{ left:50%; transform:translate(-50%,-4px); }
.xh-sh-cols.is-open .xh-sh-menu{ transform:translate(-50%,0); }
.xh-sh a:focus-visible, .xh-sh button:focus-visible{ outline:1px solid var(--xh-gold); outline-offset:3px; }

/* ---------- List ---------- */
.xh-shop-list{ padding:56px 0 72px; }
.xh-shop-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:22px; }
.xh-shop-title, .xh-find-title{ font-family:var(--xh-serif); font-weight:400; text-transform:uppercase; color:var(--xh-ink);
	font-size:44px; line-height:1.05; letter-spacing:.01em; margin:0 0 10px; }
.xh-shop-intro{ font-size:14px; color:var(--xh-muted); margin:0; line-height:1.6; }
.xh-sort{ display:flex; align-items:center; gap:12px; margin:0 0 4px; }
.xh-sort label{ font-size:12px; color:var(--xh-muted); margin:0; }
.xh-sort-box{ position:relative; display:inline-flex; align-items:center; border-bottom:1px solid var(--xh-ink); }
.xh-shop-page .xh-sort select{ appearance:none; -webkit-appearance:none; background:transparent; border:0; border-radius:0;
	height:34px; padding:0 26px 0 2px; font-size:13px; color:var(--xh-ink); cursor:pointer; width:auto; }
.xh-sort-box svg{ position:absolute; right:4px; pointer-events:none; color:var(--xh-ink); }

.xh-pills{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 36px; }
.xh-pill{ display:inline-flex; align-items:center; height:38px; padding:0 20px; border:1px solid var(--xh-line); border-radius:999px;
	font-size:13px; color:var(--xh-ink); background:#fff; text-decoration:none; transition:border-color .2s ease, background .2s ease, color .2s ease; }
.xh-pill:hover{ border-color:var(--xh-ink); color:var(--xh-ink); }
.xh-pill.is-active{ background:var(--xh-ink); border-color:var(--xh-ink); color:#fff; }

.xh-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:44px 26px; }
.xh-card{ display:flex; flex-direction:column; min-width:0; }
.xh-card-media{ display:block; aspect-ratio:4/5; background:var(--xh-card); overflow:hidden; }
.xh-card-media img, .xh-card-img{ width:100% !important; height:100% !important; object-fit:cover; display:block; transition:transform .6s ease; }
.xh-card:hover .xh-card-media img{ transform:scale(1.035); }
.xh-card-body{ display:flex; flex-direction:column; flex:1; padding-top:14px; }
.xh-card-label{ font-size:12px; color:var(--xh-maroon); margin:0 0 4px; line-height:1.4; }
.xh-card-name{ font-family:var(--xh-serif); font-weight:400; text-transform:uppercase; font-size:15px; line-height:1.35;
	letter-spacing:.07em; margin:0 0 14px; color:var(--xh-ink); }
.xh-card-name a{ color:inherit; text-decoration:none; }
.xh-card-name a:hover{ color:var(--xh-maroon); }
.xh-card-foot{ margin-top:auto; display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.xh-card-price{ font-size:15px; color:var(--xh-ink); }
.xh-shop-page .xh-card-cta{ font-size:13px; color:var(--xh-maroon); text-decoration:underline; text-underline-offset:3px;
	text-decoration-thickness:1px; white-space:nowrap; background:none; padding:0; border:0; transition:opacity .2s ease; }
.xh-shop-page .xh-card-cta:hover{ opacity:.7; color:var(--xh-maroon); }
.xh-card-cta.is-muted{ color:var(--xh-muted); text-decoration:none; }
.xh-card-cta.loading{ opacity:.5; pointer-events:none; }
.xh-card-cta.loading::after, .xh-card-cta.added::after{ display:none !important; }
.xh-card .added_to_cart{ display:none !important; }

.xh-tile{ background:var(--xh-maroon); color:var(--xh-cream); aspect-ratio:4/5; align-self:start; width:100%;
	justify-content:center; align-items:center; text-align:center; padding:28px 30px; box-sizing:border-box; }
.xh-tile h2{ font-family:var(--xh-serif); font-weight:400; text-transform:uppercase; font-size:28px; letter-spacing:.04em; color:var(--xh-cream); margin:0 0 14px; }
.xh-tile p{ font-size:14px; line-height:1.55; color:var(--xh-cream); margin:0 0 24px; }
.xh-tile-btn{ display:inline-block; background:var(--xh-gold); color:var(--xh-maroon); font-family:var(--xh-serif); text-transform:uppercase;
	font-size:13px; letter-spacing:.14em; padding:12px 18px; text-decoration:none; transition:background .2s ease; }
.xh-tile-btn:hover{ background:#F7D27A; color:var(--xh-maroon); }

.xh-more, .xh-empty{ text-align:center; margin-top:56px; }
.xh-empty p{ color:var(--xh-muted); margin-bottom:20px; }
.xh-more-btn{ display:inline-flex; align-items:center; justify-content:center; min-width:230px; height:52px; padding:0 28px; box-sizing:border-box;
	border:1px solid var(--xh-ink); color:var(--xh-ink); font-family:var(--xh-serif); text-transform:uppercase; letter-spacing:.16em; font-size:14px;
	text-decoration:none; transition:background .2s ease, color .2s ease; }
.xh-more-btn:hover{ background:var(--xh-ink); color:#fff; }
.xh-more-btn.is-loading{ opacity:.5; pointer-events:none; }

/* ---------- Find a gift ---------- */
.xh-find{ background:var(--xh-butter); padding:96px 0 104px; }
.xh-eyebrow{ font-size:14px; color:var(--xh-maroon); margin:0 0 8px; }
.xh-find-sub{ font-family:var(--xh-sans); font-size:13px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--xh-ink); margin:56px 0 22px; }
.xh-find .xh-shop-intro + .xh-find-sub{ margin-top:52px; }
.xh-occ{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:30px; }
.xh-occ-tile{ position:relative; display:block; aspect-ratio:1/1; overflow:hidden; background:#ddd; text-decoration:none; }
.xh-occ-tile img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s ease; }
.xh-occ-tile::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.62) 100%); }
.xh-occ-tile span{ position:absolute; left:24px; right:20px; bottom:20px; z-index:1; font-family:var(--xh-serif); text-transform:uppercase;
	font-size:21px; letter-spacing:.04em; line-height:1.15; color:#fff; }
.xh-occ-tile:hover img{ transform:scale(1.05); }
.xh-bands{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px; }
.xh-band{ display:flex; align-items:center; justify-content:space-between; gap:16px; background:#fff; border:1px solid #EFE7D2;
	padding:26px 30px; text-decoration:none; transition:box-shadow .25s ease, transform .25s ease; }
.xh-band strong{ display:block; font-family:var(--xh-serif); font-weight:400; text-transform:uppercase; font-size:28px; color:var(--xh-maroon); line-height:1.1; letter-spacing:.02em; }
.xh-band em{ display:block; font-style:normal; font-size:13px; color:var(--xh-muted); margin-top:8px; }
.xh-band i{ flex:0 0 46px; width:46px; height:46px; border:1px solid var(--xh-maroon); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--xh-maroon); transition:background .25s ease, color .25s ease; }
.xh-band:hover{ box-shadow:0 14px 30px rgba(52,52,52,.08); transform:translateY(-2px); }
.xh-band:hover i{ background:var(--xh-maroon); color:#fff; }

/* ---------- Tablet ---------- */
@media (max-width:1024px){
	.xh-wrap, .xh-sh-top, .xh-sh-nav, .xh-sh-search{ padding-left:28px; padding-right:28px; }
	.xh-sh-nav{ gap:24px; }
	.xh-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:36px 20px; }
	.xh-occ{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
	.xh-bands{ gap:18px; } .xh-band{ padding:22px; } .xh-band strong{ font-size:22px; }
	.xh-shop-title, .xh-find-title{ font-size:38px; }
}

/* ---------- Phone ---------- */
@media (max-width:768px){
	.xh-wrap{ padding:0 16px; }
	.xh-sh-top{ padding:12px 16px; gap:10px; grid-template-columns:1fr auto 1fr; }
	body .xh-sh .xh-sh-custom{ height:34px; padding:0 9px; gap:0; border-color:rgba(242,193,78,.6); }
	.xh-sh-custom span, .xh-sh-custom svg, .xh-sh-about, .xh-sh-acct{ display:none !important; }
	.xh-sh-brand img{ width:44px; } .xh-sh-brand span{ font-size:8px; letter-spacing:.26em; }
	.xh-sh-right{ gap:12px; }
	.xh-sh-search{ padding:12px 16px; }
	.xh-sh-nav{ justify-content:flex-start; gap:22px; height:54px; padding:0 16px; overflow-x:auto; overflow-y:visible; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
	.xh-sh-nav::-webkit-scrollbar{ display:none; }
	.xh-sh-nav > a, .xh-sh-colbtn{ flex:0 0 auto; white-space:nowrap; }
	.xh-sh-nav > a.is-active::after{ bottom:-9px; }
	.xh-sh-cols{ position:static; }
	.xh-sh-cols .xh-sh-menu{ top:100%; left:16px; right:16px; transform:translateY(-4px); min-width:0; }
	.xh-sh-cols.is-open .xh-sh-menu{ transform:none; }

	.xh-shop-list{ padding:32px 0 52px; }
	.xh-shop-head{ flex-direction:column; align-items:flex-start; gap:14px; margin-bottom:18px; }
	.xh-shop-title, .xh-find-title{ font-size:30px; }
	.xh-pills{ flex-wrap:nowrap; overflow-x:auto; margin:0 -16px 26px; padding:0 16px 2px; scrollbar-width:none; }
	.xh-pills::-webkit-scrollbar{ display:none; }
	.xh-pill{ flex:0 0 auto; height:36px; padding:0 16px; }
	.xh-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 12px; }
	.xh-card-name{ font-size:13px; letter-spacing:.05em; margin-bottom:10px; }
	.xh-card-foot{ flex-direction:column; align-items:flex-start; gap:4px; }
	.xh-card-price{ font-size:14px; }
	.xh-tile{ padding:18px 14px; }
	.xh-tile h2{ font-size:20px; margin-bottom:8px; } .xh-tile p{ font-size:12px; margin-bottom:14px; }
	.xh-tile-btn{ font-size:11px; padding:10px 10px; letter-spacing:.1em; }
	.xh-more{ margin-top:40px; }

	.xh-find{ padding:56px 0 64px; }
	.xh-find-sub{ margin:36px 0 16px; }
	.xh-occ{ gap:12px; }
	.xh-occ-tile span{ left:14px; right:12px; bottom:12px; font-size:15px; }
	.xh-bands{ grid-template-columns:1fr; gap:12px; }
	.xh-band strong{ font-size:22px; }
}
@media (prefers-reduced-motion:reduce){ .xh-shop-page *{ transition:none !important; } }
/* ---------- Menu drawer (phone) ---------- */
body .xh-sh .xh-sh-menubtn{ display:none; }
.xh-drawer{ position:fixed; inset:0; z-index:99999; visibility:hidden; pointer-events:none; font-family:var(--wd-text-font,"Work Sans",Arial,sans-serif); }
.xh-drawer.is-open{ visibility:visible; pointer-events:auto; }
.xh-drawer-veil{ position:absolute; inset:0; background:rgba(20,20,20,.5); opacity:0; transition:opacity .3s ease; }
.xh-drawer.is-open .xh-drawer-veil{ opacity:1; }
.xh-drawer-panel{ position:absolute; top:0; left:0; bottom:0; width:min(84vw,340px); background:#343434; color:#F5F1E8; overflow-y:auto; padding:18px 24px 36px; box-sizing:border-box; transform:translateX(-100%); transition:transform .32s cubic-bezier(.2,.7,.2,1); }
.xh-drawer.is-open .xh-drawer-panel{ transform:none; }
.xh-drawer-head{ display:flex; align-items:center; justify-content:space-between; padding-bottom:16px; margin-bottom:8px; border-bottom:1px solid rgba(245,241,232,.14); }
.xh-drawer-head img{ width:42px; height:auto; display:block; }
body .xh-drawer .xh-drawer-x{ background:transparent; border:0; padding:6px; color:#F5F1E8; cursor:pointer; min-height:0; box-shadow:none; }
.xh-drawer-h{ margin:22px 0 6px; font-size:11px; letter-spacing:.24em; text-transform:uppercase; color:#F2C14E; }
.xh-drawer ul{ list-style:none; margin:0; padding:0; }
.xh-drawer li{ margin:0; }
.xh-drawer a{ display:block; padding:8px 0; font-size:16px; color:#F5F1E8; text-decoration:none; transition:color .2s ease; }
.xh-drawer a:hover, .xh-drawer a[aria-current]{ color:#F2C14E; }
.xh-drawer-foot{ margin-top:22px !important; padding-top:12px !important; border-top:1px solid rgba(245,241,232,.14); }
body.xh-drawer-open{ overflow:hidden; }

@media (max-width:768px){
	.xh-sh-top{ align-items:start; border-bottom:0; padding:14px 16px 4px; }
	.xh-sh-left .xh-sh-drop{ display:none !important; }
	.xh-sh-left, .xh-sh-right{ height:46px; align-items:center; }
	body .xh-sh .xh-sh-menubtn{ display:inline-flex; align-items:center; gap:10px; height:40px; padding:0; background:transparent; border:0; color:#F5F1E8; cursor:pointer; font-size:12px; letter-spacing:.2em; text-transform:uppercase; }
	.xh-sh-menubtn i{ position:relative; display:block; width:22px; height:1.5px; background:currentColor; }
	.xh-sh-menubtn i::before, .xh-sh-menubtn i::after{ content:""; position:absolute; left:0; width:22px; height:1.5px; background:currentColor; }
	.xh-sh-menubtn i::before{ top:-7px; } .xh-sh-menubtn i::after{ top:7px; }
	.xh-sh-brand{ gap:12px; }
	.xh-sh-brand img{ width:42px; }
	.xh-sh-brand span{ font-size:9.5px; letter-spacing:.42em; margin-right:-.42em; }
	.xh-sh-right{ gap:16px; }
	.xh-sh-bag img{ width:24px; }
	.xh-sh-nav{ height:auto; padding:14px 16px 16px; gap:8px; }
	.xh-sh-sep{ display:none; }
	.xh-sh-nav > a, body .xh-sh .xh-sh-colbtn{ flex:0 0 auto; padding:7px 15px; border:1px solid rgba(245,241,232,.45); border-radius:999px; font-size:14px; line-height:1.2; letter-spacing:.03em; }
	.xh-sh-nav > a.is-active, body .xh-sh .xh-sh-colbtn.is-active{ border-color:#F2C14E; color:#F2C14E; }
	.xh-sh-nav > a.is-active::after, .xh-sh-colbtn.is-active::after{ display:none; }
}
@media (prefers-reduced-motion:reduce){ .xh-drawer-panel, .xh-drawer-veil{ transition:none; } }
/* Elementor device visibility wins over section-level display rules */
@media (max-width:768px){ .elementor .elementor-hidden-mobile{ display:none !important; } }
@media (min-width:769px) and (max-width:1024px){ .elementor .elementor-hidden-tablet{ display:none !important; } }
@media (min-width:1025px){ .elementor .elementor-hidden-desktop{ display:none !important; } }

/* About page (1828): phone shows the xh-am block, the four desktop sections stay on tablet/desktop */
@media (max-width:768px){
	body .elementor-1828 .elementor-element.elementor-element-1873067, body .elementor-1828 .elementor-element.elementor-element-102aaa4, body .elementor-1828 .elementor-element.elementor-element-65cf6be, body .elementor-1828 .elementor-element.elementor-element-xh_cm2_sec{ display:none !important; }
	body .elementor-1828 .elementor-element.elementor-element-xh_am_sec{ display:block !important; width:100vw !important; max-width:100vw !important; margin-left:calc(50% - 50vw) !important; margin-right:calc(50% - 50vw) !important; padding:0 !important; }
}
