/* Brawta Bites Modern — visual foundation, based on the approved design reference. */
:root {
  --bb-yellow: #ffca05;
  --bb-yellow-dark: #e7b400;
  --bb-charcoal: #242424;
  --bb-charcoal-2: #303030;
  --bb-white: #ffffff;
  --bb-off-white: #fafaf8;
  --bb-green: #2e7d32;
  --bb-green-dark: #1d5425;
  --bb-green-pale: #eaf4e5;
  --bb-text: #181818;
  --bb-muted: #666666;
  --bb-border: #e5e7e3;
  --bb-shadow: 0 5px 20px rgba(0, 0, 0, .08);
  --bb-radius: 14px;
  --bb-container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bb-white); color: var(--bb-text); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bb-header-container { width: min(calc(100% - 40px), var(--bb-container)); margin-inline: auto; }

/* Header */
.bb-announcement-bar { background: var(--bb-charcoal); color: #fff; font-size: 13px; font-weight: 700; }
.bb-announcement-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bb-announcement-message { display: flex; align-items: center; gap: 8px; }
.bb-jamaica-flag { font-size: 18px; line-height: 1; }
.bb-announcement-separator { color: var(--bb-yellow); padding-inline: 3px; }
.bb-announcement-whatsapp { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; white-space: nowrap; }
.bb-whatsapp-mark { color: #25d366; font-size: 18px; }
.bb-header-main { background: var(--bb-off-white); border-bottom: 1px solid #eee; }
.bb-header-main-inner { display: grid; grid-template-columns: minmax(180px, 265px) minmax(220px, 1fr) auto; align-items: center; gap: 28px; min-height: 112px; padding-block: 17px; }
.bb-brand { display: inline-flex; align-items: center; min-width: 0; text-decoration: none; }
.bb-brand-logo { width: min(100%, 265px); height: auto; display: block; }
.bb-search-form { display: flex; height: 48px; min-width: 0; border: 1px solid #e4e4e4; border-radius: 11px; overflow: hidden; background: #fff; box-shadow: 0 2px 9px rgba(0,0,0,.04); }
.bb-search-form input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 0 17px; background: transparent; font: inherit; outline: none; }
.bb-search-form button { width: 50px; border: 0; background: var(--bb-charcoal); color: #fff; cursor: pointer; font-size: 28px; line-height: 1; }
.bb-search-form button:hover { background: #000; }
.bb-header-tools { display: flex; align-items: center; gap: 18px; }
.bb-header-tool { position: relative; display: inline-flex; align-items: center; gap: 7px; color: #111; font-weight: 700; text-decoration: none; white-space: nowrap; }
.bb-header-tool:hover { color: var(--bb-green-dark); }
.bb-tool-icon { font-size: 23px; line-height: 1; }
.bb-cart-icon { font-size: 24px; }
.bb-cart-link { padding-right: 14px; }
.bb-cart-count { position: absolute; top: -14px; right: -2px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; background: var(--bb-yellow); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.bb-currency-selector form { display: flex; align-items: center; gap: 5px; }
.bb-currency-flag-wrap { width: 22px; height: 18px; display: inline-flex; align-items: center; }
.bb-currency-flag { max-width: 22px; max-height: 18px; object-fit: contain; }
.bb-currency-selector select { max-width: 82px; border: 1px solid #ddd; border-radius: 6px; padding: 5px 3px; background: #fff; font-size: 12px; color: #222; }
.bb-mobile-menu-toggle { display: none; }
.bb-primary-navigation { background: var(--bb-yellow); color: #151515; }
.bb-navigation-inner { min-height: 46px; display: flex; align-items: center; gap: 22px; }
.bb-nav-home { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; font-size: 16px; padding: 12px 4px; }
.bb-nav-home-text { font-size: 12px; text-transform: uppercase; }
#navCatTabsWrapper, #navCatTabs { display: contents; }
#navCatTabs ul { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
#navCatTabs li { display: inline-flex; }
#navCatTabs a { padding: 12px 3px; display: inline-flex; align-items: center; color: #111; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 800; }
#navCatTabs a:hover, .bb-nav-static-links a:hover, .bb-nav-home:hover { color: var(--bb-green-dark); }
.bb-nav-static-links { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.bb-nav-static-links a { color: #111; text-decoration: none; text-transform: uppercase; font-size: 12px; font-weight: 800; white-space: nowrap; }

/* Main page / hero */
#mainWrapper { width: 100%; max-width: none; margin: 0 auto; }
#contentMainWrapper { width: 100%; border: 0; border-collapse: collapse; }
#contentMainWrapper > tbody > tr > td { vertical-align: top; }
#navColumnOne, #navColumnTwo { display: none; }
#contentMainWrapper > tbody > tr > td:not(#navColumnOne):not(#navColumnTwo) { width: 100%; }
#navBreadCrumb { max-width: var(--bb-container); margin: 12px auto; padding-inline: 20px; color: var(--bb-muted); font-size: 13px; }
.bb-hero { overflow: hidden; background: linear-gradient(115deg, #143e1c 0%, #245b24 52%, #183f1c 100%); color: #fff; }
.bb-hero-inner { min-height: 340px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 52%); align-items: center; gap: 25px; padding-block: 32px; }
.bb-hero-copy { position: relative; z-index: 1; padding: 10px 0; }
.bb-hero-eyebrow { margin: 0 0 10px; color: #d5efc8; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 800; }
.bb-hero h1 { margin: 0; max-width: 620px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -.025em; color: #fff; }
.bb-hero h1 span { color: var(--bb-yellow); }
.bb-hero-description { max-width: 450px; margin: 17px 0 24px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.35; font-weight: 600; }
.bb-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 26px; border-radius: 12px; background: var(--bb-yellow); color: #111; text-decoration: none; text-transform: uppercase; font-weight: 900; letter-spacing: .02em; box-shadow: 0 5px 14px rgba(0,0,0,.18); }
.bb-primary-button:hover { background: #ffe05c; transform: translateY(-1px); }
.bb-hero-visual { min-width: 0; height: 275px; border-radius: 15px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 10px 25px rgba(0,0,0,.22); }
.bb-hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.bb-home-section { padding-block: 28px 34px; }
.bb-section-heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 0 0 22px; text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.2; }
.bb-section-heading::before, .bb-section-heading::after { content: ''; display: block; height: 2px; flex: 1; max-width: 190px; background: linear-gradient(90deg, transparent, var(--bb-green)); }
.bb-section-heading::after { transform: scaleX(-1); }
.bb-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bb-category-card { position: relative; display: block; aspect-ratio: 1.24 / 1; min-height: 180px; overflow: hidden; border-radius: 13px; color: #fff; text-decoration: none; box-shadow: var(--bb-shadow); background: #356b32; }
.bb-category-card > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.bb-category-card:hover > img { transform: scale(1.04); }
.bb-category-card-overlay { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; padding: 12px 10px 10px; text-align: center; background: linear-gradient(transparent, rgba(0,0,0,.82) 18%); }
.bb-category-card-overlay strong { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.2; }
.bb-category-card-overlay span { font-size: 12px; }
.bb-category-card-overlay em { margin-top: 4px; color: var(--bb-yellow); font-size: 13px; font-weight: 800; font-style: normal; }
.bb-featured-section { background: #fff; }
.bb-home-greeting { margin: 0 0 15px; text-align: center; }
.bb-home-defined-content { margin: 0 0 18px; }
.bb-home-defined-content:empty { display: none; }
.bb-featured-section .centerBoxWrapper, .bb-featured-section .centerBoxContents { margin-block: 12px; }
.bb-featured-section .centerBoxHeading { margin: 15px 0; font-size: 22px; text-align: center; }
.bb-featured-section .centerBoxContents { min-width: 0; }
.bb-featured-section .productListing, .bb-featured-section .centerBoxWrapperContents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bb-featured-section .productListing-row, .bb-featured-section .centerBoxContents { border: 1px solid var(--bb-border); border-radius: 13px; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.bb-featured-section .centerBoxContents img { max-height: 220px; object-fit: contain; }
.bb-featured-section .centerBoxContents a { text-decoration: none; }
.bb-featured-section .centerBoxContents .productName { font-weight: 700; }

/* Footer */
.bb-benefits-strip { background: var(--bb-green-pale); padding: 18px 0; }
.bb-benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.bb-benefit { display: flex; align-items: center; justify-content: center; gap: 12px; }
.bb-benefit-icon { color: var(--bb-green); font-size: 30px; font-weight: 900; line-height: 1; }
.bb-benefit div { display: flex; flex-direction: column; line-height: 1.3; }
.bb-benefit strong { font-size: 14px; }
.bb-benefit div span { font-size: 13px; }
.bb-footer-main { background: var(--bb-charcoal); color: #fff; padding: 36px 0 28px; }
.bb-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 32px; }
.bb-footer-logo { width: min(100%, 230px); filter: saturate(1.05); }
.bb-footer-tagline { margin: 8px 0; color: var(--bb-yellow); font-weight: 800; font-style: italic; }
.bb-footer-brand p { max-width: 300px; margin-block: 8px; font-size: 14px; }
.bb-footer-jamaica { margin-top: 17px !important; font-weight: 700; }
.bb-footer-links h2, .bb-footer-connect h2 { margin: 0 0 13px; font-size: 17px; }
.bb-footer-links ul { margin: 0; padding: 0; list-style: none; }
.bb-footer-links li { margin: 7px 0; font-size: 14px; }
.bb-footer-links a, .bb-footer-connect a { color: #fff; text-decoration: none; }
.bb-footer-links a:hover, .bb-footer-connect a:hover { color: var(--bb-yellow); }
.bb-footer-connect p { font-size: 14px; }
.bb-footer-whatsapp { display: inline-block; padding: 10px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-weight: 700; }
.bb-footer-bottom { border-top: 1px solid #494949; background: #202020; color: #fff; padding: 13px 0; }
.bb-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.bb-footer-country { font-weight: 700; white-space: nowrap; }
.bb-footer-ip { text-align: center; font-size: 11px; color: #666; }
.bb-floating-whatsapp { position: fixed; z-index: 1000; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 10px 17px; border-radius: 99px; background: #1fae58; color: #fff; box-shadow: 0 5px 20px rgba(0,0,0,.2); text-decoration: none; font-size: 12px; line-height: 1.2; }
.bb-floating-whatsapp > span:first-child { font-size: 24px; }
.bb-floating-whatsapp strong { font-size: 13px; }

/* Other page compatibility defaults */
.centerColumn { max-width: var(--bb-container); margin: 0 auto; padding: 20px; }
#productListing, .productListing { width: 100%; }
#productListing .productListing-row, .productListing-row { border-radius: 12px; }
#navSuppWrapper, #navSupp { display: none; }
#siteinfoLegal { padding: 0; }
.banners { text-align: center; margin: 15px auto; }
.messageStack, .messageStackWarning, .messageStackError { margin: 10px auto; max-width: var(--bb-container); }

@media (max-width: 1080px) {
  .bb-header-main-inner { grid-template-columns: minmax(150px, 220px) minmax(200px, 1fr) auto; gap: 16px; }
  .bb-brand-logo { width: 220px; }
  .bb-header-tools { gap: 11px; }
  .bb-navigation-inner { gap: 13px; }
  #navCatTabs ul { gap: 12px; }
  .bb-nav-static-links { gap: 12px; }
  .bb-category-grid { gap: 13px; }
}
@media (max-width: 860px) {
  .bb-header-main-inner { grid-template-columns: minmax(130px, 190px) 1fr auto; min-height: 90px; gap: 12px; }
  .bb-brand-logo { width: 190px; }
  .bb-header-tools { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .bb-search-form { grid-column: 2; grid-row: 1; }
  .bb-mobile-menu-toggle { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 9px; background: #fff; cursor: pointer; }
  .bb-menu-lines, .bb-menu-lines::before, .bb-menu-lines::after { display: block; width: 19px; height: 2px; background: #222; position: relative; }
  .bb-menu-lines::before, .bb-menu-lines::after { content: ''; position: absolute; left: 0; }
  .bb-menu-lines::before { top: -6px; }
  .bb-menu-lines::after { top: 6px; }
  .bb-primary-navigation { display: none; }
  .bb-primary-navigation.bb-navigation-open { display: block; }
  .bb-navigation-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-block: 6px; }
  .bb-nav-home { padding: 9px 0; }
  #navCatTabs ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  #navCatTabs li, #navCatTabs a { display: block; width: 100%; }
  #navCatTabs a { padding: 9px 0; }
  .bb-nav-static-links { flex-direction: column; align-items: flex-start; margin: 0; gap: 0; width: 100%; }
  .bb-nav-static-links a { padding: 9px 0; }
  .bb-hero-inner { grid-template-columns: 1fr minmax(250px, 42%); min-height: 300px; }
  .bb-hero-visual { height: 240px; }
  .bb-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bb-header-container { width: min(calc(100% - 28px), var(--bb-container)); }
  .bb-announcement-inner { min-height: 34px; justify-content: center; font-size: 11px; }
  .bb-announcement-message { gap: 5px; }
  .bb-announcement-whatsapp { display: none; }
  .bb-header-main-inner { grid-template-columns: 1fr auto; min-height: auto; padding-block: 12px; }
  .bb-brand { grid-column: 1; grid-row: 1; }
  .bb-brand-logo { width: 174px; }
  .bb-mobile-menu-toggle { grid-column: 2; grid-row: 1; }
  .bb-search-form { grid-column: 1 / -1; grid-row: 2; height: 43px; }
  .bb-header-tools { grid-column: 1 / -1; grid-row: 3; justify-content: space-between; gap: 10px; padding-top: 4px; }
  .bb-header-tool { font-size: 12px; }
  .bb-currency-selector select { max-width: 95px; }
  .bb-cart-link { padding-right: 12px; }
  .bb-hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 18px; padding-block: 26px; }
  .bb-hero h1 { font-size: clamp(37px, 11vw, 49px); }
  .bb-hero-description { margin: 13px 0 18px; font-size: 16px; }
  .bb-hero-visual { height: 200px; }
  .bb-home-section { padding-block: 23px 27px; }
  .bb-section-heading { gap: 10px; font-size: 24px; margin-bottom: 16px; }
  .bb-section-heading::before, .bb-section-heading::after { max-width: 60px; }
  .bb-category-grid { gap: 10px; }
  .bb-category-card { aspect-ratio: 1 / 1; min-height: 135px; }
  .bb-category-card-overlay { padding: 8px 5px; }
  .bb-category-card-overlay strong { font-size: 14px; }
  .bb-category-card-overlay span { font-size: 10px; }
  .bb-category-card-overlay em { font-size: 11px; }
  .bb-featured-section .productListing, .bb-featured-section .centerBoxWrapperContents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-benefits-grid { gap: 14px 8px; }
  .bb-benefit { justify-content: flex-start; gap: 8px; }
  .bb-benefit-icon { font-size: 25px; }
  .bb-benefit strong { font-size: 12px; }
  .bb-benefit div span { font-size: 11px; }
  .bb-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .bb-footer-brand { grid-column: 1 / -1; }
  .bb-footer-logo { max-width: 200px; }
  .bb-footer-links h2, .bb-footer-connect h2 { font-size: 15px; }
  .bb-footer-links li, .bb-footer-connect p { font-size: 12px; }
  .bb-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bb-floating-whatsapp { right: 10px; bottom: 10px; padding: 9px 12px; }
}
/* Preview-only product cards; real Zen Cart centerboxes will use their standard markup. */
.bb-featured-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.bb-preview-product { position: relative; display: flex; flex-direction: column; align-items: center; padding: 10px 12px 14px; border: 1px solid var(--bb-border); border-radius: 13px; text-align: center; box-shadow: 0 2px 9px rgba(0,0,0,.04); }
.bb-preview-product img { width: 100%; height: 155px; object-fit: contain; }
.bb-preview-product small { color: var(--bb-green); margin-top: 8px; }
.bb-preview-product strong { margin: 4px 0; font-size: 16px; }
.bb-preview-product b { margin-bottom: 12px; font-size: 14px; }
.bb-preview-product button { border: 0; border-radius: 10px; background: var(--bb-yellow); padding: 11px 16px; width: 90%; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.bb-product-tag { position: absolute; top: 12px; left: 12px; padding: 3px 10px; border-radius: 20px; color: white; background: var(--bb-green); font-size: 12px; font-weight: 800; }
@media(max-width:860px) { .bb-featured-cards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media(max-width:600px) { .bb-preview-product img { height: 130px; } .bb-preview-product strong { font-size: 14px; } .bb-preview-product b { font-size: 12px; } }

/* Phase 2.1 repair: target the actual Zen Cart 2.1.0 markup/classes. */
/* Homepage centerboxes */
.bb-featured-section .bb-columnar-display,
.bb-featured-section .bb-columnar-content { width: 100%; max-width: 100%; }
.bb-featured-section .bb-columnar-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 0; }
.bb-featured-section .centerBoxContentsNew,
.bb-featured-section .centerBoxContentsFeatured {
  width: auto !important; min-width: 0; max-width: 100%; height: auto;
  border: 1px solid var(--bb-border); border-radius: 13px; padding: 14px;
  background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.055);
  overflow: hidden; text-align: center;
}
.bb-featured-section .centerBoxContentsFeatured { max-width: 360px; justify-self: center; }
.bb-featured-section .centerBoxContentsNew img,
.bb-featured-section .centerBoxContentsFeatured img { display: block; width: 100%; max-height: 220px; margin: 0 auto 12px; object-fit: contain; }
.bb-featured-section .centerBoxContentsNew a,
.bb-featured-section .centerBoxContentsFeatured a { text-decoration: none; }
.bb-featured-section .centerBoxContentsNew .productName,
.bb-featured-section .centerBoxContentsFeatured .productName { display: block; font-weight: 700; }
.bb-featured-section .centerBoxContentsNew .productPrice,
.bb-featured-section .centerBoxContentsFeatured .productPrice { font-weight: 800; }
.bb-featured-section .centerBoxContentsNew input,
.bb-featured-section .centerBoxContentsFeatured input,
.bb-featured-section .centerBoxContentsNew button,
.bb-featured-section .centerBoxContentsFeatured button { max-width: 100%; }

/* Category page: each odd/even product row is one card; its three data cells
   (image, description/name, price/cart) are columns within that card. */
#productListHeading { text-align: center; margin: 0 0 20px; }
#productListing, #productListing .prod-list-wrap,
#productListing .bb-columnar-display,
#productListing .bb-columnar-content { width: 100%; max-width: 100%; }
#productListing .bb-columnar-content { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
#productListing .productListing-odd,
#productListing .productListing-even {
  display: grid; grid-template-columns: minmax(110px, .85fr) minmax(0, 1.3fr) minmax(110px, .8fr);
  align-items: start; gap: 12px; width: auto !important; min-width: 0;
  margin: 0; padding: 12px; border: 1px solid var(--bb-border);
  border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.055);
  overflow: hidden;
}
#productListing .productListing-data { width: auto !important; min-width: 0; float: none; margin: 0; padding: 0; }
#productListing .productListing-data img { display: block; width: 100%; max-height: 175px; margin-inline: auto; object-fit: contain; }
#productListing .productListing-data:nth-child(2) { text-align: left; }
#productListing .productListing-data:nth-child(2) a { text-decoration: none; }
#productListing .productListing-data:nth-child(2) .productName { font-weight: 800; }
#productListing .productListing-data:nth-child(3) { text-align: center; }
#productListing .productListing-data:nth-child(3) .productPrice { font-weight: 800; }
#productListing .productListing-data:nth-child(3) input,
#productListing .productListing-data:nth-child(3) button,
#productListing .productListing-data:nth-child(3) select { max-width: 100%; }
#productListing br { display: none; }

/* Ensure the empty left/right layout cells do not steal horizontal space. */
#contentMainWrapper { table-layout: fixed; }
#contentMainWrapper > tbody > tr > td#navColumnOne,
#contentMainWrapper > tbody > tr > td#navColumnTwo { display: none !important; width: 0 !important; }
#contentMainWrapper > tbody > tr > td:not(#navColumnOne):not(#navColumnTwo) { width: 100% !important; }

@media (max-width: 1080px) {
  #productListing .bb-columnar-content { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bb-featured-section .bb-columnar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #productListing .bb-columnar-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #productListing .productListing-odd,
  #productListing .productListing-even { grid-template-columns: minmax(0, 1fr); }
  #productListing .productListing-data:nth-child(2),
  #productListing .productListing-data:nth-child(3) { text-align: center; }
  #productListing .productListing-data img { max-height: 190px; }
}
@media (max-width: 600px) {
  .bb-featured-section .bb-columnar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bb-featured-section .centerBoxContentsNew,
  .bb-featured-section .centerBoxContentsFeatured { padding: 10px; }
  .bb-featured-section .centerBoxContentsNew img,
  .bb-featured-section .centerBoxContentsFeatured img { max-height: 150px; }
  #productListing .bb-columnar-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #productListing .productListing-odd,
  #productListing .productListing-even { padding: 9px; gap: 8px; }
  #productListing .productListing-data img { max-height: 145px; }
  #productListing .productListing-data:nth-child(2) { font-size: 13px; }
  #productListing .productListing-data:nth-child(3) { font-size: 13px; }
}

/* Phase 2.1 markup-specific repair: homepage centerboxes and legacy category table */
/* Homepage New Products: actual Zen Cart uses centerBoxContentsNew, grouped by wrapper divs. */
#whatsNew { width:100%; box-sizing:border-box; margin:20px 0; }
#whatsNew .centerBoxHeading { text-align:center !important; }
#whatsNew .centerBoxContentsNew {
  display:inline-flex !important; vertical-align:top; flex-direction:column; align-items:center;
  box-sizing:border-box; width:31.5% !important; max-width:100%; min-width:0;
  float:none !important; margin:0 0.7% 16px !important; padding:14px 12px;
  border:1px solid var(--bb-border); border-radius:14px; background:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.045); text-align:center;
}
#whatsNew .centerBoxContentsNew img { display:block; width:auto !important; max-width:100%; max-height:190px; object-fit:contain; margin:0 auto 10px; }
#whatsNew .centerBoxContentsNew a { color:var(--bb-charcoal); font-weight:700; text-decoration:none; }
#whatsNew .centerBoxContentsNew .productBasePrice { display:block; margin-top:8px; color:var(--bb-green-dark); font-weight:800; }
#whatsNew br.clearBoth { display:none !important; }

/* Featured product is a single card in the actual centerBoxContentsFeatured class. */
#featuredProducts { width:100%; margin:20px 0; }
#featuredProducts .centerBoxHeading { text-align:center !important; }
#featuredProducts .centerBoxContentsFeatured {
  display:flex !important; flex-direction:column; align-items:center; justify-content:center;
  box-sizing:border-box; width:auto !important; max-width:360px; min-width:0;
  float:none !important; margin:0 auto 18px !important; padding:18px;
  border:1px solid var(--bb-border); border-radius:14px; background:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.05); text-align:center;
}
#featuredProducts .centerBoxContentsFeatured img { display:block; width:auto !important; max-width:100%; max-height:240px; object-fit:contain; margin:0 auto 12px; }
#featuredProducts .centerBoxContentsFeatured a { color:var(--bb-charcoal); font-weight:700; text-decoration:none; }
#featuredProducts .centerBoxContentsFeatured .productBasePrice { display:block; margin-top:8px; color:var(--bb-green-dark); font-weight:800; }
#featuredProducts br.clearBoth { display:none !important; }

/* Category products: actual output is #cat2Table with one product per tr and 3 td cells. */
#indexProductList { width:100%; max-width:var(--bb-container); box-sizing:border-box; margin-inline:auto; }
#productListHeading { display:block; width:100%; text-align:center !important; margin:0 auto 18px; }
#categoryImgListing { text-align:center !important; margin:0 auto 18px; }
#categoryImgListing img { display:inline-block; max-width:100%; max-height:240px; object-fit:contain; }
#productListing { width:100%; box-sizing:border-box; }
#cat2Table { display:block; width:100%; border:0; border-collapse:separate; border-spacing:0; }
#cat2Table tbody { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; width:100%; }
#cat2Table tr.productListing-odd, #cat2Table tr.productListing-even {
  display:flex !important; flex-direction:column; align-items:stretch; box-sizing:border-box;
  min-width:0; width:100%; margin:0; padding:12px;
  border:1px solid var(--bb-border); border-radius:14px; background:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.045); overflow:hidden;
}
#cat2Table td.productListing-data { display:block; width:100% !important; box-sizing:border-box; border:0; padding:0 0 8px; text-align:center !important; }
#cat2Table td.productListing-data:first-child { order:0; }
#cat2Table td.productListing-data:nth-child(2) { order:1; }
#cat2Table td.productListing-data:nth-child(3) { order:2; padding-bottom:0; }
#cat2Table .product_listing_image_link { display:flex; align-items:center; justify-content:center; width:100%; min-height:170px; margin:0 auto 8px; }
#cat2Table img.listingProductImage { display:block; width:auto !important; max-width:100%; max-height:190px; object-fit:contain; margin:0 auto; }
#cat2Table h3.itemTitle { margin:6px 0; font-size:16px; line-height:1.4; text-align:center; }
#cat2Table h3.itemTitle a { color:var(--bb-charcoal); text-decoration:none; }
#cat2Table .listingDescription { color:var(--bb-muted); font-size:13px; line-height:1.5; text-align:center; }
#cat2Table .productBasePrice { display:block; margin:7px 0; color:var(--bb-green-dark); font-size:17px; font-weight:800; text-align:center; }
#cat2Table input[type="text"] { max-width:100%; text-align:center; }
#cat2Table .moreinfoLink, #cat2Table .cssButton, #cat2Table .button { display:inline-block; margin:7px auto; }
#cat2Table br { display:none; }
#cat2Table .qmin { display:block; margin-top:5px; color:var(--bb-muted); font-size:12px; }
#cat2Table .productListing-data:last-child { text-align:center !important; }

/* Empty side columns are not needed for this template; make the central cell fill the table. */
#contentMainWrapper { width:100% !important; table-layout:fixed; }
#contentMainWrapper #navColumnOne, #contentMainWrapper #navColumnTwo { display:none !important; width:0 !important; }
#contentMainWrapper tr > td:not(#navColumnOne):not(#navColumnTwo) { width:100% !important; }

@media(max-width:900px) {
  #cat2Table tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  #whatsNew .centerBoxContentsNew { width:48% !important; margin-inline:0.7% !important; }
}
@media(max-width:600px) {
  #cat2Table tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #cat2Table tr.productListing-odd, #cat2Table tr.productListing-even { padding:9px; border-radius:10px; }
  #cat2Table .product_listing_image_link { min-height:130px; }
  #cat2Table img.listingProductImage { max-height:145px; }
  #cat2Table h3.itemTitle { font-size:14px; }
  #cat2Table .productBasePrice { font-size:15px; }
  #whatsNew .centerBoxContentsNew { width:48% !important; padding:9px; margin:0 0.7% 10px !important; }
  #whatsNew .centerBoxContentsNew img { max-height:130px; }
  #featuredProducts .centerBoxContentsFeatured { max-width:100%; padding:12px; }
}


/* Phase 2.1.2 visual corrections based on the live rendered HTML. */
/* Remove the stock greeting and default Zen Cart Define Main Page content from the homepage. */
#bbHomepage .bb-home-greeting,
#bbHomepage .bb-home-defined-content { display:none !important; }

/* Make the New Products cards match the featured card's compact centered footprint. */
#whatsNew { text-align:center !important; }
#whatsNew > div,
#whatsNew > div > div,
#whatsNew > div > div > div { text-align:center !important; }
#whatsNew .centerBoxContentsNew {
  display:inline-flex !important; vertical-align:top; flex-direction:column; align-items:center;
  width:360px !important; max-width:calc(100% - 20px) !important; min-width:0;
  float:none !important; margin:0 8px 16px !important; padding:18px !important;
  box-sizing:border-box; text-align:center;
}
#whatsNew .centerBoxContentsNew img { max-height:220px; }
#whatsNew br.clearBoth { display:none !important; }

/* Center Featured Products reliably despite legacy wrapper/float styles. */
#featuredProducts { text-align:center !important; }
#featuredProducts > div,
#featuredProducts > div > div,
#featuredProducts > div > div > div { text-align:center !important; }
#featuredProducts .centerBoxContentsFeatured {
  display:flex !important; float:none !important; position:relative;
  width:360px !important; max-width:calc(100% - 20px) !important;
  margin:0 auto 18px !important; left:auto !important; right:auto !important;
  box-sizing:border-box; text-align:center;
}
#featuredProducts br.clearBoth { display:none !important; }

/* Category table IDs vary with category number (e.g. cat4Table), so match them all. */
#indexProductList table[id^="cat"][id$="Table"] { display:block !important; width:100% !important; }
#indexProductList table[id^="cat"][id$="Table"] > tbody {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px;
  width:100%; box-sizing:border-box;
}
#indexProductList table[id^="cat"][id$="Table"] tr.productListing-odd,
#indexProductList table[id^="cat"][id$="Table"] tr.productListing-even {
  display:flex !important; float:none !important; flex-direction:column !important;
  width:100% !important; min-width:0; margin:0 !important; box-sizing:border-box;
}
#indexProductList table[id^="cat"][id$="Table"] td.productListing-data {
  display:block !important; width:100% !important; float:none !important;
  box-sizing:border-box; text-align:center !important;
}
@media(max-width:900px) {
  #whatsNew .centerBoxContentsNew,
  #featuredProducts .centerBoxContentsFeatured { width:360px !important; max-width:calc(100% - 20px) !important; }
  #indexProductList table[id^="cat"][id$="Table"] > tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
@media(max-width:600px) {
  #whatsNew .centerBoxContentsNew,
  #featuredProducts .centerBoxContentsFeatured { width:100% !important; max-width:100% !important; margin-inline:0 !important; padding:12px !important; }
  #indexProductList table[id^="cat"][id$="Table"] > tbody { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
}

/* ==========================================================================\n   Phase 3.1 — Individual product page\n   Based on actual Zen Cart product_info HTML snapshot. CSS-only restructuring.\n   ========================================================================== */
body#productinfoBody #productGeneral { max-width:1180px; margin-inline:auto; }
body#productinfoBody #productGeneral > form#addToCartForm {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-areas:
    "gallery title"
    "gallery price"
    "gallery cart"
    "gallery details"
    "gallery questions"
    "description description"
    "extras extras";
  gap:22px 30px;
  align-items:start;
  width:100%;
  box-sizing:border-box;
}
body#productinfoBody #categoryIcon,
body#productinfoBody .navNextPrevWrapper { display:none !important; }
body#productinfoBody #productMainImage {
  grid-area:gallery; display:flex !important; align-items:center; justify-content:center;
  min-height:380px; margin:0 !important; padding:24px !important;
  background:#fff; border:1px solid #e8e8e4; border-radius:18px;
  box-sizing:border-box; overflow:hidden;
}
body#productinfoBody #productMainImage > a { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; }
body#productinfoBody #productMainImage img { width:auto !important; height:auto !important; max-width:100% !important; max-height:460px !important; object-fit:contain; }
body#productinfoBody #productName { grid-area:title; }
body#productinfoBody #productPrices { grid-area:price; }
body#productinfoBody #cartAdd { grid-area:cart; }
body#productinfoBody #productDetailsList { grid-area:details; }
body#productinfoBody #productQuestions { grid-area:questions; }
body#productinfoBody #productName { margin:0 0 8px !important; padding:0 !important; font-size:clamp(25px,3vw,36px); line-height:1.2; text-align:left; }
body#productinfoBody #productPrices { margin:0 0 16px !important; padding:0 !important; text-align:left; font-size:clamp(23px,2.5vw,30px); color:#526b38; }
body#productinfoBody #productPrices .productBasePrice { font-weight:800; }
body#productinfoBody #cartAdd { margin:14px 0 0 !important; padding:16px !important; background:#f7f7f3; border:1px solid #e5e5df; border-radius:14px; text-align:left; }
body#productinfoBody #cartAdd input[name="cart_quantity"] { width:76px !important; max-width:100%; min-height:42px; padding:8px; border:1px solid #d3d3cd; border-radius:8px; font-size:16px; box-sizing:border-box; }
body#productinfoBody #cartAdd input[type="submit"] { display:block; width:100%; min-height:48px; margin-top:12px; border:0 !important; border-radius:9px; background:#f2c500 !important; color:#292929 !important; font-size:16px; font-weight:800; cursor:pointer; }
body#productinfoBody #cartAdd input[type="submit"]:hover { filter:brightness(.96); }
body#productinfoBody #productDetailsList { margin:14px 0 0 !important; padding:12px 16px !important; list-style:none; background:#fff; border:1px solid #e6e6e0; border-radius:12px; }
body#productinfoBody #productDetailsList li { padding:5px 0; border-bottom:1px solid #f0f0ec; }
body#productinfoBody #productDetailsList li:last-child { border-bottom:0; }
body#productinfoBody #productQuestions { margin:12px 0 0 !important; text-align:left; }
body#productinfoBody #productQuestions a { color:#435d2b; font-weight:700; }
body#productinfoBody #productDescription { grid-area:description; width:100%; margin:0 !important; padding:24px !important; background:#fff; border:1px solid #e8e8e4; border-radius:16px; box-sizing:border-box; line-height:1.65; overflow-wrap:anywhere; }
body#productinfoBody #productDescription > p:first-child { margin-top:0; }
body#productinfoBody #productDescription h2,
body#productinfoBody #productDescription h3,
body#productinfoBody #productDescription strong { color:#343a30; }
body#productinfoBody #productDescription table { width:100% !important; max-width:100%; border-collapse:collapse; }
body#productinfoBody #productDescription figure.table { max-width:100%; overflow-x:auto; }
body#productinfoBody #productDescription td,
body#productinfoBody #productDescription th { padding:9px; border:1px solid #deded8; }
body#productinfoBody #productReviewLink,
body#productinfoBody #productDateAdded,
body#productinfoBody #productURL,
body#productinfoBody #productAdditionalImages,
body#productinfoBody #alsoPurchased { grid-area:extras; }
body#productinfoBody #productReviewLink { margin:0 !important; padding:12px 0; text-align:left; }
body#productinfoBody #productDateAdded { text-align:left !important; color:#777; font-size:13px; }
body#productinfoBody #imageModalPrimary .imgmodal-content { max-width:94vw; max-height:94vh; }
body#productinfoBody #imageModalPrimary .imgmodal-content img { max-width:90vw; max-height:85vh; object-fit:contain; }
@media(max-width:800px) {
  body#productinfoBody #productGeneral > form#addToCartForm { grid-template-columns:minmax(0,1fr); grid-template-areas:"gallery" "summary" "description" "details" "extras"; gap:16px; }
  body#productinfoBody #productMainImage { min-height:280px; padding:16px !important; }
  body#productinfoBody #productMainImage img { max-height:340px !important; }
  body#productinfoBody #productDescription { padding:17px !important; }
  body#productinfoBody #productDescription figure.table { overflow-x:auto; }
  body#productinfoBody #productDescription table { min-width:480px; }
}
@media(max-width:480px) {
  body#productinfoBody #productMainImage { min-height:240px; }
  body#productinfoBody #productMainImage img { max-height:280px !important; }
  body#productinfoBody #productName { font-size:25px; }
  body#productinfoBody #productDescription { font-size:15px; }
}

/* Phase 3.1 verification fixes — based on user testing of Nutrilite Magnesium and Coco */
body#productinfoBody, body#productinfoBody #mainWrapper, body#productinfoBody #contentMainWrapper, body#productinfoBody #productGeneral, body#productinfoBody #addToCartForm { max-width:100%; min-width:0; box-sizing:border-box; }
body#productinfoBody { overflow-x:hidden; }
body#productinfoBody #productGeneral > form#addToCartForm { grid-template-areas: "gallery title" "gallery price" "gallery cart" "gallery details" "gallery questions" "description description" "review review" "date date" "also also"; }
body#productinfoBody #imageModalPrimary { display:none !important; position:fixed !important; inset:0 !important; z-index:99999 !important; align-items:center !important; justify-content:center !important; padding:2vh 2vw !important; background:rgba(0,0,0,.82) !important; box-sizing:border-box !important; }
body#productinfoBody #imageModalPrimary.bb-modal-open { display:flex !important; }
body#productinfoBody #imageModalPrimary .imgmodal-content { position:relative !important; width:auto !important; max-width:96vw !important; max-height:96vh !important; padding:14px !important; background:#fff !important; border-radius:12px !important; overflow:auto !important; box-sizing:border-box !important; }
body#productinfoBody #imageModalPrimary .imgmodal-content > span { display:block !important; cursor:default !important; }
body#productinfoBody #imageModalPrimary .imgmodal-content img { display:block !important; width:auto !important; height:auto !important; max-width:90vw !important; max-height:82vh !important; margin:auto !important; object-fit:contain !important; }
body#productinfoBody #imageModalPrimary .imgmodal-close { position:absolute !important; top:8px !important; right:8px !important; z-index:2; cursor:pointer; font-size:24px; line-height:1; }
body#productinfoBody #productMainImage, body#productinfoBody #productMainImage > a { min-width:0; }
body#productinfoBody #productDescription, body#productinfoBody #productDescription * { max-width:100%; box-sizing:border-box; }
body#productinfoBody #productDescription figure.table { width:100%; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; }
body#productinfoBody #productDescription figure.table table { width:100% !important; min-width:0 !important; table-layout:fixed !important; }
body#productinfoBody #productDescription figure.table table td:first-child, body#productinfoBody #productDescription figure.table table th:first-child { width:60% !important; }
body#productinfoBody #productDescription figure.table table td:nth-child(2), body#productinfoBody #productDescription figure.table table th:nth-child(2) { width:20% !important; }
body#productinfoBody #productDescription figure.table table td:nth-child(3), body#productinfoBody #productDescription figure.table table th:nth-child(3) { width:20% !important; }
body#productinfoBody #productDescription figure.table td, body#productinfoBody #productDescription figure.table th { overflow-wrap:anywhere; vertical-align:top; }
body#productinfoBody #productReviewLink { grid-area:review !important; position:relative !important; z-index:1; clear:both; }
body#productinfoBody #productReviewLink .cssButton { display:inline-block; position:relative; }
body#productinfoBody #productDateAdded { grid-area:date !important; }
body#productinfoBody #alsoPurchased { grid-area:also !important; min-width:0; }
body#productinfoBody #productQuestions { grid-area:questions !important; }
body#productinfoBody #productGeneral form#addToCartForm > br.clearBoth { display:none !important; }
body#productinfoBody #productGeneral form#addToCartForm > #productQuestions + br { display:none !important; }
body#productinfoBody #alsoPurchased, body#productinfoBody #alsoPurchased > div, body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { max-width:100%; min-width:0; box-sizing:border-box; }
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { display:inline-block; vertical-align:top; width:32% !important; margin:0 .5% 12px; text-align:center; }
body#productinfoBody #alsoPurchased img { max-width:100%; height:auto; object-fit:contain; }
@media(max-width:800px) {
 body#productinfoBody #productGeneral > form#addToCartForm { grid-template-columns:minmax(0,1fr) !important; grid-template-areas: "gallery" "title" "price" "cart" "details" "questions" "description" "review" "date" "also" !important; }
 body#productinfoBody #productDescription figure.table table { min-width:480px !important; }
 body#productinfoBody #productReviewLink { padding:8px 0 !important; }
 body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { width:48% !important; }
}
@media(max-width:480px) {
 body#productinfoBody #productDescription figure.table table { min-width:460px !important; }
 body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { width:48% !important; }
}

/* ==========================================================================\n   Phase 3.2 — Product information presentation\n   Presentation-only rules; catalog descriptions/content remain unchanged.\n   ========================================================================== */
body#productinfoBody #productDescription {
  color:#41443d;
  font-size:16px;
  line-height:1.72;
}
body#productinfoBody #productDescription > *:first-child { margin-top:0 !important; }
body#productinfoBody #productDescription > *:last-child { margin-bottom:0 !important; }
body#productinfoBody #productDescription p { margin:0 0 1em; }
body#productinfoBody #productDescription h2,
body#productinfoBody #productDescription h3,
body#productinfoBody #productDescription h4 {
  margin:1.45em 0 .55em;
  color:#30352c;
  line-height:1.3;
  font-weight:750;
}
body#productinfoBody #productDescription h2 {
  padding-bottom:.45em;
  border-bottom:2px solid #efc900;
  font-size:clamp(21px,2.4vw,27px);
}
body#productinfoBody #productDescription h3 { font-size:clamp(18px,2vw,22px); }
body#productinfoBody #productDescription h4 { font-size:17px; }
body#productinfoBody #productDescription ul,
body#productinfoBody #productDescription ol { margin:.35em 0 1.15em; padding-left:1.55em; }
body#productinfoBody #productDescription li { margin:.35em 0; padding-left:.12em; }
body#productinfoBody #productDescription blockquote {
  margin:1em 0;
  padding:.75em 1em;
  border-left:4px solid #efc900;
  background:#f8f8f4;
  color:#50544b;
}
body#productinfoBody #productDescription hr { margin:1.5em 0; border:0; border-top:1px solid #e5e5df; }
body#productinfoBody #productDescription a { color:#49652f; text-decoration:underline; text-underline-offset:2px; }
body#productinfoBody #productDescription strong { color:#30352c; font-weight:750; }
body#productinfoBody #productDescription figure { margin:1em 0; }
body#productinfoBody #productDescription figure.table { margin:1.15em 0; border:1px solid #deded8; border-radius:10px; }
body#productinfoBody #productDescription figure.table table { border-collapse:collapse; background:#fff; }
body#productinfoBody #productDescription figure.table th {
  background:#f3f3ed;
  color:#30352c;
  font-weight:750;
  text-align:left;
}
body#productinfoBody #productDescription figure.table td,
body#productinfoBody #productDescription figure.table th { padding:10px 12px; border:1px solid #e1e1db; }
body#productinfoBody #productDescription figure.table tbody tr:nth-child(even) td { background:#fafaf7; }
body#productinfoBody #productDescription figure.table caption { padding:.65em; color:#62665d; font-weight:650; text-align:left; }
body#productinfoBody #productDescription img { height:auto; }
@media(max-width:600px) {
  body#productinfoBody #productDescription { font-size:15px; line-height:1.65; }
  body#productinfoBody #productDescription h2 { font-size:21px; }
  body#productinfoBody #productDescription h3 { font-size:19px; }
  body#productinfoBody #productDescription figure.table td,
  body#productinfoBody #productDescription figure.table th { padding:8px; }
  body#productinfoBody #productDescription ul,
  body#productinfoBody #productDescription ol { padding-left:1.35em; }
}

/* ==========================================================
   Phase 3.3 — Purchasing controls refinement (CSS only)
   Preserves Zen Cart form names, values, and submission logic.
   ========================================================== */
body#productinfoBody #cartAdd {
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:12px !important;
  padding:18px !important;
  margin:12px 0 16px !important;
  border:1px solid #e3e5df !important;
  border-radius:14px !important;
  background:#fbfcf9 !important;
  box-sizing:border-box !important;
}
body#productinfoBody #cartAdd br { display:none !important; }
body#productinfoBody #cartAdd input[name="cart_quantity"] {
  width:84px !important;
  min-width:70px !important;
  min-height:46px !important;
  padding:9px 12px !important;
  border:1px solid #cbd1c8 !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#222 !important;
  font-size:16px !important;
  text-align:center !important;
  box-sizing:border-box !important;
}
body#productinfoBody #cartAdd input[name="cart_quantity"]:focus,
body#productinfoBody #addToCartForm select:focus,
body#productinfoBody #addToCartForm input:not([type="hidden"]):focus {
  outline:3px solid rgba(232,190,34,.35) !important;
  outline-offset:1px !important;
  border-color:#c99d00 !important;
}
body#productinfoBody #cartAdd input[type="submit"],
body#productinfoBody #cartAdd button,
body#productinfoBody #cartAdd .cssButton {
  min-height:48px !important;
  padding:12px 22px !important;
  border:1px solid #d5aa00 !important;
  border-radius:10px !important;
  background:#f4c928 !important;
  color:#222 !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  text-align:center !important;
  text-decoration:none !important;
  cursor:pointer !important;
  box-shadow:0 2px 0 rgba(0,0,0,.08) !important;
  transition:background-color .15s ease, transform .15s ease, box-shadow .15s ease !important;
}
body#productinfoBody #cartAdd input[type="submit"]:hover,
body#productinfoBody #cartAdd button:hover,
body#productinfoBody #cartAdd .cssButton:hover {
  background:#e9b900 !important;
  box-shadow:0 3px 7px rgba(0,0,0,.12) !important;
}
body#productinfoBody #cartAdd input[type="submit"]:active,
body#productinfoBody #cartAdd button:active,
body#productinfoBody #cartAdd .cssButton:active { transform:translateY(1px) !important; }
body#productinfoBody #productDetailsList {
  display:flex !important;
  flex-wrap:wrap !important;
  gap:8px 18px !important;
  margin:10px 0 16px !important;
  padding:12px 16px !important;
  border:1px solid #e5e8e2 !important;
  border-radius:10px !important;
  background:#f7f8f5 !important;
  box-sizing:border-box !important;
  list-style:none !important;
}
body#productinfoBody #productDetailsList li {
  margin:0 !important;
  padding:0 !important;
  color:#4d554e !important;
  font-size:14px !important;
  line-height:1.5 !important;
}
body#productinfoBody #productDetailsList li::before { content:none !important; }
body#productinfoBody #addToCartForm select {
  max-width:100% !important;
  min-height:42px !important;
  padding:8px 10px !important;
  border:1px solid #cbd1c8 !important;
  border-radius:8px !important;
  background-color:#fff !important;
  box-sizing:border-box !important;
  font-size:15px !important;
}
body#productinfoBody #addToCartForm label,
body#productinfoBody #addToCartForm .attribsOptionsText,
body#productinfoBody #addToCartForm .attributes {
  line-height:1.5 !important;
}
@media (max-width:600px) {
  body#productinfoBody #cartAdd { gap:10px !important; padding:14px !important; }
  body#productinfoBody #cartAdd input[name="cart_quantity"] { min-height:46px !important; }
  body#productinfoBody #cartAdd input[type="submit"],
  body#productinfoBody #cartAdd button,
  body#productinfoBody #cartAdd .cssButton { flex:1 1 180px !important; width:100% !important; }
  body#productinfoBody #productDetailsList { display:block !important; }
  body#productinfoBody #productDetailsList li + li { margin-top:5px !important; }
}

