/* Scoped to two category pages only; keeps parent/child theme intact. */
body.cg-category-refresh { --cg-ink:#202832; --cg-purple:#6948a5; --cg-purple-dark:#493277; --cg-lavender:#f4f0fb; --cg-border:#e8e5ee; }
body.cg-category-refresh #wrapper { background:linear-gradient(180deg,#faf9fd 0%,#fff 600px); }
body.cg-category-refresh #content-wrapper { min-width:0; }
body.cg-category-refresh .cg-cat-original-hidden { display:none!important; }
body.cg-category-refresh .cg-cat-hero { position:relative; overflow:hidden; margin:12px 0 32px; border-radius:22px; min-height:250px; padding:42px 44px; color:#fff; background:linear-gradient(115deg,#37234d 0%,#65459b 62%,#9167b4 100%); box-shadow:0 14px 32px rgba(51,35,83,.13); }
body.cg-category-accessories .cg-cat-hero { background:linear-gradient(115deg,#27364e 0%,#4a5488 56%,#8064ad 100%); }
body.cg-category-refresh .cg-cat-hero:before { content:""; position:absolute; right:-65px; top:-140px; width:420px; height:420px; border:1px solid rgba(255,255,255,.16); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.045),0 0 0 110px rgba(255,255,255,.035); pointer-events:none; }
body.cg-category-refresh .cg-cat-hero-inner { position:relative; z-index:1; max-width:780px; }
body.cg-category-refresh .cg-cat-eyebrow { font-size:12px; letter-spacing:.17em; font-weight:750; color:#e7dafb; margin-bottom:12px; }
body.cg-category-refresh .cg-cat-title { font-size:clamp(29px,3.5vw,45px); line-height:1.14; letter-spacing:-.025em; margin:0 0 15px; font-weight:750; color:#fff; text-transform:none; }
body.cg-category-refresh .cg-cat-subtitle { font-size:17px; line-height:1.65; color:#f6f1fc; max-width:720px; margin:0 0 24px; }
body.cg-category-refresh .cg-cat-perks { display:flex; flex-wrap:wrap; gap:10px; }
body.cg-category-refresh .cg-cat-perk { display:inline-flex; align-items:center; gap:7px; border:1px solid rgba(255,255,255,.22); border-radius:100px; padding:8px 13px; background:rgba(255,255,255,.09); font-size:13px; font-weight:600; color:#fff; }
body.cg-category-refresh .cg-cat-check { display:grid; place-items:center; height:18px; width:18px; color:#433467; background:#f2eafd; border-radius:50%; font-weight:900; }
body.cg-category-refresh .cg-cat-products-heading { text-align:center; padding:0 12px 22px; }
body.cg-category-refresh .cg-cat-section-kicker { font-size:11px; color:var(--cg-purple); font-weight:750; letter-spacing:.18em; margin-bottom:9px; }
body.cg-category-refresh .cg-cat-products-heading h2 { margin:0 0 8px; font-size:clamp(23px,2.5vw,32px); color:var(--cg-ink); letter-spacing:-.025em; font-weight:750; text-transform:none; }
body.cg-category-refresh .cg-cat-products-heading p { color:#727181; font-size:15px; margin:0; }
body.cg-category-refresh #js-product-list .products { display:flex; flex-wrap:wrap; justify-content:center; gap:20px; align-items:stretch; }
body.cg-category-refresh #js-product-list .products > .product-miniature,
body.cg-category-refresh #js-product-list .products > .js-product-miniature,
body.cg-category-refresh #js-product-list .products > article { float:none; margin:0!important; width:calc((100% - 40px)/3); max-width:390px; min-width:0; height:auto; flex:0 1 calc((100% - 40px)/3); }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-container { width:100%; max-width:none; height:100%; min-height:435px; border:1px solid var(--cg-border); border-radius:18px; background:#fff; box-shadow:0 8px 25px rgba(38,24,66,.055); overflow:hidden; transition:transform .22s ease,box-shadow .22s ease; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-container:hover { transform:translateY(-4px); box-shadow:0 15px 34px rgba(38,24,66,.12); }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-top { width:100%; background:#fff; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-top .product-thumbnail { display:flex; justify-content:center; align-items:center; width:100%; padding:18px; aspect-ratio:1.16; height:auto; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-top .product-thumbnail img { max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; }
body.cg-category-refresh #js-product-list .product-miniature .product-description { position:relative; top:auto; bottom:auto; width:100%; height:auto; min-height:185px; padding:15px 20px 22px; background:#fff; text-align:center; }
body.cg-category-refresh #js-product-list .product-miniature .product-title { min-height:46px; margin:5px 0 10px; font-size:17px; line-height:1.4; font-weight:750; text-transform:none; overflow:visible; }
body.cg-category-refresh #js-product-list .product-miniature .product-title a { color:var(--cg-ink); white-space:normal; overflow:visible; text-overflow:clip; display:block; }
body.cg-category-refresh #js-product-list .product-miniature .product-title a:hover { color:var(--cg-purple); }
body.cg-category-refresh #js-product-list .product-miniature .product-price-and-shipping { margin:7px 0 15px; line-height:1.7; font-size:20px; font-weight:800; color:var(--cg-purple-dark); }
body.cg-category-refresh #js-product-list .product-miniature .regular-price { color:#8a8993; font-size:14px; font-weight:500; }
body.cg-category-refresh #js-product-list .product-miniature .discount-percentage,
body.cg-category-refresh #js-product-list .product-miniature .discount-amount { border-radius:6px; }
body.cg-category-refresh #js-product-list .product-miniature .product-flags { z-index:3; left:12px; top:12px; }
body.cg-category-refresh #js-product-list .product-miniature .product-flags li { border-radius:7px; font-size:11px; font-weight:750; padding:6px 9px; margin:0 0 5px; }
body.cg-category-refresh #js-product-list .product-miniature .highlighted-informations { position:relative; bottom:auto; width:100%; background:#fff; height:auto; min-height:0; padding:0 0 14px; box-shadow:none; }
body.cg-category-refresh #js-product-list .product-miniature .highlighted-informations .quick-view { display:inline-flex!important; position:relative; z-index:4; align-items:center; justify-content:center; color:var(--cg-purple); font-weight:650; margin:0 auto; font-size:13px; }
body.cg-category-refresh #js-product-list .product-miniature .highlighted-informations .quick-view:hover { color:var(--cg-purple-dark); }
body.cg-category-refresh #js-product-list .product-miniature .cg-cat-card-action { display:block; width:100%; padding:11px 10px; margin:12px auto 0; background:var(--cg-purple); color:#fff; border-radius:9px; font-weight:750; font-size:14px; line-height:1.3; text-decoration:none; transition:background .2s ease; }
body.cg-category-refresh #js-product-list .product-miniature .cg-cat-card-action:hover { background:var(--cg-purple-dark); color:#fff; }
body.cg-category-refresh .cg-cat-next-step { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:27px 30px; margin:36px 0 30px; border:1px solid #e7dff2; border-radius:17px; background:linear-gradient(110deg,#f7f2fc,#fff); }
body.cg-category-refresh .cg-cat-next-step h2 { color:var(--cg-ink); font-size:22px; font-weight:750; text-transform:none; margin:0 0 8px; }
body.cg-category-refresh .cg-cat-next-step p { font-size:14px; color:#77717f; line-height:1.6; margin:0; }
body.cg-category-refresh .cg-cat-next-link { flex-shrink:0; padding:13px 19px; border-radius:9px; background:#fff; color:var(--cg-purple-dark); font-size:14px; font-weight:750; border:1px solid #d9caeb; text-decoration:none; }
body.cg-category-refresh .cg-cat-next-link:hover { background:var(--cg-purple); border-color:var(--cg-purple); color:#fff; }
body.cg-category-refresh #js-product-list-top .total-products,
body.cg-category-refresh #js-product-list-bottom .pagination { color:#77717f; }
@media (max-width:991px) {
 body.cg-category-refresh #js-product-list .products > .product-miniature,
 body.cg-category-refresh #js-product-list .products > .js-product-miniature,
 body.cg-category-refresh #js-product-list .products > article { width:calc((100% - 20px)/2); flex-basis:calc((100% - 20px)/2); }
 body.cg-category-refresh .cg-cat-hero { padding:35px 30px; }
}
@media (max-width:575px) {
 body.cg-category-refresh .cg-cat-hero { padding:27px 22px; min-height:0; margin-bottom:23px; border-radius:15px; }
 body.cg-category-refresh .cg-cat-subtitle { font-size:15px; }
 body.cg-category-refresh .cg-cat-perk { font-size:12px; }
 body.cg-category-refresh .cg-cat-perks { gap:7px; }
 body.cg-category-refresh #js-product-list .products { gap:17px; }
 body.cg-category-refresh #js-product-list .products > .product-miniature,
 body.cg-category-refresh #js-product-list .products > .js-product-miniature,
 body.cg-category-refresh #js-product-list .products > article { width:100%; flex-basis:100%; max-width:440px; }
 body.cg-category-refresh .cg-cat-next-step { flex-direction:column; align-items:flex-start; padding:24px 20px; }
 body.cg-category-refresh .cg-cat-next-link { width:100%; text-align:center; }
}

/* v1.2.0: category card polish and reliable 3-column sizing */
body.cg-category-refresh #js-product-list .products { margin-left:0!important; margin-right:0!important; }
body.cg-category-refresh #js-product-list .products > article,
body.cg-category-refresh #js-product-list .products > .product-miniature { box-sizing:border-box; }
body.cg-category-refresh #js-product-list .product-miniature { min-width:0!important; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-container { min-height:0; display:flex; flex-direction:column; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-top { flex:1 0 auto; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-top .product-thumbnail { min-height:215px; aspect-ratio:1.25; }
body.cg-category-refresh #js-product-list .product-miniature .product-description { min-height:190px; }
body.cg-category-refresh #js-product-list .product-miniature .product-title { height:auto!important; max-height:none!important; }
body.cg-category-refresh #js-product-list .product-miniature .product-title a { white-space:normal!important; text-overflow:clip!important; overflow-wrap:anywhere; }
body.cg-category-refresh #js-product-list .product-miniature .cg-cat-card-action { display:block; width:auto; max-width:290px; margin:16px auto 0; padding:13px 18px; }
body.cg-category-refresh #js-product-list .product-miniature .product-flags .online-only { display:none; }
body.cg-category-refresh #js-product-list .product-miniature .highlighted-informations { position:relative!important; top:auto!important; bottom:auto!important; opacity:1!important; visibility:visible!important; }
body.cg-category-refresh .cg-cat-products-heading { margin-top:28px; }
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-container:hover .highlighted-informations { bottom:auto!important; }

/* Newsletter: deliberately applies to all CubbyGlow PrestaShop pages.
   Supports Classic's block_newsletter form and the child theme variations. */
#footer .block_newsletter,
#blockEmailSubscription_displayFooterBefore,
.block_newsletter { box-sizing:border-box; min-width:0!important; max-width:100%; }
.block_newsletter *,
#blockEmailSubscription_displayFooterBefore * { box-sizing:border-box; }
.block_newsletter > .row,
#blockEmailSubscription_displayFooterBefore > .row { display:grid!important; grid-template-columns:minmax(180px, .9fr) minmax(0, 2fr)!important; column-gap:28px; row-gap:12px; align-items:start; margin-left:0!important; margin-right:0!important; width:100%; }
.block_newsletter > .row > *,
#blockEmailSubscription_displayFooterBefore > .row > * { width:100%!important; max-width:100%!important; min-width:0!important; padding:0!important; float:none!important; flex:none!important; }
.block_newsletter #block-newsletter-label,
.block_newsletter .block-newsletter-label { min-width:0; font-size:18px; line-height:1.45; overflow-wrap:break-word; }
.block_newsletter form,
#blockEmailSubscription_displayFooterBefore form { width:100%!important; min-width:0!important; max-width:100%!important; margin:0!important; }
.block_newsletter form .input-wrapper,
#blockEmailSubscription_displayFooterBefore form .input-wrapper { min-width:0!important; width:auto!important; flex:1 1 190px!important; }
.block_newsletter form input[type="email"],
.block_newsletter form input[name="email"],
#blockEmailSubscription_displayFooterBefore form input[type="email"] { display:block; width:100%!important; max-width:100%!important; min-width:0!important; height:52px; padding:12px 16px; border:1px solid #d9d3e1; border-radius:10px; }
.block_newsletter form input[type="submit"],
.block_newsletter form button[type="submit"],
#blockEmailSubscription_displayFooterBefore form input[type="submit"] { max-width:100%; min-height:50px; border-radius:10px; white-space:normal; }
.block_newsletter form .row,
#blockEmailSubscription_displayFooterBefore form .row { min-width:0!important; max-width:100%!important; margin-left:0!important; margin-right:0!important; }
.block_newsletter form .row > *,
#blockEmailSubscription_displayFooterBefore form .row > * { min-width:0!important; max-width:100%; }
.block_newsletter p,
.block_newsletter .newsletter-conditions,
#blockEmailSubscription_displayFooterBefore p { max-width:100%; overflow-wrap:break-word; word-break:normal; line-height:1.55; }
.block_newsletter .clearfix,
#blockEmailSubscription_displayFooterBefore .clearfix { max-width:100%; }
.block_newsletter .conditions,
.block_newsletter [class*="conditions"],
.block_newsletter .legal { clear:both; }
@media (max-width:900px) {
  .block_newsletter > .row,
  #blockEmailSubscription_displayFooterBefore > .row { grid-template-columns:minmax(0, 1fr)!important; row-gap:16px; }
}
@media (max-width:575px) {
  .block_newsletter form input[type="email"],
  #blockEmailSubscription_displayFooterBefore form input[type="email"] { height:48px; }
  .block_newsletter form input[type="submit"],
  .block_newsletter form button[type="submit"] { width:100%; }
}

/* v1.3.0: Override both Classic's flex rows and child theme Bootstrap column widths.
   Grid sizing is applied to the container, not guessed from the product count. */
body.cg-category-refresh #js-product-list .products {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
  justify-items:stretch!important;
  align-items:stretch!important;
  margin:0!important;
  padding:0!important;
  width:100%!important;
}
body.cg-category-refresh #js-product-list .products > .product-miniature,
body.cg-category-refresh #js-product-list .products > .js-product-miniature,
body.cg-category-refresh #js-product-list .products > article,
body.cg-category-refresh #js-product-list .products > [class*="col-"] {
  display:block!important;
  grid-column:auto!important;
  min-width:0!important;
  max-width:none!important;
  width:100%!important;
  flex:none!important;
  flex-basis:auto!important;
  margin:0!important;
  padding:0!important;
  float:none!important;
  box-sizing:border-box!important;
}
body.cg-category-refresh #js-product-list .product-miniature .thumbnail-container {
  min-width:0!important;
  width:100%!important;
  height:100%!important;
}
body.cg-category-refresh #js-product-list .product-miniature .product-description {
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:208px;
  flex-grow:1;
}
body.cg-category-refresh #js-product-list .product-miniature .product-price-and-shipping { margin-top:auto; }
body.cg-category-refresh #js-product-list .product-miniature .cg-cat-card-action { margin-top:14px; }
body.cg-category-refresh .cg-cat-buying-guide {
  margin:44px 0 28px;
  padding:36px 30px;
  border:1px solid #eee8f6;
  border-radius:20px;
  background:linear-gradient(135deg,#faf7ff 0%,#fff 80%);
}
body.cg-category-refresh .cg-cat-buying-guide .cg-cat-section-kicker { text-align:center; }
body.cg-category-refresh .cg-cat-guide-title {
  text-align:center;
  margin:6px 0 26px;
  color:var(--cg-ink);
  font-size:clamp(22px,2.5vw,29px);
  line-height:1.25;
  text-transform:none;
  font-weight:750;
}
body.cg-category-refresh .cg-cat-guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.cg-category-refresh .cg-cat-guide-tile { min-width:0; background:#fff; border:1px solid #ebe4f3; border-radius:14px; padding:20px 18px; box-shadow:0 6px 20px rgba(45,30,80,.035); }
body.cg-category-refresh .cg-cat-guide-number { display:inline-grid; place-items:center; width:35px; height:35px; margin-bottom:14px; color:#fff; background:var(--cg-purple); border-radius:10px; font-weight:750; font-size:13px; }
body.cg-category-refresh .cg-cat-guide-tile h3 { font-size:17px; line-height:1.3; font-weight:750; color:var(--cg-ink); margin:0 0 8px; text-transform:none; }
body.cg-category-refresh .cg-cat-guide-tile p { font-size:14px; line-height:1.55; color:#6b6576; margin:0; }
body.cg-category-refresh .cg-cat-next-step { margin-top:20px; }
@media (max-width: 900px) {
 body.cg-category-refresh #js-product-list .products { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
 body.cg-category-refresh .cg-cat-guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 575px) {
 body.cg-category-refresh #js-product-list .products { grid-template-columns:minmax(0,1fr)!important; gap:18px!important; }
 body.cg-category-refresh .cg-cat-buying-guide { margin:30px 0 22px; padding:25px 17px; }
 body.cg-category-refresh .cg-cat-guide-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
}


/* v1.4.0 — site-wide width enhancement for PrestaShop pages only.
   Unlike category styling above, this applies to the shared header, wrapper
   and footer. The separately hosted static homepage is unaffected.
   Scoped to desktop to preserve Classic's mobile layout. */
@media (min-width:1200px) {
  body #header .container,
  body #wrapper > .container,
  body #footer .container,
  body #content-wrapper > .container,
  body .footer-container > .container,
  body .container {
    width:calc(100% - 64px)!important;
    max-width:1440px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  body #wrapper > .container { padding-left:16px!important; padding-right:16px!important; }
}
@media (min-width:992px) and (max-width:1199.98px) {
  body .container { width:calc(100% - 48px)!important; max-width:none!important; }
}
/* Keep media, tables and flex children inside their wider parent. */
body #content-wrapper { min-width:0; }
body #content-wrapper img { max-width:100%; }
body .block_newsletter, body .block_newsletter form { min-width:0; }


/* v1.5 — real CubbyGlow logo in a dedicated vertical brand rail.
   Scope completely to categories 10 and 11. */
@media (min-width:992px) {
  body.cg-category-refresh .cg-cat-layout {
    display:flex!important; flex-wrap:nowrap!important; align-items:stretch;
    gap:22px; margin-left:0!important; margin-right:0!important;
  }
  body.cg-category-refresh .cg-cat-layout > .cg-brand-holder {
    display:block!important; position:relative; float:none!important;
    flex:0 0 146px!important; width:146px!important; max-width:146px!important;
    min-width:146px!important; padding:0!important; margin:0!important;
  }
  body.cg-category-refresh .cg-cat-layout > .cg-brand-holder > :not(.cg-brand-rail) {
    display:none!important;
  }
  body.cg-category-refresh .cg-cat-layout > #content-wrapper {
    float:none!important; flex:1 1 0!important; width:auto!important;
    max-width:none!important; min-width:0!important; padding:0!important; margin:0!important;
  }
  body.cg-category-refresh .cg-brand-rail {
    position:relative; display:flex; justify-content:center; align-items:flex-start;
    width:100%; min-height:740px; margin-top:12px;
    background:linear-gradient(180deg,#fcfaff,#fff); border:1px solid #eee8f5;
    border-radius:20px; overflow:hidden;
  }
  body.cg-category-refresh .cg-brand-link {
    display:block; position:sticky; top:112px; margin-top:80px;
    height:570px; width:122px; max-width:100%; overflow:visible;
  }
  body.cg-category-refresh .cg-brand-image {
    display:block; position:absolute; left:50%; top:50%;
    width:540px!important; max-width:none!important; height:100px!important;
    object-fit:contain; transform:translate(-50%,-50%) rotate(-90deg);
    transform-origin:center center; filter:drop-shadow(0 8px 9px rgba(64,26,101,.08));
  }
}
@media (min-width:992px) and (max-width:1199.98px) {
  body.cg-category-refresh .cg-cat-layout { gap:16px; }
  body.cg-category-refresh .cg-cat-layout > .cg-brand-holder {
    flex-basis:118px!important; width:118px!important; min-width:118px!important; max-width:118px!important;
  }
  body.cg-category-refresh .cg-brand-rail { min-height:660px; }
  body.cg-category-refresh .cg-brand-image { width:490px!important; height:auto!important; }
}
@media (max-width:991.98px) {
  body.cg-category-refresh .cg-brand-holder { display:none!important; }
}

/* v1.6: shared CubbyGlow design language for the whole PrestaShop site. */
body.cg-site-theme { --cg-ink:#252538; --cg-purple:#6842a3; --cg-purple-dark:#47256f; --cg-lavender:#f7f3fc; --cg-border:#ebe5f2; color:var(--cg-ink); }
body.cg-site-theme #wrapper { background:linear-gradient(180deg,#faf8fd 0%,#ffffff 610px); }
body.cg-site-theme #header,body.cg-site-theme #footer { font-family:inherit; }
body.cg-site-theme h1, body.cg-site-theme h2,body.cg-site-theme h3,body.cg-site-theme .h1,body.cg-site-theme .h2,body.cg-site-theme .h3 { color:var(--cg-ink); letter-spacing:-.015em; line-height:1.25; }
body.cg-site-theme a { transition:color .16s ease,background-color .16s ease,border-color .16s ease; }
body.cg-site-theme .btn-primary,body.cg-site-theme button.btn-primary,body.cg-site-theme a.btn-primary,body.cg-site-theme .add-to-cart { background:#6842a3; border-color:#6842a3; border-radius:9px; font-weight:700; }
body.cg-site-theme .btn-primary:hover,body.cg-site-theme .btn-primary:focus,body.cg-site-theme .add-to-cart:hover { background:#47256f; border-color:#47256f; }
body.cg-site-theme .btn-secondary { border-radius:9px; }
body.cg-site-theme input.form-control,body.cg-site-theme select.form-control,body.cg-site-theme textarea.form-control,body.cg-site-theme .form-control { border-radius:9px; max-width:100%; }
body.cg-site-theme .card,body.cg-site-theme .product-cover,body.cg-site-theme .tabs,body.cg-site-theme .page-content,body.cg-site-theme #content.page-content { border-radius:14px; }
body.cg-site-theme #content-wrapper { min-width:0; }
body.cg-site-theme #content-wrapper img { max-width:100%; height:auto; }
body.cg-site-theme #footer .links a:hover { color:#6842a3; }
body.cg-site-theme #footer { background:#f5f9fc; }
body.cg-site-theme .breadcrumb { font-size:13px; }
body.cg-site-theme .product-price { color:#47256f; }
/* Shared product cards on listings outside the two bespoke categories */
body.cg-site-theme:not(.cg-category-refresh) .product-miniature .thumbnail-container { border-radius:15px; border:1px solid #eee8f4; box-shadow:0 5px 20px rgba(47,27,75,.055); }
/* Reuse the same left brand rail on product / info pages when Classic has the layout wrapper. */
@media (min-width:992px) {
  body.cg-brand-content .cg-cat-layout { display:flex!important; flex-wrap:nowrap!important; align-items:stretch; gap:22px; margin-left:0!important; margin-right:0!important; }
  body.cg-brand-content .cg-cat-layout > .cg-brand-holder { display:block!important; position:relative; float:none!important; flex:0 0 146px!important; width:146px!important; max-width:146px!important; min-width:146px!important; padding:0!important; margin:0!important; }
  body.cg-brand-content .cg-cat-layout > .cg-brand-holder > :not(.cg-brand-rail) { display:none!important; }
  body.cg-brand-content .cg-cat-layout > #content-wrapper { float:none!important; flex:1 1 0!important; width:auto!important; max-width:none!important; min-width:0!important; padding:0!important; margin:0!important; }
  body.cg-brand-content .cg-brand-rail { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:20px; width:100%; min-height:740px; margin-top:12px; border:1px solid #eee8f5; background:linear-gradient(180deg,#fcfaff,#fff); border-radius:20px; overflow:hidden; padding:28px 8px; }
  body.cg-brand-content .cg-brand-link { position:relative; display:block; flex:none; width:120px; height:460px; max-width:100%; margin:0; }
  body.cg-brand-content .cg-brand-image { display:block; position:absolute; left:50%; top:50%; width:460px!important; max-width:none!important; height:auto!important; object-fit:contain; transform:translate(-50%,-50%) rotate(-90deg); transform-origin:center center; filter:drop-shadow(0 6px 8px rgba(60,30,90,.09)); }
  body.cg-category-refresh .cg-brand-rail { display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:20px; min-height:1100px; padding:26px 7px; }
  body.cg-category-refresh .cg-brand-link { position:relative; display:block; flex:none; width:120px; height:460px; max-width:100%; margin:0; top:auto; }
  body.cg-category-refresh .cg-brand-image { position:absolute; left:50%; top:50%; width:460px!important; height:auto!important; max-width:none!important; transform:translate(-50%,-50%) rotate(-90deg); }
}
@media (min-width:992px) and (max-width:1199.98px) {
  body.cg-brand-content .cg-cat-layout { gap:16px; }
  body.cg-brand-content .cg-cat-layout > .cg-brand-holder { flex-basis:118px!important; width:118px!important; min-width:118px!important; max-width:118px!important; }
  body.cg-brand-content .cg-brand-link,body.cg-category-refresh .cg-brand-link { width:100px; height:400px; }
  body.cg-brand-content .cg-brand-image,body.cg-category-refresh .cg-brand-image { width:400px!important; }
}
@media (max-width:991.98px) {
  body.cg-brand-content .cg-brand-holder { display:none!important; }
  body.cg-site-theme #wrapper > .container { width:100%; max-width:100%; padding-left:16px; padding-right:16px; }
}
@media (max-width:575px) {
  body.cg-site-theme h1 { font-size:clamp(24px,6vw,33px); }
  body.cg-site-theme .btn-primary { max-width:100%; white-space:normal; }
}


/* v1.7.0 — consistent site navigation, content rhythm, product/detail and checkout polish.
   No interaction changes; visual-only rules. All selectors are scoped to PrestaShop. */
body.cg-site-theme { --cg-card:#fff; --cg-radius:16px; --cg-muted:#6f687a; }
/* Header: consistent height and spacing, accessible focus and controlled wrapping. */
body.cg-site-theme #header { background:#fff; box-shadow:0 1px 6px rgba(38,23,65,.055); position:relative; z-index:20; }
body.cg-site-theme #header .header-nav { border-bottom:1px solid #efeaf5; }
body.cg-site-theme #header .header-top { background:#fff; }
body.cg-site-theme #header .header-top .container,
body.cg-site-theme #header .header-nav .container { min-width:0; }
body.cg-site-theme #header .header-top .row { align-items:center; }
body.cg-site-theme #header .top-menu a[data-depth="0"],
body.cg-site-theme #header .top-menu > li > a { color:#35264b; font-weight:700; text-transform:none; letter-spacing:.005em; white-space:normal; line-height:1.35; }
body.cg-site-theme #header .top-menu a:hover,
body.cg-site-theme #header .top-menu a:focus { color:#6842a3; }
body.cg-site-theme #header .header-top .menu { min-width:0; }
body.cg-site-theme :is(a,button,input,select,textarea):focus-visible { outline:2px solid #7e56b4; outline-offset:3px; }
/* Shared page canvas/content and consistent text rhythm. */
body.cg-site-theme #wrapper > .container { box-sizing:border-box; }
body.cg-site-theme #content-wrapper { overflow-wrap:break-word; }
body.cg-site-theme #content-wrapper > #main { min-width:0; }
body.cg-site-theme #content-wrapper .page-content,
body.cg-site-theme #content-wrapper .page-content.page-cms { background:#fff; box-sizing:border-box; }
body.cg-site-theme #content-wrapper p { line-height:1.6; }
body.cg-site-theme #content-wrapper :is(h1,h2,h3) { overflow-wrap:break-word; }
body.cg-site-theme #content-wrapper .page-header h1,
body.cg-site-theme #content-wrapper .page-title { font-weight:750; margin-bottom:20px; }
body.cg-site-theme:not(.cg-site-checkout):not(#product) #content-wrapper .page-content:not(.product-information) { padding:clamp(18px,2.4vw,32px); }
/* Product page – preserve gallery positioning and existing preorder components. */
body.cg-site-theme#product #main .row.product-container { align-items:start; }
body.cg-site-theme#product .product-cover,
body.cg-site-theme#product .images-container { border-radius:16px; }
body.cg-site-theme#product .product-cover img { border-radius:14px; }
body.cg-site-theme#product .product-information h1,
body.cg-site-theme#product h1.h1 { font-weight:800; line-height:1.2; letter-spacing:-.02em; }
body.cg-site-theme#product .current-price,
body.cg-site-theme#product .current-price .price,
body.cg-site-theme#product .product-price { color:#47256f; font-weight:800; }
body.cg-site-theme#product .product-prices { margin-bottom:18px; }
body.cg-site-theme#product .product-variants { margin:20px 0; }
body.cg-site-theme#product .product-variants .control-label { font-weight:700; color:#29223a; }
body.cg-site-theme#product .product-add-to-cart { margin:16px 0; }
body.cg-site-theme#product .product-add-to-cart .add-to-cart { min-height:46px; padding:11px 24px; }
body.cg-site-theme#product .tabs { border:1px solid #ece4f4; background:#fff; padding:clamp(14px,2vw,26px); }
body.cg-site-theme#product .tabs .nav-tabs .nav-link.active { color:#6842a3; border-bottom-color:#6842a3; }
body.cg-site-theme#product .product-accessories,
body.cg-site-theme#product .featured-products,
body.cg-site-theme#product .product-comments-additional-info { margin-top:26px; }
/* Controls in account, guest-tracking, CMS, cart and checkout. */
body.cg-site-theme .form-control { border:1px solid #dcd5e7; box-shadow:none; }
body.cg-site-theme .form-control:focus { border-color:#8968ba; box-shadow:0 0 0 3px rgba(104,66,163,.11); }
body.cg-site-theme .form-group { margin-bottom:17px; }
body.cg-site-theme :is(.btn-primary,.btn-secondary) { min-height:40px; }
body.cg-site-theme#guest-tracking #content,
body.cg-site-theme#contact #content,
body.cg-site-theme#authentication #content { border:1px solid #efe9f5; background:#fff; border-radius:16px; }
body.cg-site-theme#cart .cart-container,
body.cg-site-theme#cart .card,
body.cg-site-theme.cg-site-checkout .card,
body.cg-site-theme.cg-site-checkout .checkout-step,
body.cg-site-theme.cg-site-checkout #order-summary-content { border-radius:14px; }
body.cg-site-theme.cg-site-checkout .checkout-step { border-color:#e9e2f1; }
body.cg-site-theme.cg-site-checkout .step-title { color:#30263e; font-weight:750; }
body.cg-site-theme.cg-site-checkout .payment-options label { line-height:1.55; }
body.cg-site-theme.cg-site-checkout .payment-options img { max-width:100%; height:auto; }
body.cg-site-theme #footer .footer-container { padding-top:28px; }
body.cg-site-theme #footer .h3,
body.cg-site-theme #footer .h4 { color:#2d2740; font-weight:750; }
@media (min-width:992px) {
  /* Brand rail consistently contains two identical logos on desktop. */
  body.cg-site-theme .cg-brand-rail { justify-content:space-between!important; }
  body.cg-site-theme .cg-brand-rail .cg-brand-link { flex-shrink:0!important; }
  body.cg-site-theme .cg-brand-rail .cg-brand-link + .cg-brand-link { margin-top:12px; }
}
@media (max-width:991.98px) {
  body.cg-site-theme #header .top-menu a[data-depth="0"] { white-space:normal; }
  body.cg-site-theme#product .product-add-to-cart .add-to-cart { max-width:100%; }
}
@media (max-width:575px) {
  body.cg-site-theme:not(.cg-site-checkout):not(#product) #content-wrapper .page-content:not(.product-information) { padding:16px; }
  body.cg-site-theme#product .tabs { padding:14px; }
}

/* v1.8.0: Product and cart finishing pass. No JS checkout/payment changes. */
@media (min-width:992px) {
 /* Handle product templates where #main is the primary content node. */
 body.cg-brand-main-fallback#product .cg-cat-layout { display:flex!important; flex-wrap:nowrap!important; align-items:stretch; gap:22px; }
 body.cg-brand-main-fallback#product .cg-cat-layout > .cg-brand-holder { display:block!important; flex:0 0 140px!important; width:140px!important; max-width:140px!important; padding:0!important; }
 body.cg-brand-main-fallback#product .cg-cat-layout > .cg-brand-holder > :not(.cg-brand-rail) { display:none!important; }
 body.cg-brand-main-fallback#product .cg-cat-layout > #main { flex:1 1 0!important; min-width:0!important; width:auto!important; max-width:none!important; }
 body.cg-brand-main-fallback#product .cg-brand-rail { display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:18px; padding:26px 6px; min-height:930px; border:1px solid #eee8f5; border-radius:20px; background:linear-gradient(180deg,#fcfaff,#fff); }
 body.cg-brand-main-fallback#product .cg-brand-link { width:115px; height:430px; position:relative; display:block; }
 body.cg-brand-main-fallback#product .cg-brand-image { position:absolute; left:50%; top:50%; width:430px!important; height:auto!important; max-width:none!important; transform:translate(-50%,-50%) rotate(-90deg); }
 body.cg-product-refined .cg-brand-rail { min-height:900px; }
 body.cg-cart-refined .cg-brand-rail { min-height:665px; padding-top:18px; padding-bottom:18px; }
 body.cg-cart-refined .cg-brand-link { height:300px; width:108px; }
 body.cg-cart-refined .cg-brand-image { width:310px!important; }
}
/* Product page: increase useful image area and create consistent two-column balance. */
body.cg-product-refined #main { min-width:0; }
body.cg-product-refined #main .row.product-container { display:flex; flex-wrap:wrap; align-items:flex-start; gap:0; margin-left:-12px; margin-right:-12px; }
body.cg-product-refined #main .row.product-container > [class*="col-"] { padding-left:12px; padding-right:12px; min-width:0; }
body.cg-product-refined .images-container { max-width:100%; }
body.cg-product-refined .product-cover { background:#fff; border:1px solid #eee8f5; box-shadow:0 8px 26px rgba(45,25,70,.06); overflow:hidden; }
body.cg-product-refined .product-cover img { display:block; max-width:100%; width:100%; height:auto; object-fit:contain; }
body.cg-product-refined .product-images img { border-radius:8px; }
body.cg-product-refined .product-information,body.cg-product-refined .product-actions { min-width:0; }
body.cg-product-refined .product-information .product-prices { margin:15px 0 18px; }
body.cg-product-refined .product-information .product-add-to-cart { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
body.cg-product-refined .product-add-to-cart .add-to-cart { border-radius:10px; min-height:48px; padding:11px 22px; }
body.cg-product-refined .product-description,body.cg-product-refined .tabs { line-height:1.65; }
body.cg-product-refined .tabs { margin-top:25px; }
body.cg-product-refined .product-accessories,body.cg-product-refined .featured-products { clear:both; padding-top:15px; }
body.cg-product-refined .product-accessories .products,body.cg-product-refined .featured-products .products { display:flex; flex-wrap:wrap; gap:18px; align-items:stretch; }
body.cg-product-refined .product-accessories .product-miniature,body.cg-product-refined .featured-products .product-miniature { min-width:0; }
/* Cart: make the summary and product card feel like one shopping layout. */
body.cg-cart-refined .cart-grid { align-items:flex-start; }
body.cg-cart-refined .cart-container,body.cg-cart-refined .cart-summary { background:#fff; border:1px solid #eee8f5; border-radius:16px; box-shadow:0 6px 24px rgba(47,27,75,.045); }
body.cg-cart-refined .cart-container .card { border:0; box-shadow:none; }
body.cg-cart-refined .cart-item { border-bottom:1px solid #f0ebf5; padding-top:12px; padding-bottom:12px; }
body.cg-cart-refined .cart-item:last-child { border-bottom:0; }
body.cg-cart-refined .cart-summary .checkout a.btn-primary { width:100%; text-align:center; }
body.cg-cart-refined .cart-summary .cart-summary-totals { border-color:#e8e2f0; }
body.cg-cart-refined .cart-grid-right { margin-bottom:18px; }
body.cg-cart-refined .cart-overview { margin-bottom:0; }
/* Keep payment modules' native button styling and functional markup. */
body.cg-site-checkout .payment-options { min-width:0; }
body.cg-site-checkout .payment-option { padding:8px 0; }
body.cg-site-checkout .checkout-step { margin-bottom:14px; }
@media (min-width:1200px) {
 body.cg-product-refined #main .row.product-container > .col-md-6 { flex:0 0 50%; max-width:50%; }
}
@media (max-width:991.98px) {
 body.cg-product-refined .cg-brand-holder,body.cg-brand-main-fallback .cg-brand-holder { display:none!important; }
 body.cg-product-refined #main .row.product-container { margin-left:-8px; margin-right:-8px; }
 body.cg-product-refined #main .row.product-container > [class*="col-"] { padding-left:8px; padding-right:8px; }
}
@media (max-width:575px) {
 body.cg-product-refined .product-add-to-cart .add-to-cart { width:auto; max-width:100%; }
 body.cg-cart-refined .cart-item { padding:12px 6px; }
}


/* v1.8.1: keep two vertical brand logos visible on product pages even when
   the child theme uses a full-width product content wrapper. */
@media (min-width:992px) {
  body#product.cg-brand-content .cg-cat-layout {
    display:flex!important; flex-wrap:nowrap!important;
    align-items:stretch!important; gap:22px!important;
  }
  body#product.cg-brand-content .cg-cat-layout > .cg-brand-holder {
    display:block!important; visibility:visible!important;
    flex:0 0 130px!important; width:130px!important;
    min-width:130px!important; max-width:130px!important;
    padding:0!important; margin:0!important;
  }
  body#product.cg-brand-content .cg-cat-layout > #content-wrapper,
  body#product.cg-brand-main-fallback .cg-cat-layout > #main {
    flex:1 1 0!important; min-width:0!important;
    width:auto!important; max-width:none!important;
    float:none!important; padding:0!important;
  }
  body#product.cg-brand-content .cg-brand-rail {
    display:flex!important; flex-direction:column!important;
    justify-content:space-between!important; align-items:center!important;
    min-height:800px!important; padding:19px 5px!important;
  }
  body#product.cg-brand-content .cg-brand-link {
    display:block!important; position:relative!important;
    width:115px!important; height:365px!important; margin:0!important;
    top:auto!important;
  }
  body#product.cg-brand-content .cg-brand-image {
    display:block!important; position:absolute!important;
    top:50%!important; left:50%!important;
    width:365px!important; height:auto!important; max-width:none!important;
    transform:translate(-50%,-50%) rotate(-90deg)!important;
  }
  /* Two smaller logos make the basket rail shorter, without losing branding. */
  body#cart.cg-cart-refined .cg-brand-rail {
    min-height:530px!important; padding:15px 5px!important;
  }
  body#cart.cg-cart-refined .cg-brand-link {
    height:235px!important; width:100px!important; margin:0!important;
  }
  body#cart.cg-cart-refined .cg-brand-image {
    width:245px!important; height:auto!important;
  }
}


/* v1.9.0 – product page visual refinement. Product details are placed below
   both the image and purchase panels, with no changes to shop data/forms. */
body#product.cg-product-refined #main { --cg-product-gap:clamp(20px,3vw,42px); }
body#product.cg-product-refined #main > .row.product-container,
body#product.cg-product-refined #main .row.product-container {
  align-items:start;
  margin-bottom:24px;
}
body#product.cg-product-refined .product-cover {
  margin-bottom:14px;
  border-color:#ece5f5;
  border-radius:18px;
  box-shadow:0 9px 26px rgba(47,27,75,.065);
}
body#product.cg-product-refined .images-container { margin-bottom:12px; }
body#product.cg-product-refined .product-images { margin-top:12px; }
body#product.cg-product-refined .product-images .thumb-container { margin-bottom:9px; }
body#product.cg-product-refined .product-information h1,
body#product.cg-product-refined h1.h1 {
  font-size:clamp(22px,2vw,30px);
  line-height:1.27;
  margin-bottom:14px;
  text-transform:none;
}
body#product.cg-product-refined .product-prices { margin:14px 0 20px; }
body#product.cg-product-refined .product-prices .current-price {
  font-size:clamp(23px,2.2vw,32px); line-height:1.2;
}
body#product.cg-product-refined .product-add-to-cart { margin:16px 0 20px; }
body#product.cg-product-refined .product-add-to-cart .add-to-cart {
  min-height:48px; padding:12px 22px; font-weight:750;
}
body#product.cg-product-refined .product-information { overflow-wrap:break-word; }
body#product.cg-product-refined .product-information > * { max-width:100%; }
/* Preorder/payment boxes keep their content, positions and working buttons. */
body#product.cg-product-refined .product-information :is(.card,.alert) { max-width:100%; }
/* The existing tab block is moved out of the narrow right column by JS. */
body#product.cg-product-refined .cg-product-wide-tabs {
  display:block; width:100%; max-width:100%; clear:both;
  margin:26px 0 30px; padding:clamp(22px,2.5vw,34px);
  border:1px solid #eae3f2; border-radius:17px;
  box-shadow:0 6px 22px rgba(47,27,75,.04);
  background:#fff;
}
body#product.cg-product-refined .cg-product-wide-tabs .tab-content {
  max-width:950px; line-height:1.7;
}
body#product.cg-product-refined .cg-product-wide-tabs .nav-tabs {
  margin-bottom:20px;
}
body#product.cg-product-refined .cg-product-suggestions {
  clear:both; margin:28px auto 32px; padding-top:14px;
  max-width:1080px;
}
body#product.cg-product-refined .cg-product-suggestions > h2,
body#product.cg-product-refined .cg-product-suggestions > .h2,
body#product.cg-product-refined .cg-product-suggestions > h3 {
  text-align:center; font-size:clamp(20px,2vw,26px); margin-bottom:22px;
}
body#product.cg-product-refined .cg-product-suggestions .products {
  display:flex; flex-wrap:wrap; justify-content:center; gap:20px;
  margin-left:0; margin-right:0;
}
body#product.cg-product-refined .cg-product-suggestions .product-miniature {
  flex:0 1 235px; width:235px; max-width:100%; margin:0; padding:0;
}
body#product.cg-product-refined .cg-product-suggestions .thumbnail-container {
  width:100%; max-width:100%; border-radius:15px; overflow:hidden;
}
@media (min-width:1200px) {
  body#product.cg-product-refined #main .row.product-container {
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:var(--cg-product-gap); margin-left:0; margin-right:0;
  }
  body#product.cg-product-refined #main .row.product-container > [class*="col-"] {
    width:100%; min-width:0; max-width:none; padding:0; flex:none;
  }
  body#product.cg-product-refined #main .row.product-container > :not([class*="col-"]) { min-width:0; }
}
@media (max-width:767.98px) {
  body#product.cg-product-refined .cg-product-wide-tabs { padding:18px; }
  body#product.cg-product-refined .cg-product-suggestions .products { gap:14px; }
  body#product.cg-product-refined .cg-product-suggestions .product-miniature {
    flex-basis:calc(50% - 8px); width:calc(50% - 8px);
  }
}
@media (max-width:480px) {
  body#product.cg-product-refined .cg-product-suggestions .product-miniature {
    flex-basis:100%; width:100%; max-width:280px;
  }
}


/* v1.9.3: Compact, shrink-to-content image viewer. No huge empty modal column.
   Scoped strictly to the native #product-modal, not the page gallery or quickview. */
body#product.cg-product-refined #product-modal {
  z-index: 1060;
  padding: 0 12px!important;
}
body#product.cg-product-refined #product-modal .modal-dialog {
  display:table!important;
  width:fit-content!important;
  max-width:calc(100vw - 40px)!important;
  min-width:0!important;
  margin:24px auto!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal .modal-content {
  display:block!important;
  position:relative!important;
  width:fit-content!important;
  max-width:100%!important;
  max-height:calc(100dvh - 48px)!important;
  overflow:auto!important;
  background:#fff!important;
  border-radius:16px!important;
  box-shadow:0 16px 55px rgba(24,14,38,.24);
}
body#product.cg-product-refined #product-modal .modal-body {
  position:relative!important;
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:18px!important;
  width:max-content!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:20px!important;
  overflow:visible!important;
}
body#product.cg-product-refined #product-modal .modal-body > figure {
  display:block!important;
  position:relative!important;
  float:none!important;
  flex:0 1 auto!important;
  width:fit-content!important;
  max-width:min(66vw,640px)!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  overflow:visible!important;
}
body#product.cg-product-refined #product-modal .modal-body > figure > picture {
  display:block!important;
  position:static!important;
  width:fit-content!important;
  max-width:100%!important;
  height:auto!important;
  margin:0!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal .modal-body > figure img,
body#product.cg-product-refined #product-modal img.js-modal-product-cover,
body#product.cg-product-refined #product-modal img.product-cover-modal {
  display:block!important;
  position:static!important;
  float:none!important;
  width:auto!important;
  height:auto!important;
  max-width:min(66vw,640px)!important;
  max-height:calc(100dvh - 100px)!important;
  margin:0!important;
  padding:0!important;
  object-fit:contain!important;
  transform:none!important;
  border-radius:10px;
}
body#product.cg-product-refined #product-modal .modal-body figure figcaption,
body#product.cg-product-refined #product-modal .image-caption {display:none!important;}
body#product.cg-product-refined #product-modal .modal-body > aside#thumbnails {
  display:block!important;
  position:static!important;
  float:none!important;
  flex:0 0 186px!important;
  width:186px!important;
  max-width:186px!important;
  min-width:0!important;
  height:auto!important;
  max-height:calc(100dvh - 100px)!important;
  margin:0!important;
  padding:0!important;
  overflow:auto!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal aside#thumbnails .mask,
body#product.cg-product-refined #product-modal aside#thumbnails .js-modal-mask {
  display:block!important;
  position:static!important;
  float:none!important;
  width:100%!important;
  max-width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal aside#thumbnails .product-images {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
  overflow:visible!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal aside#thumbnails .thumb-container {
  display:block!important;
  position:static!important;
  float:none!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body#product.cg-product-refined #product-modal aside#thumbnails .thumb-container picture {
  display:block!important;
  width:100%!important;
  height:auto!important;
}
body#product.cg-product-refined #product-modal aside#thumbnails img.js-modal-thumb {
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1!important;
  object-fit:contain!important;
  margin:0!important;
  border:2px solid #eee7f5;
  border-radius:9px;
  cursor:pointer;
}
body#product.cg-product-refined #product-modal aside#thumbnails img.selected {
  border-color:#6842a3;
}
body#product.cg-product-refined #product-modal .js-modal-arrows { display:none!important; }
/* Compact the manufacturer's logo in Product Details. No empty logo hero block. */
body#product.cg-product-refined #product-details {
  min-height:0!important;
  padding-top:6px!important;
}
body#product.cg-product-refined #product-details .product-manufacturer {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  max-width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0 auto 18px!important;
  padding:0!important;
  text-align:center!important;
}
body#product.cg-product-refined #product-details .product-manufacturer a,
body#product.cg-product-refined #product-details .product-manufacturer picture {
  display:block!important;
  width:fit-content!important;
  max-width:100%!important;
  height:auto!important;
  margin:0 auto!important;
  padding:0!important;
}
body#product.cg-product-refined #product-details .product-manufacturer img,
body#product.cg-product-refined #product-details img.manufacturer-logo {
  display:block!important;
  width:auto!important;
  max-width:min(240px,75vw)!important;
  height:auto!important;
  max-height:125px!important;
  object-fit:contain!important;
  margin:0 auto!important;
}
body#product.cg-product-refined #product-details .product-reference,
body#product.cg-product-refined #product-details .product-availability-date,
body#product.cg-product-refined #product-details .product-condition {
  margin:10px 0!important;
  padding:0!important;
}
body#product.cg-product-refined #product-details .product-features { margin:14px 0!important; }
/* Full-width preorder information beneath the two-column product area. */
body#product.cg-product-refined #main .cg-product-wide-preorder {
  clear:both!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:8px 0 28px!important;
  padding:clamp(18px,2.4vw,30px)!important;
  border-radius:15px;
}
body#product.cg-product-refined #main .cg-product-wide-preorder table {width:100%!important;table-layout:auto;}
body#product.cg-product-refined #main .cg-product-wide-preorder :is(td,th) {padding:9px 12px!important;overflow-wrap:anywhere;}
@media (max-width:767.98px) {
  body#product.cg-product-refined #product-modal .modal-dialog {
    max-width:calc(100vw - 20px)!important;
    margin:10px auto!important;
  }
  body#product.cg-product-refined #product-modal .modal-content {max-height:calc(100dvh - 20px)!important;}
  body#product.cg-product-refined #product-modal .modal-body {
    flex-direction:column!important;
    gap:12px!important;
    max-width:calc(100vw - 20px)!important;
    width:100%!important;
    padding:12px!important;
  }
  body#product.cg-product-refined #product-modal .modal-body > figure {
    width:100%!important;
    max-width:100%!important;
    align-self:center;
  }
  body#product.cg-product-refined #product-modal .modal-body > figure img,
  body#product.cg-product-refined #product-modal img.js-modal-product-cover {
    max-width:100%!important;
    max-height:60dvh!important;
    margin:0 auto!important;
  }
  body#product.cg-product-refined #product-modal .modal-body > aside#thumbnails {
    flex:0 0 auto!important;
    width:100%!important;
    max-width:100%!important;
    max-height:none!important;
  }
  body#product.cg-product-refined #product-modal aside#thumbnails .product-images {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body#product.cg-product-refined #main .cg-product-wide-preorder {padding:15px!important;}
  body#product.cg-product-refined #main .cg-product-wide-preorder :is(td,th) {padding:7px 5px!important;}
}

