:root {
  --primary: #005da6;
  --secondary: #e52328;
  --text: #333;
  --muted: #666;
  --soft: #f7f8fb;
  --border: #e6e6e6;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/roboto-400.woff2") format("woff2");
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.43;
  background: #fff;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.head-bar {
  background: #f7f7f7;
  border-bottom: 1px solid #eeeeee;
  color: #666;
  font-size: 13px;
}

.head-row,
.main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.head-row { height: 36px; }
.inline-icon { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.red { filter: invert(18%) sepia(87%) saturate(3430%) hue-rotate(345deg) brightness(101%) contrast(91%); }
.top-links { display: flex; gap: 24px; }

.main-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
}

.main-row { height: 72px; gap: 18px; }
.brand img { width: 139px; }

.category-btn,
.cart,
.login {
  border: 0;
  background: transparent;
  color: #666;
  cursor: pointer;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.category-btn img,
.search img,
.cart img { width: 16px; height: 16px; opacity: .72; }
.cart { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }

.search {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #999;
  border: 1px solid #e4e4e4;
  border-radius: 9px;
  background: #fafafa;
  gap: 10px;
}

.login {
  background: var(--primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
}

.mobile-header { display: none; }
.content { min-height: 60vh; }

.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  color: #6c757d;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a::after {
  content: "/";
  margin-left: 10px;
  color: #bbb;
}

.breadcrumb span { color: #777; }

.product-layout {
  display: grid;
  grid-template-columns: 36% 40% 24%;
  gap: 0;
  padding: 18px 0 56px;
}

.gallery { padding-right: 18px; }
.image-stage {
  min-height: 375px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
}

.image-stage img {
  max-height: 375px;
  object-fit: contain;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  height: 64px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.thumb.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.mobile-dots { display: none; }

.product-info { padding: 0 18px; }
.product-info h1 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 700;
}

.brand-card,
.card-box {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}

.brand-card { padding: 14px 16px; margin-bottom: 12px; }
.brand-line,
.delivery-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-icon { width: 18px; height: 18px; opacity: .75; }

.brand-line span { color: #777; }
.brand-line a { display: inline-flex; align-items: center; color: #e52328; font-weight: 700; }
.brand-line a img { width: 13px; height: 13px; filter: invert(18%) sepia(87%) saturate(3430%) hue-rotate(345deg) brightness(101%) contrast(91%); }
.brand-card hr,
.dashed {
  border: 0;
  border-top: 1px dashed #ddd;
}

.brand-card hr { margin: 12px 0; }
.delivery-line img { width: 20px; height: 20px; }
.delivery-line span { color: #444; font-weight: 600; }

.price {
  margin: 8px 0 14px;
  color: var(--primary);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.product-info h2 {
  margin: 22px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.description {
  max-height: 335px;
  overflow: hidden;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  position: relative;
}

.description.expanded { max-height: none; }
.description ul { margin: 0 0 12px; padding-left: 20px; }
.description p { margin: 0 0 12px; }
.entity-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 12% 15%, rgba(229, 35, 40, .18), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(0, 93, 166, .18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4faff 48%, #fff6f6 100%);
  box-shadow: 0 20px 45px rgba(0, 64, 120, .13);
}

.entity-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -2;
  background: conic-gradient(from 0deg, #005da6, #00b2ff, #ffdd2e, #e52328, #005da6);
  animation: entityBorderSpin 4.8s linear infinite;
}

.entity-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(246, 251, 255, .95)),
    radial-gradient(circle at 100% 0%, rgba(0, 93, 166, .1), transparent 35%);
}

.entity-card-head {
  margin-bottom: 18px;
}

.entity-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #005da6, #e52328);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 93, 166, .2);
}

.entity-card h2 {
  margin: 0;
}

.entity-table {
  width: 100%;
  border-collapse: collapse;
  color: #444;
  font-size: 14px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, .88);
  box-shadow: inset 0 0 0 1px rgba(0, 93, 166, .08);
}

.entity-table th,
.entity-table td {
  border: 1px solid rgba(0, 93, 166, .1);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  transition: background .22s ease, transform .22s ease, color .22s ease;
}

.entity-table th {
  width: 36%;
  color: #333;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 93, 166, .08), rgba(229, 35, 40, .05));
}

.entity-table tr:hover th,
.entity-table tr:hover td {
  background: rgba(0, 93, 166, .07);
  color: #005da6;
}

.entity-table tr:hover td {
  transform: translateX(4px);
}

@keyframes entityBorderSpin {
  to { transform: rotate(360deg); }
}

.view-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e52328;
  font-weight: 700;
  cursor: pointer;
}

.buy-card { padding-left: 8px; }
.card-box { overflow: hidden; }
.quantity-section,
.shipping-card,
.app-card { padding: 20px 16px; }
.quantity-section,
.shipping-card { border-bottom: 1px solid #eee; }
.qty-top { margin-bottom: 16px; }
.qty-top span,
.shipping-card h3 { font-size: 14px; color: #666; font-weight: 700; margin: 0 0 12px; }

.qty-adjustment {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.qty-adjustment button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f3f3f3;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-adjustment button.disabled { color: #c7c7c7; cursor: not-allowed; }
.qty-adjustment button img { width: 18px; height: 18px; filter: invert(28%) sepia(93%) saturate(1277%) hue-rotate(184deg) brightness(87%) contrast(103%); }
.qty-adjustment button.disabled img { opacity: .25; filter: none; }
.qty-adjustment input {
  width: 54px;
  height: 32px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.shipping-card p,
.mobile-delivery p {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  color: #555;
}

.shipping-card p:last-child { margin-bottom: 0; }
.shipping-card img,
.mobile-delivery img { width: 20px; height: 20px; margin-right: 8px; }

.app-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.app-card > img { width: 24px; flex: 0 0 24px; margin-top: 4px; }
.app-card p { margin: 0 0 12px; color: #666; font-size: 13px; }
.app-card button,
.app-card a {
  border: 1px solid #ddd;
  border-radius: 5px;
  background: #fff;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-only-mobile { display: none; }

.seo-content {
  position: relative;
  overflow: hidden;
  color: #243449;
  padding: 70px 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(229, 35, 40, .18), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(0, 93, 166, .22), transparent 30%),
    radial-gradient(circle at 45% 95%, rgba(255, 221, 46, .18), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #eef6ff 45%, #fff8f8 100%);
}

.seo-content::before,
.seo-content::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: .38;
  animation: seoFloat 8s ease-in-out infinite alternate;
}

.seo-content::before {
  left: -120px;
  top: 38px;
  background: rgba(229, 35, 40, .2);
}

.seo-content::after {
  right: -110px;
  bottom: 32px;
  background: rgba(0, 93, 166, .22);
  animation-delay: -3s;
}

.seo-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.seo-card-single {
  max-width: 1120px;
  min-height: auto;
  margin: 0 auto;
  padding: 36px;
}

.seo-card-item {
  position: relative;
  display: block;
  padding: 0 0 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 93, 166, .12);
  transition: transform .25s ease, padding-left .25s ease;
}

.seo-card-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 6px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, #005da6, #00a7ff, #e52328);
  box-shadow: 0 10px 24px rgba(0, 93, 166, .22);
}

.seo-card-item > div {
  padding-left: 24px;
}

.seo-card-item:hover {
  transform: translateX(6px);
}

.seo-card-item:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.seo-card {
  position: relative;
  isolation: isolate;
  min-height: 250px;
  overflow: hidden;
  border-radius: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 70px rgba(0, 54, 105, .16);
  transition: transform .3s ease, box-shadow .3s ease;
}

.seo-card::before {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: -2;
  background: conic-gradient(from 0deg, #e52328, #ffdd2e, #00a7ff, #005da6, #e52328);
  animation: seoBorderRotate 4.5s linear infinite;
}

.seo-card::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border-radius: 25px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(245, 250, 255, .94)),
    radial-gradient(circle at 16% 0%, rgba(0, 93, 166, .12), transparent 30%);
}

.seo-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 34px 90px rgba(0, 54, 105, .24);
}

.seo-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #005da6, #e52328);
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 93, 166, .22);
}

.seo-card h2 {
  margin: 0 0 13px;
  color: #1f2f43;
  font-size: 20px;
  line-height: 1.36;
}

.seo-card p {
  margin: 0;
  color: #536477;
  font-size: 14px;
  line-height: 1.75;
}

@keyframes seoBorderRotate {
  to { transform: rotate(360deg); }
}

@keyframes seoFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(34px, -24px, 0) scale(1.08); }
}