/* Phase 3.3.1 — quantity stepper and Also Purchased product cards */
body#productinfoBody #cartAdd .bb-quantity-control {
  display:inline-flex !important; align-items:stretch !important; gap:5px !important;
  flex:0 0 auto !important;
}
body#productinfoBody #cartAdd .bb-quantity-button {
  width:46px !important; min-width:46px !important; min-height:46px !important;
  padding:0 !important; border:1px solid #cbd1c8 !important; border-radius:9px !important;
  background:#fff !important; color:#252a25 !important; font-size:24px !important;
  font-weight:700 !important; line-height:1 !important; cursor:pointer !important;
  box-shadow:none !important; transition:background .15s ease, border-color .15s ease !important;
}
body#productinfoBody #cartAdd .bb-quantity-button:hover { background:#f2f5ef !important; border-color:#aab5a7 !important; }
body#productinfoBody #cartAdd .bb-quantity-button:focus-visible { outline:3px solid rgba(232,190,34,.4) !important; outline-offset:2px !important; }
body#productinfoBody #cartAdd .bb-quantity-control input[name="cart_quantity"] { width:72px !important; min-width:60px !important; flex:0 0 auto !important; }
body#productinfoBody #alsoPurchased { margin-top:24px !important; padding:18px !important; border:1px solid #e6e8e2 !important; border-radius:16px !important; background:#fff !important; }
body#productinfoBody #alsoPurchased .centerBoxHeading { margin:0 0 16px !important; padding:0 0 12px !important; border-bottom:1px solid #eceee9 !important; font-size:20px !important; line-height:1.35 !important; text-align:left !important; }
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch {
  display:inline-flex !important; flex-direction:column !important; align-items:center !important;
  vertical-align:top !important; width:31.5% !important; min-height:190px !important;
  margin:0 .5% 14px !important; padding:12px !important;
  border:1px solid #e7e9e3 !important; border-radius:12px !important;
  background:#fbfcfa !important; box-sizing:border-box !important;
  text-align:center !important; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease !important;
}
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch:hover {
  transform:translateY(-2px) !important; border-color:#d4d9cf !important;
  box-shadow:0 4px 12px rgba(0,0,0,.06) !important;
}
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch a:first-child {
  display:flex !important; align-items:center !important; justify-content:center !important;
  width:100% !important; min-height:105px !important; margin-bottom:8px !important;
}
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch img {
  max-width:100% !important; max-height:100px !important; width:auto !important; height:auto !important; object-fit:contain !important;
}
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch a:last-child {
  display:block !important; margin-top:auto !important; color:#30372f !important;
  font-weight:700 !important; line-height:1.4 !important; text-decoration:none !important;
}
body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch a:last-child:hover { color:#806600 !important; text-decoration:underline !important; }
@media(max-width:600px) {
  body#productinfoBody #cartAdd .bb-quantity-control { width:100% !important; justify-content:flex-start !important; }
  body#productinfoBody #alsoPurchased { padding:12px !important; }
  body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { width:47.5% !important; min-height:170px !important; margin:0 1% 12px !important; padding:9px !important; }
  body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch a:first-child { min-height:92px !important; }
}
@media(max-width:380px) {
  body#productinfoBody #alsoPurchased .centerBoxContentsAlsoPurch { width:98% !important; }
}

/* =========================================================
   Brawta Bites Modern — Completion layer (layout + store pages)
   ========================================================= */

/* Force modern single-column shell */
.bb-modern #mainWrapper { min-height: 100vh; display: flex; flex-direction: column; }
.bb-modern .bb-content-main { flex: 1 0 auto; padding: 0 0 40px; }
.bb-modern .bb-content-inner { padding-top: 8px; padding-bottom: 8px; }
.bb-modern #navColumnOne,
.bb-modern #navColumnTwo,
.bb-modern .columnLeft,
.bb-modern .columnRight,
.bb-modern #navColumnOneWrapper,
.bb-modern #navColumnTwoWrapper { display: none !important; width: 0 !important; max-width: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; }
.bb-modern #contentMainWrapper,
.bb-modern table#contentMainWrapper { display: block !important; width: 100% !important; max-width: 100% !important; border: 0 !important; }
.bb-modern #contentMainWrapper > tbody,
.bb-modern #contentMainWrapper > tbody > tr,
.bb-modern #contentMainWrapper > tbody > tr > td { display: block !important; width: 100% !important; max-width: 100% !important; border: 0 !important; padding: 0 !important; }
.bb-modern .bb-page-body { width: 100%; }

/* Breadcrumb */
.bb-breadcrumb,
#navBreadCrumb { max-width: var(--bb-container); margin: 10px auto 18px; padding-inline: 20px; color: var(--bb-muted); font-size: 13px; }
.bb-breadcrumb a,
#navBreadCrumb a { color: var(--bb-muted); text-decoration: none; }
.bb-breadcrumb a:hover,
#navBreadCrumb a:hover { color: var(--bb-green-dark); text-decoration: underline; }

/* Generic page headings */
.bb-page-body h1,
.bb-page-body .pageHeading,
#productName,
.centerBoxHeading { font-size: clamp(1.45rem, 2.2vw, 1.85rem); color: var(--bb-charcoal); font-weight: 800; margin: 0 0 16px; line-height: 1.25; }
.centerBoxHeading { text-align: center; margin-bottom: 20px; }
.centerBoxHeading span { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--bb-yellow); }

