﻿:root {
     --bg: #f3f5f7;
     --surface: #ffffff;
     --text: #0f172a;
     --muted: #64748b;
     --brand: #ea580c;
     --brand-dark: #c2410c;
     --ring: rgba(234, 88, 12, 0.35);
     --radius: 16px;
     --shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

* {
     box-sizing: border-box;
}

body {
     margin: 0;
     font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
     color: var(--text);
     background:
          radial-gradient(circle at 0% 0%, #fee2e2 0, transparent 30%),
          radial-gradient(circle at 100% 0%, #fde68a 0, transparent 26%),
          linear-gradient(165deg, #f8fafc 0%, #e2e8f0 100%);
     min-height: 100vh;
}

header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 14px;
     flex-wrap: wrap;
     padding: 14px 24px;
     background: rgba(15, 23, 42, 0.9);
     color: #fff;
     position: sticky;
     top: 0;
     z-index: 50;
     backdrop-filter: blur(8px);
}

.logo {
     font-size: 1.25rem;
     font-weight: 800;
     letter-spacing: 0.4px;
}

.nav-links,
.header-tools {
     display: flex;
     align-items: center;
     gap: 10px;
}

header a {
     color: #fff;
     text-decoration: none;
     opacity: 0.9;
}

header a:hover {
     opacity: 1;
}

.search {
     flex: 1;
     min-width: 160px;
     max-width: 380px;
     border: 1px solid transparent;
     border-radius: 999px;
     padding: 10px 14px;
}

.search:focus {
     outline: none;
     border-color: var(--brand);
     box-shadow: 0 0 0 4px var(--ring);
}

.page {
     width: min(1120px, 92vw);
     margin: 22px auto 48px;
}

.section-block {
     margin-top: 28px;
}

.section-head {
     display: flex;
     justify-content: space-between;
     align-items: baseline;
     gap: 12px;
}

.section-head h2,
h2 {
     margin: 0 0 12px;
}

.section-head a {
     color: var(--brand-dark);
     font-weight: 600;
     text-decoration: none;
}

.hero {
     border-radius: 22px;
     overflow: hidden;
     box-shadow: var(--shadow);
     background: #0f172a;
}

.hero-track {
     position: relative;
     min-height: clamp(260px, 48vw, 460px);
}

.hero-track img {
     width: 100%;
     height: 100%;
     position: absolute;
     inset: 0;
     object-fit: cover;
}

.hero-overlay {
     position: absolute;
     inset: 0;
     background: linear-gradient(90deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
}

.hero-content {
     position: relative;
     z-index: 2;
     color: #fff;
     max-width: 520px;
     padding: 38px 26px;
     animation: rise-in 0.45s ease;
}

.hero-kicker {
     margin: 0;
     font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 1.6px;
     color: #fed7aa;
     font-size: 0.8rem;
}

.hero-content h1 {
     margin: 10px 0;
     font-size: clamp(1.45rem, 3.8vw, 2.8rem);
}

.hero-content p {
     margin: 0;
     color: #e2e8f0;
}

.hero-cta {
     display: inline-block;
     margin-top: 18px;
     background: var(--brand);
     color: #fff;
     text-decoration: none;
     font-weight: 700;
     padding: 10px 18px;
     border-radius: 999px;
}

.hero-cta:hover {
     background: var(--brand-dark);
}

.hero-nav {
     position: absolute;
     z-index: 3;
     top: 50%;
     transform: translateY(-50%);
     border: none;
     width: 38px;
     height: 38px;
     border-radius: 50%;
     background: rgba(15, 23, 42, 0.52);
     color: #fff;
     cursor: pointer;
}

.hero-prev {
     left: 14px;
}

.hero-next {
     right: 14px;
}

.hero-dots {
     display: flex;
     justify-content: center;
     gap: 8px;
     padding: 12px 0 14px;
     background: #0f172a;
}

.hero-dot {
     width: 9px;
     height: 9px;
     border-radius: 50%;
     border: 0;
     background: rgba(255, 255, 255, 0.4);
     padding: 0;
     cursor: pointer;
}

.hero-dot.active {
     width: 22px;
     border-radius: 999px;
     background: var(--brand);
}

.product-list {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
     gap: 18px;
}

.card {
     background: var(--surface);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     overflow: hidden;
     padding: 10px;
     text-align: center;
     transition: transform 0.25s ease;
}

.card:hover {
     transform: translateY(-4px);
}

.card img {
     width: 100%;
     aspect-ratio: 1 / 1;
     object-fit: cover;
     border-radius: 12px;
}

.card h3 {
     font-size: 0.95rem;
     margin: 10px 0 4px;
}

.card p {
     margin: 0 0 8px;
     color: var(--muted);
     font-weight: 700;
}

.card a {
     text-decoration: none;
     color: var(--brand-dark);
     font-weight: 600;
}

.qty-control {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     margin: 4px 0 8px;
}

.qty-control label {
     font-size: 0.88rem;
     color: var(--muted);
}

.qty-input {
     width: 68px;
     border: 1px solid #cbd5e1;
     border-radius: 8px;
     padding: 6px 8px;
}

.detail-qty {
     margin-top: 8px;
}

button {
     margin: 6px 4px;
     padding: 8px 12px;
     border: 0;
     border-radius: 10px;
     background: var(--brand);
     color: #fff;
     font-weight: 600;
     cursor: pointer;
}

button:hover {
     background: var(--brand-dark);
}

#detail,
#cart,
#checkout {
     width: min(980px, 92vw);
     margin: 20px auto;
     background: var(--surface);
     border-radius: var(--radius);
     box-shadow: var(--shadow);
     padding: 16px;
}

#detail {
     display: grid;
     grid-template-columns: minmax(240px, 1fr) 1fr;
     gap: 18px;
}

#detail img {
     width: 100%;
     border-radius: 14px;
     object-fit: cover;
}

.detail-info h2 {
     margin: 0 0 8px;
}

.detail-description {
     color: var(--muted);
     line-height: 1.6;
     margin: 8px 0 14px;
}

.review-block {
     margin-top: 18px;
     background: #f8fafc;
     border-radius: 12px;
     padding: 12px;
}

.review-block h3 {
     margin: 0 0 8px;
}

.review-list {
     display: grid;
     gap: 10px;
}

.review-item {
     background: #fff;
     border: 1px solid #e2e8f0;
     border-radius: 10px;
     padding: 10px;
}

.review-head {
     display: flex;
     justify-content: space-between;
     gap: 8px;
     margin-bottom: 6px;
}

.review-stars {
     color: #f59e0b;
     letter-spacing: 1px;
}

.review-item p {
     margin: 0;
     color: #334155;
}

.detail-related {
     margin-top: 8px;
}

.catalog-page {
     background: #f5f7fb;
}

.catalog-breadcrumb-wrap {
     border-top: 1px solid #d9e0ec;
     border-bottom: 1px solid #d9e0ec;
     background: #fff;
}

.catalog-breadcrumb {
     width: min(1160px, 94vw);
     margin: 0 auto;
     padding: 12px 0;
     color: #607089;
     font-size: 0.9rem;
}

.catalog-breadcrumb span {
     margin: 0 8px;
}

.catalog-container {
     width: min(1160px, 94vw);
     margin: 18px auto 36px;
     display: grid;
     grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
     gap: 16px;
     align-items: start;
}

.catalog-sidebar {
     position: sticky;
     top: 84px;
     display: grid;
     gap: 12px;
}

.filter-box {
     background: #fff;
     border: 1px solid #dfe6f2;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.08);
     padding: 12px;
}

.filter-box h3 {
     margin: 0 0 10px;
}

.filter-box ul {
     margin: 0;
     padding-left: 20px;
     display: grid;
     gap: 4px;
}

.filter-box li {
     color: #1e293b;
}

.filter-box li.active {
     font-weight: 700;
     color: var(--brand-dark);
}

.catalog-main {
     min-width: 0;
}

.catalog-toolbar {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     gap: 8px;
     margin-bottom: 12px;
}

.catalog-toolbar h2 {
     width: 100%;
     margin: 0 0 8px;
}

.catalog-toolbar .search {
     flex: 1;
     min-width: 220px;
     max-width: 360px;
}

.catalog-search-btn,
.catalog-sort-btn {
     margin: 0;
}

.catalog-grid {
     grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.cart-item {
     display: flex;
     gap: 14px;
     margin-bottom: 12px;
     padding-bottom: 12px;
     border-bottom: 1px solid #e2e8f0;
}

.cart-item img {
     width: 110px;
     height: 110px;
     object-fit: cover;
     border-radius: 10px;
}

.cart-page {
     background: #f5f7fb;
}

.cart-breadcrumb-wrap {
     border-top: 1px solid #d9e0ec;
     border-bottom: 1px solid #d9e0ec;
     background: #fff;
}

.cart-breadcrumb {
     width: min(1160px, 94vw);
     margin: 0 auto;
     padding: 12px 0;
     color: #607089;
     font-size: 0.9rem;
}

.cart-breadcrumb span {
     margin: 0 8px;
}

.cart-shell {
     width: min(1160px, 94vw);
     margin: 18px auto 36px;
     display: grid;
     grid-template-columns: 1.9fr 1fr;
     gap: 16px;
     align-items: start;
}

.cart-main h2 {
     margin: 0 0 12px;
}

#cart {
     width: 100%;
     margin: 0;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.08);
     padding: 10px;
}