.footer { padding: 32px 0; background: #fff; color: #666; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1fr 1.55fr;
  gap: 24px;
}

.footer h3 {
  margin: 0 0 9px;
  color: #333;
  font-size: 16px;
}

.footer a { display: block; margin-bottom: 7px; color: #666; }
.footer p { margin: 0 0 7px; font-size: 13px; }
.footer p img { display: inline-block; width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }
.icon-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.payment-icons img { width: 58px; height: 32px; object-fit: contain; border: 1px solid #eee; border-radius: 4px; }
.social-icons img { width: 28px; height: 28px; }
.store-buttons { display: flex; gap: 8px; margin: 12px 0; }
.store-buttons img { width: 104px; }
.footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  padding: 10px 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary) !important;
  font-weight: 700;
}
.footer-action.primary {
  background: var(--primary);
  color: #fff !important;
}
.copyright { text-align: center; }

.mobile-buy-bar { display: none; }
.modal,
.bottom-sheet { display: none; }

.modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, .48);
}

.modal-card {
  width: min(360px, calc(100% - 32px));
  position: relative;
  border-radius: 18px;
  background: #fff;
  padding: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.modal-card h3 { margin: 0; font-size: 18px; }
.modal-card p { margin: 8px 0 16px; color: #777; font-size: 13px; }
.modal-card img { width: 220px; margin: 0 auto 12px; }
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.link-btn { border: 0; background: transparent; color: var(--primary); font-weight: 800; cursor: pointer; }

.bottom-sheet.show {
  display: none;
}

@media (max-width: 991px) {
  html { overflow-x: hidden; }
  body { padding-bottom: 118px; }
  .desktop-header { display: none; }
  .mobile-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 8px;
  }

  .mobile-top img { width: 128px; }
  .mobile-top button,
  .mobile-top a {
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    font-weight: 800;
  }

  .mobile-search {
    margin: 0 16px 12px;
    padding: 11px 14px;
    border: 1px solid #eee;
    border-radius: 9px;
    color: #aaa;
    background: #fafafa;
  }

  .container { width: 100%; padding: 0 16px; }
  .breadcrumb { display: none; }
  .product-layout { display: block; padding: 0 0 32px; }
  .gallery,
  .product-info,
  .buy-card { padding: 0; max-width: 100%; overflow: hidden; }
  .gallery,
  .image-stage,
  .product-info { width: calc(100vw - 32px); }

  .image-stage { min-height: 335px; margin: 6px 0 0; overflow: hidden; }
  .image-stage img { width: min(calc(100vw - 64px), 330px); max-width: min(calc(100vw - 64px), 330px); height: auto; max-height: none; object-fit: contain; }
  .thumbs { display: none; }
  .mobile-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 18px;
  }
  .mobile-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d9d9d9;
  }
  .mobile-dots span.active { background: var(--primary); }

  .product-info h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    max-width: calc(100vw - 32px);
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .product-info h1 span { display: block; }
  .brand-card { border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
  .price { font-size: 22px; }
  .description { max-height: 220px; }
  .detail-only-mobile { display: block; }
  .buy-card { display: none; }
  .seo-content { padding: 32px 0 12px; }
  .seo-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .seo-card { min-height: auto; padding: 22px; border-radius: 20px; }
  .seo-card::after { border-radius: 18px; }
  .seo-card-single { padding: 22px; }
  .seo-card-item { padding-bottom: 20px; margin-bottom: 20px; }
  .seo-card-item::before { width: 5px; height: 34px; }
  .seo-card-item > div { padding-left: 18px; }
  .seo-card h2 { font-size: 17px; }
  .seo-card p { font-size: 13px; line-height: 1.65; }
  .seo-card-badge { width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; }
  .footer { padding: 24px 0; }
  .footer-grid { display: block; }
  .footer section { border-top: 1px solid #eee; padding: 16px 0; }
  .footer section:first-child { border-top: 0; }
  .footer a { display: inline-block; width: 48%; }
  .store-buttons img { width: 118px; }
  .copyright { text-align: left; }

  .mobile-buy-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    z-index: 30;
    background: #fff;
    border-top: 1px solid #eeeeee;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) !important;
    min-height: 148px;
  }

  .mobile-buy-bar > div { width: 100% !important; min-width: 0; }
  .mobile-buy-bar span { display: block; color: #777; font-size: 13px; margin-bottom: 8px; }
  .mobile-buy-bar .primary-btn,
  .mobile-buy-bar .mobile-cart-btn {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    min-height: 50px;
    white-space: nowrap;
  }
  .qty-adjustment.small { justify-content: flex-start; }
  .qty-adjustment.small button { width: 42px; height: 42px; border-radius: 10px; }
  .qty-adjustment.small input { width: 72px; height: 42px; border-radius: 8px; font-size: 16px; }

  .bottom-sheet.show {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
  }

  .sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .58);
  }

  .sheet-card {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 20px 20px 0 0;
    background: #fff;
    padding: 16px 20px;
    text-align: center;
  }

  .sheet-card img { height: 162px; width: auto; margin: 0 auto 12px; }
  .sheet-card h3 { margin: 0 0 8px; font-size: 16px; }
  .sheet-card p { margin: 0 0 16px; color: #666; }
  .ghost-btn {
    width: 100%;
    margin-top: 8px;
    padding: 11px 16px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 16px;
    font-weight: 800;
  }
}

@media (max-width: 600px) {
  .image-stage { min-height: 280px; }
  .mobile-buy-bar { max-width: none; }
  .mobile-buy-bar .primary-btn { font-size: 16px; padding-left: 8px; padding-right: 8px; }
  .qty-adjustment.small button { width: 38px; height: 38px; }
  .qty-adjustment.small input { width: 64px; height: 38px; }
}
