/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */
 /* BestBed24 custom styles */
.bb-home { --bb-cream:#efe9dc; --bb-plum:#4c2e3a; --bb-sage:#8e9c7c; --bb-charcoal:#3a3c34; --bb-taupe:#b6b1a5; }

.bb-hero { position:relative; min-height:72vh; display:flex; align-items:center; overflow:hidden; background:var(--bb-cream); }
.bb-hero-bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.bb-hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg,rgba(239,233,220,.94) 0%,rgba(239,233,220,.75) 45%,rgba(239,233,220,.15) 100%); }
.bb-hero-inner { position:relative; z-index:2; padding:90px 15px; max-width:760px; }
.bb-kicker { text-transform:uppercase; letter-spacing:.18em; font-size:.78rem; color:var(--bb-sage); margin-bottom:14px; }
.bb-hero h1 { font-family:Georgia,'Times New Roman',serif; font-size:clamp(2rem,4.4vw,3.7rem); line-height:1.12; color:var(--bb-plum); margin:0 0 18px; font-weight:400; }
.bb-lead { font-size:1.08rem; color:#5f6057; max-width:520px; margin-bottom:28px; }
.bb-actions { display:flex; gap:12px; flex-wrap:wrap; }
.bb-btn { display:inline-block; background:var(--bb-plum); color:#fff; padding:13px 26px; text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; border:1px solid var(--bb-plum); transition:opacity .2s; }
.bb-btn:hover { color:#fff; opacity:.85; }
.bb-btn-ghost { background:transparent; color:var(--bb-plum); }
.bb-btn-ghost:hover { color:#fff; background:var(--bb-plum); }

.bb-cats { padding:70px 0 40px; background:#fff; }
.bb-title { font-family:Georgia,serif; color:var(--bb-plum); font-size:2rem; font-weight:400; text-align:center; margin-bottom:34px; }
.bb-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.bb-cat { position:relative; display:block; overflow:hidden; aspect-ratio:4/3; background:var(--bb-cream); }
.bb-cat img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.bb-cat:hover img { transform:scale(1.04); }
.bb-cat span { position:absolute; left:0; right:0; bottom:0; padding:16px 18px; background:linear-gradient(transparent,rgba(58,60,52,.72)); color:#fff; font-size:1rem; letter-spacing:.06em; }

.bb-about { padding:70px 0; background:var(--bb-cream); }
.bb-about-inner { max-width:720px; }
.bb-about h2 { font-family:Georgia,serif; color:var(--bb-plum); font-size:2rem; font-weight:400; margin:0 0 16px; }
.bb-about p { color:#5f6057; }

.bb-footer { background:var(--bb-charcoal); color:#d8d2c5; padding:58px 0 0; font-size:.95rem; }
.bb-footer a { color:#d8d2c5; }
.bb-footer a:hover { color:#fff; }
.bb-footer ul { list-style:none; padding:0; margin:0; }
.bb-footer li { margin-bottom:8px; }
.bb-footer-brand { font-family:Georgia,serif; font-size:1.6rem; color:#fff; margin-bottom:12px; }
.bb-footer-head { color:#fff; text-transform:uppercase; letter-spacing:.14em; font-size:.78rem; margin-bottom:14px; }
.bb-footer-link { border-bottom:1px solid var(--bb-sage); padding-bottom:2px; }
.bb-footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:26px; padding:18px 0; font-size:.85rem; color:#9a958a; }

@media (max-width: 767px) {
  .bb-grid { grid-template-columns:repeat(2,1fr); }
  .bb-hero { min-height:64vh; }
  .bb-hero-overlay { background:rgba(239,233,220,.86); }
  .bb-hero-inner { padding:70px 15px; }
}

/* footer on all pages: variables live outside .bb-home */
.bb-footer { background:#3a3c34; color:#d8d2c5; }
.bb-footer .bb-footer-brand, .bb-footer .bb-footer-head { color:#fff; }
.bb-footer a { color:#d8d2c5; }
.bb-footer .bb-footer-bottom { color:#9a958a; }
.bb-products { padding:50px 0 20px; background:#fff; }
.bb-footer-bottom { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; }
.bb-footer-legal a { margin-left:14px; }

/* compact header */
.header-top { padding-top: 0; padding-bottom: 0; }
#_mobile_logo img.logo { max-height: 32px; width: auto; }
#_desktop_logo img.logo { max-height: 46px; width: auto; }
.header-top .mobile { padding-top: .35rem !important; padding-bottom: .35rem !important; }
@media (max-width: 991px) { .header-top { margin-bottom: 0; } }

/* mobile: modules in top bar, no side menu */
.mobile .mobile-topline { font-size: .72rem; }
#_mobile_top_menu { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#_mobile_top_menu ul { display: flex; gap: 14px; margin: 0; padding: 2px 0 4px; list-style: none; white-space: nowrap; }
#_mobile_top_menu li { flex: 0 0 auto; }
#_mobile_top_menu a { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #4c2e3a; }
#_mobile_top_menu .dropdown-menu { position: static; display: none; }

.bb-mobile-links a { color:#4c2e3a; line-height:1; }
.bb-mobile-links .material-icons { font-size: 20px; }
.bb-mobile-links .dropdown-menu { display: none; }
.bb-mobile-cats { display:flex; gap:14px; overflow-x:auto; white-space:nowrap; padding:4px 0 6px; -webkit-overflow-scrolling:touch; }
.bb-mobile-cats a { font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:#4c2e3a; }

/* portfolio typography */
@font-face { font-family:Petrona; src:url(../fonts/petrona.woff2) format(woff2); font-weight:100 900; font-display:swap; }
@font-face { font-family:Barlow; src:url(../fonts/barlow.woff2) format(woff2); font-weight:400; font-display:swap; }
body, .btn, input, select, textarea { font-family:Barlow, system-ui, -apple-system, sans-serif; color:#3a3c34; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .page-header h1, .product-title, .product-name { font-family:Petrona, Georgia, serif; color:#4c2e3a; font-weight:400; }
a { color:#4c2e3a; }
.btn-primary, .btn.btn-primary { background:#4c2e3a; border-color:#4c2e3a; color:#fff; text-transform:uppercase; letter-spacing:.08em; font-size:.8rem; }
.btn-primary:hover { background:#3a232d; border-color:#3a232d; }
.btn-outline-primary { color:#4c2e3a; border-color:#4c2e3a; }
.page-header h1, .page-content h1 { font-size:2.2rem; }
.product-price { color:#4c2e3a; font-weight:500; }
.breadcrumb a, .breadcrumb li { color:#8e9c7c; }
.bb-hero h1, .bb-title, .bb-about h2, .bb-footer-brand { font-family:"Petrona", Georgia, serif; }
/* ---- theme tokens ---- */
:root {
  --bb-bg:#ffffff; --bb-surface:#f7f3ea; --bb-surface2:#efe9dc; --bb-text:#3a3c34; --bb-muted:#6f6f66;
  --bb-heading:#4c2e3a; --bb-accent:#4c2e3a; --bb-accent-text:#ffffff; --bb-link:#4c2e3a;
  --bb-border:#e6e0d4; --bb-header:#ffffff; --bb-footer:#3a3c34; --bb-footer-text:#d8d2c5;
  --bb-hero:linear-gradient(90deg,rgba(239,233,220,.94) 0%,rgba(239,233,220,.75) 45%,rgba(239,233,220,.15) 100%);
}
[data-theme="dark"] {
  --bb-bg:#141414; --bb-surface:#1d1d1f; --bb-surface2:#26262a; --bb-text:#e6e6e3; --bb-muted:#a9a9a2;
  --bb-heading:#f1e9dc; --bb-accent:#c9a86a; --bb-accent-text:#141414; --bb-link:#d7b98a;
  --bb-border:#333338; --bb-header:#111113; --bb-footer:#0d0d0f; --bb-footer-text:#c9c9c3;
  --bb-hero:linear-gradient(90deg,rgba(20,20,20,.94) 0%,rgba(20,20,20,.72) 45%,rgba(20,20,20,.25) 100%);
}
[data-theme="catppuccin-latte"] {
  --bb-bg:#eff1f5; --bb-surface:#e6e9ef; --bb-surface2:#dce0e8; --bb-text:#4c4f69; --bb-muted:#6c6f85;
  --bb-heading:#8839ef; --bb-accent:#8839ef; --bb-accent-text:#ffffff; --bb-link:#1e66f5;
  --bb-border:#ccd0da; --bb-header:#eff1f5; --bb-footer:#4c4f69; --bb-footer-text:#eff1f5;
  --bb-hero:linear-gradient(90deg,rgba(239,241,245,.94) 0%,rgba(239,241,245,.75) 45%,rgba(239,241,245,.2) 100%);
}
[data-theme="catppuccin-frappe"] {
  --bb-bg:#303446; --bb-surface:#292c3c; --bb-surface2:#414559; --bb-text:#c6d0f5; --bb-muted:#a5adce;
  --bb-heading:#f4b8e4; --bb-accent:#ca9ee6; --bb-accent-text:#303446; --bb-link:#8caaee;
  --bb-border:#414559; --bb-header:#292c3c; --bb-footer:#232634; --bb-footer-text:#c6d0f5;
  --bb-hero:linear-gradient(90deg,rgba(48,52,70,.94) 0%,rgba(48,52,70,.72) 45%,rgba(48,52,70,.25) 100%);
}
[data-theme="catppuccin-macchiato"] {
  --bb-bg:#24273a; --bb-surface:#1e2030; --bb-surface2:#363a4f; --bb-text:#cad3f5; --bb-muted:#a5adcb;
  --bb-heading:#f5bde6; --bb-accent:#c6a0f6; --bb-accent-text:#24273a; --bb-link:#8aadf4;
  --bb-border:#363a4f; --bb-header:#1e2030; --bb-footer:#181926; --bb-footer-text:#cad3f5;
  --bb-hero:linear-gradient(90deg,rgba(36,39,58,.94) 0%,rgba(36,39,58,.72) 45%,rgba(36,39,58,.25) 100%);
}
[data-theme="catppuccin-mocha"] {
  --bb-bg:#1e1e2e; --bb-surface:#181825; --bb-surface2:#313244; --bb-text:#cdd6f4; --bb-muted:#a6adc8;
  --bb-heading:#f5e0dc; --bb-accent:#cba6f7; --bb-accent-text:#1e1e2e; --bb-link:#89b4fa;
  --bb-border:#313244; --bb-header:#181825; --bb-footer:#11111b; --bb-footer-text:#cdd6f4;
  --bb-hero:linear-gradient(90deg,rgba(30,30,46,.94) 0%,rgba(30,30,46,.72) 45%,rgba(30,30,46,.25) 100%);
}
[data-theme="nord"] {
  --bb-bg:#2e3440; --bb-surface:#3b4252; --bb-surface2:#434c5e; --bb-text:#eceff4; --bb-muted:#d8dee9;
  --bb-heading:#88c0d0; --bb-accent:#88c0d0; --bb-accent-text:#2e3440; --bb-link:#8fbcbb;
  --bb-border:#4c566a; --bb-header:#2e3440; --bb-footer:#242933; --bb-footer-text:#eceff4;
  --bb-hero:linear-gradient(90deg,rgba(46,52,64,.94) 0%,rgba(46,52,64,.72) 45%,rgba(46,52,64,.25) 100%);
}
[data-theme="dracula"] {
  --bb-bg:#282a36; --bb-surface:#21222c; --bb-surface2:#44475a; --bb-text:#f8f8f2; --bb-muted:#bfbfbf;
  --bb-heading:#ff79c6; --bb-accent:#bd93f9; --bb-accent-text:#282a36; --bb-link:#8be9fd;
  --bb-border:#44475a; --bb-header:#21222c; --bb-footer:#191a21; --bb-footer-text:#f8f8f2;
  --bb-hero:linear-gradient(90deg,rgba(40,42,54,.94) 0%,rgba(40,42,54,.72) 45%,rgba(40,42,54,.25) 100%);
}
[data-theme="dark"], [data-theme="catppuccin-frappe"], [data-theme="catppuccin-macchiato"], [data-theme="catppuccin-mocha"], [data-theme="nord"], [data-theme="dracula"] { color-scheme: dark; }

/* ---- apply tokens ---- */
html, body, #page, #wrapper, #content, .wrapper-main, .page-home { background: var(--bb-bg) !important; color: var(--bb-text) !important; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .product-title, .product-name, .page-header h1 { color: var(--bb-heading) !important; }
a { color: var(--bb-link); }
a:hover { color: var(--bb-accent); }
p, li, span, label, .text-muted, .product-description { color: var(--bb-text); }
.text-muted, .bb-lead, .product-description-short { color: var(--bb-muted) !important; }
.header-banner, .header-nav, .header-top, #header, .header-page, .navigation-bar { background: var(--bb-header) !important; color: var(--bb-text) !important; }
.header-top { border-bottom: 1px solid var(--bb-border); }
.bb-hero { background: var(--bb-bg); }
.bb-hero-overlay { background: var(--bb-hero); }
.bb-kicker { color: var(--bb-accent) !important; }
.bb-lead { color: var(--bb-muted); }
.bb-cats, .bb-products, .bb-about { background: var(--bb-bg) !important; }
.bb-cat { background: var(--bb-surface); }
.bb-about { background: var(--bb-surface) !important; }
.bb-btn, .btn-primary, .btn.btn-primary, .add-to-cart, .cart-detailed-actions .btn, .checkout .btn-primary {
  background: var(--bb-accent) !important; border-color: var(--bb-accent) !important; color: var(--bb-accent-text) !important;
}
.bb-btn-ghost { background: transparent !important; color: var(--bb-accent) !important; }
.bb-btn-ghost:hover { background: var(--bb-accent) !important; color: var(--bb-accent-text) !important; }
.btn-outline-primary, .btn-secondary { color: var(--bb-link) !important; border-color: var(--bb-border) !important; }
.product-miniature, .product-container, .js-product-miniature, .card, .product-image-container, .tabs, .tab-content, .product-tab-content, .modal-content, .dropdown-menu, .cart-summary, .cart-grid, .cart-item, .card-block {
  background: var(--bb-surface) !important; border-color: var(--bb-border) !important; color: var(--bb-text) !important;
}
.product-title a, .product-name a { color: var(--bb-heading) !important; }
.price, .product-price, .current-price, .regular-price, .product-price-and-shipping { color: var(--bb-heading) !important; }
.breadcrumb, .breadcrumb a, .breadcrumb li { background: transparent !important; color: var(--bb-muted) !important; }
.breadcrumb li::after { color: var(--bb-border); }
input:not([type=checkbox]):not([type=radio]), select, textarea, .form-control, .custom-select { background: var(--bb-surface) !important; color: var(--bb-text) !important; border-color: var(--bb-border) !important; }
input::placeholder, textarea::placeholder { color: var(--bb-muted) !important; }
.bb-footer, .footer-page, .footer-container, .bb-footer .bb-footer-bottom { background: var(--bb-footer) !important; color: var(--bb-footer-text) !important; border-color: rgba(255,255,255,.12) !important; }
.bb-footer a, .bb-footer .bb-footer-bottom, .bb-footer .bb-footer-head, .bb-footer .bb-footer-brand { color: var(--bb-footer-text) !important; }
.bb-footer .bb-footer-head, .bb-footer .bb-footer-brand { color: #fff !important; }
[data-theme] .bb-footer .bb-footer-head, [data-theme] .bb-footer .bb-footer-brand { color: var(--bb-footer-text) !important; }
.pagination .page-link, .page-link { background: var(--bb-surface) !important; color: var(--bb-text) !important; border-color: var(--bb-border) !important; }
.pagination .active .page-link { background: var(--bb-accent) !important; color: var(--bb-accent-text) !important; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--bb-surface2) !important; color: var(--bb-heading) !important; }
.nav-tabs .nav-link { color: var(--bb-muted); }
.nav-tabs .nav-link.active { color: var(--bb-heading); background: var(--bb-surface); border-color: var(--bb-border); }
hr, .border, .border-top, .border-bottom { border-color: var(--bb-border) !important; }
.alert { background: var(--bb-surface2); color: var(--bb-text); border-color: var(--bb-border); }

/* ---- theme switcher ---- */
.bb-theme-switcher { position: fixed; left: 16px; bottom: 16px; z-index: 1060; }
.bb-theme-toggle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--bb-border); background: var(--bb-surface); color: var(--bb-heading); font-size: 18px; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.bb-theme-menu { display: none; position: absolute; bottom: 52px; left: 0; background: var(--bb-surface); border: 1px solid var(--bb-border); border-radius: 10px; padding: 8px; min-width: 200px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.bb-theme-switcher.open .bb-theme-menu { display: block; }
.bb-theme-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: transparent; color: var(--bb-text); border-radius: 6px; font-size: .85rem; cursor: pointer; }
.bb-theme-menu button:hover { background: var(--bb-surface2); color: var(--bb-heading); }
@media (max-width: 767px) { .bb-theme-switcher { bottom: 12px; left: 12px; } }

/* dark-theme readability */
[data-theme="dark"] img.logo,
[data-theme="catppuccin-frappe"] img.logo,
[data-theme="catppuccin-macchiato"] img.logo,
[data-theme="catppuccin-mocha"] img.logo,
[data-theme="nord"] img.logo,
[data-theme="dracula"] img.logo { filter: brightness(0) invert(1); }
.header-nav a, .header-nav span, .header-top a, .header-top span, .mobile-topline a, .mobile-topline span { color: var(--bb-text) !important; }
.header-nav .material-icons, .header-top .material-icons { color: var(--bb-text) !important; }
#content-wrapper { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
.wrapper-columns { display: block !important; }
.page-header { background: transparent !important; border: 0 !important; }
h1.title, .counter, .page-heading .title, .page-heading .counter { background: transparent !important; }
.dropdown-menu-custom { background: var(--bb-surface) !important; border-color: var(--bb-border) !important; }
.dropdown-menu-custom .dropdown-item, .header-nav .dropdown-item, .header-nav a:visited { color: var(--bb-text) !important; }
.block-category, .page-heading, .page-heading .title, .page-heading .counter { background: transparent !important; border: 0 !important; box-shadow: none !important; text-shadow: none !important; }
.page-heading::before, .page-heading::after, .block-category::before, .block-category::after { display: none !important; }
.header-nav a, .header-nav .link-user, .header-nav .dropdown-item { background: transparent !important; box-shadow: none !important; text-shadow: none !important; }