/* Buttons — shared */
.bb-page-body input[type="submit"],
.bb-page-body button[type="submit"],
.bb-page-body .buttonRow input,
.bb-page-body .buttonRow a,
.bb-page-body a.cssButton,
.bb-page-body .cssButton,
.bb-page-body .button_add_to_cart,
.bb-page-body .button_in_cart,
.bb-page-body .button_continue_shopping,
.bb-page-body .button_checkout,
.bb-page-body .button_update_cart,
.bb-page-body .button_login,
.bb-page-body .button_create_account,
.bb-page-body .button_submit,
.bb-page-body .button_search,
.bb-page-body .button_send,
.bb-page-body .button_continue {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 0; border-radius: 10px;
  background: var(--bb-charcoal); color: #fff !important; font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none !important; cursor: pointer; transition: background .15s ease, transform .12s ease;
}
.bb-page-body input[type="submit"]:hover,
.bb-page-body button[type="submit"]:hover,
.bb-page-body .cssButton:hover,
.bb-page-body a.cssButton:hover { background: #000; transform: translateY(-1px); }
.bb-page-body .button_checkout,
.bb-page-body input[name="checkout"],
.bb-page-body .buttonRow .button_checkout { background: var(--bb-green); }
.bb-page-body .button_checkout:hover { background: var(--bb-green-dark); }

/* Forms */
.bb-page-body input[type="text"],
.bb-page-body input[type="email"],
.bb-page-body input[type="password"],
.bb-page-body input[type="tel"],
.bb-page-body input[type="number"],
.bb-page-body input[type="search"],
.bb-page-body select,
.bb-page-body textarea {
  width: 100%; max-width: 420px; min-height: 42px; padding: 10px 12px;
  border: 1px solid #d9ddd6; border-radius: 9px; background: #fff;
  font: inherit; color: var(--bb-text); box-sizing: border-box;
}
.bb-page-body textarea { min-height: 110px; max-width: 560px; }
.bb-page-body label { display: inline-block; margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.bb-page-body .alert,
.bb-page-body .messageStackError,
.bb-page-body .messageStackWarning,
.bb-page-body .messageStackSuccess,
.bb-page-body .messageStackCaution {
  padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 14px;
}
.bb-page-body .messageStackError,
.bb-page-body .alert { background: #fdecea; color: #8a1f11; border: 1px solid #f5c2c0; }
.bb-page-body .messageStackSuccess { background: #eaf6ea; color: #1d5425; border: 1px solid #c8e6c9; }
.bb-page-body .messageStackCaution,
.bb-page-body .messageStackWarning { background: #fff8e1; color: #6d4c00; border: 1px solid #ffe082; }

/* -------- Product listing / category pages -------- */
#indexProductList,
.productListing,
#productListing { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
#indexProductList tbody,
.productListing tbody { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
#indexProductList tr.productListing-odd,
#indexProductList tr.productListing-even,
.productListing tr.productListing-odd,
.productListing tr.productListing-even {
  display: flex; flex-direction: column; align-items: stretch;
  margin: 0 !important; padding: 14px !important;
  border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important;
  background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
#indexProductList tr:hover,
.productListing tr:hover { transform: translateY(-2px); border-color: #d4d9cf !important; box-shadow: 0 6px 18px rgba(0,0,0,.07); }
#indexProductList td,
.productListing td { display: block; width: 100% !important; border: 0 !important; padding: 6px 0 !important; text-align: center; background: transparent !important; }
#indexProductList .list-image img,
.productListing .list-image img,
#indexProductList img,
.productListing img { max-width: 100%; max-height: 180px; width: auto; height: auto; object-fit: contain; }
#indexProductList .itemTitle a,
.productListing .itemTitle a,
#indexProductList a.itemTitle,
.productListing a { color: var(--bb-charcoal); font-weight: 700; text-decoration: none; }
#indexProductList a:hover,
.productListing a:hover { color: var(--bb-green-dark); text-decoration: underline; }
#indexProductList .list-price,
.productListing .list-price,
.productBasePrice,
.productSpecialPrice,
.productSalePrice { font-weight: 800; color: var(--bb-charcoal); font-size: 1.05rem; }
.list-price .productSpecialPrice { color: var(--bb-green-dark); }
#indexProductList .list-input,
.productListing .list-input { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 6px; }
.bb-list-add-label { display: block; font-size: 12px; color: var(--bb-muted); font-weight: 600; margin-bottom: 2px; }
.bb-list-quantity-control,
.bb-quantity-control { display: inline-flex; align-items: center; border: 1px solid #d9ddd6; border-radius: 9px; overflow: hidden; background: #fff; }
.bb-quantity-button { width: 36px; height: 36px; border: 0; background: #f4f5f2; color: #222; font-size: 18px; font-weight: 700; cursor: pointer; line-height: 1; }
.bb-quantity-button:hover { background: #e9ebe6; }
.bb-list-quantity-control input,
.bb-quantity-control input { width: 48px !important; min-height: 36px !important; border: 0 !important; text-align: center; font-weight: 700; padding: 0 !important; max-width: 48px !important; }

/* Category heading */
#bbCategoryHeading,
.categoryHeading,
#productListHeading { text-align: center; margin: 8px 0 22px; }

/* -------- Product info page -------- */
body#productinfoBody .bb-page-body,
#productGeneral { max-width: 1100px; margin-inline: auto; }
#productName { margin-bottom: 10px; }
#productPrices { margin: 0 0 14px; font-size: 1.35rem; font-weight: 800; color: var(--bb-charcoal); }
#productDescription { margin: 16px 0 22px; line-height: 1.65; color: #333; }
#productDescription p { margin: 0 0 12px; }
#productMainImage,
.centeredContent { text-align: center; }
#productMainImage img,
#productMainImage a img { max-width: min(100%, 420px); height: auto; border-radius: 12px; }
#cartAdd { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 18px 0 24px; padding: 16px; background: var(--bb-off-white); border: 1px solid var(--bb-border); border-radius: 12px; }
#cartAdd label { margin: 0; }
#cartAdd input[type="submit"],
#cartAdd .button_in_cart { min-width: 160px; background: var(--bb-green); }
#cartAdd .button_in_cart:hover { background: var(--bb-green-dark); }
#productAttributes,
.attribBlock { margin: 12px 0; }
#productAttributes table { width: 100%; max-width: 480px; }
#productAttributes td { padding: 6px 8px 6px 0; vertical-align: middle; }
#productDetailsList { list-style: none; padding: 0; margin: 16px 0; }
#productDetailsList li { padding: 6px 0; border-bottom: 1px solid #eee; font-size: 14px; }

/* -------- Shopping cart -------- */
body#shoppingcartBody #cartContentsDisplay,
#cartContentsDisplay { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
#cartContentsDisplay th,
#cartContentsDisplay td { padding: 12px 10px; border-bottom: 1px solid var(--bb-border); text-align: left; vertical-align: middle; }
#cartContentsDisplay th { background: var(--bb-off-white); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--bb-muted); }
#cartContentsDisplay img { max-width: 70px; height: auto; border-radius: 8px; }
#cartContentsDisplay .cartQuantity input { width: 56px; text-align: center; }
#cartSubTotal { text-align: right; font-size: 1.15rem; font-weight: 800; margin: 12px 0 20px; }
.cartTotalDisplay { font-weight: 800; }
#shoppingCartDefault .buttonRow,
body#shoppingcartBody .buttonRow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 12px; }

/* -------- Account / login / forms pages -------- */
body#loginBody .bb-page-body,
body#createaccountBody .bb-page-body,
body#accountBody .bb-page-body,
body#accounteditBody .bb-page-body,
body#addressbookBody .bb-page-body,
body#passwordforgottenBody .bb-page-body {
  max-width: 640px; margin-inline: auto;
}
.accountLinkList { list-style: none; padding: 0; margin: 0 0 20px; }
.accountLinkList li { margin: 0 0 8px; }
.accountLinkList a { display: block; padding: 12px 14px; border: 1px solid var(--bb-border); border-radius: 10px; text-decoration: none; color: var(--bb-charcoal); font-weight: 700; background: #fff; }
.accountLinkList a:hover { border-color: var(--bb-green); background: var(--bb-green-pale); }

/* -------- Checkout pages (lightweight polish) -------- */
body[id^="checkout"] .bb-page-body { max-width: 900px; margin-inline: auto; }
body[id^="checkout"] fieldset { border: 1px solid var(--bb-border); border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; background: #fff; }
body[id^="checkout"] legend { font-weight: 800; padding: 0 6px; color: var(--bb-charcoal); }
body[id^="checkout"] .buttonRow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 16px; }

/* -------- Center boxes (homepage modules fallback) -------- */
.centerBoxWrapper { margin: 0 0 28px; }
.centerBoxWrapperContents,
.centerBoxContents,
.centerBoxContentsNew,
.centerBoxContentsFeatured,
.centerBoxContentsSpecials {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px !important;
  float: none !important; width: 100% !important; max-width: 100% !important;
}
.centerBoxContentsNew,
.centerBoxContentsFeatured,
.centerBoxContentsSpecials,
.centerBoxContents {
  display: flex !important; flex-direction: column; align-items: center;
  padding: 14px !important; margin: 0 !important;
  border: 1px solid var(--bb-border) !important; border-radius: var(--bb-radius) !important;
  background: #fff !important; box-shadow: 0 2px 10px rgba(0,0,0,.04);
  text-align: center; box-sizing: border-box !important;
  width: auto !important; float: none !important;
}
.centerBoxContents img,
.centerBoxContentsNew img,
.centerBoxContentsFeatured img { max-height: 160px; width: auto; object-fit: contain; margin-bottom: 8px; }
.centerBoxContents a,
.centerBoxContentsNew a { text-decoration: none; color: var(--bb-charcoal); font-weight: 700; }
.clearBoth { clear: both; display: none; } /* grid replaces float clears */

/* Pagination */
.navSplitPagesLinks,
.navSplitPagesResult { text-align: center; margin: 18px 0; font-size: 14px; }
.navSplitPagesLinks a,
.navSplitPagesLinks strong { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; margin: 0 3px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--bb-border); text-decoration: none; color: var(--bb-charcoal); font-weight: 700; }
.navSplitPagesLinks strong { background: var(--bb-charcoal); color: #fff; border-color: var(--bb-charcoal); }
.navSplitPagesLinks a:hover { background: var(--bb-off-white); }

/* Utility */
.back { float: none !important; }
.forward { float: none !important; }
.bb-banner { margin: 12px 0; text-align: center; }

/* Responsive completion */
@media (max-width: 980px) {
  #indexProductList tbody,
  .productListing tbody,
  .centerBoxWrapperContents,
  .centerBoxContents,
  .centerBoxContentsNew,
  .centerBoxContentsFeatured,
  .centerBoxContentsSpecials { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  #indexProductList tbody,
  .productListing tbody { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .centerBoxWrapperContents,
  .centerBoxContentsNew,
  .centerBoxContentsFeatured { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  #cartContentsDisplay,
  #cartContentsDisplay thead,
  #cartContentsDisplay tbody,
  #cartContentsDisplay th,
  #cartContentsDisplay td,
  #cartContentsDisplay tr { display: block; width: 100%; }
  #cartContentsDisplay thead { display: none; }
  #cartContentsDisplay tr { border: 1px solid var(--bb-border); border-radius: 12px; margin-bottom: 12px; padding: 10px; }
  #cartContentsDisplay td { border: 0; padding: 6px 0; }
  #cartAdd { flex-direction: column; align-items: stretch; }
  #cartAdd .bb-quantity-control { width: 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  #indexProductList tbody,
  .productListing tbody,
  .centerBoxContentsNew,
  .centerBoxContentsFeatured { grid-template-columns: 1fr !important; }
}

/* =========================================================
   Targeted listing / filter / pagination / search fixes
   ========================================================= */

/* Search box — ensure fully interactive */
.bb-search-form,
.bb-search-form input,
.bb-search-form button {
  pointer-events: auto !important;
  opacity: 1 !important;
  position: relative;
  z-index: 5;
}
.bb-search-form input[type="search"] {
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}
.bb-search-form button[type="submit"] {
  cursor: pointer;
  pointer-events: auto !important;
}

/* Filter by — centre aligned */
#indexProductList form[name="filter"],
form[name="filter"] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  text-align: center;
  margin: 0 auto 18px;
  width: 100%;
  max-width: 100%;
}
form[name="filter"] .inputLabel,
form[name="filter"] label {
  margin: 0;
  font-weight: 700;
  color: var(--bb-charcoal);
}
form[name="filter"] select {
  max-width: 280px;
  min-height: 40px;
  margin: 0;
  display: inline-block;
}

/* Add Selected to Cart — blue + right aligned */
#indexProductList .buttonRow.forward,
#productListing .buttonRow.forward,
div.buttonRow.forward {
  float: none !important;
  display: flex !important;
  justify-content: flex-end !important;
  width: 100%;
  margin: 12px 0 16px;
  clear: both;
}
#indexProductList .buttonRow.forward input[type="image"],
#indexProductList .buttonRow.forward input[type="submit"],
#productListing .buttonRow.forward input[type="image"],
#productListing .buttonRow.forward input[type="submit"],
div.buttonRow.forward input[type="image"],
div.buttonRow.forward input[type="submit"],
#indexProductList input[name="submit1"],
#indexProductList #submit1,
#indexProductList #submit2 {
  background: #1a73e8 !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-weight: 700 !important;
  min-height: 44px;
  padding: 10px 18px !important;
  cursor: pointer;
  filter: none !important;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}
/* If the control is an image button, tint the container and keep it right-aligned */
#indexProductList .buttonRow.forward a,
#productListing .buttonRow.forward a {
  background: #1a73e8 !important;
  color: #fff !important;
  border-radius: 10px;
  padding: 10px 18px;
  text-decoration: none !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

/* Pagination — horizontal */
.navSplitPagesLinks,
#productsListingListingTopLinks,
#productsListingListingBottomLinks,
#productsListingTopNumber,
#productsListingBottomNumber {
  float: none !important;
  display: block;
  width: 100%;
  text-align: center;
  margin: 10px 0;
}
.navSplitPagesLinks {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.navSplitPagesLinks a,
.navSplitPagesLinks strong,
.navSplitPagesLinks span {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  margin: 0 !important;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--bb-border);
  text-decoration: none;
  color: var(--bb-charcoal);
  font-weight: 700;
  white-space: nowrap;
  float: none !important;
}
.navSplitPagesLinks strong {
  background: var(--bb-charcoal);
  color: #fff;
  border-color: var(--bb-charcoal);
}
.navSplitPagesLinks a:hover {
  background: var(--bb-off-white);
  border-color: #cfd4cb;
}
.navSplitPagesResult {
  float: none !important;
  text-align: center;
  width: 100%;
  margin: 6px 0 4px;
  color: var(--bb-muted);
  font-size: 13px;
}

/* Attributes stay above Ask a Question; keep product detail layout intact */
#productAttributes,
.attribBlock,
#productAttributes table {
  margin: 12px 0 18px;
  max-width: 100%;
}
#productQuestions {
  display: inline-block;
  margin: 8px 0 16px;
}
#productQuestions a {
  color: var(--bb-green-dark);
  font-weight: 700;
  text-decoration: none;
}
#productQuestions a:hover {
  text-decoration: underline;
}

/* =========================================================
   Pagination — force horizontal (UL/LI and inline links)
   ========================================================= */
.navSplitPagesLinks,
#productsListingListingTopLinks,
#productsListingListingBottomLinks,
.navSplitPagesLinks ul,
ul.pagination,
.pagination {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  list-style: none !important;
  margin: 12px auto !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
  text-align: center !important;
}
.navSplitPagesLinks li,
.navSplitPagesLinks > a,
.navSplitPagesLinks > strong,
.navSplitPagesLinks > span,
ul.pagination li,
.pagination li {
  display: inline-flex !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  vertical-align: middle;
}
.navSplitPagesLinks li a,
.navSplitPagesLinks a,
.navSplitPagesLinks strong,
.navSplitPagesLinks .current,
ul.pagination a,
ul.pagination .current,
.pagination a,
.pagination .current {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px !important;
  margin: 0 !important;
  border: 1px solid var(--bb-border);
  border-radius: 8px;
  background: #fff;
  color: var(--bb-charcoal);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}
.navSplitPagesLinks strong,
.navSplitPagesLinks .current,
ul.pagination .current,
.pagination .current,
.navSplitPagesLinks li.current,
.navSplitPagesLinks li.active {
  background: var(--bb-charcoal) !important;
  color: #fff !important;
  border-color: var(--bb-charcoal) !important;
}
.navSplitPagesResult,
#productsListingTopNumber,
#productsListingBottomNumber {
  display: block !important;
  float: none !important;
  width: 100% !important;
  text-align: center !important;
  margin: 8px 0 4px !important;
}

/* =========================================================
   Product attributes — clear layout above Add to Cart
   ========================================================= */
#productAttributes {
  clear: both;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--bb-border);
  border-radius: 12px;
  background: var(--bb-off-white);
  box-sizing: border-box;
}
#attribsOptionsText {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--bb-charcoal);
}
#productAttributes .wrapperAttribsOptions,
#productAttributes .attribBlock {
  display: block;
  width: 100%;
  margin: 0 0 8px;
}
#productAttributes .optionName,
#productAttributes h4.optionName {
  float: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
  font-size: 14px;
  font-weight: 800;
  color: var(--bb-charcoal);
}
#productAttributes .wrapperAttribsOptions > .back {
  float: none !important;
  display: block !important;
  width: 100% !important;
}
#productAttributes label.attribsRadioButton {
  display: inline-block;
  margin: 0 0 6px 6px;
  font-weight: 600;
  cursor: pointer;
}
#productAttributes input[type="radio"] {
  margin: 0 4px 0 0;
  vertical-align: middle;
}
#productAttributes br.clearBoth {
  display: none;
}
#cartAdd {
  clear: both;
}
#productQuestions {
  clear: both;
  display: block;
  margin: 14px 0 18px;
}

