/* OpenCart 4.1 integration layer — keeps native commerce behavior inside the Fire Fireworks world. */
#container { min-height: 100vh; overflow-x: clip; }
.route-common-home .site-shell { background: var(--night) !important; }
/* Fixed drawers live inside the OpenCart header markup; a backdrop filter would make the header their containing block. */
.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
#alert { position: fixed; z-index: 170; top: 138px; right: 24px; width: min(440px, calc(100vw - 32px)); }
#alert .alert { border: 0; border-radius: 0; background: #171217; color: #fff; box-shadow: 0 22px 60px rgba(0,0,0,.28); font-size: 14px; }
#alert .alert-success { border-bottom: 2px solid #35a765; }
#alert .alert-danger { border-bottom: 2px solid var(--live-red); }
.header-actions > #cart { width: 44px; height: 44px; }
.header-actions > #cart .bag-button { display: grid; }
.header-actions > #cart .cart-drawer { text-align: left; }
.ff-collection-panel[hidden], .ff-collection-foot[hidden] { display: none !important; }
.ff-collection-panel.is-active { animation: collection-enter .58s cubic-bezier(.2,.75,.2,1) both; }
.ff-empty-products { grid-column: 1 / -1; padding: 48px 20px; color: #716970; font-size: 15px; line-height: 1.7; }

.product-card form { margin: 0; }
.product-card .ff-love-form { position: absolute; z-index: 5; top: 13px; right: 13px; }
.product-card .ff-love-form .product-love { position: static; }
.product-buy > form { margin-left: auto; }
.product-buy button b { font-size: 20px; line-height: 1; }

.cart-content { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow-y: auto; }
.ff-cart-lines { padding: 8px 24px; }
.ff-cart-line { min-height: 112px; padding: 16px 0; display: grid; grid-template-columns: 76px 1fr 36px; gap: 14px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.ff-cart-line > a { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; background: #eee8e4; }
.ff-cart-line img { width: 100%; height: 100%; object-fit: contain; }
.ff-cart-line > div { min-width: 0; display: grid; gap: 6px; }
.ff-cart-line strong { display: block; color: #fff; font: 500 18px/1.15 var(--display); }
.ff-cart-line small { color: #8e858b; font-size: 14px; }
.ff-cart-line button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; background: transparent; color: #aaa1a7; cursor: pointer; }
.ff-cart-line button:hover { border-color: var(--live-red); color: #fff; }
.ff-cart-totals { margin-top: auto; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,.1); }
.ff-cart-totals p { margin: 0; padding: 7px 0; display: flex; justify-content: space-between; gap: 20px; color: #989097; font-size: 14px; }
.ff-cart-totals strong { color: #fff; }
.ff-cart-actions { padding: 0 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ff-cart-actions a { min-height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.16); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.ff-cart-actions a:last-child { border-color: var(--live-red); background: var(--live-red); }
.cart-empty button { margin-top: 24px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--live-red); background: transparent; color: var(--live-red); cursor: pointer; font-size: 14px; font-weight: 700; }
.ff-newsletter-link { min-height: 54px; padding: 0 20px; display: inline-flex; align-items: center; gap: 18px; border: 1px solid rgba(255,255,255,.14); background: var(--live-red); color: #fff; font-size: 14px; font-weight: 700; }

.category-filter-panel > #column-left, .category-filter-panel > aside { width: 100% !important; padding: 0; }
.category-filter-panel .card { margin: 0; border: 0; border-radius: 0; background: transparent; color: #fff; }
.category-filter-panel .card-header { display: none; }
.category-filter-panel .list-group-item { border-color: rgba(255,255,255,.1); background: transparent; color: #fff; }
.ff-native-filter { padding: 0 23px 24px; }
.ff-native-filter .category-filter-group { margin: 0; }
.ff-native-filter .category-filter-group label { grid-template-columns: 20px 1fr; }
.ff-filter-placeholder { padding: 32px 23px; color: #a79fa5; font-size: 14px; line-height: 1.7; }
.ff-filter-placeholder .material-symbols-rounded { color: var(--live-red); }
.ff-filter-limit { padding: 23px; display: grid; gap: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.ff-filter-limit label { color: #fff; font-size: 14px; font-weight: 700; }
.ff-filter-limit select { min-height: 48px; padding: 0 12px; border: 1px solid rgba(255,255,255,.14); background: #211b20; color: #fff; font-size: 14px; }
.ff-pagination { margin-top: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #716970; font-size: 14px; }
.ff-pagination p { margin: 0; }
.ff-pagination .pagination { gap: 5px; margin: 0; }
.ff-pagination .page-link { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(23,18,23,.15); border-radius: 0; background: transparent; color: #171217; }
.ff-pagination .active > .page-link { border-color: var(--live-red); background: var(--live-red); color: #fff; }
.category-description .category-lead > p:first-child { margin-top: 0; }

.pdp-stage > #column-left, .pdp-stage > #column-right { display: none; }
.pdp-gallery-main img { max-width: 100%; }
.pdp-buy-panel h1 { overflow-wrap: anywhere; }
.pdp-rating-row form { margin: 0; }
.pdp-price small { width: 100%; color: #81777e; font-size: 14px; }
.ff-discounts { margin-top: 14px; color: #6f666c; font-size: 14px; }
.ff-discounts p { margin: 4px 0; }
.ff-options { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(23,18,23,.13); }
.ff-options > h2 { margin: 0 0 18px; font: 500 28px/1 var(--display); }
.ff-option { margin: 0 0 17px; display: grid; gap: 8px; border: 0; }
.ff-option > label, .ff-option > legend { margin: 0; padding: 0; color: #4e454b; font-size: 14px; font-weight: 700; }
.ff-option.required > label::after, .ff-option.required > legend::after { content: ' *'; color: var(--live-red); }
.ff-option > input:not([type="hidden"]), .ff-option > textarea, .ff-option > select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid rgba(23,18,23,.18); border-radius: 0; outline: 0; background: rgba(255,255,255,.52); color: #171217; font-size: 14px; }
.ff-option > input:focus, .ff-option > textarea:focus, .ff-option > select:focus { border-color: var(--live-red); box-shadow: 0 0 0 3px rgba(213,19,23,.08); }
.ff-option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-option-choices label { min-height: 46px; padding: 7px 12px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(23,18,23,.16); background: rgba(255,255,255,.42); cursor: pointer; font-size: 14px; }
.ff-option-choices img { width: 32px; height: 32px; object-fit: contain; }
.ff-option-choices input { accent-color: var(--live-red); }
.ff-product-form .invalid-feedback.d-block { display: block; color: var(--live-red); font-size: 14px; }
.pdp-quantity input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: #171217; font-size: 16px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.pdp-quantity input::-webkit-inner-spin-button { appearance: none; }
.pdp-add.is-loading { opacity: .7; cursor: wait; }
.ff-minimum { color: #8a5b24; font-size: 14px; }
.ff-product-description, .ff-native-review { color: #6f666c; font-size: 16px; line-height: 1.9; }
.ff-product-description img { max-width: 100%; height: auto; }
.ff-tags a { color: var(--live-red); }
.ff-native-review .card, .ff-native-review .table, .ff-native-review .form-control { border-radius: 0; }
.ff-native-review .btn-primary { border-color: var(--live-red); background: var(--live-red); }

/* Native OpenCart pages that do not yet have a dedicated editorial template. */
.site-shell > .container:not(.category-breadcrumb):not(.pdp-breadcrumb),
.site-shell > form > .container { max-width: 1440px; padding: 55px clamp(20px, 5vw, 72px); }
.site-shell > .container #content { min-height: 420px; }
.route-account-login .site-shell > .container,
.route-account-register .site-shell > .container,
.route-checkout-cart .site-shell > .container,
.route-checkout-checkout .site-shell > .container { color: #f4edef; }
.site-shell #content .btn-primary { border-color: var(--live-red); background: var(--live-red); }
.site-shell #content .form-control, .site-shell #content .form-select, .site-shell #content .card { border-radius: 0; }

@media (max-width: 1180px) {
  .header-actions .icon-button[href*="account"] { display: none; }
}
@media (max-width: 980px) {
  .header-actions > #cart { margin-left: auto; }
  .ff-cart-actions { grid-template-columns: 1fr; }
  .ff-pagination { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  #alert { top: 116px; right: 16px; }
  .category-story .category-guide-grid article { min-height: 180px; }
  .ff-pagination { width: 100%; min-width: 0; overflow: hidden; }
  .ff-pagination > div { width: 100%; overflow-x: auto; padding-bottom: 7px; scrollbar-width: thin; }
  .ff-pagination .pagination { width: max-content; flex-wrap: nowrap; }
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-gallery-main { grid-column: 1; grid-row: 1; }
  .pdp-thumbnails { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  .pdp-thumbnails button { flex: 0 0 72px; width: 72px; }
  .pdp-purchase-row { grid-template-columns: 108px 1fr; }
  .pdp-rating-row { align-items: flex-start; flex-direction: column; }
}

/* Go-live usability: stock cards and overlays on small screens. */
.product-stock-unavailable { margin: 0 0 14px; color: #756b71; font-size: 14px; font-weight: 600; }
.product-buy .add-to-cart:disabled { background: #ded8dc; color: #756b71; cursor: not-allowed; transform: none; box-shadow: none; }
.age-gate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow-y: auto; }
.age-card, .age-card [data-age-copy] { min-width: 0; max-width: 100%; }
.age-card h2, .age-card [data-age-copy] > span { overflow-wrap: anywhere; }
@media (max-width: 980px) {
  .category-filter-panel > #column-left { display: block !important; }
  body.filters-open .category-catalog { z-index: 120; }
  .category-filter-panel { overscroll-behavior: contain; }
}
@media (max-width: 600px) {
  .header-actions > [data-open-search] { display: grid; width: 40px; min-width: 40px; height: 44px; padding: 0; }
  .site-header { gap: 8px; }
  .site-header .brand { min-width: 0; }
  .age-gate { grid-template-columns: minmax(0, 1fr); }
  .age-card { margin-block: auto; }
  .age-card h2 { font-size: clamp(36px, 10.5vw, 60px); }
  .age-card [data-age-copy] > div { min-width: 0; }
}
