 .shopfront {
     display: flex;
     flex-direction: column;
     min-height: 100vh;
     margin: 0;
     font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
     font-size: 16px;
     line-height: 1.5;
     color: #222;
     background: #f5f5f5;
 }

 .shopfront-header {
     padding: 0.75rem 0;
     border-bottom: 1px solid #e6e6e6;
     background: #fff;
     box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
 }

 .shopfront-header .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
     box-sizing: border-box;
     gap: 0.75rem 1.5rem;
 }

 .shopfront-maintenance {
     background: #111827;
     color: #fff;
     padding: 10px 16px;
     border-bottom: 1px solid rgba(255, 255, 255, 0.08);
 }

 .shopfront-maintenance__inner {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     gap: 12px;
     align-items: center;
     justify-content: space-between;
     font-size: 13px;
 }

 .shopfront-maintenance__link {
     color: #fff;
     text-decoration: underline;
 }

 .shopfront-logo {
     font-weight: 700;
     font-size: 1.25rem;
     color: #222;
     text-decoration: none;
     white-space: nowrap;
     margin-left: 20px;
     display: inline-flex;
     align-items: center;
     gap: 12px;
 }

 .shopfront-logo img {
     height: 56px;
     width: auto;
     display: block;
 }

 .shopfront-logo:hover {
     color: #3BAA35;
 }

 .shopfront-nav {
     display: flex;
     align-items: center;
     gap: 0.25rem;
     flex-wrap: wrap;
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .shopfront-nav a {
     display: inline-block;
     padding: 0.5rem 0.875rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: #444;
     text-decoration: none;
     border-radius: 6px;
     transition: background 0.2s, color 0.2s;
 }

 .shopfront-nav a:hover {
     background: #f0f0f0;
     color: #3BAA35;
 }

 .shopfront-link-button {
     background: none;
     border: none;
     padding: 0.5rem 0.875rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: #444;
     cursor: pointer;
     border-radius: 6px;
 }

 .shopfront-link-button:hover {
     background: #f0f0f0;
     color: #3BAA35;
 }

 .shopfront-nav a.shopfront-nav__cart {
     margin-right: 0.5rem;
 }

 .shopfront-nav__icon-link {
     display: inline-flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 0.35rem;
     padding: 0.5rem;
     margin: 0 0.125rem;
     border-radius: 6px;
     position: relative;
     font-weight: 500;
     color: #444;
     text-decoration: none;
 }

 .shopfront-nav__icon-link:hover {
     background: #f0f0f0;
     color: #3BAA35;
 }

 .shopfront-nav__label {
     font-size: 0.7rem;
     font-weight: 500;
     line-height: 1.2;
     white-space: nowrap;
 }

 .shopfront-nav__icon {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 24px;
     height: 24px;
     flex-shrink: 0;
 }

 .shopfront-nav__icon svg {
     width: 24px;
     height: 24px;
     display: block;
 }

 .shopfront-nav__badge {
     position: absolute;
     top: 0.2rem;
     right: 0.2rem;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 1.25rem;
     height: 1.25rem;
     padding: 0 0.35rem;
     font-size: 0.7rem;
     font-weight: 600;
     line-height: 1;
     color: #fff;
     background: #3BAA35;
     border-radius: 999px;
 }

 .shopfront-nav__badge:empty {
     display: none;
 }

 .shopfront-nav .shopfront-nav__sep {
     width: 1px;
     height: 1rem;
     background: #e0e0e0;
     margin: 0 0.25rem;
     align-self: center;
 }

 .shopfront-main {
     flex: 1;
     min-height: 50vh;
     padding: 0 0 1.5rem;
     background: #fff;
 }

 .container {
     max-width: 960px;
     margin: 0 auto;
     padding: 0 1rem;
     box-sizing: border-box;
 }

 .container--product {
     max-width: 1200px;
 }

 .shop-hero {
     position: relative;
     padding: 3rem 0;
     margin-bottom: 2rem;
     overflow: hidden;
 }

 .shop-hero__bg {
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, #222 0%, #333 50%, #3BAA35 100%);
     opacity: 0.96;
 }

 .shop-hero__container {
     position: relative;
     z-index: 1;
     max-width: 960px;
     margin: 0 auto;
     padding: 0 1rem;
 }

 .shop-hero__title {
     font-size: clamp(1.6rem, 5vw, 3rem);
     font-weight: 700;
     color: #fff;
     margin: 0 0 0.75rem;
 }

 .shop-hero__tagline {
     font-size: 1.125rem;
     color: rgba(255, 255, 255, 0.9);
     margin: 0 0 1.5rem;
 }

 .shop-hero__actions {
     display: flex;
     flex-wrap: wrap;
     gap: 0.75rem;
 }

 .btn--hero-primary {
     background: #fff;
     color: #222;
     padding: 0.5rem 1.25rem;
     border-radius: 6px;
     font-weight: 600;
     text-decoration: none;
     display: inline-block;
 }

 .btn--hero-primary:hover {
     background: #e6e6e6;
 }

 .btn--hero-ghost {
     color: rgba(255, 255, 255, 0.9);
     padding: 0.5rem 1rem;
     border: 1px solid rgba(255, 255, 255, 0.4);
     border-radius: 6px;
     text-decoration: none;
     display: inline-block;
 }

 .btn--hero-ghost:hover {
     background: rgba(255, 255, 255, 0.1);
 }

 .shop-search {
     display: flex;
     align-items: center;
     background: #f5f5f5;
     border: 1px solid #e6e6e6;
     border-radius: 6px;
     overflow: hidden;
 }

 .shop-search__icon {
     padding: 0.5rem 0.75rem;
     color: #666;
 }

 .shop-search__input {
     flex: 1;
     min-width: 0;
     padding: 0.5rem 0.75rem;
     border: none;
     background: transparent;
     font-size: 0.875rem;
 }

 .shop-search__submit {
     margin: 2px;
     padding: 0.35rem 0.75rem;
     font-size: 0.875rem;
     background: #3BAA35;
     color: #fff;
     border: none;
     border-radius: 4px;
     cursor: pointer;
     font-weight: 500;
 }

 .shop-search--header {
     max-width: 14rem;
     margin: 0;
     flex: 0 1 auto;
 }

 .shop-search-overlay {
     position: fixed;
     inset: 0;
     z-index: 9999;
     display: flex;
     align-items: flex-start;
     justify-content: center;
     padding: 4rem 1rem;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.2s, visibility 0.2s;
 }

 .shop-search-overlay.is-open {
     opacity: 1;
     visibility: visible;
 }

 .shop-search-overlay__backdrop {
     position: absolute;
     inset: 0;
     background: rgba(0, 0, 0, 0.4);
 }

 .shop-search-overlay__panel {
     position: relative;
     width: 100%;
     max-width: 28rem;
     background: #fff;
     border-radius: 8px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
     padding: 1.25rem;
 }

 .shop-search-overlay .shop-search {
     margin: 0;
     max-width: none;
 }

 .shop-search-overlay__close {
     position: absolute;
     top: 0.75rem;
     right: 0.75rem;
     width: 2.5rem;
     height: 2.5rem;
     padding: 0;
     border: none;
     background: transparent;
     color: #666;
     cursor: pointer;
     border-radius: 6px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .shop-search-overlay__close:hover {
     background: #f0f0f0;
     color: #222;
 }

 button.shopfront-nav__icon-link {
     background: none;
     border: none;
     cursor: pointer;
     font: inherit;
 }

 .shop-categories {
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .shop-categories__pill {
     display: inline-block;
     padding: 0.5rem 1rem;
     border-radius: 9999px;
     font-size: 0.875rem;
     font-weight: 500;
     text-decoration: none;
     color: #666;
     background: #f5f5f5;
     border: 1px solid #e6e6e6;
 }

 .shop-categories__pill:hover {
     background: #e6e6e6;
     color: #222;
 }

 .shop-categories__pill--active {
     background: #3BAA35;
     color: #fff;
     border-color: #3BAA35;
 }

 .product-grid {
     list-style: none;
     margin: 0;
     padding: 0;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 1.5rem;
 }

 .product-tile {
     margin: 0;
     position: relative;
 }

 .product-tile__actions {
     position: absolute;
     top: 0.5rem;
     right: 0.5rem;
     z-index: 2;
     display: flex;
     gap: 0.5rem;
 }

 .product-tile__action-form {
     margin: 0;
     line-height: 0;
 }

 .product-tile__btn {
     width: 2.25rem;
     height: 2.25rem;
     padding: 0;
     border: none;
     border-radius: 50%;
     background: #fff;
     color: #666;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
     transition: background 0.2s, color 0.2s, transform 0.2s;
 }

 .product-tile__btn:hover {
     color: #3BAA35;
     transform: scale(1.08);
 }

 .product-tile__btn--active {
     background: #3BAA35;
     color: #fff;
 }

 .product-tile__btn--active:hover {
     background: #2F8F2B;
     color: #fff;
 }

 .product-tile__link {
     display: flex;
     flex-direction: column;
     height: 100%;
     text-decoration: none;
     color: inherit;
     background: #fff;
     border: 1px solid #e6e6e6;
     border-radius: 6px;
     overflow: visible;
     transition: box-shadow 0.2s, transform 0.2s;
 }

 .product-tile__link:hover {
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
     transform: translateY(-2px);
 }

 .product-tile__img-wrap {
     display: block;
     position: relative;
     padding-bottom: 100%;
     background: #f5f5f5;
     overflow: hidden;
 }

 .product-tile__img {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .product-tile__placeholder {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     color: #999;
     font-size: 0.875rem;
 }

 .product-tile__info {
     padding: 1rem;
     display: flex;
     flex-direction: column;
     flex: 1;
 }

 .product-tile__name {
     font-size: 1.125rem;
     font-weight: 600;
     color: #222;
     margin-bottom: 0.25rem;
 }

 .product-tile__desc {
     font-size: 0.875rem;
     color: #666;
     margin-bottom: 0.75rem;
 }

 .product-tile__price {
     font-size: 1.25rem;
     font-weight: 700;
     color: #222;
 }

 .product-tile__footer {
     margin-top: auto;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 0.5rem;
     flex-wrap: wrap;
 }

 .product-tile__footer .item-digital-hint {
     margin-top: 0;
 }

 .shop-products__wrap {
     display: flex;
     gap: 2rem;
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
 }

 .shop-sidebar {
     flex-shrink: 0;
     width: 260px;
     background: #f5f5f5;
     border: 1px solid #e6e6e6;
     border-radius: 6px;
     padding: 1rem;
 }

 .shop-sidebar__title {
     font-size: 0.875rem;
     font-weight: 600;
     margin: 0 0 1rem;
     text-transform: uppercase;
     letter-spacing: 0.01em;
     color: #666;
 }

 .shop-sidebar__nav {
     display: flex;
     flex-direction: column;
     gap: 0;
 }

 .shop-sidebar__nav--tree>.shop-sidebar__link:first-child {
     margin-bottom: 0.75rem;
     font-weight: 500;
 }

 .shop-sidebar__branch {
     display: flex;
     flex-wrap: wrap;
     margin-bottom: 2px;
 }

 .shop-sidebar__branch .shop-sidebar__link {
     flex: 1;
     min-width: 0;
     min-height: 2.75rem;
     display: flex;
     align-items: center;
 }

 .shop-sidebar__toggle {
     flex-shrink: 0;
     width: 2.5rem;
     min-height: 2.75rem;
     padding: 0;
     border: none;
     background: transparent;
     border-radius: 6px;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     color: #666;
 }

 .shop-sidebar__toggle:hover {
     background: #e6e6e6;
     color: #3BAA35;
 }

 .shop-sidebar__toggle--empty {
     width: 2.5rem;
     min-height: 2.75rem;
     visibility: hidden;
     pointer-events: none;
 }

 .shop-sidebar__toggle-icon {
     display: block;
     width: 0;
     height: 0;
     border-left: 5px solid transparent;
     border-right: 5px solid transparent;
     border-top: 6px solid currentColor;
     transform: rotate(-90deg);
     transition: transform 0.25s ease;
 }

 .shop-sidebar__branch--open .shop-sidebar__toggle-icon {
     transform: rotate(0deg);
 }

 .shop-sidebar__children {
     flex-basis: 100%;
     display: none;
     flex-direction: column;
     margin-left: 1.25rem;
     margin-bottom: 0.75rem;
     padding-left: 1rem;
     border-left: 2px solid #e6e6e6;
 }

 /* Only open one level at a time (avoid expanding the whole subtree) */
 .shop-sidebar__branch--open > .shop-sidebar__children {
     display: flex;
 }

 .shop-sidebar__link.shop-sidebar__link--child {
     padding: 0.5rem 0.75rem 0.5rem 1.75rem;
     font-size: 0.875rem;
     min-height: 2.25rem;
     position: relative;
     border-radius: 6px;
 }

 .shop-sidebar__link.shop-sidebar__link--child::before {
     content: '';
     position: absolute;
     left: 1rem;
     top: 50%;
     width: 4px;
     height: 4px;
     margin-top: -2px;
     border-radius: 50%;
     background: #999;
     opacity: 0.6;
 }

 .shop-sidebar__link.shop-sidebar__link--child.shop-sidebar__link--active::before {
     background: #fff;
     opacity: 1;
 }

 .shop-sidebar__link {
     display: block;
     padding: 0.5rem 0.75rem;
     font-size: 0.875rem;
     color: #222;
     text-decoration: none;
     border-radius: 6px;
 }

 .shop-sidebar__link:hover {
     background: #e6e6e6;
     color: #222;
 }

 .shop-sidebar__link--active {
     background: #3BAA35;
     color: #fff;
     font-weight: 500;
 }

 .shop-sidebar__link--active:hover {
     background: #2F8F2B;
     color: #fff;
 }

 .shop-products__main {
     flex: 1;
     min-width: 0;
 }

 .shop-pagination {
     margin-top: 2rem;
     padding-top: 1.5rem;
     border-top: 1px solid #e6e6e6;
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: center;
     gap: 1rem;
 }

 .shop-pagination__list {
     list-style: none;
     margin: 0;
     padding: 0;
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
 }

 .shop-pagination__list li {
     margin: 0;
     padding: 0;
 }

 .shop-pagination__link {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 2.25rem;
     height: 2.25rem;
     padding: 0 0.5rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: #444;
     text-decoration: none;
     background: #fff;
     border: 1px solid #e6e6e6;
     border-radius: 6px;
     transition: background 0.2s, color 0.2s, border-color 0.2s;
 }

 .shop-pagination__link:hover {
     background: #f5f5f5;
     color: #3BAA35;
     border-color: #ccc;
 }

 .shop-pagination__link--prev,
 .shop-pagination__link--next {
     padding-left: 0.75rem;
     padding-right: 0.75rem;
 }

 .shop-pagination__current {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-width: 2.25rem;
     height: 2.25rem;
     padding: 0 0.5rem;
     font-size: 0.875rem;
     font-weight: 600;
     color: #fff;
     background: #3BAA35;
     border: 1px solid #3BAA35;
     border-radius: 6px;
 }

 .shop-pagination__info {
     margin: 0;
     font-size: 0.875rem;
     color: #666;
 }

 .product-page__bar {
     background: #fff;
     border-bottom: 1px solid #e6e6e6;
     padding: 1.25rem 0;
     box-shadow: 0 1px 0 #e6e6e6;
 }

 .product-page__wrap {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
     box-sizing: border-box;
 }

 .product-page__bar .product-page__wrap {
     max-width: 960px;
 }

 .product-page__back {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     font-size: 0.875rem;
     font-weight: 500;
     color: #666;
     text-decoration: none;
     margin-bottom: 0.75rem;
 }

 .product-page__back:hover {
     color: #3BAA35;
 }

 .product-page__content {
     padding: 2rem 0;
 }

 .product-detail-wrap {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
     box-sizing: border-box;
 }

 .product-detail {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 2rem;
     margin-top: 0;
 }

 .product-detail__gallery {
     max-width: 100%;
     min-width: 0;
 }

 .product-detail__img-wrap {
     aspect-ratio: 1;
     border-radius: 6px;
     overflow: hidden;
     border: 1px solid #e6e6e6;
     background: #f5f5f5;
     max-width: 100%;
 }

 .product-detail__img {
     max-width: 100%;
     max-height: 100%;
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
 }

 .product-detail__card {
     background: #f5f5f5;
     border: 1px solid #e6e6e6;
     border-radius: 6px;
     padding: 1.5rem;
     margin-bottom: 1.5rem;
 }

 .product-detail__card--buy {
     padding: 1.5rem;
 }

 .product-detail__price-block {
     margin-bottom: 1.25rem;
     padding-bottom: 1.25rem;
     border-bottom: 1px solid #e6e6e6;
 }

 .product-detail__price {
     display: block;
     font-size: 1.625rem;
     font-weight: 700;
     color: #222;
 }

 .product-detail__description-title {
     font-size: 1.125rem;
     font-weight: 600;
     margin: 0 0 0.75rem;
     color: #222;
 }

 .btn--product,
 .product-detail__submit {
     background: #3BAA35;
     color: #fff;
     border: none;
     padding: 0.75rem 1.25rem;
     border-radius: 6px;
     font-weight: 600;
     cursor: pointer;
     flex: 1;
     min-width: 200px;
 }

 .shopfront-footer {
     margin-top: auto;
     background: #222;
     color: #ccc;
 }

 .shopfront-footer__top {
     padding: 2rem 0;
 }

 .shopfront-footer__grid {
     display: grid;
     grid-template-columns: 1fr 1fr 1fr 1.2fr;
     gap: 2rem;
     max-width: 960px;
     margin: 0 auto;
     padding: 0 1rem;
 }

 .shopfront-footer__logo {
     font-size: 1.25rem;
     font-weight: 700;
     color: #fff !important;
     text-decoration: none !important;
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
 }

 .shopfront-footer__logo img {
     display: block;
     max-height: 48px;
     max-width: 180px;
     width: auto;
     height: auto;
     object-fit: contain;
 }

 .shopfront-footer__heading {
     font-size: 0.875rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.06em;
     color: #fff;
     margin: 0 0 0.75rem;
 }

 .shopfront-footer__nav ul,
 .shopfront-footer__account ul {
     list-style: none;
     padding: 0;
     margin: 0;
 }

 .shopfront-footer__nav a,
 .shopfront-footer__account a {
     color: #ccc;
     text-decoration: none;
     font-size: 0.875rem;
 }

 .shopfront-footer__nav a:hover,
 .shopfront-footer__account a:hover {
     color: #fff;
 }

 .shopfront-footer__bottom {
     padding: 1rem 0;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 .shopfront-footer__bottom-inner {
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 0.75rem;
     max-width: 960px;
     margin: 0 auto;
     padding: 0 1rem;
     font-size: 0.875rem;
     color: #999;
 }

 .visually-hidden {
     position: absolute;
     width: 1px;
     height: 1px;
     padding: 0;
     margin: -1px;
     overflow: hidden;
     clip: rect(0, 0, 0, 0);
     border: 0;
 }

 .shop-toast {
     position: fixed;
     bottom: 1.5rem;
     left: 50%;
     transform: translateX(-50%);
     padding: 0.75rem 1.25rem;
     background: #222;
     color: #fff;
     font-size: 0.875rem;
     font-weight: 500;
     border-radius: 6px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
     z-index: 9999;
     opacity: 0;
     transition: opacity 0.3s ease;
     pointer-events: none;
     max-width: 90vw;
 }

 .shop-toast.is-visible {
     opacity: 1;
 }

 @media (max-width: 768px) {
     .shop-products__wrap {
         flex-direction: column;
     }

     .shop-sidebar {
         width: 100%;
     }

     .shop-sidebar__nav:not(.shop-sidebar__nav--tree) {
         flex-direction: row;
         flex-wrap: wrap;
     }

     .shopfront-footer__grid {
         grid-template-columns: 1fr 1fr;
     }

     .shopfront-header .container {
         flex-wrap: wrap;
     }

     .shopfront-nav {
         justify-content: flex-end;
     }
 }

 @media (max-width: 640px) {
     .product-grid {
         grid-template-columns: repeat(2, 1fr);
         gap: 1rem;
     }
 }
