/* ==========================================================================
   Fatt Boyy Knife & Tool — custom.css  (DARK THEME)
   Overrides the Banbury theme (00315-1/design/css/main.css, v1.08).

   INSTALL: upload as 00315-1/design/css/custom.css. The theme links it
   automatically, after main.css — no template edit needed.

   WHAT THIS IS: Banbury ships as a white-background theme. This inverts it
   to a dark store in the spirit of empedc.com, with the accent colors taken
   from the Fatt Boyy logo rather than EMP's orange.

   THE PALETTE AND WHY
     Page          #1C1F24   near-black with a blue cast, so the logo's navy
                             carries through the whole page rather than
                             sitting on neutral grey
     Panels        #232830   nav, footer, cards, dropdowns — navy-tinted
     Deep band     #15181C   footer floor
     Hairlines     #343B45   navy-tinted, not grey
     Text          #FFFFFF
     Muted text    #A8B2C0   cool grey, same blue cast
     Red fill      #A3271B   the logo's camo-ring red
     Red fill hover#7D1D16
     Red text      #E8685A   see the contrast note below
     Light fill    #E9ECF1   buttons, inputs — a cool off-white
     Header band   #FFFFFF   see the logo note below

   CONTRAST — the one thing that shaped this
     The logo red #A3271B on #1C1F24 measures 2.2:1. That is far below the
     4.5:1 needed for text, so the brand red is only ever used here as a FILL
     behind white text (7.3:1). Anywhere red is the text itself — links,
     hover states, error copy — it is lightened to #E8685A, which measures
     5.2:1 on the page background. Do not swap #E8685A back to #A3271B for
     text; it will fail accessibility and look muddy on screen.
     Everything else: white on page 16.7:1, muted on page 7.6:1, page text
     on light buttons 14.1:1.

   THE WHITE HEADER BAND
     The header is a white band with black text, so the logo — a JPEG with a
     white background rather than a transparent PNG — sits on white and reads
     as deliberate. This is also what empedc.com does with its own logo.
     The circular clip in section 3 is kept because it costs nothing and
     keeps the badge correct if the band is ever darkened again. It is not a
     guess: the badge is inscribed in its own 450x450 canvas (bounding box
     1..448 on both axes, radius 223.5px, 99.3% of half the image), so a 50%
     circle removes the four white corners and cuts nothing of the artwork —
     measured, clipping at 50% loses 0 badge pixels while 49% would already
     eat 5,696. Do not tighten it below 50%.

   PRODUCT PHOTOS: shots on a white background will read as bright blocks on
   a dark page. CSS cannot fix that — the knife photos currently on the site
   are dark and look right.

   BUTTON SHAPE: pill radius, as on empedc.com. One line in section 6 if you
   want Banbury's 3px corners back.
   ========================================================================== */

:root{
  --fb-bg:#1C1F24;          /* page */
  --fb-panel:#232830;       /* raised surfaces */
  --fb-panel-2:#2B313B;     /* hover / nested surfaces */
  --fb-deep:#15181C;        /* footer floor */
  --fb-line:#343B45;        /* hairlines */
  --fb-text:#FFFFFF;
  --fb-muted:#A8B2C0;       /* secondary text */
  --fb-red:#A3271B;         /* logo red — FILLS ONLY */
  --fb-red-dark:#7D1D16;    /* fill hover */
  --fb-red-text:#E8685A;    /* logo red, lightened for TEXT on dark */
  --fb-light:#E9ECF1;       /* light fills: buttons, inputs */
  --fb-light-2:#FFFFFF;
  --fb-on-light:#1C1F24;    /* text on light fills */
  --fb-radius:999px;        /* pill buttons; set to 3px for Banbury's shape */
}

/* ==========================================================================
   0. TYPEFACE — Open Sans
   Banbury sets the family with the shorthand `font:Normal 15px/1.5 Alike` on
   body/button/input/select/textarea. Overriding only font-family here leaves
   the theme's size and line-height alone, so nothing reflows unexpectedly.
   Headings are listed explicitly because several theme rules set weight on
   them without naming a family, and they would otherwise inherit Alike from
   an ancestor the theme styles.

   REQUIRES the Google Fonts <link> in the page head — see
   google-font-open-sans.html. Without it this falls back to the system
   sans-serif stack, which is a safe but different look.
   ========================================================================== */