.cart-select-all,
.cart-store {
     display: flex;
     align-items: center;
     gap: 8px;
     border: 1px solid #e1e7f0;
     border-radius: 8px;
     padding: 10px 12px;
     margin-bottom: 10px;
     font-size: 0.92rem;
}

.cart-store {
     background: #f9fbff;
     font-weight: 700;
}

.cart-item {
     display: grid;
     grid-template-columns: 24px 74px 1fr auto auto auto;
     gap: 10px;
     align-items: center;
     border: 1px solid #e5ebf5;
     border-radius: 10px;
     padding: 10px;
     margin-bottom: 10px;
}

.cart-item img {
     width: 74px;
     height: 74px;
     border-radius: 6px;
}

.cart-item-info h4 {
     margin: 0 0 4px;
     font-size: 0.9rem;
}

.cart-item-price {
     margin: 0;
     color: #ef4444;
     font-weight: 700;
     font-size: 0.86rem;
}

.cart-qty-wrap {
     display: inline-flex;
     align-items: center;
     border: 1px solid #d7deeb;
     border-radius: 6px;
     overflow: hidden;
}

.qty-step {
     margin: 0;
     border-radius: 0;
     background: #fff;
     color: #334155;
     width: 28px;
     height: 28px;
     padding: 0;
}

