/* =========================================================================
   India Gardening Child – styles
   Colours/fonts follow the existing Botiga setup (Fraunces + Work Sans).
   ========================================================================= */
:root {
	--igm-ink: #20241C;
	--igm-green: #3A4A3D;
	--igm-deep: #2F3D32;
	--igm-cream: #F5F1E8;
	--igm-paper: #FBF8F2;
	--igm-line: #E4DDCC;
	--igm-line2: #DCD4C2;
	--igm-muted: #5B6157;
	--igm-sale: #9E4A28;
	--igm-ok: #2F6B3A;
	--igm-gap: 60px;
}
@media (max-width: 640px) { :root { --igm-gap: 16px; } }

/* ---------- 1. New header (old Botiga header hidden) ---------- */
header.bhfb-header { display: none !important; }
.igm-header { background: var(--igm-cream); position: relative; z-index: 50; font-family: 'Work Sans', sans-serif; }
.igm-row1 { display: flex; align-items: center; gap: 40px; padding: 16px var(--igm-gap) 8px; }
.igm-logo img { height: 54px; width: auto; display: block; }
.igm-search { flex: 1 1 auto; max-width: 640px; margin: 0 auto; display: flex; align-items: center; background: #fff; border: 1px solid var(--igm-line2); border-radius: 999px; padding: 4px 4px 4px 20px; }
.igm-search input[type="search"] { flex: 1; border: 0 !important; background: transparent !important; font: inherit; font-size: 15px; height: 40px; outline: none; min-width: 0; padding: 0 !important; box-shadow: none !important; color: var(--igm-ink); }
.igm-search button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--igm-green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; }
.igm-search button:hover { background: var(--igm-deep); }
.igm-icons { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.igm-icons a { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--igm-ink); }
.igm-icons a:hover { color: var(--igm-green); }
.igm-badge { position: absolute; top: 4px; right: 2px; background: var(--igm-green); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* Menu row – centred, no divider line */
.igm-nav { padding: 2px var(--igm-gap) 0; }
.igm-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 34px; list-style: none; margin: 0; padding: 0; }
.igm-menu > li { position: relative; margin: 0; }
.igm-menu > li > a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--igm-ink); font-size: 15px; font-weight: 500; padding: 12px 0 14px; border-bottom: 2px solid transparent; }
.igm-menu > li > a:hover, .igm-menu > li.current-menu-item > a, .igm-menu > li.current-menu-ancestor > a { color: var(--igm-green); border-bottom-color: var(--igm-green); }
.igm-menu > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; margin-left: 2px; }
.igm-menu > li.menu-item-has-children:hover > a::after, .igm-menu > li.menu-item-has-children:focus-within > a::after { transform: rotate(225deg) translate(-2px, 0); }
/* Dropdown */
.igm-menu .sub-menu { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); min-width: 250px; background: var(--igm-cream); border: 1px solid var(--igm-line); border-radius: 12px; box-shadow: 0 16px 32px rgba(32, 36, 28, .14); padding: 6px 18px; margin: 0; list-style: none; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.igm-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.igm-menu li:hover > .sub-menu, .igm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.igm-menu .sub-menu li { margin: 0; }
.igm-menu .sub-menu a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--igm-line); font-weight: 600; color: var(--igm-deep); font-size: 15px; white-space: nowrap; text-decoration: none; transition: padding .15s, color .15s; }
.igm-menu .sub-menu li:last-child a { border-bottom: 0; }
.igm-menu .sub-menu a:hover { color: var(--igm-green); padding-left: 8px; }

@media (max-width: 640px) {
	.igm-row1 { flex-wrap: wrap; gap: 10px; padding-top: 12px; }
	.igm-logo img { height: 44px; }
	.igm-icons { margin-left: auto; }
	.igm-search { order: 3; flex-basis: 100%; max-width: none; }
	.igm-menu { gap: 0 20px; }
	.igm-menu > li > a { font-size: 14px; padding: 10px 0 12px; }
	.igm-menu .sub-menu { left: 0; transform: translate(0, 8px); }
	.igm-menu li:hover > .sub-menu, .igm-menu li:focus-within > .sub-menu { transform: translate(0, 0); }
}