body,button,input,select,textarea,
h1,h2,h3,h4,h5,h6,
.page-title,.page-title--hero,.page-sub-title,
.widget-title,.title,.textlogo,
.item-name,.item-name__string,.item-price,
.btn,.page-tabs li,.breadcrumb,dt,.element-title{
  font-family:'Open Sans','Segoe UI',Helvetica,Arial,sans-serif
}

/* ==========================================================================
   1. PAGE SHELL + BASE TEXT
   html carries the background too, so overscroll does not flash white.
   ========================================================================== */
html{background:var(--fb-bg, #1C1F24)}
body{background:var(--fb-bg, #1C1F24);color:var(--fb-text, #FFFFFF)}

/* Deliberately NOT `a.btn{color:...}`. That selector is (0,1,1) and would
   outrank `.btn--add-to-cart` (0,1,0), painting dark text on the red CTA at
   2.25:1. Button text colour is owned by section 5 instead: plain `a` here
   is (0,0,1), which `.btn` beats, and `.btn:hover` (0,2,0) beats `a:hover`
   (0,1,1), so buttons keep their own colour in every state. */
a{color:var(--fb-text, #FFFFFF)}
a:hover,a:focus{color:var(--fb-red-text, #E8685A)}

::-moz-selection{color:var(--fb-text, #FFFFFF);background:var(--fb-red, #A3271B)}
::selection{color:var(--fb-text, #FFFFFF);background:var(--fb-red, #A3271B)}

a:focus-visible,button:focus-visible,.btn:focus-visible,
[type='text']:focus-visible,[type='email']:focus-visible,
[type='password']:focus-visible,[type='number']:focus-visible,
[type='tel']:focus-visible,[type='search']:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:2px solid var(--fb-red-text, #E8685A);
  outline-offset:2px
}

/* ==========================================================================
   2. HEADINGS + TITLES
   ========================================================================== */
h1,h2,h3,h4,h5,h6,
.page-title,.page-title--hero,.page-sub-title,
.widget-title,.title,
.grid .item-name,.item-name,.item-name__string,
.review__author,.access-point h6,
dt,.element-title{
  color:var(--fb-text, #FFFFFF)
}

.page-title{border-bottom:3px solid var(--fb-red, #A3271B);padding-bottom:.15em}
.page-sub-title{border-bottom-color:var(--fb-line, #343B45);border-bottom-style:solid}

/* ==========================================================================
   3. HEADER BAND — white, black text
   The one light band on an otherwise dark store: it seats the logo, which
   has a white background baked into the JPEG. Everything below the nav bar
   stays dark.
   ========================================================================== */
header{background:#FFFFFF;color:#000000}
header a:not(.btn){color:#000000}
header a:not(.btn):hover{color:var(--fb-red, #A3271B)}

/* Sized by height, so the band's depth stays predictable whatever the
   logo's aspect ratio. The clip is retained — harmless on white, and it
   keeps the badge correct if the band is ever darkened again. See the note
   at the top of this file before changing 50%. */
.imagelogo img{
  border-radius:50%;
  -webkit-clip-path:circle(50%);
  clip-path:circle(50%);
  max-height:140px;
  width:auto;
  max-width:100%
}

/* On white, a fill alone leaves the field with no visible edge, so it gets a
   hairline back. Text stays near-black for 14:1 against the fill. */
.header-search-field,
#headerSearchField{
  background:#F0F2F5;
  color:var(--fb-on-light, #1C1F24);
  border:1px solid #D7DCE3
}
/* The one spot of brand red in the white band. */
header .btn,.btn--search{
  background:var(--fb-red, #A3271B);
  color:var(--fb-text, #FFFFFF)
}
header .btn:hover,.btn--search:hover{background:var(--fb-red-dark, #7D1D16)}

.dynamic-results{background:var(--fb-panel, #232830);border-color:var(--fb-line, #343B45)}
.dynamic-results a{border-bottom-color:var(--fb-line, #343B45);color:var(--fb-text, #FFFFFF)}
.dynamic-results a:hover{background:var(--fb-red, #A3271B);color:var(--fb-text, #FFFFFF)}

/* ==========================================================================
   4. NAVIGATION — dark navy-tinted band under the white header
   ========================================================================== */
nav{
  background:var(--fb-red, #A3271B);
  border-top-color:var(--fb-red, #A3271B);
  border-bottom-color:var(--fb-red-dark, #7D1D16)
}
nav a,#top-menu > li > a,#topNav a{color:var(--fb-text, #FFFFFF)}
/* White on the red bar is 7.3:1; white on the dark hover is 16.7:1. */
nav a:hover,nav a:focus{background:var(--fb-bg, #1C1F24);color:var(--fb-text, #FFFFFF)}

.top-bar{background:var(--fb-deep, #15181C);color:var(--fb-muted, #A8B2C0)}
.top-bar a:not(.btn){color:var(--fb-text, #FFFFFF)}
.top-bar a:not(.btn):hover{color:var(--fb-red-text, #E8685A)}

/* The mobile toggle IS the nav on phones, so it follows the same scheme. */
.mob-menu{background:var(--fb-red, #A3271B);color:var(--fb-text, #FFFFFF)}
.mob-menu:hover{background:var(--fb-bg, #1C1F24);color:var(--fb-text, #FFFFFF)}
.mob-menu.is-open{background:var(--fb-bg, #1C1F24);color:var(--fb-text, #FFFFFF)}

/* Dropdowns were white panels in the theme — they go dark with the page. */
.dd-submenu,.mm-submenu{
  background:var(--fb-panel, #232830);
  border-color:var(--fb-line, #343B45)
}
.dd-submenu a,.mm-submenu a{color:var(--fb-text, #FFFFFF)}
/* Dropdown panels are dark, so their hover stays red — a dark hover would
   be invisible against the panel. The bar and its menus therefore use
   opposite tones, which is the point. */
.dd-submenu a:hover,.mm-submenu a:hover{background:var(--fb-red, #A3271B);color:var(--fb-text, #FFFFFF)}
.second-level-submenu{background:var(--fb-panel-2, #2B313B);border-color:var(--fb-line, #343B45)}

/* ==========================================================================
   5. BUTTONS — light pill by default, brand red for commercial actions
   Single-class selectors only, so the semantic classes below win the cascade.
   ========================================================================== */
.btn{
  background:var(--fb-light, #E9ECF1);
  color:var(--fb-on-light, #1C1F24);
  border:0;
  border-radius:var(--fb-radius, 999px)
}
/* The `a.` variants are load-bearing. Banbury's main.css carries
   `a.btn:hover{color:#fff}` at (0,2,1), which outranks a plain
   `.btn:hover` (0,2,0) — so on every link-styled button the theme forced
   white text while this rule set a white background: white on white, 1:1,
   the button vanished under the cursor. Measured on the live cart page
   before the fix: colour rgb(255,255,255) on background rgb(255,255,255).
   Matching that specificity and winning on order is what fixes it.
   The red CTA rules below do not need the same treatment — their hover text
   is white anyway, so the theme's rule agrees with them — but if you ever
   change a CTA's hover colour to something dark, add `a.` there too. */
.btn:hover,.btn:focus,
a.btn:hover,a.btn:focus{
  background:var(--fb-light-2, #FFFFFF);
  color:var(--fb-on-light, #1C1F24)
}

.btn--add-to-cart,.btn--addtocart,.btn--add_to_cart,
.btn--checkout,.btn--pay,.btn--coupon,
.btn--submit,.btn--update,
.btn--login,.btn--register,.btn--subscribe,
.submitBtn,.green-buttons{
  background:var(--fb-red, #A3271B);
  color:var(--fb-text, #FFFFFF)
}
.btn--add-to-cart:hover,.btn--addtocart:hover,.btn--add_to_cart:hover,
.btn--checkout:hover,.btn--pay:hover,.btn--coupon:hover,
.btn--submit:hover,.btn--update:hover,
.btn--login:hover,.btn--register:hover,.btn--subscribe:hover,
.submitBtn:hover,.green-buttons:hover{
  background:var(--fb-red-dark, #7D1D16);
  color:var(--fb-text, #FFFFFF)
}

/* Per-item "Remove" in the cart row is .btn--destruct (inside .remove).
   Cart-wide "Empty Cart" is .btn--remove and is handled in section 19 — it
   is deliberately NOT solid red there. */
.remove .btn,.btn--destruct,.btn--delete{background:var(--fb-red-dark, #7D1D16);color:var(--fb-text, #FFFFFF)}
.remove .btn:hover,.btn--destruct:hover,.btn--delete:hover{background:#5E140E;color:var(--fb-text, #FFFFFF)}

.btn[disabled],.btn.is-disabled{background:var(--fb-panel-2, #2B313B);color:var(--fb-muted, #A8B2C0)}

/* ==========================================================================
   6. FORMS + INPUTS — light fills, dark text, readable on both bands
   ========================================================================== */
[type='email'],[type='number'],[type='password'],[type='text'],
[type='tel'],[type='search'],select,textarea{
  background:var(--fb-light, #E9ECF1);
  color:var(--fb-on-light, #1C1F24)
}
[type='email']:focus,[type='number']:focus,[type='password']:focus,
[type='text']:focus,[type='tel']:focus,[type='search']:focus,
select:focus,textarea:focus{
  background:var(--fb-light-2, #FFFFFF);
  box-shadow:inset 0 0 0 2px var(--fb-red, #A3271B)
}
::-webkit-input-placeholder{color:#5C6675}
::-moz-placeholder{color:#5C6675}
:-ms-input-placeholder{color:#5C6675}
::placeholder{color:#5C6675}

label,.field-label{color:var(--fb-text, #FFFFFF)}
.field--offset span{background:var(--fb-panel, #232830);color:var(--fb-text, #FFFFFF)}
.required:after,.form-required{color:var(--fb-red-text, #E8685A)}
[type='checkbox'],[type='radio']{accent-color:var(--fb-red, #A3271B)}

/* ==========================================================================
   7. PRODUCT GRID, PRICES, SALE FLAGS
   ========================================================================== */
.grid .item-name a,.item-name--product a,.item-name__string a{color:var(--fb-text, #FFFFFF)}
.grid .item-name a:hover,.item-name--product a:hover{color:var(--fb-red-text, #E8685A)}

.item-price,.item-price--product{color:var(--fb-text, #FFFFFF);font-weight:700}
.listPrice,strike{color:var(--fb-muted, #A8B2C0)}
.salePrice{color:var(--fb-red-text, #E8685A)}
.sale-text,.special-offer,.pricing-msg{color:var(--fb-red-text, #E8685A)}

.vendor-name,.description--vendor{color:var(--fb-muted, #A8B2C0)}
.rating,.helper-text--rating{color:var(--fb-red-text, #E8685A)}

/* ==========================================================================
   8. PAGE TABS
   ========================================================================== */
.page-tabs li{border-bottom-color:var(--fb-line, #343B45);color:var(--fb-muted, #A8B2C0)}
.page-tabs li:hover{color:var(--fb-text, #FFFFFF)}
.page-tabs .active{border-bottom-color:var(--fb-red, #A3271B);color:var(--fb-text, #FFFFFF)}
.page-tabs__content{border-color:var(--fb-line, #343B45)}

/* ==========================================================================
   9. SIDEBAR WIDGETS + CATEGORY TREE
   ========================================================================== */
.widget-title{
  color:var(--fb-text, #FFFFFF);
  border-bottom:2px solid var(--fb-red, #A3271B);
  padding-bottom:.3em
}
.widget--list a,#dcatMenu a{color:var(--fb-text, #FFFFFF)}
.widget--list a:hover,#dcatMenu a:hover{color:var(--fb-red-text, #E8685A)}
.subcats ul{background:var(--fb-panel, #232830);border-color:var(--fb-line, #343B45)}
.tree > a:before,.tree--expanded > a:before{color:var(--fb-red-text, #E8685A);font-weight:700}
.tag-cloud a{color:var(--fb-muted, #A8B2C0)}

/* ==========================================================================
   10. BREADCRUMB
   ========================================================================== */
.breadcrumb{color:var(--fb-muted, #A8B2C0);border-bottom-color:var(--fb-line, #343B45)}
.breadcrumb a{color:var(--fb-text, #FFFFFF)}
.breadcrumb a:hover{color:var(--fb-red-text, #E8685A)}

/* ==========================================================================
   11. TABLES + CART
   ========================================================================== */
tr{border-bottom-color:var(--fb-line, #343B45)}
thead,thead th{color:var(--fb-text, #FFFFFF)}
thead tr{border-bottom:2px solid var(--fb-red, #A3271B)}
td,th{color:var(--fb-text, #FFFFFF)}
td[data-title]:before{color:var(--fb-muted, #A8B2C0)}
.cart-amount dd,.cart-amounts dd{color:var(--fb-text, #FFFFFF)}
.review{border-bottom-color:var(--fb-line, #343B45)}

/* ==========================================================================
   12. MESSAGES + ERRORS
   The theme's amber notices stay amber — they are semantic warning colors —
   but their text is forced dark, or white body text would sit on amber and
   be unreadable. .view-cart-info is !important in the theme, so the text
   color here has to be !important to match it.
   ========================================================================== */
.message-container .message{background:var(--fb-panel, #232830);color:var(--fb-text, #FFFFFF)}

/* Error and info notices keep their semantic hue but move to dark tints of
   it, so they still read as warnings without a light slab on a dark page.
   Measured: #F3B5AE on #3A1F1C = 8.7:1, #FCE691 on #3A3012 = 10.5:1. */
.message-container .message--error,table .message--error{background:#3A1F1C;color:#F3B5AE}
.message-container .message--info,table .message--info{background:#3A3012;color:#FCE691}
.message-container .message--error a,.message-container .message--info a{color:inherit;text-decoration:underline}

/* .view-cart-info is the one notice that stays light: the theme sets its
   amber background with !important, so it cannot be moved to a dark tint and
   its text has to be forced dark to match — white body text on #fff2a7 is
   unreadable. The !important here exists only to match the theme's. */
.view-cart-info{color:#1C1F24 !important}
.view-cart-info a{color:#7D1D16 !important}

.message--none{background:none;color:var(--fb-red-text, #E8685A)}
.error,.error-message{color:var(--fb-red-text, #E8685A)}

/* ==========================================================================
   13. CHECKOUT
   ========================================================================== */
.step-number{color:var(--fb-red-text, #E8685A)}
.view-cart-or{color:var(--fb-muted, #A8B2C0)}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
footer{background:var(--fb-deep, #15181C);color:var(--fb-muted, #A8B2C0)}
.footer .title{
  color:var(--fb-text, #FFFFFF);
  border-bottom:2px solid var(--fb-red, #A3271B);
  display:inline-block;
  padding-bottom:.25em
}
.footer a{color:var(--fb-muted, #A8B2C0)}
.footer a:hover{color:var(--fb-red-text, #E8685A)}
.footer__information,.copyright,.copyright__store{color:var(--fb-muted, #A8B2C0)}
.copyright a{color:var(--fb-muted, #A8B2C0)}
.copyright a:hover{color:var(--fb-text, #FFFFFF)}

/* ==========================================================================
   15. HOME SLIDER
   ========================================================================== */
.nivo-caption{background:rgba(28,31,36,.88);color:var(--fb-text, #FFFFFF)}
.nivo-caption a{color:var(--fb-red-text, #E8685A);border-bottom-color:var(--fb-red-text, #E8685A)}
.nivo-controlNav a.active{background-color:var(--fb-red, #A3271B)}
.theme-default .nivoSlider{border-color:var(--fb-line, #343B45)}

/* ==========================================================================
   16. MISC HAIRLINES
   ========================================================================== */
hr{border-top:1px solid var(--fb-line, #343B45)}

/* CoreCommerce's dynamic-css.php ships .popup as a fixed 400px panel,
   background #CCCCCC with #DDDDDD text — 1.2:1, unreadable the moment it
   appears. Worse, it is absolutely positioned at 400px wide and therefore
   stretches the document even while hidden: on the checkout at a 375px
   viewport the page measured 439px, and zeroing this element's width alone
   dropped it back to 375. It was the sole cause of the sideways scroll on
   mobile checkout. custom.css loads after dynamic-css.php, so plain rules
   win here — no !important needed. */
.popup{
  background-color:var(--fb-panel, #232830);
  color:var(--fb-text, #FFFFFF);
  border-color:var(--fb-line, #343B45);
  max-width:calc(100vw - 2rem)
}
.popup a{color:var(--fb-red-text, #E8685A)}

/* The zoom script's placeholder ships as a #DDD block — a full-size light
   slab that flashes on the product page before the image resolves. */
.loader,.MagicZoomBigImageCont,.mz-figure{background:var(--fb-panel, #232830)}
.poll-result__answer{color:var(--fb-text, #FFFFFF)}
.poll-result__percentage{color:var(--fb-red-text, #E8685A)}
.reminders__delete{color:var(--fb-red-text, #E8685A)}

/* ==========================================================================
   17. RESPONSIVE FIXES
   Problems in the stock Banbury theme on phones, not color work:
     a) iOS inflates text in landscape unless text-size-adjust is pinned.
     b) Inputs render below 16px, so iOS Safari zooms the page on focus and
        the visitor has to pinch back out — a classic checkout drop-off.
     c) .page-title is a flat 2.5em at every width; on a 375px screen a
        title like "Shopping Cart Empty" eats most of the first screen.
     d) (The logo's size cap now lives in section 3 as a single max-height,
        which binds at every width, so there is nothing to do here.)
     e) Buttons and nav links fall short of the 44px minimum tap target.
     f) Wide media (tables, embeds, slider) can push the page sideways.
   ========================================================================== */

/* (a) */
html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}

/* (f) */
img,table,iframe,video,embed,object,.nivoSlider{max-width:100%}
table{table-layout:auto;word-break:break-word}

/* (b) */
@media all and (max-width:799px){
  [type='email'],[type='number'],[type='password'],[type='text'],
  [type='tel'],[type='search'],select,textarea{font-size:16px}
}

/* (e) */
@media all and (max-width:899px){
  .btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:.5em 1.1em
  }
  nav a,.links-list a,.footer a,.widget--list a,#dcatMenu a{
    padding-top:.75em;
    padding-bottom:.75em
  }
  .mob-menu{min-height:48px}
}

/* (c) + (d) phones */
@media all and (max-width:599px){
  .page-title{font-size:1.75em;line-height:1.2}
  .page-sub-title{font-size:1.3em}
  .grid .item-name,.item-price--product,.footer .title{font-size:1.35em}
  .item-name__string,.widget .item-name{font-size:1.1em}
  .textlogo{font-size:2em}
  .content{padding:.7em 1em}
}

/* (c) small tablets */
@media all and (min-width:600px) and (max-width:899px){
  .page-title{font-size:2.1em}
}

@media all and (max-width:499px){
  .btn--add-to-cart,.btn--addtocart,.btn--add_to_cart,
  .btn--checkout,.btn--pay,.btn--submit,.submitBtn{
    display:flex;
    width:100%;
    margin-left:0;
    margin-right:0
  }
}

/* ==========================================================================
   18. PRODUCT GRID — centered cell content
   Banbury ships `.grid--category .grid__item{xtext-align:center}`, where the
   "x" prefix deliberately disables the property, so nothing centers.
   This applies everywhere a product grid appears — homepage, the product
   list (body.page_product_list), category pages, search results — because
   they all render the same `.grid__item` markup. To restrict it to the
   homepage again, prefix each selector below with `.page-home `.
   ========================================================================== */
.grid__item,
.grid__item .item-image,
.grid__item .item-info,
.grid__item .item-name,
.grid__item .item-teaser,
.grid__item .item-teaser p,
.grid__item .item-price,
.grid__item .product-list-item-rating,
.grid__item .btn-group{
  text-align:center
}

.grid__item .thumb,
.grid__item .item-image img,
.grid__item .photoClass{
  margin-left:auto;
  margin-right:auto
}

.grid__item .btn{
  margin-left:.25em;
  margin-right:.25em
}

/* The 1-column list layout floats the thumbnail left above 900px; centred
   text beside a left-floated image reads badly, so it keeps left alignment. */
@media all and (min-width:900px){
  .l-cols-1 .grid__item,
  .l-cols-1 .grid__item .item-info{text-align:left}
  .l-cols-1 .grid__item .btn{margin-left:0}
}

/* Below 500px the primary button is full-width, so the side margins above
   would push it 4px past its column. */
@media all and (max-width:499px){
  .grid__item .btn--add-to-cart,
  .grid__item .btn--addtocart,
  .grid__item .btn--add_to_cart,
  .grid__item .submitBtn{
    margin-left:0;
    margin-right:0
  }
}


/* ==========================================================================
   19. CART + CHECKOUT REFINEMENTS
   Placed last on purpose: the button padding below has the same specificity
   as the `.btn` rule inside section 17's max-width:899px block, so it has to
   come after it to survive on tablet widths.

   Exact classes, read off the live cart rather than guessed:
     Checkout ............ input.btn.btn--1.btn--pay
     Empty Cart .......... input.btn.btn--2.btn--remove
     Continue Shopping ... input.btn.btn--2.btn--continue
     Update Cart ......... input.btn.btn--2.btn--update-cart
     Remove (per item) ... a.btn.btn--destruct
     Totals .............. dl.cart-amounts > dt.field-label + dd.field-value
   ========================================================================== */

/* (a) Two reds were competing. The row reads Update Cart · Empty Cart ·
   Continue Shopping · Checkout, and Empty Cart — the one destructive action —
   was #7D1D16 sitting immediately before Checkout's #A3271B. At a glance on
   a dark page they were hard to tell apart, and the destructive one came
   first. Empty Cart becomes a quiet outline; red now means "go". It still
   turns solid red on hover, so the destructive intent is not hidden. */
.btn--remove{
  background:transparent;
  color:var(--fb-muted, #A8B2C0);
  box-shadow:inset 0 0 0 1px var(--fb-line, #343B45)
}
.btn--remove:hover,.btn--remove:focus,
a.btn--remove:hover,a.btn--remove:focus{
  background:var(--fb-red-dark, #7D1D16);
  color:var(--fb-text, #FFFFFF);
  box-shadow:none
}

/* (b) Checkout was 117px wide against Continue Shopping's 201px — the
   primary action was the smallest thing in the row. */
.btn--pay,.btn--checkout{
  padding-left:2.2em;
  padding-right:2.2em;
  font-weight:700
}

/* (c) The totals had no hierarchy: New Total rendered identically to
   Subtotal. The last pair in the list is the one that matters, so it gets
   the size and weight, and the block gets a rule above it to separate the
   totals from the line items. */
.cart-amounts,.cart-amount{
  border-top:1px solid var(--fb-line, #343B45);
  padding-top:.75em
}
.cart-amounts dt:last-of-type,.cart-amount dt:last-of-type{
  font-size:1.15em;
  font-weight:700;
  color:var(--fb-text, #FFFFFF)
}
.cart-amounts dd:last-of-type,.cart-amount dd:last-of-type{
  font-size:1.35em;
  font-weight:700;
  color:var(--fb-text, #FFFFFF)
}

/* (d) The quantity box needed no narrowing — it measures 57px with size="2",
   and the 168px I reported earlier was the coupon field, not this. Centring
   the number is the only thing actually worth doing here. */
.input-qty{text-align:center}

/* ==========================================================================
   20. HOMEPAGE SLIDESHOW — full-bleed, edge to edge
   The theme renders the Nivo slider inside #content-middle, which sits in
   .wrap (max-width:1400px; width:90%). The slider therefore stopped ~51px
   short of each edge with the content gutter inside that.

   This breaks it out to the full viewport. The breakout is safe here because
   the homepage is `no-widgets`: with no left sidebar, #content-middle is
   centred in the viewport, so `margin-left:calc(50% - 50vw)` resolves to the
   true left edge. If a sidebar is ever switched back on for the homepage,
   the column stops being centred and this needs revisiting — that is the
   same trap documented in homepage-banner.html.

   ORDER MATTERS, NOT !important: Nivo reads the container width in JS at
   init and writes a pixel width inline onto each slide (it had width:899px).
   Because stylesheets apply before that script runs, Nivo now measures the
   already-widened container and writes the correct width itself. The
   !important on the image below is only a guard for window resizes, where
   Nivo would otherwise leave a stale inline width behind.
   ========================================================================== */

/* The 100vw breakout counts the vertical scrollbar on Windows, which would
   add a sliver of horizontal scroll. */
html,body{overflow-x:hidden}

.slider-wrapper{
  position:relative;
  left:50%;
  right:50%;
  width:100vw;
  max-width:100vw;
  margin-left:-50vw;
  margin-right:-50vw;
  padding:0;
  line-height:0            /* kills the inline-image gap under the slider */
}

/* theme-default ships a drop shadow and a 10px bottom margin on the slider;
   both read as a seam once the image runs edge to edge. */
.slider-wrapper .nivoSlider,
.theme-default .nivoSlider{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  border:0;
  border-radius:0;
  box-shadow:none
}

.slider-wrapper .nivoSlider img{
  width:100% !important;
  max-width:none;
  height:auto;
  display:block
}

/* Pull the following content back off the slider, since the wrapper's own
   bottom margin is now zero. */
.slider-wrapper{margin-bottom:0}
.content-home > .slider-wrapper + *{margin-top:2em}

/* The dots sit over the image rather than adding height below it. */
.theme-default .nivo-controlNav{
  position:absolute;
  left:0;
  right:0;
  bottom:.6em;
  z-index:9;
  padding:0;
  text-align:center
}