.qty-step:hover {
     background: #edf2ff;
}

.qty-value {
     width: 30px;
     text-align: center;
     font-weight: 700;
     font-size: 0.86rem;
}

.cart-line-total {
     min-width: 92px;
     text-align: right;
     font-weight: 700;
     color: #ef4444;
     font-size: 0.9rem;
}

.cart-remove {
     margin: 0;
     background: #fee2e2;
     color: #ef4444;
     width: 28px;
     height: 28px;
     border-radius: 8px;
     padding: 0;
}

.cart-remove:hover {
     background: #fecaca;
}

.cart-summary-panel {
     background: #fff;
     border: 1px solid #dfe6f2;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.08);
     padding: 14px;
}

.cart-summary-panel h3 {
     margin: 0 0 10px;
     font-size: 1rem;
}

.summary-line,
.summary-total {
     display: flex;
     justify-content: space-between;
     margin-bottom: 8px;
     color: #4b5b74;
     font-size: 0.9rem;
}

.summary-total {
     border-top: 1px solid #e5ebf5;
     padding-top: 10px;
     margin-top: 8px;
     font-weight: 700;
     color: #ef4444;
}

.cart-summary-panel button {
     width: 100%;
     margin: 8px 0 4px;
     border-radius: 8px;
     background: #3b82f6;
}

.cart-summary-panel button:hover {
     background: #2563eb;
}

.summary-note {
     margin: 8px 0 0;
     text-align: center;
     color: #7a889f;
     font-size: 0.8rem;
}