/* =========================================================
   Bundle products (#brawtaBundle) — aligned header + body columns
   ========================================================= */
body#productinfoBody #brawtaBundle,
#brawtaBundle {
  grid-column: 1 / -1;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 1.25em 0 1.5em;
  padding: 0;
  box-sizing: border-box;
}

#brawtaBundle .bbTitle {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bb-charcoal, #242424);
}

#brawtaBundle .bbIntro {
  margin: 0 0 14px;
  color: var(--bb-muted, #666);
  font-size: 14px;
  line-height: 1.5;
}

/* Scroll wrapper behaviour without breaking column alignment */
#brawtaBundle {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#brawtaBundle table.bbTable,
#brawtaBundle .bbTable {
  display: table !important;
  width: 100% !important;
  max-width: 100%;
  /* fixed layout keeps thead and tbody columns locked together */
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff;
  border: 1px solid var(--bb-border, #e5e7e3);
  border-radius: 12px;
  /* do NOT use overflow:hidden on the table — it desyncs header/body */
  overflow: visible !important;
  box-sizing: border-box;
}

#brawtaBundle .bbTable colgroup,
#brawtaBundle .bbTable thead,
#brawtaBundle .bbTable tbody,
#brawtaBundle .bbTable tfoot {
  display: table-header-group; /* overridden below per section */
}

