:root { --shop-blue: #1877f2; --shop-ink: #1e2d3d; --shop-muted: #6c7f94; --shop-line: #e4eaf1; --shop-surface: #f7f9fc; }
* { box-sizing: border-box; }
body.shop-body { min-height: 100vh; margin: 0; background: #fff; color: var(--shop-ink); font-family: Roboto, Arial, sans-serif; }
.shop-header { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 max(24px, calc((100% - 1220px) / 2)); border-bottom: 1px solid var(--shop-line); }
.shop-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--shop-ink); font-size: 22px; font-weight: 800; text-decoration: none; }.shop-brand i { color: var(--shop-blue); }
.shop-header nav { display: flex; gap: 22px; }.shop-header nav a { color: #53667b; font-size: 15px; font-weight: 600; text-decoration: none; }.shop-header nav a.active,.shop-header nav a:hover { color: var(--shop-blue); }
main { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }.shop-hero { padding: 68px 0 38px; text-align: center; }.eyebrow { margin: 0 0 12px; color: var(--shop-blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }.shop-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.035em; }.shop-hero p:not(.eyebrow) { max-width: 600px; margin: 14px auto 0; color: var(--shop-muted); font-size: 18px; line-height: 1.5; }
.shop-toolbar { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--shop-line); border-radius: 10px; background: var(--shop-surface); }.shop-search { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0 14px; border: 1px solid #d4deea; border-radius: 6px; background: #fff; color: #8ba0b6; }.shop-search input,.shop-toolbar select { width: 100%; height: 44px; border: 0; outline: 0; background: transparent; color: var(--shop-ink); font: inherit; }.shop-toolbar select { max-width: 250px; padding: 0 12px; border: 1px solid #d4deea; border-radius: 6px; background: #fff; }
.shop-content { display: grid; grid-template-columns: 210px 1fr; gap: 36px; padding: 38px 0 70px; }.category-menu { border-right: 1px solid var(--shop-line); }.category-menu h2 { margin: 0 0 14px; font-size: 16px; }.category-menu a { display: flex; justify-content: space-between; padding: 10px 14px 10px 0; color: #53667b; font-size: 15px; text-decoration: none; }.category-menu a.active,.category-menu a:hover { color: var(--shop-blue); font-weight: 700; }.category-menu small { color: #9cacbd; }.category-group { border: 0; }.category-group summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 0; color: #53667b; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }.category-group summary::-webkit-details-marker { display: none; }.category-group summary::after { width: 7px; height: 7px; margin-left: auto; border-right: 1px solid #8294a9; border-bottom: 1px solid #8294a9; content: ''; transform: rotate(45deg); transition: transform .18s; }.category-group[open] summary::after { margin-top: 4px; transform: rotate(225deg); }.category-group summary small { margin-left: 8px; margin-right: 11px; }.category-children { margin: 0 0 6px 9px; padding-left: 13px; border-left: 1px solid #dbe4ee; }.category-children a { padding: 8px 10px 8px 0; font-size: 14px; }.shop-results { display: flex; align-items: center; justify-content: space-between; min-height: 25px; margin-bottom: 16px; }.shop-results p { margin: 0; color: var(--shop-muted); font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }.shop-product { overflow: hidden; border: 1px solid var(--shop-line); border-radius: 9px; background: #fff; transition: box-shadow .2s, transform .2s; }.shop-product:hover { box-shadow: 0 10px 28px rgba(30,55,85,.1); transform: translateY(-2px); }.shop-product a { color: inherit; text-decoration: none; }.shop-product-image { display: grid; height: 210px; place-items: center; overflow: hidden; background: #f2f5f9; color: #aac0d8; font-size: 42px; }.shop-product-image img { width: 100%; height: 100%; object-fit: cover; }.shop-product-body { padding: 17px; }.shop-category { display: block; margin-bottom: 7px; color: var(--shop-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }.shop-product h2 { overflow: hidden; margin: 0; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }.shop-product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }.shop-price { color: var(--shop-ink); font-size: 19px; font-weight: 800; }.stock { color: #2c8c5f; font-size: 13px; }.stock.out { color: #b7791f; }.empty-shop { grid-column: 1 / -1; padding: 48px 20px; border: 1px dashed #cbd7e5; border-radius: 8px; color: var(--shop-muted); text-align: center; }
.shop-footer { padding: 26px 24px; border-top: 1px solid var(--shop-line); color: var(--shop-muted); font-size: 14px; text-align: center; }
.product-page { padding: 34px 0 80px; }.back-shop { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 26px; color: #526a83; font-size: 14px; font-weight: 600; text-decoration: none; }.back-shop:hover { color: var(--shop-blue); }.product-detail { min-height: 420px; }.product-detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: clamp(32px, 6vw, 76px); }.product-main-image { display: grid; height: 480px; place-items: center; overflow: hidden; border: 1px solid var(--shop-line); border-radius: 10px; background: #f3f6fa; color: #a7bad0; font-size: 70px; }.product-main-image img { width: 100%; height: 100%; object-fit: cover; }.product-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }.product-thumbs button { width: 74px; height: 64px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #f2f5f9; cursor: pointer; }.product-thumbs button.active { border-color: var(--shop-blue); }.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }.product-info .shop-category { margin-bottom: 12px; }.product-info h1 { margin: 0; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.03em; }.product-sku { margin: 10px 0 26px; color: var(--shop-muted); font-size: 14px; }.product-price { font-size: 30px; font-weight: 800; }.availability { display: inline-block; margin-top: 16px; padding: 7px 10px; border-radius: 5px; background: #e9f7ef; color: #258553; font-size: 13px; font-weight: 700; }.availability.out { background: #fff4e5; color: #a86809; }.product-options { margin: 28px 0; border-top: 1px solid var(--shop-line); }.option-row { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--shop-line); font-size: 15px; }.option-row b { width: 140px; }.option-row span { color: var(--shop-muted); }.buy-button { width: 100%; height: 50px; border: 0; border-radius: 6px; background: var(--shop-blue); color: #fff; font: 700 16px Roboto,Arial,sans-serif; cursor: pointer; }.buy-button:disabled { background: #aab6c4; cursor: not-allowed; }
@media (max-width: 800px) { .shop-header { height: 62px; padding: 0 20px; }.shop-content { grid-template-columns: 1fr; gap: 20px; }.category-menu { display: none; }.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.product-detail-grid { grid-template-columns: 1fr; }.product-main-image { height: min(100vw - 48px, 440px); } }
@media (max-width: 520px) { main { width: min(100% - 32px, 1220px); }.shop-hero { padding: 44px 0 28px; }.shop-toolbar { flex-direction: column; }.shop-toolbar select { max-width: none; }.product-grid { grid-template-columns: 1fr; }.shop-product-image { height: 245px; }.shop-header nav { gap: 15px; } }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }.cart-count { display: inline-grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: var(--shop-blue); color: #fff; font-size: 11px; }.cart-page,.checkout-page { padding: 34px 0 80px; }.cart-page h1,.checkout-page h1 { margin: 0 0 26px; font-size: 34px; }.cart-layout,.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }.cart-items,.checkout-form,.order-summary { border: 1px solid var(--shop-line); border-radius: 9px; background: #fff; }.cart-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 118px 110px; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--shop-line); }.cart-row:last-child { border-bottom: 0; }.cart-image { display: grid; width: 92px; height: 78px; place-items: center; overflow: hidden; border-radius: 6px; background: #f2f5f9; color: #9db2ca; }.cart-image img { width: 100%; height: 100%; object-fit: cover; }.cart-item-copy { display: grid; gap: 7px; }.cart-item-copy a { color: var(--shop-ink); font-weight: 700; text-decoration: none; }.cart-item-copy small { color: var(--shop-muted); }.cart-remove { width: max-content; padding: 0; border: 0; background: transparent; color: #dc3545; font: inherit; font-size: 13px; cursor: pointer; }.quantity-control { display: flex; align-items: center; justify-content: center; gap: 12px; }.quantity-control button { width: 28px; height: 28px; border: 1px solid #d4deea; border-radius: 4px; background: #fff; color: var(--shop-ink); font-size: 18px; cursor: pointer; }.quantity-control span { min-width: 16px; text-align: center; }.order-summary { padding: 22px; }.order-summary h2,.checkout-form h2 { margin: 0 0 20px; font-size: 19px; }.order-summary > div { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0; color: #5e7185; font-size: 14px; }.order-summary > div strong { color: var(--shop-ink); }.order-summary hr { border: 0; border-top: 1px solid var(--shop-line); margin: 18px 0; }.order-summary .summary-total { color: var(--shop-ink); font-size: 17px; font-weight: 700; }.shop-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 45px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--shop-blue); color: #fff; font: 700 15px Roboto,Arial,sans-serif; text-decoration: none; cursor: pointer; }.checkout-action { width: 100%; margin-top: 12px; }.checkout-layout { grid-template-columns: minmax(0, 1fr) 360px; }.checkout-form { display: grid; gap: 16px; padding: 26px; }.checkout-form label { display: grid; gap: 7px; color: #32475d; font-size: 14px; font-weight: 700; }.checkout-form input,.checkout-form textarea { width: 100%; padding: 11px 12px; border: 1px solid #ccd9e7; border-radius: 5px; color: var(--shop-ink); font: 15px Roboto,Arial,sans-serif; resize: vertical; }.checkout-form .shop-action { width: 100%; margin-top: 6px; }.checkout-note { margin: 0; color: var(--shop-muted); font-size: 13px; text-align: center; }.checkout-note i { color: #2b8a5f; }.checkout-item { align-items: start; }.checkout-item small { color: var(--shop-muted); }.order-success { max-width: 600px; margin: 40px auto; padding: 48px 28px; border: 1px solid var(--shop-line); border-radius: 10px; text-align: center; }.order-success > i { color: #299967; font-size: 50px; }.order-success h2 { margin: 13px 0; font-size: 29px; }.order-success p { color: var(--shop-muted); }.order-success .shop-action { margin-top: 10px; }.empty-shop > i { color: var(--shop-blue); font-size: 33px; }
@media (max-width: 800px) { .cart-layout,.checkout-layout { grid-template-columns: 1fr; }.cart-row { grid-template-columns: 74px minmax(0,1fr) 100px; }.cart-row > strong { grid-column: 3; }.cart-image { width: 74px; height: 64px; } }
@media (max-width: 520px) { .cart-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }.cart-row > strong,.quantity-control { grid-column: 2; justify-content: flex-start; }.cart-image { width: 64px; height: 58px; grid-row: span 2; }.cart-page h1,.checkout-page h1 { font-size: 28px; } }
.checkout-error { margin: 0; color: #c82333; font-size: 14px; text-align: center; }
.product-rating { display: flex; align-items: center; gap: 9px; margin: 12px 0 -12px; color: #f3ad1e; font-size: 17px; letter-spacing: 1px; }.product-rating small { color: var(--shop-muted); font-size: 12px; letter-spacing: 0; }.product-reviews { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--shop-line); }.product-reviews h2 { margin: 0; font-size: 17px; }.product-reviews p { margin: 8px 0 0; color: var(--shop-muted); font-size: 14px; }
