.cart-toggle { display: inline-flex; align-items: center; gap: 6px; }
.listing-page, .static-page { padding-top: 42px; padding-bottom: 75px; min-height: 50vh; }
.listing-page > h1, .static-page > h1 { text-align: center; font-size: 32px; margin: 0 0 45px; }
.static-page > .rich-content { padding: 0; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; gap: 20px; }
.sort-form { display: flex; align-items: center; gap: 12px; }
.sort-form select, .sort-form button, .page-search input, .account-form input { border: 1px solid #ddd; background: #fff; padding: 10px 12px; font: inherit; }
.sort-form button { cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 24px; }
.product-card { min-width: 0; }
.product-card .card-image { display: block; position: relative; overflow: hidden; aspect-ratio: 1; background: #fafafa; }
.product-card img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .2s ease; }
.product-card .card-image:hover img { transform: scale(1.025); }
.product-card h2 { margin: 15px 0 9px; font-size: 16px; font-weight: 400; line-height: 1.45; }
.card-price { display: flex; align-items: center; gap: 12px; margin: 0; }
.card-price strong { font-size: 17px; font-weight: 800; }
.card-price del { color: #999; }
.card-discount { position: absolute; left: 10px; top: 10px; background: #9c0000; color: #fff; padding: 3px 8px; font-size: 13px; }
.pagination { display: flex; justify-content: center; gap: 9px; margin: 45px 0 0; }
.pagination > * { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid #ddd; }
.pagination [aria-current] { background: #232323; color: #fff; border-color: #232323; }
.page-search { display: flex; max-width: 720px; margin: 0 auto 35px; }
.page-search input { min-width: 0; flex: 1; }
.empty-state { text-align: center; color: #999; padding: 65px 20px; }
.empty-state svg { width: 68px; fill: none; stroke: #aaa; stroke-width: 2; }
.home-section { margin-top: 58px; margin-bottom: 58px; }
.section-title, .section-heading h2 { margin: 0; font-size: 28px; font-weight: 800; text-align: center; }
.section-title { margin-bottom: 30px; }
.section-heading { position: relative; margin-bottom: 30px; }
.section-heading > a { position: absolute; right: 0; top: 8px; text-decoration: underline; font-size: 14px; }
.image-crop { position: relative; overflow: hidden; background: #fafafa; aspect-ratio: 1; }
.image-crop > img { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: block; width: 100%; height: auto; max-width: none; }
.image-crop > img.portrait-image { height: 100%; width: auto; }
.hero-slides, .hero-slide { position: relative; }
.hero-slide[hidden] { display: none; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-overlay > .container { width: 100%; }
.hero-copy { max-width: 50%; }
.hero-copy h2 { font-size: 40px; margin: 0 0 18px; }
.hero-copy p { font-size: 18px; line-height: 1.7; margin: 0 0 26px; }
.hero-copy .button { display: inline-flex; padding: 14px 29px; }
.light-text { color: #fff; }
.mobile-media { display: none; }
.slide-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 9px; }
.slide-dots button { width: 10px; height: 10px; border: 1px solid #fff; background: #ffffff55; border-radius: 50%; padding: 0; cursor: pointer; }
.slide-dots button[aria-pressed="true"] { background: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.brand-grid > a { text-align: center; }
.brand-grid span { display: block; padding-top: 12px; font-weight: 800; }
.carousel-wrap { position: relative; }
.product-carousel { display: flex; overflow: auto; gap: 24px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.product-carousel::-webkit-scrollbar { display: none; }
.product-carousel .product-card { flex: 0 0 calc((100% - 72px) / 4); scroll-snap-align: start; }
.carousel-prev, .carousel-next { position: absolute; top: 35%; z-index: 2; border: 1px solid #eee; width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #0001; font-size: 28px; cursor: pointer; }
.carousel-prev { left: -19px; }
.carousel-next { right: -19px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-grid h3 { font-size: 22px; margin: 20px 0 12px; color: #557fbf; }
.feature-grid p { line-height: 1.75; color: #557fbf; }
.text-button { display: inline-block; margin-top: 8px; padding: 10px 15px; background: #232323; color: #fff; font-weight: 800; }
.logo-strip { display: flex; overflow: auto; gap: 26px; }
.logo-strip > a { flex: 0 0 calc((100% - 130px) / 6); }
.customer-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.cart-line { display: grid; grid-template-columns: 110px 1fr 100px 140px 40px; align-items: center; gap: 22px; padding: 22px 0; border-bottom: 1px solid #eee; }
.cart-line img { width: 110px; height: 110px; object-fit: contain; }
.cart-line h2 { font-size: 16px; margin: 0 0 6px; }
.cart-line input { width: 80px; padding: 8px; border: 1px solid #ddd; font: inherit; }
.cart-line button { background: none; border: none; font-size: 24px; cursor: pointer; }
.cart-summary { text-align: right; margin-top: 30px; }
.cart-summary strong { display: block; font-size: 23px; margin-bottom: 20px; }
.form-error { color: #9c0000; }
@media(max-width:900px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
    .hero-copy h2 { font-size: 30px; }
    .hero-copy p { font-size: 16px; }
    .brand-grid { grid-template-columns: repeat(3, 1fr); }
    .carousel-prev { left: -7px; } .carousel-next { right: -7px; }
    .product-carousel .product-card { flex-basis: calc((100% - 48px) / 3); }
}
@media(max-width:600px) {
    .listing-page, .static-page { padding-top: 28px; padding-bottom: 45px; }
    .listing-page > h1, .static-page > h1 { font-size: 27px; margin-bottom: 28px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 12px; }
    .product-card h2 { font-size: 14px; }
    .card-price { gap: 6px; flex-wrap: wrap; font-size: 13px; }
    .card-price strong { font-size: 15px; }
    .listing-toolbar { flex-wrap: wrap; gap: 8px; }
    .sort-form { flex: 1; gap: 8px; }
    .sort-form select { min-width: 0; max-width: 200px; }
    .sort-form label { display: none; }
    .home-section { margin-top: 36px; margin-bottom: 36px; }
    .section-title, .section-heading h2 { font-size: 23px; }
    .section-heading > a { position: static; display: block; text-align: center; margin-top: 10px; }
    .desktop-media { display: none; } .mobile-media { display: block; }
    .hero-copy { max-width: 92%; }
    .hero-copy h2 { font-size: 30px; }
    .hero-copy p { font-size: 16px; }
    .hero-copy .button { padding: 12px 18px; }
    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
    .product-carousel { gap: 12px; }
    .product-carousel .product-card { flex-basis: calc((100% - 12px)/2); }
    .feature-grid { grid-template-columns: 1fr; gap: 35px; }
    .logo-strip > a { flex-basis: calc((100% - 26px)/2); }
    .customer-gallery { grid-template-columns: repeat(2,1fr); }
    .cart-line { grid-template-columns: 80px 1fr 32px; gap: 12px; }
    .cart-line img { width: 80px; height: 80px; }
    .cart-line .line-quantity { grid-column: 2; }
    .cart-line .line-total { grid-column: 2; }
    .cart-line .remove-line { grid-column: 3; grid-row: 1; }
    .page-search .button { padding-left: 12px; padding-right: 12px; }
}
.account-panel { max-width: 520px; margin: auto; }
.account-form { display: flex; flex-direction: column; gap: 20px; }
.account-form label { display: flex; flex-direction: column; gap: 8px; }
.account-form input, .account-form textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid #ddd; }
.account-form textarea { min-height: 120px; resize: vertical; }
.account-form .check-label { display: block; line-height: 1.8; }
.check-label input { width: auto; margin-right: 8px; }
.account-form a, .account-panel a { text-decoration: underline; }
.checkout-layout { display: grid; grid-template-columns: 1fr 0.8fr; gap: 70px; }
.checkout-summary { background: #f7f7f7; padding: 28px; align-self: start; }
.checkout-summary h2 { margin-top: 0; }
.checkout-summary article { border-bottom: 1px solid #ddd; padding: 15px 0; }
.order-status { border: 1px solid #ddd; padding: 22px; margin-top: 30px; }
@media(max-width:700px) { .checkout-layout { grid-template-columns: 1fr; gap: 35px; } }

@media (max-width: 900px) {
    .account-row > a.cart-toggle { display: inline-flex; }
    .hero-overlay > .container { width: calc(100% - 32px); }
    .hero-overlay.light-text { background: linear-gradient(90deg, rgba(0,0,0,.23), transparent 92%); }
}

.card-visual { position: relative; }
.quick-trigger { position: absolute; bottom: 0; left: 0; width: 100%; padding: 12px; background: rgba(25,25,25,.92); color: white; opacity: 0; font-weight: 700; }
.card-visual:hover .quick-trigger, .card-visual:focus-within .quick-trigger { opacity: 1; }
.product-card h2, .product-card .card-price { text-align: center; justify-content: center; }
#quick-dialog { width: min(820px, 92vw); max-width: 92vw; }
.quick-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.quick-layout img { width: 100%; height: auto; }
.quick-layout select { display: block; width: 100%; padding: 12px; margin: 10px 0 20px; border: 1px solid #ccc; background: #fff; }
#quick-price { font-size: 22px; font-weight: 700; }
#quick-detail { text-decoration: underline; }
@media (hover: none) { .quick-trigger { position: static; opacity: 1; padding: 7px; font-size: 11px; } }
@media (max-width: 640px) { .quick-layout { display: block; } .quick-layout img { max-height: 32vh; object-fit: contain; } }

@media (max-width: 640px) {
    .sort-form label { display: block; clip-path: inset(50%); position: absolute; width: 1px; height: 1px; overflow: hidden; }
    .header-tools { min-width: 0; }
}

.video-alternate { text-align: center; margin: 4px auto 16px; font-size: .875rem; }