.cart-empty {
     text-align: center;
     padding: 26px 10px;
}

.checkout-page {
     background: #f5f7fb;
}

.checkout-breadcrumb-wrap {
     border-top: 1px solid #d9e0ec;
     border-bottom: 1px solid #d9e0ec;
     background: #fff;
}

.checkout-breadcrumb {
     width: min(1160px, 94vw);
     margin: 0 auto;
     padding: 12px 0;
     color: #607089;
     font-size: 0.9rem;
}

.checkout-breadcrumb span {
     margin: 0 8px;
}

.checkout-shell {
     width: 100%;
     margin: 0;
     display: grid;
     grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
     gap: 16px;
     align-items: start;
}

.checkout-page #checkout {
     width: min(1160px, 94vw);
     margin: 18px auto 0;
     background: transparent;
     border-radius: 0;
     box-shadow: none;
     padding: 0;
}

.checkout-left h2 {
     margin: 0 0 10px;
}

.checkout-card {
     background: #fff;
     border: 1px solid #dfe6f2;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.06);
     padding: 10px;
     margin-bottom: 12px;
}

.checkout-card h3,
.checkout-summary-card h3 {
     margin: -10px -10px 10px;
     padding: 9px 12px;
     border-radius: 10px 10px 0 0;
     background: #1d66d8;
     color: #fff;
     font-size: 0.95rem;
}

.checkout-grid-2 {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 10px;
}

.checkout-card label {
     display: block;
     font-size: 0.85rem;
     color: #4b5b74;
     margin-bottom: 8px;
}

.checkout-card input,
.checkout-card textarea,
.checkout-card select {
     margin-top: 4px;
     width: 100%;
     border: 1px solid #d6deeb;
     border-radius: 6px;
     padding: 8px 9px;
     font-size: 0.88rem;
}

.checkout-map-wrap {
     height: 230px;
     border-radius: 8px;
     border: 1px solid #d6deeb;
     overflow: hidden;
}

.checkout-map {
     width: 100%;
     height: 100%;
     border: 0;
}

.map-link {
     display: inline-block;
     margin-top: 8px;
     font-size: 0.85rem;
     color: #1d4ed8;
     text-decoration: none;
}

.map-status {
     margin: 8px 0 0;
     font-size: 0.83rem;
     color: #64748b;
}

.map-link:hover {
     text-decoration: underline;
}

.radio-line {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     border: 1px solid #e1e7f2;
     border-radius: 8px;
     padding: 8px 10px;
}

.radio-line input {
     width: auto;
     margin: 0 8px 0 0;
}

.voucher-card h3 {
     background: #14804d;
}

.voucher-row {
     display: flex;
     gap: 8px;
}

.voucher-btn {
     margin: 4px 0 0;
     background: #fff;
     color: #dc2626;
     border: 1px solid #fca5a5;
}

.voucher-btn:hover {
     background: #fee2e2;
}

.checkout-summary-card {
     background: #fff;
     border: 1px solid #dfe6f2;
     border-radius: 10px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.08);
     padding: 10px;
}

.checkout-items {
     border-bottom: 1px solid #e6ecf6;
     margin-bottom: 10px;
     padding-bottom: 6px;
}

.checkout-item {
     display: grid;
     grid-template-columns: 40px 1fr auto;
     gap: 8px;
     align-items: center;
     margin-bottom: 8px;
}

.checkout-item img {
     width: 40px;
     height: 40px;
     border-radius: 6px;
     object-fit: cover;
}

.checkout-item h4 {
     margin: 0 0 2px;
     font-size: 0.82rem;
}

.checkout-item p {
     margin: 0;
     font-size: 0.75rem;
     color: #64748b;
}

.checkout-item strong {
     color: #ef4444;
     font-size: 0.8rem;
}

.checkout-sum-line,
.checkout-grand {
     display: flex;
     justify-content: space-between;
     font-size: 0.88rem;
     margin-bottom: 7px;
     color: #4b5b74;
}

.checkout-grand {
     margin-top: 10px;
     padding-top: 10px;
     border-top: 1px solid #e6ecf6;
     font-size: 1.02rem;
     font-weight: 800;
     color: #1d4ed8;
}

