:root {
  --blue: #0058a3;
  --blue-dark: #004f93;
  --yellow: #ffda1a;
  --ink: #111;
  --muted: #767676;
  --line: #dfdfdf;
  --soft: #f5f5f5;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 165px; }
body { margin: 0; color: var(--ink); background: #fff; font: 14px/1.45 Arial, Helvetica, sans-serif; }
body.locked { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.utility-bar { color: #fff; background: #111; font-size: 12px; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; width: min(1080px, calc(100% - 40px)); height: 36px; margin: auto; }
.utility-inner > div { display: flex; gap: 8px; font-weight: 700; }
.utility-inner nav { display: flex; gap: 22px; }
.utility-inner a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-main { display: grid; grid-template-columns: 44px 100px minmax(260px, 1fr) auto; align-items: center; gap: 20px; width: min(1160px, calc(100% - 40px)); height: 92px; margin: auto; }
.logo img { width: 90px; }
.round-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 25px; cursor: pointer; }
.round-icon:hover { background: #f0f0f0; }
.menu-button { font-size: 22px; }
.search { display: flex; height: 54px; margin-left: 18px; overflow: hidden; background: #f5f5f5; border-radius: 28px; }
.search button { width: 64px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.search input { flex: 1; min-width: 0; padding: 0 20px 0 0; border: 0; outline: 0; background: transparent; font-size: 16px; }
.account-actions { display: flex; gap: 6px; }
.cart-icon { position: relative; transform: rotate(180deg); }
.cart-icon span { position: absolute; top: 0; right: 0; min-width: 17px; padding: 1px 4px; transform: rotate(180deg); border-radius: 10px; color: #fff; background: var(--blue); font-size: 10px; }
.category-nav { display: flex; gap: 28px; width: min(1080px, calc(100% - 40px)); height: 58px; margin: auto; overflow-x: auto; align-items: flex-start; font-weight: 700; white-space: nowrap; scrollbar-width: none; }
.category-nav a:hover { text-decoration: underline; }

.drawer { position: fixed; inset: 0 auto 0 0; z-index: 100; width: min(410px, 90vw); padding: 28px 36px; transform: translateX(-102%); background: #fff; transition: transform .25s ease; }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.drawer-header img { width: 94px; }
.drawer-header button { border: 0; background: transparent; font-size: 32px; cursor: pointer; }
.drawer nav { display: grid; }
.drawer nav a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; }
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.overlay.show { opacity: 1; pointer-events: auto; }

main { width: min(1080px, calc(100% - 40px)); margin: auto; }
.breadcrumbs { display: flex; gap: 10px; padding: 17px 0; color: #666; font-size: 12px; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, .72fr); gap: 70px; align-items: start; padding: 12px 0 52px; }
.gallery { min-width: 0; }
.main-media { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1.16; overflow: hidden; background: #fff; }
.main-media > img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease, transform .3s ease; }
.main-media:hover > img { transform: scale(1.018); }
.zoom-button { position: absolute; right: 14px; bottom: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); font-size: 25px; cursor: pointer; }
.gallery-controls { display: grid; grid-template-columns: 38px minmax(0, 1fr) 38px; align-items: center; gap: 8px; margin-top: 16px; }
.gallery-controls > button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f5f5f5; font-size: 26px; cursor: pointer; }
.thumbnails { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.thumb { flex: 0 0 54px; height: 54px; padding: 4px; border: 2px solid transparent; background: #fff; cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb.active { border-color: #111; }

.product-summary { position: sticky; top: 176px; }
.product-summary h1 { margin: 0; font-size: 39px; line-height: 1; letter-spacing: -.9px; }
.product-subtitle { max-width: 290px; margin: 8px 0 20px; font-size: 16px; }
.price { display: inline-flex; align-items: flex-start; padding: 1px 6px 2px; background: var(--yellow); box-shadow: 3px 3px 0 #e9425c; }
.price span { margin: 6px 5px 0 0; font-size: 12px; font-weight: 700; }
.price strong { font-size: 28px; letter-spacing: -1px; }
.rating { display: flex; align-items: center; gap: 9px; margin: 25px 0 4px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.stars { letter-spacing: 2px; }
.purchased { margin: 0; color: #555; font-size: 12px; }
.divider { height: 1px; margin: 19px 0; background: var(--line); }
.option-heading { display: flex; justify-content: space-between; align-items: center; }
.option-heading p { margin: 0 0 11px; }
.option-heading span { color: #555; text-transform: capitalize; }
.option-heading button { border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.color-options { display: flex; gap: 10px; }
.color-card { width: 58px; height: 58px; padding: 5px; border: 2px solid transparent; border-radius: 4px; background: #fff; cursor: pointer; }
.color-card img { width: 100%; height: 100%; object-fit: cover; }
.color-card.active { border-color: #111; }
.purchase-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; color: #666; }
.quantity-control { display: flex; width: 116px; height: 43px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.quantity-control button { width: 38px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.quantity-control input { width: 40px; border: 0; outline: 0; text-align: center; appearance: textfield; font-weight: 700; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.buy-actions { display: grid; grid-template-columns: 1fr 52px; gap: 10px; }
.add-button { min-height: 52px; border: 0; border-radius: 28px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }
.add-button:hover { background: var(--blue-dark); }
.add-button span { margin-right: 7px; font-size: 19px; }
.wishlist-button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 27px; cursor: pointer; }
.wishlist-button.active { color: #d5112e; background: #fff1f3; }
.finance-box { margin-top: 22px; border-block: 1px solid var(--line); }
.finance-box button { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; padding: 10px 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.finance-box button + button { border-top: 1px solid var(--line); }
.finance-box button span { margin-left: auto; color: var(--blue); text-decoration: underline; }
.service-list { display: grid; padding: 13px 0; border-bottom: 1px solid var(--line); }
.service-list button { display: grid; grid-template-columns: 27px 1fr auto; gap: 7px; align-items: center; width: 100%; padding: 10px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.service-list i { font-style: normal; font-size: 20px; }
.service-list span { display: grid; }
.service-list small { color: var(--blue); text-decoration: underline; }
.service-list b { font-size: 22px; }
.stock { margin-top: 15px; font-size: 13px; }
.stock > span { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: #0a8a45; }

.detail-links { display: grid; grid-template-columns: repeat(2, 1fr); border-block: 1px solid var(--line); }
.detail-links button { display: flex; align-items: center; justify-content: space-between; min-height: 145px; padding: 25px 34px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.detail-links button + button { border-left: 1px solid var(--line); }
.detail-links button:hover { background: #fafafa; }
.detail-links span { display: grid; gap: 7px; }
.detail-links strong { font-size: 24px; }
.detail-links small { color: #666; }
.detail-links b { font-size: 30px; }

.reviews-section, .similar-section { padding: 64px 0; border-bottom: 1px solid var(--line); }
.reviews-top, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.reviews-section h2, .similar-section h2, .return-section h2 { margin: 0; font-size: 28px; }
.overall-rating { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 10px; }
.overall-rating strong { font-size: 28px; }
.overall-rating small { grid-column: 2; color: #666; }
.review-carousel { display: grid; grid-auto-columns: calc((100% - 36px) / 3); grid-auto-flow: column; gap: 18px; margin-top: 30px; overflow: hidden; scroll-behavior: smooth; }
.review-carousel article { min-height: 210px; padding: 24px; background: #f6f6f6; }
.review-carousel blockquote { min-height: 104px; margin: 18px 0 10px; font-size: 15px; }
.review-carousel small { color: #666; }
.review-actions { display: flex; justify-content: space-between; margin-top: 22px; }
.secondary-button { min-height: 44px; padding: 10px 24px; border: 1px solid #111; border-radius: 24px; background: #fff; font-weight: 700; cursor: pointer; }
.review-actions > div, .section-heading > div { display: flex; gap: 9px; }
.review-actions > div button, .section-heading > div button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eee; font-size: 27px; cursor: pointer; }
.product-carousel { display: grid; grid-auto-columns: 228px; grid-auto-flow: column; gap: 17px; margin-top: 28px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.product-card { position: relative; min-width: 0; cursor: pointer; }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; }
.product-card h3 { margin: 12px 0 2px; font-size: 16px; }
.product-card p { min-height: 39px; margin: 0 0 8px; color: #666; }
.product-price { font-size: 19px; font-weight: 700; }
.product-price span { margin-right: 3px; font-size: 11px; vertical-align: top; }
.mini-cart { position: absolute; right: 9px; top: 180px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: var(--blue); cursor: pointer; }
.return-section { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 45px; padding: 55px 0; }
.return-section img { width: 160px; height: 150px; object-fit: cover; }
.return-section p { max-width: 650px; color: #555; }
.return-section a { color: var(--blue); text-decoration: underline; font-weight: 700; }

footer { background: #f5f5f5; }
.app-promo { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 50px; width: min(1080px, calc(100% - 40px)); min-height: 310px; margin: auto; padding-top: 40px; }
.app-promo > img { align-self: end; max-height: 285px; margin: auto; }
.app-promo h2 { margin: 0; font-size: 25px; }
.app-promo p { max-width: 610px; }
.store-buttons { display: flex; gap: 9px; }
.store-buttons a { padding: 9px 15px; border-radius: 5px; color: #fff; background: #111; font-size: 12px; font-weight: 700; }
.footer-main { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 55px; width: min(1080px, calc(100% - 40px)); margin: auto; padding: 58px 0; border-top: 1px solid #ddd; }
.footer-main h3 { margin: 0 0 16px; }
.footer-main > div > a { display: block; margin: 11px 0; color: #555; }
.footer-main > div > a:hover { text-decoration: underline; }
.footer-about > img { width: 95px; margin-bottom: 18px; }
.footer-about p { color: #555; }
.primary-small { margin-top: 10px; padding: 12px 20px; border: 0; border-radius: 22px; color: #fff; background: var(--blue); font-weight: 700; cursor: pointer; }
.socials { display: flex; flex-wrap: wrap; gap: 9px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #aaa; border-radius: 50%; font-weight: 700; }
.legal { display: flex; justify-content: space-between; gap: 20px; width: min(1080px, calc(100% - 40px)); margin: auto; padding: 27px 0; border-top: 1px solid #ddd; color: #555; font-size: 11px; }
.legal nav { display: flex; flex-wrap: wrap; gap: 20px; }

.modal-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.52); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(700px, 100%); max-height: 88vh; padding: 38px; overflow-y: auto; background: #fff; transform: translateY(12px); transition: transform .2s ease; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close { position: absolute; right: 19px; top: 15px; border: 0; background: transparent; font-size: 32px; cursor: pointer; }
.modal h2 { margin: 0 45px 18px 0; font-size: 28px; }
.modal p { color: #555; }
.modal-article { display: inline-block; margin: 15px 0; padding: 8px 12px; color: #fff; background: #111; font-weight: 700; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { padding: 17px 0; cursor: pointer; font-weight: 700; }
.accordion details p { padding-bottom: 12px; }
.size-content { display: grid; grid-template-columns: 1fr 250px; gap: 28px; }
.size-content table { width: 100%; border-collapse: collapse; }
.size-content td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.size-content td:last-child { text-align: right; font-weight: 700; }
.size-content img { width: 100%; }
.store-choice { padding: 16px; border: 1px solid var(--line); }
.store-choice strong { display: block; margin-bottom: 4px; }
.store-choice span { color: #0b7d40; }
.color-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.color-modal-grid button { padding: 13px; border: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.color-modal-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.image-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 60px; background: rgba(255,255,255,.98); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.image-lightbox.open { opacity: 1; pointer-events: auto; }
.image-lightbox img { width: 100%; height: 100%; object-fit: contain; }
.image-lightbox button { position: absolute; right: 25px; top: 20px; width: 50px; height: 50px; border: 0; border-radius: 50%; background: #eee; font-size: 32px; cursor: pointer; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; max-width: calc(100% - 30px); padding: 12px 20px; transform: translate(-50%, 20px); border-radius: 3px; color: #fff; background: rgba(20,20,20,.95); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .utility-inner nav { display: none; }
  .header-main { grid-template-columns: 40px 90px 1fr auto; gap: 11px; height: 76px; }
  .search { height: 46px; margin-left: 0; }
  .category-nav { height: 48px; gap: 22px; }
  .product-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 30px; }
  .product-summary { top: 138px; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 82px; }
  .utility-bar, .category-nav { display: none; }
  .site-header { position: sticky; }
  .header-main { grid-template-columns: 38px 82px 1fr auto; width: calc(100% - 24px); height: 68px; }
  .logo img { width: 78px; }
  .search { order: 5; grid-column: 1 / -1; height: 44px; margin-bottom: 12px; }
  .site-header { padding-bottom: 8px; }
  .account-actions .round-icon:first-child { display: none; }
  .round-icon { width: 36px; height: 36px; }
  main { width: calc(100% - 28px); }
  .breadcrumbs { margin-top: 50px; overflow: hidden; white-space: nowrap; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .main-media { aspect-ratio: 1; }
  .product-summary { position: relative; top: auto; }
  .product-summary h1 { font-size: 32px; }
  .detail-links { grid-template-columns: 1fr; }
  .detail-links button + button { border-left: 0; border-top: 1px solid var(--line); }
  .detail-links button { min-height: 110px; padding: 20px; }
  .detail-links strong { font-size: 21px; }
  .reviews-section, .similar-section { padding: 42px 0; }
  .reviews-top { display: grid; }
  .review-carousel { grid-auto-columns: 85%; }
  .product-carousel { grid-auto-columns: 210px; }
  .return-section { grid-template-columns: 100px 1fr; gap: 22px; }
  .return-section img { width: 100px; height: 100px; }
  .return-section h2 { font-size: 22px; }
  .app-promo { grid-template-columns: 90px 1fr; gap: 24px; min-height: 250px; }
  .app-promo > img { max-height: 210px; }
  .store-buttons { flex-wrap: wrap; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 42px 0; }
  .legal { display: grid; }
  .legal nav { gap: 11px; }
  .modal { padding: 30px 22px; }
  .size-content { grid-template-columns: 1fr; }
  .size-content img { max-width: 280px; margin: auto; }
  .image-lightbox { padding: 45px 10px; }
}

@media (max-width: 420px) {
  .header-main { grid-template-columns: 34px 74px 1fr auto; gap: 6px; }
  .account-actions { gap: 0; }
  .account-actions .round-icon:nth-child(2) { display: none; }
  .gallery-controls { grid-template-columns: 28px minmax(0, 1fr) 28px; }
  .gallery-controls > button { width: 28px; height: 34px; }
  .thumb { flex-basis: 49px; height: 49px; }
  .buy-actions { grid-template-columns: 1fr 48px; }
  .wishlist-button { width: 48px; height: 48px; }
  .return-section { grid-template-columns: 1fr; }
  .return-section img { width: 130px; height: 110px; }
  .app-promo { grid-template-columns: 1fr; padding: 34px 0; }
  .app-promo > img { display: none; }
  .color-modal-grid { grid-template-columns: 1fr; }
}

