Download tasks/hmart/tests/oracle-runtime/clone/static/styles.css from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 33.8 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/hmart/tests/oracle-runtime/clone/static/styles.css
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/hmart/tests/oracle-runtime/clone/static/styles.css
-
curl -L -o styles.css https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/hmart/tests/oracle-runtime/clone/static/styles.css
33.8 kB
| :root { | |
| --red: #e30613; | |
| --red-dark: #bf0010; | |
| --ink: #111111; | |
| --muted: #666666; | |
| --line: #dedede; | |
| --surface: #ffffff; | |
| --canvas: #f5f5f5; | |
| --yellow: #ffbd18; | |
| --radius: 8px; | |
| --shadow: 0 4px 18px rgb(0 0 0 / 12%); | |
| --max: 1440px; | |
| --header-h: 194px; | |
| } | |
| * { box-sizing: border-box; } | |
| html { color-scheme: light; scroll-behavior: smooth; } | |
| body { | |
| margin: 0; | |
| background: var(--canvas); | |
| color: var(--ink); | |
| font-family: Arial, "Noto Sans", Helvetica, sans-serif; | |
| font-size: 16px; | |
| line-height: 1.35; | |
| } | |
| button, input, select, textarea { font: inherit; } | |
| button, a { -webkit-tap-highlight-color: transparent; } | |
| button { cursor: pointer; } | |
| button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, | |
| textarea:focus-visible { | |
| outline: 3px solid #1769e0; | |
| outline-offset: 2px; | |
| } | |
| a { color: inherit; text-decoration: none; } | |
| img { display: block; max-width: 100%; } | |
| .skip-link { | |
| position: fixed; z-index: 1000; left: 12px; top: -60px; | |
| background: #fff; color: #111; padding: 10px 14px; border-radius: 4px; | |
| } | |
| .skip-link:focus { top: 10px; } | |
| .sr-only { | |
| position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; | |
| overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; | |
| } | |
| .campaign-strip { | |
| height: 22px; line-height: 22px; display: flex; align-items: center; justify-content: center; | |
| background: | |
| linear-gradient(90deg, transparent 0 8%, rgb(230 0 18 / 8%) 8% 10%, transparent 10% 90%, | |
| rgb(230 0 18 / 8%) 90% 92%, transparent 92%), | |
| #fff; | |
| color: var(--red); font-weight: 800; font-size: 19px; letter-spacing: .2px; | |
| } | |
| .utility-bar { height: 52px; background: var(--red); color: #fff; } | |
| .utility-inner, .header-main, .nav-inner { | |
| max-width: var(--max); margin: 0 auto; padding: 0 18px; | |
| } | |
| .utility-inner { | |
| height: 100%; display: flex; align-items: center; justify-content: space-between; | |
| } | |
| .binding-tabs { display: flex; height: 100%; align-items: flex-end; gap: 5px; } | |
| .binding-tab { | |
| background: #fff; color: var(--red); padding: 9px 13px; font-weight: 800; | |
| border-radius: 5px 5px 0 0; font-size: 14px; | |
| } | |
| .utility-links { display: flex; gap: 22px; align-items: center; font-weight: 700; font-size: 14px; } | |
| .header-main { | |
| height: 82px; display: grid; grid-template-columns: 160px minmax(320px, 1fr) 226px; | |
| gap: 0; align-items: center; background: #fff; | |
| } | |
| .main-header { background: #fff; } | |
| .logo { | |
| color: var(--red); font-style: italic; font-weight: 950; font-size: 31px; | |
| letter-spacing: -2px; display: inline-flex; align-items: center; gap: 7px; | |
| } | |
| .logo-mark { | |
| width: 27px; height: 27px; background: var(--red); border-radius: 2px; | |
| position: relative; transform: skew(-7deg); | |
| } | |
| .logo-mark::before, .logo-mark::after { | |
| content: ""; position: absolute; background: #fff; transform: skew(7deg); | |
| } | |
| .logo-mark::before { left: 8px; top: 4px; width: 5px; height: 19px; } | |
| .logo-mark::after { left: 13px; top: 9px; width: 8px; height: 5px; } | |
| .search-form { position: relative; } | |
| .search-input { | |
| width: 100%; height: 48px; border: 1px solid #d9d9d9; border-radius: 8px; | |
| background: #f6f6f6; padding: 0 54px 0 20px; color: #222; | |
| } | |
| .search-input::placeholder { color: #999; } | |
| .search-submit { | |
| position: absolute; right: 4px; top: 4px; width: 42px; height: 40px; border: 0; | |
| background: transparent; color: var(--red); font-size: 0; | |
| } | |
| .search-submit::before { | |
| content: ""; position: absolute; width: 13px; height: 13px; border: 3px solid currentColor; | |
| border-radius: 50%; left: 11px; top: 9px; | |
| } | |
| .search-submit::after { | |
| content: ""; position: absolute; width: 10px; height: 3px; background: currentColor; | |
| transform: rotate(45deg); left: 24px; top: 24px; border-radius: 2px; | |
| } | |
| .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; } | |
| .header-action { | |
| border: 0; background: transparent; min-height: 46px; color: #111; display: flex; | |
| align-items: center; gap: 9px; font-size: 13px; text-align: left; padding: 4px; | |
| } | |
| .header-action strong { display: block; font-size: 14px; } | |
| .icon { width: 25px; height: 25px; display: inline-grid; place-items: center; font-size: 22px; } | |
| .cart-action { position: relative; } | |
| .cart-badge { | |
| position: absolute; top: -2px; right: -6px; min-width: 21px; height: 21px; | |
| padding: 0 5px; display: grid; place-items: center; background: var(--red); | |
| color: #fff; border-radius: 50%; font-weight: 800; font-size: 11px; | |
| } | |
| .nav-bar { height: 40px; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #ddd; } | |
| .nav-inner { height: 38px; display: flex; align-items: center; gap: 24px; overflow: hidden; } | |
| .nav-link, .nav-button { | |
| border: 0; background: transparent; padding: 11px 0; white-space: nowrap; | |
| font-weight: 750; font-size: 14px; | |
| } | |
| .nav-link.active, .nav-link:hover, .nav-button:hover { color: var(--red); } | |
| .nav-spacer { margin-left: auto; } | |
| .mobile-head { display: none; } | |
| .category-menu { | |
| position: absolute; z-index: 50; top: var(--header-h); left: max(12px, calc((100% - var(--max)) / 2)); | |
| width: min(760px, calc(100vw - 24px)); padding: 22px; background: #fff; | |
| border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0 0 8px 8px; | |
| display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 24px; | |
| } | |
| .category-menu a { padding: 9px; border-bottom: 1px solid #eee; font-weight: 700; } | |
| .category-menu a:hover { color: var(--red); } | |
| .menu-close { | |
| position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; | |
| border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; | |
| } | |
| .category-menu-action { | |
| min-height: 44px; border: 0; background: #fff5f5; color: var(--red); padding: 10px; | |
| display: flex; align-items: center; gap: 8px; font-weight: 700; text-align: left; | |
| } | |
| .page-shell { min-height: 640px; } | |
| .location-panel { | |
| position: fixed; z-index: 45; top: 198px; right: 8px; width: 380px; | |
| background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 20px; | |
| } | |
| .location-panel h2 { font-size: 16px; margin: 0 0 15px; line-height: 1.3; } | |
| .location-row { display: grid; grid-template-columns: minmax(150px, 1fr) max-content; gap: 8px; } | |
| .location-row input { | |
| min-width: 0; width: 100%; height: 44px; border: 1px solid #ddd; border-radius: 5px; | |
| padding: 0 14px; background: #fafafa; | |
| } | |
| .red-button, .outline-button, .ghost-button { | |
| min-height: 42px; border-radius: 22px; padding: 0 20px; font-weight: 800; | |
| } | |
| .red-button { border: 1px solid var(--red); background: var(--red); color: #fff; } | |
| .red-button:hover { background: var(--red-dark); } | |
| .outline-button { border: 2px solid var(--red); background: #fff; color: var(--red); } | |
| .ghost-button { border: 1px solid #d7d7d7; background: #fff; color: #222; } | |
| .text-button { border: 0; background: transparent; color: var(--red); font-weight: 800; padding: 7px; } | |
| .location-panel > .text-button { display: none; } | |
| .form-error { | |
| grid-column: 1 / -1; color: #a4000d; font-size: 13px; font-weight: 700; min-height: 0; | |
| } | |
| .button-wide { width: 100%; } | |
| .hero { width: 100%; margin: 0; padding: 20px 0 12px; overflow: hidden; } | |
| .promo-carousel { width: 100%; height: 439px; overflow: hidden; } | |
| .promo-track { display: flex; gap: 6px; width: max-content; height: 100%; padding-left: 5px; } | |
| .promo-card { | |
| width: calc((100vw - 23px) / 4); height: 439px; border: 0; padding: 0; background: #fff; | |
| flex: 0 0 auto; overflow: hidden; | |
| } | |
| .promo-card img { width: 100%; height: 100%; object-fit: cover; } | |
| .promo-controls { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 2px; } | |
| .promo-progress { height: 4px; flex: 1; background: linear-gradient(90deg, var(--red) 0 16.666%, #ddd 16.666%); } | |
| .promo-control { | |
| width: 36px; height: 32px; border: 1px solid #ddd; border-radius: 5px; background: #fff; | |
| color: var(--red); display: grid; place-items: center; | |
| } | |
| .promo-control svg { width: 17px; height: 17px; } | |
| .promo-controls strong { color: var(--red); white-space: nowrap; } | |
| .hero-main, .hero-side { | |
| min-height: 305px; border-radius: 10px; overflow: hidden; position: relative; | |
| } | |
| .hero-main { | |
| background: linear-gradient(120deg, #ed1b2f 0 57%, #ffcf31 57%); | |
| color: #fff; padding: 38px 42px; display: flex; align-items: center; | |
| } | |
| .hero-copy { width: 48%; position: relative; z-index: 2; } | |
| .hero-copy small { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; } | |
| .hero-copy h1 { font-size: clamp(36px, 4vw, 64px); line-height: .94; margin: 10px 0 15px; } | |
| .hero-copy p { font-size: 17px; font-weight: 700; } | |
| .hero-products { | |
| position: absolute; right: 2%; inset-block: 15px; width: 43%; display: flex; | |
| align-items: flex-end; justify-content: center; gap: 3%; | |
| } | |
| .hero-products img { | |
| width: 46%; height: 88%; object-fit: contain; filter: drop-shadow(0 12px 12px rgb(0 0 0 / 20%)); | |
| } | |
| .hero-side { | |
| background: #176a58; color: #fff; padding: 26px; display: flex; flex-direction: column; | |
| justify-content: flex-end; | |
| } | |
| .hero-side::before { | |
| content: ""; position: absolute; inset: 0; | |
| background: radial-gradient(circle at 68% 30%, #f2c56c 0 13%, transparent 14%), | |
| radial-gradient(circle at 78% 33%, #d3421e 0 10%, transparent 11%), | |
| radial-gradient(circle at 58% 35%, #f5efe3 0 17%, transparent 18%); | |
| opacity: .9; | |
| } | |
| .hero-side > * { position: relative; z-index: 1; } | |
| .hero-side h2 { font-size: 32px; line-height: 1; margin: 0 0 8px; } | |
| .quick-categories { | |
| max-width: var(--max); margin: 0 auto; padding: 8px 18px 24px; display: grid; | |
| grid-template-columns: repeat(8, 1fr); gap: 14px; text-align: center; | |
| } | |
| .quick-category { | |
| border: 0; background: transparent; font-weight: 700; font-size: 13px; | |
| } | |
| .quick-icon { | |
| width: 68px; height: 68px; margin: 0 auto 8px; border-radius: 50%; | |
| background: #fff; box-shadow: 0 2px 10px rgb(0 0 0 / 10%); | |
| display: grid; place-items: center; color: var(--red); font-size: 22px; | |
| } | |
| .content-section { max-width: var(--max); margin: 0 auto; padding: 18px; } | |
| .section-heading { | |
| display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; | |
| } | |
| .section-heading h2 { margin: 0; color: var(--red); font-size: 25px; } | |
| .section-heading p { margin: 4px 0 0; color: var(--muted); } | |
| .tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 18px; } | |
| .pill { | |
| border: 1px solid #ddd; background: #fff; border-radius: 22px; min-height: 40px; | |
| padding: 0 18px; font-weight: 750; | |
| } | |
| .pill.active { background: var(--red); border-color: var(--red); color: #fff; } | |
| .catalog-banner { | |
| background: linear-gradient(120deg, #ee3843, #fb5353); color: #fff; | |
| padding: 14px max(18px, calc((100% - var(--max)) / 2 + 18px)); min-height: 151px; | |
| } | |
| .catalog-banner h1 { margin: 0; font-size: 32px; } | |
| .catalog-banner .crumbs { margin-bottom: 32px; font-size: 13px; } | |
| .catalog-layout { | |
| max-width: var(--max); margin: 0 auto; padding: 30px 20px 80px; | |
| display: grid; grid-template-columns: 330px 1fr; gap: 20px; | |
| } | |
| .filter-panel { | |
| background: #fff; border-radius: 8px; align-self: start; padding: 18px; | |
| position: sticky; top: 12px; | |
| } | |
| .filter-panel h2 { margin: 0 0 20px; font-size: 20px; } | |
| .filter-group { border-top: 1px solid var(--line); padding: 16px 0; } | |
| .filter-group summary { cursor: pointer; font-weight: 750; list-style: none; } | |
| .filter-group summary::after { | |
| content: ""; float: right; width: 7px; height: 7px; margin: 4px 3px 0 0; | |
| border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; | |
| transform: rotate(45deg); transition: transform .16s; | |
| } | |
| .filter-group[open] summary::after { transform: translateY(3px) rotate(225deg); } | |
| .filter-options { max-height: 210px; overflow: auto; margin-top: 12px; } | |
| .filter-option { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; } | |
| .catalog-toolbar { | |
| display: flex; align-items: center; justify-content: space-between; gap: 18px; | |
| margin-bottom: 4px; | |
| } | |
| .catalog-toolbar select { height: 40px; border: 1px solid #ddd; border-radius: 5px; padding: 0 34px 0 12px; } | |
| .mobile-filter-button { display: none; } | |
| .product-grid { | |
| display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; | |
| } | |
| .product-card { | |
| position: relative; background: #fff; border-radius: 8px; padding: 12px; | |
| min-height: 356px; display: flex; flex-direction: column; overflow: hidden; | |
| border: 1px solid transparent; transition: box-shadow .16s, transform .16s; | |
| } | |
| .product-card:hover { box-shadow: 0 8px 22px rgb(0 0 0 / 11%); transform: translateY(-2px); } | |
| .product-card-media { | |
| height: 178px; display: grid; place-items: center; margin: 0 0 8px; | |
| } | |
| .product-card-media img { width: 100%; height: 100%; object-fit: contain; } | |
| .image-missing { | |
| width: 100%; height: 100%; display: grid; place-items: center; background: #f5f5f5; | |
| color: #777; font-weight: 800; text-align: center; padding: 15px; | |
| } | |
| .discount-tag { | |
| position: absolute; top: 9px; left: 8px; z-index: 2; padding: 4px 7px; | |
| background: var(--red); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 800; | |
| } | |
| .favorite-button { | |
| position: absolute; right: 8px; top: 8px; z-index: 2; width: 34px; height: 34px; | |
| border: 1px solid #ddd; background: rgb(255 255 255 / 92%); border-radius: 50%; | |
| color: #555; font-size: 18px; | |
| } | |
| .favorite-button.active { color: var(--red); background: #fff1f2; border-color: #f2a7ad; } | |
| .brand { color: var(--red); font-size: 12px; font-weight: 800; min-height: 16px; } | |
| .product-name { | |
| font-size: 14px; font-weight: 600; margin: 4px 0 8px; min-height: 39px; | |
| display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; | |
| } | |
| .price-row { display: flex; align-items: baseline; gap: 7px; margin-top: auto; } | |
| .price { color: var(--red); font-size: 19px; font-weight: 900; } | |
| .list-price { color: #777; font-size: 12px; text-decoration: line-through; } | |
| .availability { color: #297246; font-size: 12px; margin: 5px 0 9px; } | |
| .availability.unavailable { color: #8a3232; } | |
| .add-button { | |
| width: 100%; height: 38px; border-radius: 20px; border: 2px solid var(--red); | |
| background: #fff; color: var(--red); font-weight: 850; | |
| } | |
| .add-button:hover { background: var(--red); color: #fff; } | |
| .add-button:disabled { border-color: #bbb; color: #777; cursor: not-allowed; } | |
| .detail-loading { | |
| display: block; width: 38px; height: 38px; margin: 22px auto 2px; | |
| border: 4px solid transparent; border-left-color: var(--red); border-bottom-color: var(--red); | |
| border-radius: 50%; animation: spin .8s linear infinite; | |
| } | |
| .availability-prompt { | |
| min-height: 38px; width: 100%; margin-top: auto; border: 1px solid #cfcfcf; | |
| border-radius: 20px; background: #fff; color: #333; font-size: 12px; font-weight: 700; | |
| } | |
| .availability-prompt:hover { border-color: var(--red); color: var(--red); } | |
| .pagination { display: flex; justify-content: center; gap: 8px; margin: 34px 0 0; } | |
| .product-detail { | |
| max-width: var(--max); margin: 0 auto; padding: 18px 20px 70px; | |
| } | |
| body[data-route="detail"] { background: #fff; } | |
| .breadcrumbs { font-size: 13px; color: #666; margin-bottom: 16px; } | |
| .detail-grid { display: grid; grid-template-columns: 55% 38%; gap: 7%; } | |
| .detail-gallery { | |
| min-height: 652px; background: #fff; border-radius: 8px; display: grid; place-items: center; | |
| position: relative; padding: 30px; | |
| } | |
| .detail-gallery img { width: 100%; height: 560px; object-fit: contain; } | |
| .detail-info { background: #fff; border-radius: 9px; box-shadow: var(--shadow); padding: 30px; align-self: start; } | |
| .location-panel-detail ~ .product-detail .detail-info { padding-top: 130px; } | |
| .detail-info h1 { font-size: 33px; margin: 8px 0 15px; line-height: 1.15; } | |
| .detail-info .price { font-size: 31px; } | |
| .detail-description { color: #555; margin: 22px 0; line-height: 1.6; } | |
| .detail-actions { display: grid; grid-template-columns: 88px 1fr; gap: 12px; margin-top: 18px; } | |
| .quantity-select { height: 46px; border: 1px solid #ccc; border-radius: 24px; padding: 0 12px; } | |
| .detail-table { width: 100%; border-collapse: collapse; margin-top: 44px; background: #fff; } | |
| .detail-table th, .detail-table td { border-bottom: 1px solid #e7e7e7; padding: 14px; text-align: left; } | |
| .detail-table th { width: 30%; background: #f6f6f6; } | |
| .cart-page, .checkout-page, .account-page { | |
| max-width: 1120px; margin: 0 auto; padding: 35px 18px 90px; | |
| } | |
| .page-title { font-size: 34px; margin: 0 0 24px; } | |
| .two-column { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } | |
| .two-column > * { min-width: 0; } | |
| .panel { background: #fff; border-radius: 9px; padding: 22px; box-shadow: 0 2px 9px rgb(0 0 0 / 6%); } | |
| .cart-item { | |
| display: grid; grid-template-columns: 92px 1fr 100px; gap: 16px; padding: 16px 0; | |
| border-bottom: 1px solid var(--line); align-items: start; | |
| } | |
| .cart-item img { width: 90px; height: 90px; object-fit: contain; background: #fff; } | |
| .cart-item h3 { margin: 0 0 5px; font-size: 16px; } | |
| .cart-controls { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 10px; } | |
| .cart-controls select { height: 36px; border: 1px solid #ccc; border-radius: 5px; } | |
| .substitution-control { | |
| flex: 1 1 100%; display: grid; grid-template-columns: max-content minmax(190px, 1fr); | |
| align-items: center; gap: 6px 10px; color: #333; font-size: 12px; font-weight: 700; | |
| } | |
| .substitution-control select { min-width: 0; } | |
| .substitution-control small { grid-column: 1 / -1; color: var(--muted); font-weight: 400; line-height: 1.45; } | |
| .review-rating { color: var(--red); font-weight: 800; letter-spacing: .2px; } | |
| .summary-row { display: flex; justify-content: space-between; margin: 12px 0; } | |
| .summary-row.total { padding-top: 14px; border-top: 1px solid #ddd; font-size: 20px; font-weight: 850; } | |
| .coupon-form { display: flex; gap: 8px; margin: 20px 0; } | |
| .coupon-form input { min-width: 0; flex: 1; border: 1px solid #ccc; border-radius: 5px; padding: 0 12px; } | |
| .empty-state { text-align: center; background: #fff; border-radius: 8px; padding: 70px 20px; } | |
| .empty-state h2 { margin: 0 0 10px; } | |
| .empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; } | |
| .not-found-state { border-top: 5px solid var(--red); } | |
| .error-code { display: block; color: var(--red); font-size: 64px; font-weight: 900; line-height: 1; } | |
| .checkout-steps { display: flex; margin-bottom: 25px; } | |
| .checkout-step { flex: 1; padding: 12px; border-bottom: 4px solid #ccc; color: #777; font-weight: 800; } | |
| .checkout-step.active { border-color: var(--red); color: var(--red); } | |
| .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } | |
| .form-field { display: grid; gap: 6px; } | |
| .form-field.full { grid-column: 1 / -1; } | |
| .form-field input, .form-field select, .form-field textarea { | |
| min-height: 44px; border: 1px solid #cfcfcf; border-radius: 5px; padding: 10px 12px; | |
| } | |
| .validation { color: #b4000f; font-size: 13px; min-height: 18px; } | |
| .safe-stop { | |
| margin-top: 20px; padding: 15px; border-left: 5px solid var(--red); | |
| background: #fff5f5; color: #5e1117; font-weight: 700; | |
| } | |
| .fulfillment-controls { | |
| margin: 0 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; | |
| } | |
| .fulfillment-controls legend { padding: 0 6px; font-weight: 850; } | |
| .fulfillment-methods { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; } | |
| .fulfillment-methods label { display: flex; align-items: center; gap: 6px; font-weight: 700; } | |
| .fulfillment-controls small { display: block; margin-top: 8px; color: var(--muted); } | |
| .checkout-review { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; } | |
| .review-item { | |
| display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); | |
| } | |
| .review-item span, .review-item small { color: var(--muted); } | |
| .order-card { border: 1px solid #ddd; border-radius: 8px; padding: 18px; margin: 14px 0; } | |
| .order-head { display: flex; justify-content: space-between; gap: 20px; } | |
| .modal-backdrop { | |
| position: fixed; z-index: 80; inset: 0; background: rgb(0 0 0 / 48%); | |
| display: grid; place-items: center; padding: 18px; | |
| } | |
| .modal { | |
| width: min(480px, 100%); max-height: 92vh; overflow: auto; background: #fff; | |
| border-radius: 10px; box-shadow: var(--shadow); padding: 26px; position: relative; | |
| } | |
| .modal h2 { margin: 0 0 18px; } | |
| .modal-close { | |
| position: absolute; right: 12px; top: 11px; width: 38px; height: 38px; | |
| border: 0; background: transparent; font-size: 25px; | |
| } | |
| .modal-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; } | |
| .modal-tab { border: 0; border-bottom: 2px solid #ccc; background: #fff; padding: 10px; font-weight: 750; } | |
| .modal-tab.active { border-color: var(--red); color: var(--red); } | |
| .stack-form { display: grid; gap: 12px; } | |
| .stack-form input, .stack-form textarea { | |
| min-height: 45px; border: 1px solid #ccc; border-radius: 5px; padding: 10px 12px; | |
| } | |
| .demo-note { font-size: 13px; background: #f6f6f6; padding: 10px; border-radius: 5px; } | |
| .footer { background: #fff; border-top: 1px solid #eee; margin-top: 60px; } | |
| .footer-grid { | |
| max-width: var(--max); margin: 0 auto; padding: 45px 18px; display: grid; | |
| grid-template-columns: 1fr 1fr 1.3fr 1fr; gap: 45px; | |
| } | |
| .footer h3 { font-size: 17px; margin: 0 0 18px; } | |
| .footer a { display: block; color: #444; font-size: 13px; margin: 11px 0; } | |
| .footer a:hover { color: var(--red); } | |
| .footer .nav-button { | |
| display: block; max-width: 100%; padding: 6px 0; white-space: normal; | |
| color: #444; font-size: 13px; font-weight: 400; line-height: 1.35; text-align: left; | |
| } | |
| .footer .nav-button:hover { color: var(--red); } | |
| .socials { display: flex; flex-wrap: wrap; gap: 10px; } | |
| .social { | |
| width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; | |
| background: #111; color: #fff; font-size: 12px; font-weight: 900; | |
| } | |
| .footer-bottom { | |
| max-width: var(--max); margin: 0 auto; border-top: 1px solid #eee; text-align: center; | |
| padding: 25px 18px 38px; color: #666; font-size: 12px; | |
| } | |
| .toast-region { | |
| position: fixed; z-index: 110; right: 18px; bottom: 18px; display: grid; gap: 8px; | |
| } | |
| .toast { | |
| min-width: 280px; max-width: 420px; background: #222; color: #fff; padding: 14px 18px; | |
| border-radius: 7px; box-shadow: var(--shadow); | |
| } | |
| .toast.error { background: #9f0010; } | |
| .loading { | |
| width: 34px; height: 34px; margin: 40px auto; border: 4px solid #eee; | |
| border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; | |
| } | |
| @keyframes spin { to { transform: rotate(360deg); } } | |
| @media (max-width: 1050px) { | |
| .header-main { grid-template-columns: 150px minmax(260px, 1fr) 220px; gap: 16px; } | |
| .nav-inner { gap: 12px; } | |
| .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } | |
| .hero { grid-template-columns: 1fr; } | |
| .hero-side { display: none; } | |
| .quick-categories { grid-template-columns: repeat(4, 1fr); } | |
| } | |
| @media (max-width: 1100px) { | |
| :root { --header-h: 139px; } | |
| body { font-size: 14px; overflow-x: hidden; } | |
| .campaign-strip { | |
| display: flex; height: 5px; overflow: hidden; font-size: 6px; line-height: 1; | |
| white-space: nowrap; | |
| } | |
| .utility-bar { display: block; height: 44px; } | |
| .utility-inner { padding: 0 20px; justify-content: flex-end; } | |
| .binding-tabs { display: none; } | |
| .utility-links { gap: 22px; font-size: 14px; } | |
| .main-header, .nav-bar { display: none; } | |
| .mobile-head { | |
| height: 90px; display: block; background: #fff; position: relative; | |
| z-index: 40; border-bottom: 1px solid #ddd; | |
| } | |
| .mobile-top { | |
| height: 50px; background: #fff; color: #111; display: flex; align-items: center; | |
| justify-content: space-between; padding: 0 20px; | |
| } | |
| .mobile-top .logo { color: var(--red); font-size: 20px; letter-spacing: -1px; } | |
| .mobile-top .logo-mark { background: var(--red); width: 20px; height: 20px; } | |
| .mobile-top .logo-mark::before, .mobile-top .logo-mark::after { background: #fff; } | |
| .mobile-icons { display: flex; gap: 12px; align-items: center; } | |
| .mobile-icon-button { | |
| min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #111; | |
| font-size: 21px; position: relative; display: grid; place-items: center; | |
| } | |
| .mobile-search { height: 40px; padding: 0 20px; } | |
| .mobile-search .search-input { height: 40px; } | |
| .mobile-search .search-submit { height: 32px; } | |
| .category-menu { | |
| position: fixed; top: 99px; left: 0; bottom: 0; width: min(340px, 88vw); | |
| border-radius: 0; display: block; overflow: auto; padding: 58px 20px 24px; | |
| grid-template-columns: 1fr; | |
| } | |
| .category-menu a { display: block; } | |
| .category-menu-action { width: 100%; margin: 8px 0; } | |
| .location-panel { | |
| top: 112px; left: 10px; right: 10px; width: auto; padding: 15px; | |
| } | |
| .location-panel h2 { font-size: 14px; margin-bottom: 10px; } | |
| .location-row input { height: 40px; } | |
| .location-row .red-button { min-height: 40px; padding: 0 17px; } | |
| .hero { padding: 20px 0 0; display: block; height: 488px; } | |
| .promo-carousel { height: 428px; padding: 0 24px; } | |
| .promo-track { gap: 6px; padding-left: 0; } | |
| .promo-card { width: 342px; height: 428px; } | |
| .promo-controls { height: 40px; padding: 0 20px; } | |
| .promo-progress { display: none; } | |
| .promo-controls::before { content: ""; flex: 1; } | |
| .hero-main { min-height: 265px; border-radius: 0; padding: 22px 16px; } | |
| .hero-copy { width: 52%; } | |
| .hero-copy h1 { font-size: 31px; } | |
| .hero-copy p { font-size: 13px; } | |
| .hero-products { width: 48%; right: -1%; } | |
| .quick-categories { | |
| padding: 5px 10px 20px; display: flex; gap: 10px; overflow-x: auto; | |
| } | |
| .quick-category { min-width: 68px; font-size: 11px; } | |
| .quick-icon { width: 54px; height: 54px; } | |
| .content-section { padding: 15px 10px; } | |
| .section-heading h2 { font-size: 18px; } | |
| .catalog-banner { padding: 20px 14px; min-height: 95px; } | |
| .catalog-banner h1 { font-size: 24px; } | |
| .catalog-layout { display: block; padding: 15px 9px 55px; } | |
| .filter-panel { | |
| display: none; position: fixed; z-index: 70; inset: 0 14% 0 0; border-radius: 0; | |
| overflow: auto; padding-top: 55px; | |
| } | |
| .filter-panel.open { display: block; } | |
| .mobile-filter-button { display: inline-flex; align-items: center; } | |
| .catalog-toolbar { margin: 4px 2px 12px; } | |
| .catalog-toolbar select { width: 128px; } | |
| .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } | |
| .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; } | |
| .catalog-layout .product-card { min-height: 338px; padding: 8px; } | |
| .catalog-layout .product-card-media { height: 176px; } | |
| .catalog-layout .product-card-media img { transform: translateY(-4px) scale(1.12); } | |
| .catalog-layout .discount-tag { top: 7px; } | |
| .catalog-layout .favorite-button { top: 6px; } | |
| .catalog-layout .price-row { transform: translateY(-16px); } | |
| .catalog-layout .brand { | |
| width: max-content; padding: 2px 5px; border-radius: 3px; background: #fff4f4; | |
| font-size: 10px; transform: translateY(-6px); | |
| } | |
| .catalog-layout .product-name { | |
| font-size: 14px; font-weight: 400; min-height: 37px; transform: translateY(-1px); | |
| } | |
| .product-card { min-height: 300px; padding: 7px; border-radius: 10px; } | |
| .product-card-media { height: 123px; } | |
| .product-name { font-size: 11px; min-height: 32px; } | |
| .brand, .availability { font-size: 10px; } | |
| .price { font-size: 15px; } | |
| .list-price { font-size: 9px; } | |
| .favorite-button { width: 29px; height: 29px; font-size: 15px; } | |
| .discount-tag { font-size: 9px; padding: 3px 5px; } | |
| .add-button { height: 32px; font-size: 11px; } | |
| .detail-grid { grid-template-columns: 1fr; gap: 15px; } | |
| .product-detail { padding: 16px 10px 50px; } | |
| .detail-gallery { min-height: 340px; padding: 14px; } | |
| .detail-gallery img { height: 310px; } | |
| .detail-info { padding: 19px; box-shadow: none; } | |
| .detail-info h1 { font-size: 25px; } | |
| .two-column { grid-template-columns: minmax(0, 1fr); } | |
| .cart-page, .checkout-page, .account-page { padding: 22px 10px 60px; } | |
| .page-title { font-size: 27px; } | |
| .cart-item { grid-template-columns: 75px minmax(0, 1fr); } | |
| .cart-item > div { min-width: 0; } | |
| .cart-item > strong { grid-column: 2; } | |
| .substitution-control { grid-template-columns: minmax(0, 1fr); } | |
| .substitution-control select, .coupon-form { width: 100%; max-width: 100%; } | |
| .substitution-control small { grid-column: 1; } | |
| .form-grid { grid-template-columns: 1fr; } | |
| .form-field.full { grid-column: auto; } | |
| .footer-grid { grid-template-columns: 1fr; gap: 22px; padding: 30px 18px; } | |
| .footer h3 { margin-bottom: 10px; } | |
| .footer a, .footer .nav-button { margin: 4px 0; min-height: 38px; padding: 8px 0; } | |
| .toast-region { left: 10px; right: 10px; bottom: 10px; } | |
| .toast { min-width: 0; width: 100%; } | |
| body[data-route="catalog"] .campaign-strip, | |
| body[data-route="detail"] .campaign-strip { height: 20px; font-size: 11px; order: 1; } | |
| body[data-route="catalog"] header, | |
| body[data-route="detail"] header { display: flex; flex-direction: column; } | |
| body[data-route="catalog"] .utility-bar, | |
| body[data-route="detail"] .utility-bar, | |
| body[data-route="catalog"] .main-header, | |
| body[data-route="detail"] .main-header { display: none; } | |
| body[data-route="catalog"] .mobile-head, | |
| body[data-route="detail"] .mobile-head { | |
| display: block; height: 131px; position: static; background: #fff; border: 0; order: 2; | |
| } | |
| body[data-route="catalog"] .mobile-top, | |
| body[data-route="detail"] .mobile-top { | |
| height: 59px; background: #fff; color: #111; padding: 0 20px; | |
| } | |
| body[data-route="catalog"] .mobile-top .logo, | |
| body[data-route="detail"] .mobile-top .logo { color: var(--red); } | |
| body[data-route="catalog"] .mobile-top .logo > span:last-child, | |
| body[data-route="detail"] .mobile-top .logo > span:last-child { display: none; } | |
| body[data-route="catalog"] .mobile-top .logo-mark, | |
| body[data-route="detail"] .mobile-top .logo-mark { width: 29px; height: 29px; background: var(--red); } | |
| body[data-route="catalog"] .mobile-top .logo-mark::before, | |
| body[data-route="catalog"] .mobile-top .logo-mark::after, | |
| body[data-route="detail"] .mobile-top .logo-mark::before, | |
| body[data-route="detail"] .mobile-top .logo-mark::after { background: #fff; } | |
| body[data-route="catalog"] .mobile-icon-button, | |
| body[data-route="detail"] .mobile-icon-button { color: #111; } | |
| body[data-route="catalog"] .category-menu, | |
| body[data-route="detail"] .category-menu { top: 79px; } | |
| body[data-route="catalog"] .mobile-icon-button[data-menu], | |
| body[data-route="detail"] .mobile-icon-button[data-menu] { | |
| width: 112px; display: flex; align-items: center; gap: 10px; | |
| } | |
| body[data-route="catalog"] .mobile-icon-button[data-menu]::after, | |
| body[data-route="detail"] .mobile-icon-button[data-menu]::after { | |
| content: "Weekly Ads"; padding: 6px 12px; border-radius: 18px; background: var(--red); | |
| color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; | |
| } | |
| body[data-route="catalog"] .mobile-search, | |
| body[data-route="detail"] .mobile-search { height: 72px; padding: 10px 20px 13px; } | |
| body[data-route="catalog"] .mobile-search .search-input, | |
| body[data-route="detail"] .mobile-search .search-input { height: 49px; } | |
| body[data-route="catalog"] .nav-bar, | |
| body[data-route="detail"] .nav-bar { display: block; height: 44px; overflow: hidden; order: 3; } | |
| body[data-route="catalog"] .nav-inner, | |
| body[data-route="detail"] .nav-inner { | |
| width: 100%; max-width: none; height: 44px; transform: none; display: grid; grid-template-columns: 1fr 1fr; | |
| gap: 0; padding: 0; background: #fff; | |
| } | |
| body[data-route="catalog"] .nav-inner > *, | |
| body[data-route="detail"] .nav-inner > * { display: none; } | |
| body[data-route="catalog"] .nav-inner [data-location], | |
| body[data-route="detail"] .nav-inner [data-location], | |
| body[data-route="catalog"] .nav-inner > :last-child, | |
| body[data-route="detail"] .nav-inner > :last-child { | |
| display: flex; height: 44px; align-items: center; justify-content: center; gap: 8px; | |
| border-right: 1px solid #eee; | |
| } | |
| body[data-route="catalog"] .location-panel, | |
| body[data-route="detail"] .location-panel { | |
| top: 200px; left: 8px; right: 8px; width: auto; min-height: 148px; padding: 22px 20px; | |
| } | |
| body[data-route="catalog"] .location-panel h2, | |
| body[data-route="detail"] .location-panel h2 { font-size: 16px; font-weight: 400; } | |
| body[data-route="catalog"] .catalog-banner { | |
| min-height: 205px; margin-inline: 10px; padding: 14px; background: var(--red); | |
| } | |
| body[data-route="catalog"] .catalog-layout { padding: 62px 9px 55px; } | |
| body[data-route="catalog"] .catalog-toolbar { | |
| display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; align-items: center; | |
| margin: 0 11px 34px; | |
| } | |
| body[data-route="catalog"] .catalog-toolbar > span { | |
| grid-column: 1 / -1; grid-row: 2; text-align: center; | |
| } | |
| body[data-route="catalog"] .catalog-toolbar > label { grid-column: 2; grid-row: 1; } | |
| body[data-route="catalog"] .catalog-toolbar .mobile-filter-button { | |
| grid-column: 1; grid-row: 1; width: 165px; justify-content: center; color: var(--red); | |
| border: 2px solid var(--red); | |
| } | |
| body[data-route="catalog"] .catalog-toolbar select { width: 164px; height: 40px; } | |
| body[data-route="detail"] .breadcrumbs { display: none; } | |
| body[data-route="detail"] .product-detail { padding: 0 20px 50px; background: #fff; } | |
| body[data-route="detail"] .detail-grid { display: block; } | |
| body[data-route="detail"] .detail-gallery { | |
| min-height: 505px; border-radius: 0; padding: 0; background: #fff; | |
| } | |
| body[data-route="detail"] .detail-gallery img { | |
| width: 100%; height: 470px; object-fit: contain; transform: translateY(49px); | |
| } | |
| body[data-route="detail"] .detail-gallery::after { | |
| content: ""; position: absolute; left: calc(50% - 13px); bottom: 18px; | |
| width: 11px; height: 11px; border-radius: 50%; background: var(--red); | |
| box-shadow: 17px 0 0 #555; | |
| } | |
| body[data-route="detail"] .detail-info { padding: 0 0 20px; box-shadow: none; } | |
| body[data-route="detail"] .detail-info h1 { font-size: 20px; } | |
| } | |