/* ---------- 2. 60px side space for normal content ---------- */
.container.content-wrapper,
.content-wrapper > .container,
.woocommerce-page-header > .container { max-width: none !important; padding-left: var(--igm-gap) !important; padding-right: var(--igm-gap) !important; }
.content-wrapper > .row.main-row { margin-left: 0 !important; margin-right: 0 !important; }
.content-wrapper > .row.main-row > #primary { padding-left: 0 !important; padding-right: 0 !important; }
/* Home page blocks (full-width backgrounds stay full width, content gets 60px) */
.entry-content > .wp-block-athemes-athemes-blocks-block-container > .athemes-blocks-block-container-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
.entry-content > .wp-block-athemes-athemes-blocks-block-container > .athemes-blocks-block-container-wrapper > .athemes-blocks-block-container-wrapper-content { max-width: none !important; padding-left: var(--igm-gap) !important; padding-right: var(--igm-gap) !important; box-sizing: border-box; }
.entry-content .ig-care-wrap, .entry-content .ig-care, .entry-content .ig-container { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- 3. Round category icons ---------- */
.igm-cats { padding: 28px 0 32px; flex: 0 0 100%; max-width: 100%; }
.content-wrapper .igm-cats { padding-top: 8px; }
.entry-content > .igm-cats { padding: 48px 0 8px; }
.igm-info, .igm-title { text-align: left !important; }
.igm-catrow { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.igm-cat { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none !important; color: var(--igm-ink) !important; font-size: 15px; font-weight: 500; flex-shrink: 0; }
.igm-cimg { display: block; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--igm-line2); transition: box-shadow .15s; }
.igm-cimg img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; transition: transform .5s ease; }
.igm-cat:hover .igm-cimg, .igm-cat.on .igm-cimg { box-shadow: 0 0 0 2px var(--igm-green); }
.igm-cat:hover .igm-cimg img { transform: scale(1.12); }
@media (max-width: 640px) {
	.igm-catrow { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 18px; padding-bottom: 4px; }
	.igm-cat { font-size: 13px; }
	.igm-cimg { width: 76px; height: 76px; }
}

