*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:Arial,sans-serif;background:linear-gradient(180deg,#f7f9fc 0%,#eef4fb 100%);color:#17304e}
a{text-decoration:none;color:inherit}img{max-width:100%;display:block}button,input,select,textarea{font:inherit}
.topbar{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;padding:18px 28px;background:linear-gradient(90deg,#0c2747 0%,#132f55 100%);color:#fff;position:sticky;top:0;z-index:10;box-shadow:0 12px 30px rgba(13,39,72,.18)}
.topbar-brand{display:flex;gap:14px;align-items:center}.logo-mark{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:16px;background:#fff;color:var(--color-primary);font-weight:800}.topbar-logo{width:50px;height:50px;object-fit:contain;border-radius:14px;background:#fff;padding:4px}.login-logo{max-height:54px;max-width:220px;object-fit:contain}
.topbar-spacer{min-height:1px}
.topbar-user-menu{display:flex;align-items:center;gap:14px;justify-content:flex-end}
.user-dropdown{position:relative}.user-summary{display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer}.user-summary::-webkit-details-marker{display:none}
.user-avatar{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;font-weight:800;overflow:hidden}.user-avatar img{width:100%;height:100%;object-fit:cover}
.user-meta{display:flex;flex-direction:column;gap:2px}.user-meta small{opacity:.72}
.user-dropdown-menu{position:absolute;right:0;top:calc(100% + 12px);min-width:220px;background:#fff;border:1px solid #dce6f2;border-radius:18px;padding:10px;display:flex;flex-direction:column;box-shadow:0 18px 42px rgba(13,39,72,.18)}
.user-dropdown-menu a{padding:12px 14px;border-radius:12px;color:#244160;font-weight:700}.user-dropdown-menu a:hover{background:#eef4fb}
.dropdown-form,.nav-logout-form{margin:0}.dropdown-button,.nav-link-button{appearance:none;background:none;border:0;width:100%;text-align:left;cursor:pointer}.dropdown-button{padding:12px 14px;border-radius:12px;color:#244160;font-weight:700}.dropdown-button:hover{background:#eef4fb}
.preview-badge{padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:.82rem;font-weight:700}
.preview-stop{font-size:.9rem;color:#dbe9ff}
.app-shell{display:grid;grid-template-columns:250px 1fr;min-height:calc(100vh - 90px)}
.sidebar{padding:24px;border-right:1px solid #dfe7f0;background:rgba(255,255,255,.78);backdrop-filter:blur(8px);display:flex;flex-direction:column;justify-content:space-between}
.nav{display:flex;flex-direction:column;gap:10px}.nav-link{padding:16px 18px;border-radius:18px;color:#274464;font-weight:700;display:flex;align-items:center;gap:12px}.nav-link:hover,.nav-link:focus{background:#eaf1f9}
.content{padding:26px;display:flex;flex-direction:column;gap:22px}
.hero-card-wide{display:flex;justify-content:space-between;align-items:center;gap:24px}.hero-copy{max-width:580px}.hero-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.search-grow{min-width:min(100%,560px)}
.hero-card,.panel{background:rgba(255,255,255,.92);border:1px solid #dde7f3;border-radius:28px;padding:24px;box-shadow:0 18px 50px rgba(13,39,72,.08)}
.hero-card h1,.panel h1,.panel h2{margin:0 0 10px}.hero-card p{margin:0;color:#516783}
.shopping-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}
.product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.product-card{background:#fff;border:1px solid #dce6f2;border-radius:24px;overflow:hidden;display:flex;flex-direction:column;min-height:100%}
.product-image-wrap{height:220px;padding:22px;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at top,#ffffff 0%,#eef4fb 100%)}
.product-image{max-height:180px;object-fit:contain}
.product-body{padding:20px;display:flex;flex-direction:column;gap:12px;flex:1}
.product-body h3{margin:0;font-size:1.45rem}.muted{color:#627892}.price-line{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0}
.product-warning{padding:12px 14px;border-radius:16px;background:#fff4dc;border:1px solid #f2ddb0;color:#735413;font-weight:700;line-height:1.45}
.qty-control{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f2f6fb;border:1px solid #d5e0ee;border-radius:18px;padding:8px 12px}
.qty-control.compact{padding:6px 8px}.qty-btn{width:48px;height:48px;border:0;border-radius:14px;background:#fff;color:var(--color-primary);font-size:28px;line-height:1;box-shadow:0 8px 14px rgba(13,39,72,.08)}
.qty-input{width:72px;border:0;background:transparent;text-align:center;font-size:1.35rem;font-weight:700}.qty-value{min-width:34px;text-align:center;font-weight:800}
.btn,.category-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:16px;border:1px solid #ccd8e6;background:#fff;color:var(--color-primary);font-weight:700;cursor:pointer}
.btn-primary{background:linear-gradient(180deg,var(--color-primary) 0%,#173a67 100%);border-color:transparent;color:#fff;box-shadow:0 16px 32px rgba(13,39,72,.2)}
.btn-xl{padding:16px 22px;font-size:1.1rem}.btn-sm{padding:10px 14px;border-radius:12px}
.cart-panel{position:sticky;top:112px;background:#fff;border:1px solid #dce6f2;border-radius:28px;padding:24px;box-shadow:0 18px 50px rgba(13,39,72,.08)}
.cart-item{display:grid;grid-template-columns:58px 1fr auto auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #e4ecf5}
.cart-thumb{width:58px;height:58px;border-radius:14px;background:#f3f7fb;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #dbe6f2}.cart-thumb img{width:100%;height:100%;object-fit:contain}
.price-strong{font-weight:800}
.field{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#274464}.field input,.field select,.field textarea,.search-input{width:100%;padding:15px 16px;border:1px solid #cfdae8;border-radius:16px;background:#fff}
.checkbox{display:flex;align-items:center;gap:10px;font-weight:700;color:#274464}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.field-span{grid-column:1/-1}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid #e3ebf5}th{font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;color:#5c728d}.table-thumb{width:52px;height:52px;border-radius:14px;object-fit:contain;background:#f4f7fb;border:1px solid #dde7f3;padding:4px}
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.metric-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #dde7f3;border-radius:24px;padding:20px;box-shadow:0 14px 36px rgba(13,39,72,.08)}.metric-card span{display:block;color:#5f7691;margin-bottom:10px}.metric-card strong{font-size:2rem}.preview-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;min-width:min(100%,420px)}
.flash-wrap{position:fixed;top:102px;right:24px;z-index:20;display:flex;flex-direction:column;gap:10px}.flash{padding:14px 18px;border-radius:16px;box-shadow:0 18px 36px rgba(13,39,72,.12)}.flash-success{background:#e7f7ea;color:#1f5a2e}.flash-error{background:#fce9ea;color:#81242c}
.footer{padding:18px 24px;text-align:center;color:#68809b;display:flex;flex-direction:column;gap:6px}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,520px);background:#fff;border-radius:28px;padding:34px;border:1px solid #dbe6f1;box-shadow:0 25px 60px rgba(13,39,72,.12)}.auth-copy{color:#5e7590}.brand-badge{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:#eef4fb;color:var(--color-primary);font-weight:800;margin-bottom:14px;min-height:64px}
.stack-sm,.stack-md{display:flex;flex-direction:column;gap:12px}.section-bar,.search-wrap,.pill-row,.action-row,.summary-line{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.pill{padding:12px 16px;border-radius:999px;background:#fff;border:1px solid #d8e3f0;color:#385372;font-weight:700;cursor:pointer}.pill.active{background:#eef4fb;border-color:#c2d5eb}.helper-text{margin:0;color:#5d7490;font-size:.95rem}.mini-link{color:#355a82;font-weight:700}.cart-total-line{margin-top:18px}.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px}.help-card{background:#fff;border:1px solid #dde7f3;border-radius:22px;padding:20px}.category-pills{justify-content:flex-start}.action-row form{margin:0}
.preview-tile{width:100%;min-height:120px;border:1px dashed #ccd8e6;border-radius:18px;background:#f7fafd;display:flex;align-items:center;justify-content:center;padding:12px}.branding-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.branding-card{background:#fff;border:1px solid #dde7f3;border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:12px}.branding-placeholder{color:#69809a;font-weight:700}.favicon-preview{width:48px;height:48px;object-fit:contain}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.test-cart-panel{margin-bottom:18px}.qty-inline-form{display:flex;flex-direction:column;gap:12px}
.settings-shell{display:grid;grid-template-columns:220px 1fr;gap:24px}.settings-nav{display:flex;flex-direction:column;gap:10px;position:sticky;top:112px;align-self:start}.settings-nav-link{padding:14px 16px;border-radius:16px;background:#f7fafd;border:1px solid #dde7f3;color:#274464;font-weight:700}.settings-nav-link:hover{background:#eef4fb}.settings-content{display:flex;flex-direction:column;gap:20px}.settings-form{display:flex;flex-direction:column;gap:20px}.settings-section{background:#fff;border:1px solid #dde7f3;border-radius:24px;padding:22px;box-shadow:0 14px 36px rgba(13,39,72,.06)}.settings-savebar{display:flex;justify-content:flex-end}.subtle-panel{background:linear-gradient(180deg,#fbfdff 0%,#f4f8fd 100%)}
@media (max-width: 1080px){.shopping-layout{grid-template-columns:1fr}.cart-panel{position:static}.app-shell{grid-template-columns:1fr}.sidebar{border-right:0;border-bottom:1px solid #dfe7f0}.nav{flex-direction:row;flex-wrap:wrap}}
@media (max-width: 860px){.hero-card-wide{flex-direction:column;align-items:flex-start}.search-grow{min-width:100%}}
@media (max-width: 900px){.topbar{grid-template-columns:1fr;justify-items:start}.topbar-user-menu{width:100%;justify-content:space-between}}
@media (max-width: 980px){.settings-shell{grid-template-columns:1fr}.settings-nav{position:static;flex-direction:row;flex-wrap:wrap}}
@media (max-width: 700px){.topbar{padding:16px 18px}.content{padding:18px}.product-grid{grid-template-columns:1fr}.product-image-wrap{height:190px}.flash-wrap{left:18px;right:18px;top:86px}.user-meta{display:none}}
