:root {
  color-scheme: light;
  --pink: #bd0099;
  --ink: #28212b;
  --muted: #736b76;
  --line: #eee6ed;
  --soft: #fff4fb;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px max(24px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 168px; height: auto; }
.header nav { display: flex; flex-wrap: wrap; gap: 20px; }
.header nav a { text-decoration: none; font-weight: 600; }
.header nav a:hover, .back:hover { color: var(--pink); }
.header-bot { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--soft); color: var(--pink); font-size: 14px; font-weight: 700; text-decoration: none; }
.mobile-nav { display: none; }
.shell { width: min(1160px, calc(100% - 40px)); min-height: calc(100vh - 160px); margin: 0 auto; padding: 30px 0 64px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); align-items: center; gap: 20px; min-height: 330px; padding: 42px; border-radius: 24px; background: var(--soft); }
.hero h1 { max-width: 640px; }
.hero p:not(.eyebrow) { max-width: 580px; color: var(--muted); }
.hero-mark { display: grid; place-items: center; min-height: 220px; border-radius: 22px; background: #fff; }
.hero-mark img { width: min(75%, 220px); height: auto; }
.hero-actions, .card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 1px solid #e6b5da; border-radius: 12px; background: #fff; color: var(--pink); font-weight: 700; text-decoration: none; }
.section { margin-top: 48px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-heading h2, .contact-strip h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); }
.section-heading > a { color: var(--pink); font-weight: 700; text-decoration: none; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-chip { padding: 10px 15px; border: 1px solid #e8c7df; border-radius: 999px; color: var(--pink); font-weight: 700; text-decoration: none; }
.category-chip:hover, .secondary-link:hover { background: var(--soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .branch-card, .contact-card, .service-card, .info-detail { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.feature-card { padding: 24px; text-decoration: none; }
.feature-card:hover, .branch-card:hover { border-color: #e6b5da; }
.feature-icon { display: inline-grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--soft); color: var(--pink); }
.feature-icon svg { width: 25px; height: 25px; }
.feature-card h3 { margin: 15px 0 6px; font-size: 19px; }
.feature-card p, .contact-card p, .service-card p, .contact-strip p { color: var(--muted); }
.feature-card span:last-child { color: var(--pink); font-weight: 700; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 30px; border-radius: 20px; background: var(--soft); }
.contact-strip p:last-child { margin-bottom: 0; }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.branch-card { padding: 24px; }
.branch-card h2 { margin: 0; font-size: 21px; }
.branch-card h2 a { text-decoration: none; }
.branch-card h2 a:hover { color: var(--pink); }
.branch-card p { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.card-actions { margin-top: 16px; }
.card-actions a { color: var(--pink); font-weight: 700; text-decoration: none; }
.info-detail { max-width: 820px; padding: 32px; }
.info-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row span { overflow-wrap: anywhere; }
.info-row a, .contact-value { color: var(--pink); font-weight: 700; text-decoration: none; }
.service-list { display: grid; gap: 16px; margin-top: 24px; }
.service-card { display: flex; align-items: flex-start; gap: 20px; padding: 28px; scroll-margin-top: 20px; }
.service-card h2 { margin: 0 0 6px; }
.service-card p { margin: 0 0 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.contact-card { min-width: 0; padding: 24px; }
.contact-card h2 { margin: 0 0 16px; font-size: 18px; }
.contact-value { overflow-wrap: anywhere; font-size: 19px; }
.auth-panel { width: min(100%, 530px); margin: 28px auto; padding: 32px; border: 1px solid var(--line); border-radius: 20px; }
.auth-panel > p { color: var(--muted); }
.auth-panel > .bot-link { margin: 12px 0; }
.auth-form { display: grid; gap: 10px; margin-top: 18px; }
.auth-form label { font-weight: 700; }
.auth-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d9cbd7; border-radius: 12px; font: inherit; letter-spacing: .12em; }
.auth-form button { height: 48px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.account-grid .contact-card p { overflow-wrap: anywhere; }
.account-number { color: var(--pink) !important; font-size: 25px; font-weight: 800; }
.account-orders { padding-left: 20px; }
.account-orders li { margin: 8px 0; }
.profile-form { display: grid; gap: 18px; max-width: 760px; margin-top: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.profile-form label { display: grid; gap: 8px; min-width: 0; font-weight: 700; }
.profile-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-form input, .profile-form select, .profile-form textarea { width: 100%; padding: 12px 14px; border: 1px solid #d9cbd7; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.profile-form input, .profile-form select { min-height: 48px; }
.profile-form textarea { resize: vertical; }
.profile-form .muted { margin: 0; font-size: 14px; font-weight: 400; }
.profile-form button { min-height: 48px; padding: 0 24px; justify-self: start; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.form-error, .form-success { max-width: 760px; margin: 20px 0 0; padding: 14px 18px; border-radius: 12px; }
.form-error { background: #fff0f0; color: #9a1b1b; }
.form-success { background: #edf8ef; color: #216a34; }
.logout-form { margin-top: 24px; }
.logout-form button { padding: 10px 18px; border: 1px solid #e6b5da; border-radius: 12px; background: #fff; color: var(--pink); font: inherit; font-weight: 700; cursor: pointer; }
.intro { padding: 30px 36px; border-radius: 24px; background: var(--soft); }
.eyebrow { margin: 0 0 6px; color: var(--pink); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.intro > p:last-child { margin: 0; color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr 1fr auto; align-items: end; gap: 12px; margin: 24px 0; }
.filters label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.filters input, .filters select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #d9cbd7; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.filters button, .bot-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.filters button:hover, .bot-link:hover { background: #9c007f; }
.result-count { margin: 0 0 16px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; transition: border-color .15s, transform .15s; }
.product:hover { border-color: var(--pink); transform: translateY(-2px); }
.product-image, .detail-image { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1; border-radius: 12px; background: #faf7fa; }
.product-image img, .detail-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.empty-image { color: var(--pink); font-weight: 800; text-align: center; }
.product-name { font-weight: 700; line-height: 1.35; }
.product-price strong { color: var(--pink); }
del { color: var(--muted); font-size: .88em; }
.availability { color: var(--muted); font-size: 14px; }
.cashback { align-self: flex-start; display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--soft); color: var(--pink); font-size: 13px; font-weight: 700; }
.pagination { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; }
.pagination a, .back { color: var(--pink); text-decoration: none; font-weight: 700; }
.empty { padding: 32px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 20px; }
.detail-image { max-width: 560px; }
.detail-price { margin: 24px 0 8px; font-size: 24px; }
.detail-price strong { color: var(--pink); }
.categories { color: var(--muted); }
.purchase-note { margin-top: 28px; color: var(--muted); }
.product-add-form { display: inline-block; margin: 0 12px 12px 0; }
.product-add-form button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cart-list { display: grid; gap: 12px; padding: 0; margin: 24px 0; list-style: none; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; }
.cart-item strong a { color: var(--ink); text-decoration: none; }
.cart-item strong a:hover { color: var(--pink); }
.cart-item p { margin: 7px 0 0; color: var(--muted); }
.cart-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cart-actions button { min-height: 40px; padding: 0 12px; border: 1px solid #e6b5da; border-radius: 10px; background: #fff; color: var(--pink); font: inherit; font-weight: 700; cursor: pointer; }
.cart-actions button:hover { background: var(--soft); }
.cart-totals { width: min(100%, 440px); margin-left: auto; padding: 18px 22px; border-radius: 16px; background: var(--soft); }
.cart-totals p { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0; }
.cart-totals p:last-child { font-size: 19px; }
.checkout-items { display: grid; gap: 9px; padding: 18px 18px 18px 38px; margin: 24px 0; border: 1px solid var(--line); border-radius: 16px; }
.checkout-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.checkout-review { max-width: 720px; margin: 24px 0; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; }
.checkout-review p { overflow-wrap: anywhere; }
.checkout-payable { color: var(--pink); font-size: 21px; font-weight: 800; }
.checkout-confirm button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.order-list, .order-lines { display: grid; gap: 12px; padding: 0; margin: 24px 0; list-style: none; }
.order-list-item, .order-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.order-list-item a, .account-orders a { color: var(--pink); font-weight: 800; text-decoration: none; }
.order-list-item a:hover, .account-orders a:hover { text-decoration: underline; }
.order-list-item span { color: var(--muted); }
.order-detail { max-width: 800px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.order-detail > p { overflow-wrap: anywhere; }
.description { max-width: 780px; margin-top: 42px; }
.description p { overflow-wrap: anywhere; white-space: normal; }
.footer { padding: 22px max(24px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--pink); }
@media (max-width: 820px) {
  .header { flex-wrap: wrap; }
  .header nav { order: 3; width: 100%; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .header { padding: 14px 20px; }
  .header .main-nav, .header-bot { display: none; }
  .mobile-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    min-height: 70px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 -6px 24px rgb(40 33 43 / 7%);
  }
  .mobile-nav a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }
  .mobile-nav a[aria-current='page'] { background: var(--soft); color: var(--pink); font-weight: 800; }
  .mobile-nav svg { display: block; width: 23px; height: 23px; flex: none; }
}
@media (max-width: 580px) {
  .header { padding: 14px 20px; }
  .brand img { width: 126px; }
  .header nav { gap: 8px 14px; font-size: 13px; }
  .header-bot { padding: 7px 11px; font-size: 12px; }
  .shell { width: min(100% - 28px, 500px); padding-top: 18px; }
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .hero-mark { display: none; }
  .intro { padding: 24px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child, .filters button { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product { padding: 8px; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .cart-item { align-items: flex-start; flex-direction: column; }
  .order-list-item, .order-line { align-items: flex-start; flex-direction: column; }
  .cart-actions { justify-content: flex-start; }
  .feature-grid, .branch-grid, .contact-grid, .account-grid { grid-template-columns: 1fr; }
  .profile-pair { grid-template-columns: 1fr; }
  .profile-form { padding: 20px; }
  .auth-panel { margin: 8px auto; padding: 24px; }
  .contact-strip { flex-direction: column; align-items: flex-start; padding: 24px; }
  .service-card { padding: 20px; gap: 14px; }
  .info-detail { padding: 22px; }
  .info-row { grid-template-columns: 1fr; gap: 2px; }
}