/* ---------- 4. Product cards (2 parts image : 1 part details) ---------- */
ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 32px !important; padding: 0 !important; list-style: none; }
ul.products::before, ul.products::after { display: none !important; content: none !important; }
ul.products li.product.igm-li { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; clear: none !important; text-align: left; border: 0 !important; }
.igm-card { background: #fff; border-radius: 12px; overflow: hidden; aspect-ratio: 2 / 3; display: flex; flex-direction: column; border: 1px solid #EAE3D3; height: 100%; transition: box-shadow .2s; }
.igm-card:hover { box-shadow: 0 10px 24px rgba(32, 36, 28, .10); }
.igm-im { position: relative; flex: 2 1 0; min-height: 0; overflow: hidden; }
.igm-im-link { display: block; height: 100%; }
.igm-im img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; transition: transform .5s ease; }
.igm-card:hover .igm-im img { transform: scale(1.08); }
.igm-off { position: absolute; top: 10px; left: 10px; background: var(--igm-sale); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; line-height: 1.3; }
.igm-off.igm-oos { background: var(--igm-ink); }
.igm-wish { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--igm-ink) !important; display: flex; align-items: center; justify-content: center; }
.igm-wish svg { width: 18px; height: 18px; }
.igm-info { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 12px 14px; }
.igm-title { margin: 0 !important; padding: 0 !important; font-family: Fraunces, serif; font-weight: 600; font-size: 15px !important; line-height: 1.3 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.igm-title a { color: var(--igm-ink) !important; text-decoration: none !important; }
.igm-prow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.igm-price { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 0 6px; color: var(--igm-ink); }
.igm-price ins { text-decoration: none; font-weight: 700; font-size: 17px; background: none; }
.igm-price del { font-size: 13px; color: #6B7068; }
.igm-price > .woocommerce-Price-amount { font-weight: 700; font-size: 17px; }
.igm-add { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50% !important; border: 0; background: var(--igm-green) !important; color: #fff !important; display: flex !important; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; min-height: 0 !important; line-height: 1 !important; }
.igm-add:hover { background: var(--igm-deep) !important; }
.igm-add.loading { opacity: .6; }
.igm-add::after { display: none !important; }
.igm-prow .added_to_cart { display: none !important; }
@media (max-width: 1000px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.igm-info { padding: 8px 10px; }
	.igm-title { font-size: 13px !important; }
	.igm-price ins, .igm-price > .woocommerce-Price-amount { font-size: 15px; }
	.igm-add { width: 34px; height: 34px; }
}

/* Hover zoom on content images */
.entry-content figure.wp-block-image { overflow: hidden; }
.entry-content figure.wp-block-image img { transition: transform .6s ease; }
.entry-content figure.wp-block-image:hover img { transform: scale(1.06); }

/* ---------- 5. Shop filters in a slide-in drawer ---------- */
body.igm-filter-drawer #primary { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
body.igm-filter-drawer #secondary { position: fixed !important; top: 0 !important; left: 0; bottom: 0 !important; height: 100vh !important; height: 100dvh !important; max-height: none !important; overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; width: 360px !important; max-width: 88vw !important; flex: none !important; z-index: 100001; background: var(--igm-paper); overflow-y: auto; padding: 76px 24px 24px !important; margin: 0 !important; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 8px 0 32px rgba(0, 0, 0, .18); }
body.igm-fopen #secondary { transform: none; }
.igm-dtitle { position: absolute; top: 20px; left: 24px; margin: 0; font-family: Fraunces, serif; font-size: 24px; font-weight: 600; color: var(--igm-ink); }
.igm-fclose { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--igm-ink); cursor: pointer; font-size: 26px; line-height: 1; }
.igm-ovl { position: fixed; inset: 0; background: rgba(20, 28, 20, .45); z-index: 100000; opacity: 0; pointer-events: none; transition: opacity .2s; }
body.igm-fopen .igm-ovl { opacity: 1; pointer-events: auto; }
.igm-fbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border: 1px solid var(--igm-green); background: #fff; color: var(--igm-green); border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; margin-right: 20px; }
.igm-fbtn:hover { background: var(--igm-green); color: #fff; }
.botiga-sorting-left-inner { display: flex !important; align-items: center; }
@media (max-width: 640px) { .woocommerce-result-count { display: none; } }

/* ---------- 6. Cart page ---------- */
.woocommerce-cart article.page > .entry-header { display: none !important; }
.igc { color: var(--igm-ink); padding: 24px 0 8px; }
.igc h1, .igc h2 { font-family: Fraunces, serif; font-weight: 600; color: var(--igm-ink); }
.igc-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.igc-title { margin: 0; font-size: 40px; line-height: 1.1; }
.igc-title span { font-family: 'Work Sans', sans-serif; font-size: 18px; font-weight: 500; color: var(--igm-muted); }
.igc-steps { display: flex; align-items: center; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 500; }
.igc-steps li { display: flex; align-items: center; gap: 8px; color: var(--igm-muted); margin: 0; }
.igc-steps .d { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CFC6B2; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.igc-steps .cur { color: var(--igm-green); }
.igc-steps .cur .d { background: var(--igm-green); border-color: var(--igm-green); color: #fff; }
.igc-steps .ln { width: 40px; height: 1px; background: #CFC6B2; padding: 0; }
.igc-two { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; }
.igc-ship { padding: 0 0 22px; border-bottom: 1px solid var(--igm-line); display: flex; flex-direction: column; gap: 10px; }
.igc-ship-msg { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--igm-ink); }
.igc-ship-msg svg { color: var(--igm-green); flex-shrink: 0; }
.igc-bar { height: 8px; background: #ECE6D8; border-radius: 999px; overflow: hidden; }
.igc-bar i { display: block; height: 100%; background: var(--igm-green); border-radius: 999px; }
.igc-items { border: 0 !important; margin: 0 !important; background: transparent !important; }
.igc-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--igm-line); }
.igc-im { width: 120px; height: 120px; border-radius: 10px; overflow: hidden; display: block; }
.igc-im img { width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; transition: transform .5s ease; }
.igc-item:hover .igc-im img { transform: scale(1.08); }
.igc-name { margin: 0 0 4px !important; font-size: 18px !important; line-height: 1.3; }
.igc-name a { color: var(--igm-ink) !important; text-decoration: none; }
.igc-body dl.variation { margin: 2px 0 0; font-size: 14px; color: var(--igm-muted); }
.igc-acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; }
.igc-acts .quantity { margin: 0 !important; }
.igc-lnk { color: var(--igm-muted) !important; font-size: 14px; text-decoration: underline !important; background: none !important; width: auto !important; height: auto !important; line-height: 1.4 !important; }
.igc-pr { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.igc-pr strong { font-size: 19px; }
.igc-pr del { font-size: 14px; color: #6B7068; }
.igc-pr em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--igm-ok); }
.igc-actions { display: block !important; padding: 22px 0 0 !important; border: 0 !important; }
.igc-coupon { float: none !important; width: 100%; max-width: 460px; }
.igc-coupon label { display: block !important; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.igc-coupon > div { display: flex; gap: 8px; }
.igc-coupon input.input-text { flex: 1; min-width: 0; width: auto !important; height: 44px; border: 1px solid var(--igm-line2) !important; border-radius: 10px !important; padding: 0 14px !important; background: var(--igm-paper) !important; text-transform: uppercase; }
.igc-btn-o { height: 44px; padding: 0 20px !important; border: 1px solid var(--igm-green) !important; background: transparent !important; color: var(--igm-green) !important; border-radius: 10px !important; font-weight: 600; }
.igc-btn-o:hover { background: var(--igm-green) !important; color: #fff !important; }
.igc-update { display: none !important; }
.igc-continue { display: inline-block; margin-top: 18px; font-weight: 600; }
/* Single summary panel */
.igc-side { position: sticky; top: 24px; }
.igc-side .cart_totals { float: none !important; width: 100% !important; background: #fff; border: 1px solid #EAE3D3; border-radius: 16px; padding: 26px; margin: 0; }
.igc-side .cart_totals h2 { margin: 0 0 10px; font-size: 22px; }
.igc-side .cart_totals table { border: 0 !important; margin: 0 0 16px !important; width: 100%; }
.igc-side .cart_totals th, .igc-side .cart_totals td { border: 0 !important; background: transparent !important; padding: 10px 0 !important; font-size: 15px; vertical-align: top; }
.igc-side .cart_totals td { text-align: right; }
.igc-side .cart_totals tr.order-total th, .igc-side .cart_totals tr.order-total td { border-top: 1px solid var(--igm-line) !important; padding-top: 16px !important; font-size: 17px; }
.igc-side .cart_totals tr.order-total .amount { font-family: Fraunces, serif; font-size: 26px; font-weight: 600; }
.igc-side .igm-save-row td { padding: 4px 0 0 !important; }
.igm-save { background: #E7EDE3; color: #2F4A34; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 600; text-align: center; }
.igc-side .wc-proceed-to-checkout { padding: 0 !important; }
.igc-side .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center; justify-content: center; height: 54px; border-radius: 999px !important; background: var(--igm-green) !important; color: #fff !important; font-size: 16px !important; font-weight: 600; margin: 0 !important; padding: 0 20px !important; }
.igc-side .wc-proceed-to-checkout a.checkout-button:hover { background: var(--igm-deep) !important; }
.woocommerce-cart .cross-sells { padding-top: 56px; clear: both; }
.woocommerce-cart .cross-sells > h2 { font-family: Fraunces, serif; font-size: 30px; margin: 0 0 20px; }
@media (max-width: 900px) { .igc-two { grid-template-columns: minmax(0, 1fr); } .igc-side { position: static; } }
@media (max-width: 640px) {
	.igc-title { font-size: 32px; }
	.igc-steps .t { display: none; }
	.igc-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
	.igc-im { width: 84px; height: 84px; }
	.igc-pr { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* ---------- 7. Gift card page: image left, form right, bigger image ---------- */
.iagc-page { background: linear-gradient(to left, rgb(255, 252, 249) 0%, rgb(255, 252, 249) 50%, rgb(245, 241, 232) 50%, rgb(245, 241, 232) 100%) !important; }
.iagc-preview { order: -1; }
.iagc-form { padding-left: var(--igm-gap) !important; padding-right: var(--igm-gap) !important; }
.iagc-visual { max-width: 600px !important; border-radius: 18px !important; overflow: hidden; }
.iagc-visual img { transition: transform .6s ease; }
.iagc-visual:hover img { transform: scale(1.04); }
.iagc-visual-label { font-size: 14px !important; left: 24px !important; bottom: 20px !important; }
.iagc-swatch { overflow: hidden; }
.iagc-swatch img { transition: transform .5s ease; }
.iagc-swatch:hover img { transform: scale(1.08); }
@media (max-width: 900px) { .iagc-page { background: rgb(255, 252, 249) !important; } .iagc-visual { max-width: 100% !important; } }

/* v1.3 fixes */
body.admin-bar.igm-filter-drawer #secondary { top: 32px !important; height: calc(100vh - 32px) !important; }
@media (max-width: 782px) { body.admin-bar.igm-filter-drawer #secondary { top: 46px !important; height: calc(100vh - 46px) !important; } }
body.igm-filter-drawer #secondary .sidebar-wrapper, body.igm-filter-drawer #secondary .widget { position: static !important; max-height: none !important; overflow: visible !important; }
body.igm-fopen { overflow: hidden; }
/* Announcement bar: no blank gap between messages */
.iag-announce { align-items: flex-start !important; }

/* v1.4 fixes */
/* Gift card page: flip the page background too (so the strips above/below match) */
body:has(.iagc-page) { background-image: linear-gradient(to left, rgb(255, 252, 249) 0%, rgb(255, 252, 249) 50%, rgb(245, 241, 232) 50%, rgb(245, 241, 232) 100%) !important; }
@media (max-width: 900px) { body:has(.iagc-page) { background-image: none !important; background-color: rgb(255, 252, 249) !important; } }
/* Smooth zoom (lazy-load plugin was replacing the transition) */
.igm-im img, .igm-cimg img, .igc-im img, .iagc-visual img, .iagc-swatch img, .entry-content figure.wp-block-image img { transition: transform .5s ease, opacity .3s ease !important; will-change: transform; }