.checkout-summary-card button {
     width: 100%;
     margin: 8px 0 0;
     background: #1d66d8;
}

.checkout-summary-card button:hover {
     background: #1d4ed8;
}

.checkout-empty {
     width: 100%;
     background: #fff;
     border-radius: 12px;
     border: 1px solid #dfe6f2;
     padding: 26px;
     text-align: center;
}

.feedback-cta-wrap {
     width: min(1160px, 94vw);
     margin: 14px auto 0;
     display: flex;
     justify-content: flex-end;
}

.feedback-cta-btn {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     background: var(--brand);
     color: #fff;
     text-decoration: none;
     border-radius: 999px;
     padding: 10px 16px;
     font-weight: 700;
     box-shadow: 0 8px 20px rgba(234, 88, 12, 0.28);
}

.feedback-cta-btn:hover {
     background: var(--brand-dark);
}

.feedback-page {
     background: #f5f7fb;
}

.feedback-shell {
     width: min(760px, 94vw);
     margin: 20px auto 0;
}

.feedback-card {
     background: #fff;
     border: 1px solid #dfe6f2;
     border-radius: 12px;
     box-shadow: 0 2px 8px rgba(22, 34, 57, 0.08);
     padding: 16px;
}

.feedback-card h2 {
     margin: 0 0 8px;
}

.feedback-card p {
     margin: 0 0 12px;
     color: #64748b;
}

.feedback-form {
     display: grid;
     gap: 10px;
}

.feedback-form label {
     display: grid;
     gap: 6px;
     font-size: 0.92rem;
     color: #334155;
}

.feedback-form input,
.feedback-form textarea {
     border: 1px solid #d6deeb;
     border-radius: 8px;
     padding: 10px;
     font: inherit;
}

.feedback-form textarea {
     resize: vertical;
}

.feedback-form button {
     width: fit-content;
     margin: 2px 0 0;
}

.feedback-note {
     margin-top: 10px;
     font-size: 0.9rem;
     color: #16a34a;
     font-weight: 600;
}

.site-footer {
     margin-top: 28px;
     background: #0f172a;
     color: #e2e8f0;
}

.site-footer-inner {
     width: min(1160px, 94vw);
     margin: 0 auto;
     padding: 24px 0 16px;
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
     gap: 16px;
}

.site-footer h4 {
     margin: 0 0 8px;
     color: #fff;
}

.site-footer p,
.site-footer li {
     margin: 0 0 6px;
     color: #cbd5e1;
     font-size: 0.9rem;
}

.site-footer ul {
     margin: 0;
     padding-left: 18px;
}

.site-footer a {
     color: #93c5fd;
     text-decoration: none;
}

.site-footer-copy {
     border-top: 1px solid rgba(148, 163, 184, 0.25);
     text-align: center;
     padding: 10px 0;
     color: #94a3b8;
     font-size: 0.84rem;
}

@keyframes rise-in {
     from {
          opacity: 0;
          transform: translateY(10px);
     }
     to {
          opacity: 1;
          transform: translateY(0);
     }
}

@media (max-width: 760px) {
     header {
          padding: 12px;
          gap: 8px;
     }

     .search {
          order: 5;
          min-width: 100%;
          max-width: 100%;
     }

     .hero-nav {
          width: 32px;
          height: 32px;
     }

     #detail {
          grid-template-columns: 1fr;
     }

     .cart-item {
          flex-direction: column;
     }

     .cart-shell {
          grid-template-columns: 1fr;
     }

     .checkout-shell {
          grid-template-columns: 1fr;
     }

     .checkout-grid-2 {
          grid-template-columns: 1fr;
     }

     .cart-item {
          grid-template-columns: 20px 60px 1fr;
     }

     .cart-qty-wrap,
     .cart-line-total,
     .cart-remove {
          grid-column: 3;
          justify-self: start;
          margin-top: 6px;
     }
}

@media (max-width: 980px) {
     .catalog-container {
          grid-template-columns: 1fr;
     }

     .catalog-sidebar {
          position: static;
     }
}