#brawtaBundle .bbTable thead { display: table-header-group !important; }
#brawtaBundle .bbTable tbody { display: table-row-group !important; }
#brawtaBundle .bbTable tfoot { display: table-footer-group !important; }

#brawtaBundle .bbTable tr {
  display: table-row !important;
  width: auto !important;
  float: none !important;
}

#brawtaBundle .bbTable th,
#brawtaBundle .bbTable td {
  display: table-cell !important;
  float: none !important;
  position: static !important;
  box-sizing: border-box !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
  text-align: left !important;
  white-space: normal !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  border-bottom: 1px solid var(--bb-border, #e5e7e3);
  font-size: 14px;
  line-height: 1.45;
  /* reset any earlier width experiments */
  max-width: none !important;
  min-width: 0 !important;
}

/* Shared column widths — thead th AND tbody/tfoot td use the same nth-child rules */
#brawtaBundle .bbTable th:nth-child(1),
#brawtaBundle .bbTable td:nth-child(1) {
  width: 12% !important;
  text-align: left !important;
  white-space: nowrap !important;
}

#brawtaBundle .bbTable th:nth-child(2),
#brawtaBundle .bbTable td:nth-child(2) {
  width: 40% !important;
  text-align: left !important;
}

#brawtaBundle .bbTable th:nth-child(3),
#brawtaBundle .bbTable td:nth-child(3) {
  width: 12% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#brawtaBundle .bbTable th:nth-child(4),