/* v1.9.4 – Product Details manufacturer logo only.
   Do not alter the now-working product image popup. */
@media (min-width:768px) {
  body#product.cg-product-refined #product-details .product-manufacturer {
    margin:0 auto 4px!important;
    padding:0!important;
    min-height:0!important;
    height:auto!important;
  }
  body#product.cg-product-refined #product-details .product-manufacturer a,
  body#product.cg-product-refined #product-details .product-manufacturer picture {
    width:340px!important;
    max-width:100%!important;
    margin:0 auto!important;
  }
  body#product.cg-product-refined #product-details .product-manufacturer img,
  body#product.cg-product-refined #product-details img.manufacturer-logo {
    width:340px!important;
    max-width:100%!important;
    max-height:180px!important;
    height:auto!important;
    object-fit:contain!important;
    margin:0 auto!important;
  }
}
@media (max-width:767.98px) {
  body#product.cg-product-refined #product-details .product-manufacturer {
    margin:0 auto 6px!important;
    min-height:0!important;
  }
  body#product.cg-product-refined #product-details .product-manufacturer img,
  body#product.cg-product-refined #product-details img.manufacturer-logo {
    width:min(280px,85vw)!important;
    max-width:100%!important;
    height:auto!important;
    max-height:145px!important;
    object-fit:contain!important;
    margin:0 auto!important;
  }
}
body#product.cg-product-refined #product-details .product-reference,
body#product.cg-product-refined #product-details .product-availability-date,
body#product.cg-product-refined #product-details .product-condition {margin:5px 0!important;}
body#product.cg-product-refined #product-details .product-features {margin:9px 0!important;}

/* v1.9.5: Left-align ONLY the manufacturer artwork in Product Details.
   Gallery modal, vertical brand rail and all checkout styles unchanged. */
body#product.cg-product-refined #product-details .product-manufacturer {
  justify-content:flex-start!important;
  align-items:flex-start!important;
  text-align:left!important;
  margin:0 0 8px!important;
}
body#product.cg-product-refined #product-details .product-manufacturer a,
body#product.cg-product-refined #product-details .product-manufacturer picture {
  margin-left:0!important;
  margin-right:auto!important;
}
body#product.cg-product-refined #product-details .product-manufacturer img,
body#product.cg-product-refined #product-details img.manufacturer-logo {
  margin-left:0!important;
  margin-right:auto!important;
}