#brawtaBundle .bbTable td:nth-child(4) {
  width: 18% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#brawtaBundle .bbTable th:nth-child(5),
#brawtaBundle .bbTable td:nth-child(5) {
  width: 18% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#brawtaBundle .bbTable thead th {
  background: #f3f3ed;
  color: #30352c;
  font-weight: 750;
  border-bottom: 1px solid #e1e1db;
  white-space: nowrap !important;
}

#brawtaBundle .bbTable tbody tr:nth-child(even) td {
  background: #fafaf7;
}

#brawtaBundle .bbTable tfoot td {
  font-weight: 800;
  border-top: 2px solid #999;
  border-bottom: 0;
  background: #fff;
}

/* Footer: first cell spans columns 1–4; last cell is the total */
#brawtaBundle .bbTable tfoot td[colspan],
#brawtaBundle .bbTable tfoot td:first-child {
  text-align: right !important;
  white-space: normal !important;
}

#brawtaBundle .bbTable tfoot td:last-child,
#brawtaBundle .bbTable tfoot td.bbR {
  text-align: right !important;
  white-space: nowrap !important;
}

/* Right-aligned helpers from the plugin */
#brawtaBundle .bbTable th.bbR,
#brawtaBundle .bbTable td.bbR,
#brawtaBundle .bbTable td.bbCellUnit,
#brawtaBundle .bbTable td.bbCellLine {
  text-align: right !important;
}

#brawtaBundle .bbTable td.bbCellQty {
  text-align: center !important;
}

#brawtaBundle .bbCellItem a {
  color: var(--bb-charcoal, #242424);
  font-weight: 700;
  text-decoration: none;
}
#brawtaBundle .bbCellItem a:hover {
  color: var(--bb-green-dark, #1d5425);
  text-decoration: underline;
}

#brawtaBundle .bbThumb {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}
#brawtaBundle .bbThumb img {
  display: inline-block !important;
  vertical-align: middle;
  height: 48px !important;
  width: auto !important;
  max-width: 56px !important;
  object-fit: contain;
}

#brawtaBundle .bbFixed {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bb-green-pale, #eaf4e5);
  color: var(--bb-green-dark, #1d5425);
  font-size: 12px;
  font-weight: 700;
}

#brawtaBundle .bbStockOut,
#brawtaBundle .bbErr { color: #b00; }
#brawtaBundle .bbUnit { font-size: 0.85em; opacity: 0.8; }
#brawtaBundle .bbOptions { margin-top: 6px; }
#brawtaBundle input.bbQty {
  width: 4.5em;
  min-height: 36px;
  text-align: center;
  box-sizing: border-box;
}

/* Description text on bundle pages */
body#productinfoBody #productDescription {
  font-size: 15px !important;
  line-height: 1.65 !important;
  color: #333;
}
body#productinfoBody #productDescription span[style*="font-size"] {
  font-size: inherit !important;
}
body#productinfoBody #productDescription p {
  margin: 0 0 12px;
}

@media (max-width: 600px) {
  #brawtaBundle .bbTable {
    min-width: 560px;
  }
}

/* =========================================================
   Advanced Search (#searchDefault) + Search Results
   ========================================================= */
#searchDefault,
.bb-advanced-search {
  max-width: 920px;
  margin: 0 auto 32px;
}

#searchDefaultHeading,
#searchResultsDefaultHeading {
  text-align: center;
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--bb-charcoal);
}

.bb-search-advanced-form .bb-search-fieldset,
#searchDefault fieldset {
  border: 1px solid var(--bb-border);
  border-radius: 14px;
  background: #fff;
  padding: 18px 20px 16px;
  margin: 0 0 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.bb-search-advanced-form legend,
#searchDefault legend {
  padding: 0 8px;
  font-weight: 800;
  color: var(--bb-charcoal);
  font-size: 1rem;
}

.bb-search-help-link {
  text-align: right;
  margin: 0 0 10px;
  font-size: 13px;
}
.bb-search-help-link a {
  color: var(--bb-green-dark);
  font-weight: 700;
  text-decoration: none;
}
.bb-search-help-link a:hover { text-decoration: underline; }

.bb-search-keywords {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.bb-search-keyword-input,
#searchDefault input[type="search"],
#searchDefault input[name="keyword"] {
  flex: 1 1 240px;
  min-height: 46px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid #d9ddd6;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

.bb-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}

.bb-search-select,
#searchDefault select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d9ddd6;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.bb-checkbox-label,
#searchDefault .checkboxLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}

.bb-search-range-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bb-search-field label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 13px;
}

.bb-search-input,
#searchDefault input[type="text"],
#searchDefault input[inputmode] {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d9ddd6;
  border-radius: 10px;
  font: inherit;
  box-sizing: border-box;
}

/* Date text + native calendar picker side by side */
.bb-date-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.bb-date-picker {
  width: 44px;
  min-height: 44px;
  padding: 4px;
  border: 1px solid #d9ddd6;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.bb-date-picker::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.85;
  scale: 1.15;
}
.bb-date-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--bb-muted);
}

.bb-search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.bb-button,
a.bb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
}
.bb-button-primary,
.bb-search-actions input[type="submit"],
.bb-search-actions .cssButton {
  background: var(--bb-charcoal) !important;
  color: #fff !important;
}
.bb-button-primary:hover,
.bb-search-actions input[type="submit"]:hover {
  background: #000 !important;
}
.bb-button-secondary {
  background: #fff;
  color: var(--bb-charcoal);
  border: 1px solid var(--bb-border) !important;
}
.bb-button-secondary:hover {
  background: var(--bb-off-white);
  border-color: #cfd4cb !important;
}

/* Search results page */
#searchResultsDefault,
.bb-search-results {
  max-width: var(--bb-container);
  margin: 0 auto 28px;
}
.bb-search-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.bb-search-back {
  margin-top: 20px;
}
.bb-search-back .bb-button {
  margin-top: 4px;
}

/* Quantity steppers on search results listing */
#searchResultsDefault .bb-list-quantity-control,
#productListing .bb-list-quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9ddd6;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
#searchResultsDefault .bb-quantity-button,
#productListing .bb-quantity-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f4f5f2;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
#searchResultsDefault .bb-list-quantity-control input,
#productListing .bb-list-quantity-control input {
  width: 48px !important;
  min-height: 36px !important;
  border: 0 !important;
  text-align: center;
  font-weight: 700;
  padding: 0 !important;
  max-width: 48px !important;
}

/* Advanced Search — mobile */
@media (max-width: 720px) {
  #searchDefault,
  .bb-advanced-search {
    max-width: 100%;
    margin: 0 auto 24px;
    padding-inline: 0;
  }

  #searchDefaultHeading {
    font-size: 1.45rem;
    margin: 0 0 14px;
    padding-inline: 2px;
  }

  .bb-search-advanced-form .bb-search-fieldset,
  #searchDefault fieldset {
    padding: 14px 14px 12px;
    margin: 0 0 12px;
    border-radius: 12px;
  }

  .bb-search-advanced-form legend,
  #searchDefault legend {
    font-size: 0.95rem;
  }

  .bb-search-help-link {
    text-align: left;
    margin-bottom: 12px;
  }

  .bb-search-grid,
  .bb-search-range-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .bb-search-keywords {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bb-search-keyword-input,
  #searchDefault input[type="search"],
  #searchDefault input[name="keyword"],
  .bb-search-select,
  #searchDefault select,
  .bb-search-input,
  #searchDefault input[type="text"],
  #searchDefault input[inputmode] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    font-size: 16px; /* avoids iOS zoom on focus */
  }

  .bb-checkbox-label,
  #searchDefault .checkboxLabel {
    width: 100%;
    min-height: 44px;
    align-items: flex-start;
  }

  .bb-date-control {
    grid-template-columns: 1fr 48px;
    gap: 10px;
  }

  .bb-date-picker {
    width: 48px;
    min-height: 48px;
  }

  .bb-date-hint {
    font-size: 12px;
    line-height: 1.4;
  }

  /* Legacy float classes if any markup still uses them */
  #searchDefault .floatingBox,
  #searchDefault .floatLeft,
  #searchDefault .forward,
  #searchDefault .back {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px !important;
  }

  #searchDefault .centeredContent {
    text-align: left !important;
  }

  .bb-search-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
  }

  .bb-search-actions .buttonRow {
    float: none !important;
    width: 100%;
    margin: 0;
  }

  .bb-search-actions .bb-button,
  .bb-search-actions a.bb-button,
  .bb-search-actions input[type="submit"],
  .bb-search-actions .cssButton {
    width: 100% !important;
    min-height: 48px;
    box-sizing: border-box;
  }

  /* Kill clearBoth spacer height issues on mobile */
  #searchDefault br.clearBoth {
    display: none;
  }
}

@media (max-width: 420px) {
  .bb-search-advanced-form .bb-search-fieldset,
  #searchDefault fieldset {
    padding: 12px 12px 10px;
  }

  #searchDefaultHeading {
    font-size: 1.3rem;
  }

  .bb-date-control {
    grid-template-columns: 1fr 44px;
  }
}
