:root {
    --primary: #1745d1;
    --primary-dark: #0e2f94;
    --secondary: #5d6b84;
    --success: #0f9f6e;
    --danger: #cc3d4c;
    --warning: #d38b19;
    --info: #2f74c0;
    --dark: #172033;
    --text: #20304a;
    --muted: #6f7f98;
    --light: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #eef3fb;
    --border: #d9e2ef;
    --border-strong: #c2d0e4;
    --shadow-sm: 0 14px 30px rgba(23, 32, 51, 0.08);
    --shadow-md: 0 22px 50px rgba(23, 32, 51, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --container: 1220px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(23, 69, 209, 0.09), transparent 32%),
        linear-gradient(180deg, #f9fbff 0%, #f2f6fc 100%);
    color: var(--text);
    font: 16px/1.6 "Segoe UI", "Trebuchet MS", sans-serif;
}

body.dialog-open {
    overflow: hidden;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-container {
    min-height: calc(100vh - 220px);
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.8rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h1,
.section-heading h2,
.featured-section h2,
.posts-section h2,
.cta-section h2,
.summary-box h2,
.cart-list-copy h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(1.5rem, 2vw, 2rem);
    line-height: 1.15;
}

.section-heading p,
.summary-copy,
.form-helper,
.cart-list-copy p,
.products-hero-copy p,
.toolbar-copy p,
.sidebar-header p,
.cart-hero-copy p,
.product-assurance,
.product-description p,
.empty-state p {
    margin: 0;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--dark);
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
.qty-btn:focus-visible,
.toast-dismiss:focus-visible,
.app-dialog-close:focus-visible,
.nav-menu a:focus-visible,
.category-list a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(23, 69, 209, 0.2);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #3565ef 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(23, 69, 209, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 18px 28px rgba(23, 69, 209, 0.24);
}

.btn-secondary {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.82);
    color: var(--dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: linear-gradient(135deg, #d34e5f 0%, var(--danger) 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(204, 61, 76, 0.2);
}

.btn-ghost {
    min-height: auto;
    padding: 0.4rem 0.85rem;
    border-color: transparent;
    background: var(--surface-soft);
    color: var(--secondary);
}

.btn-ghost:hover {
    background: #fbe8ea;
    color: var(--danger);
}

.btn-lg {
    min-height: 54px;
    padding-inline: 1.5rem;
}

.btn-sm {
    min-height: 40px;
    padding: 0.55rem 0.95rem;
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.is-invalid {
    border-color: rgba(204, 61, 76, 0.58) !important;
    background: #fff5f6 !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(217, 226, 239, 0.92);
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

.navbar-container {
    width: min(var(--container), calc(100% - 2rem));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark);
    text-decoration: none;
}

.logo-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-menu a:hover {
    background: var(--surface-soft);
    color: var(--primary);
}

.cart-link {
    gap: 0.6rem;
}

.cart-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding-inline: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary) 0%, #3565ef 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 6px auto;
    border-radius: 999px;
    background: var(--dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 0 auto 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(23 70 209 / 0.83), rgba(11, 32, 98, 0.88)),
        url('/images/backgrpund.png') center/cover;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 34%);
}

.hero-wrapper {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 2rem));
    min-height: 620px;
    margin: 0 auto;
    padding: 5rem 0 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    max-width: 11ch;
    margin: 0 0 1rem;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 56ch;
    margin: 0 0 2rem;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-image {
    justify-self: end;
}

.hero-image img {
    width: min(100%, 420px);
    border-radius: 32px;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(10, 18, 48, 0.34);
}

.featured-section,
.posts-section,
.cta-section,
.product-details-page,
.blog-page,
.post-details-page,
.cart-page {
    padding: 3rem 0 0;
}

.featured-section .container,
.posts-section .container,
.cta-section .container,
.blog-page .container,
.post-details-page .container {
    padding: 0;
}

.products-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card,
.post-card,
.products-hero-panel,
.sidebar,
.products-main,
.summary-box,
.cart-items,
.product-details,
.post-body,
.cart-helper-card {
    border: 1px solid rgba(217, 226, 239, 0.92);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.product-card,
.post-card {
    overflow: hidden;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 69, 209, 0.24);
    box-shadow: var(--shadow-md);
}

.product-card.is-unavailable {
    opacity: 0.82;
}

.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3fb 0%, #dfe9f8 100%);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.24s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-badges {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    right: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-badges-static {
    right: auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge.promo {
    background: linear-gradient(135deg, #e75768 0%, var(--danger) 100%);
}

.badge.featured {
    background: linear-gradient(135deg, #f2a531 0%, #d98506 100%);
}

.badge.badge-muted {
    background: rgba(23, 32, 51, 0.78);
}

.product-info,
.post-content {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.35rem;
}

.product-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.category {
    margin: 0;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 700;
}

.stock-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 159, 110, 0.12);
    color: var(--success);
    font-size: 0.78rem;
    font-weight: 800;
}

.stock-chip.out-of-stock {
    background: rgba(204, 61, 76, 0.12);
    color: var(--danger);
}

.product-info h3,
.post-content h3,
.post-content h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.12rem;
    line-height: 1.28;
}

.description,
.post-content p {
    margin: 0;
    color: var(--muted);
}

.product-price-row,
.product-footer,
.cart-item-pricing,
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-label,
.price-caption {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.price {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.product-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: auto;
}

.product-actions .btn {
    width: 100%;
}

.post-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-image {
    aspect-ratio: 1.5 / 1;
    overflow: hidden;
    background: #dde8f8;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date {
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
}

.post-meta-strip,
.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(23, 69, 209, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
}

.meta-chip-warning {
    background: rgba(211, 139, 25, 0.12);
    color: var(--warning);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

.cta-section .container {
    padding: 0;
}

.cta-section {
    margin-bottom: 4rem;
}

.cta-section .container {
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #123cbd 0%, #2f74f0 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.products-page {
    padding: 2rem 0 0;
}

.products-page .container {
    display: grid;
    gap: 1.6rem;
}

.products-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
}

.products-hero-copy,
.cart-hero-copy {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(23, 69, 209, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.92));
    border: 1px solid rgba(217, 226, 239, 0.96);
    box-shadow: var(--shadow-sm);
}

.products-hero-copy h1,
.cart-hero-copy h1 {
    margin: 0 0 0.9rem;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.02;
}

.products-hero-panel {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 1.8rem;
}

.products-stat,
.active-filter-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.products-stat strong,
.active-filter-chip strong {
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 800;
}

.products-stat span,
.active-filter-chip span {
    color: var(--secondary);
    font-weight: 700;
}

.products-content {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: 96px;
    padding: 1.5rem;
}

.sidebar-header {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.sidebar-header h2,
.toolbar-copy h2,
.product-description h3,
.checkout-form h3 {
    margin: 0;
    color: var(--dark);
}

.filter-group {
    display: grid;
    gap: 0.8rem;
}

.filter-group + .filter-group {
    margin-top: 1.5rem;
}

.filter-group label {
    color: var(--dark);
    font-weight: 800;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 1rem;
    border: 0;
    background: transparent;
    color: var(--text);
}

.search-box input::placeholder {
    color: #9aa8bd;
}

.search-box input:focus {
    outline: none;
}

.category-list {
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-list a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0.75rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: var(--secondary);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.category-list a:hover,
.category-list a.active {
    border-color: rgba(23, 69, 209, 0.16);
    background: rgba(23, 69, 209, 0.08);
    color: var(--primary);
}

.products-main {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
    padding: 2rem;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: #fbfdff;
}

.empty-state h3 {
    margin: 0;
    color: var(--dark);
}

.empty-state-search {
    margin-top: 1rem;
}

.product-details-page .container {
    display: grid;
    gap: 1.4rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    color: var(--secondary);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.product-details {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: 2rem;
    padding: 2rem;
}

.product-gallery {
    align-self: start;
}

.product-visual-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #eef3fb 0%, #dbe5f7 100%);
}

.product-visual-card .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-info {
    gap: 1rem;
}

.product-info h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.04;
}

.product-price-row-detail {
    align-items: end;
}

.product-price-row-detail .price {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.product-description {
    display: grid;
    gap: 0.65rem;
    padding: 1.3rem;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.product-stock-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(15, 159, 110, 0.18);
    background: rgba(15, 159, 110, 0.08);
    color: var(--success);
    font-weight: 700;
}

.product-stock-card.is-empty {
    border-color: rgba(204, 61, 76, 0.18);
    background: rgba(204, 61, 76, 0.08);
    color: var(--danger);
}

.product-form {
    display: grid;
    gap: 1rem;
}

.quantity-selector {
    display: grid;
    gap: 0.55rem;
}

.quantity-selector label {
    color: var(--dark);
    font-weight: 800;
}

.quantity-selector input,
.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.quantity-selector input:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(23, 69, 209, 0.42);
    box-shadow: 0 0 0 4px rgba(23, 69, 209, 0.1);
}

.product-cta-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.product-assurance {
    font-size: 0.95rem;
}

.related-products {
    display: grid;
    gap: 1.2rem;
}

.post-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.post-hero-copy {
    display: grid;
    gap: 0.9rem;
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.post-hero-copy h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.04;
}

.post-summary {
    font-size: 1.05rem;
    color: var(--text);
}

.post-hero-media {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, #eef3fb 0%, #dbe5f7 100%);
}

.post-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.post-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.post-gallery-item {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.post-gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.post-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.cart-page .container {
    display: grid;
    gap: 1.5rem;
}

.cart-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
    gap: 1.2rem;
}

.cart-hero-help {
    display: grid;
    gap: 1rem;
}

.cart-helper-card {
    display: grid;
    gap: 0.35rem;
    align-content: center;
    padding: 1.4rem 1.5rem;
}

.cart-helper-card strong {
    color: var(--dark);
    font-size: 1rem;
}

.cart-helper-card span {
    color: var(--muted);
}

.cart-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 1.5rem;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
}

.cart-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-list {
    display: grid;
    gap: 1rem;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.cart-item-media {
    width: 100%;
    min-height: 128px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef3fb 0%, #d9e6f7 100%);
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-avatar {
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
}

.cart-item-body {
    display: grid;
    gap: 1rem;
}

.cart-item-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-item-top h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.08rem;
}

.cart-item-stock {
    margin: 0.3rem 0 0;
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
}

.cart-item-pricing span,
.cart-item-total span {
    color: var(--muted);
    font-size: 0.88rem;
}

.cart-item-pricing strong,
.cart-item-total strong {
    color: var(--dark);
    font-size: 1rem;
}

.cart-item-bottom {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-soft);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 800;
}

.qty-input {
    width: 64px;
    min-height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dark);
    text-align: center;
    font-weight: 800;
}

.summary-box {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 1rem;
    padding: 1.6rem;
}

.summary-row {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
    font-weight: 700;
}

.summary-row strong {
    color: var(--dark);
}

.summary-row.total {
    align-items: end;
    padding-top: 0.2rem;
    border-bottom: 0;
}

.summary-row.total span,
.summary-row.total strong {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
}

.checkout-form {
    display: grid;
    gap: 0.95rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label {
    color: var(--dark);
    font-weight: 800;
}

.checkout-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

.checkout-actions .btn {
    width: 100%;
}

.post-body {
    padding: 2rem;
}

.post-sales-panel {
    display: grid;
    gap: 1rem;
}

.sales-card {
    display: grid;
    gap: 0.7rem;
    padding: 1.2rem;
    border: 1px solid rgba(217, 226, 239, 0.92);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.sales-card h3 {
    margin: 0;
    color: var(--dark);
}

.sales-card p {
    margin: 0;
    color: var(--muted);
}

.sales-card-cta {
    position: sticky;
    top: 100px;
}

.sales-card-cta .btn {
    width: 100%;
}

.sales-price {
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 800;
}

.not-found-page {
    display: grid;
    place-items: center;
    min-height: 60vh;
}

.not-found-content {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    text-align: center;
}

.not-found-content h1 {
    margin: 0;
    color: var(--primary);
    font-size: clamp(3rem, 8vw, 5rem);
}

.no-data {
    color: var(--muted);
}

.footer {
    margin-top: 4rem;
    padding: 3rem 0 1.4rem;
    background: linear-gradient(180deg, #15203a 0%, #0f1728 100%);
    color: #edf3ff;
}

.floating-actions {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 190;
    width: 220px;
    height: 220px;
    pointer-events: none;
}

.floating-actions-orbit {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-wave {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 96px;
    height: 96px;
    border: 1px solid rgba(47, 207, 109, 0.28);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    animation: floating-wave-pulse 3.6s ease-out infinite;
}

.floating-wave-two {
    animation-delay: 1.2s;
}

.floating-wave-three {
    animation-delay: 2.4s;
}

.floating-action {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    pointer-events: auto;
}

.floating-action-orbit {
    position: absolute;
    z-index: 2;
}

.floating-action-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    border: 1px solid rgba(217, 226, 239, 0.9);
    background: #fff;
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-action-icon svg {
    width: 24px;
    height: 24px;
}

.floating-action-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 0.55rem);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.88);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.floating-action:hover .floating-action-label,
.floating-action:focus-visible .floating-action-label {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-action:hover .floating-action-icon,
.floating-action:focus-visible .floating-action-icon {
    transform: scale(1.06);
    box-shadow: 0 16px 30px rgba(23, 32, 51, 0.2);
}

.floating-action-whatsapp {
    position: absolute;
    z-index: 4;
    transform: translate(-50%, -50%);
}

.floating-action-whatsapp .floating-action-icon {
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, #2fcf6d 0%, #0f9f6e 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 32px rgba(15, 159, 110, 0.32);
    animation: floating-hub-breath 2.8s ease-in-out infinite;
}

.floating-action-call .floating-action-icon {
    background: linear-gradient(135deg, #1d7dff 0%, #1450d4 100%);
    border-color: transparent;
    color: #fff;
    animation: floating-icon-wave 2.8s ease-in-out infinite;
}

.floating-action-call {
    animation: floating-orbit-call 18s linear infinite;
}

.floating-action-cart .floating-action-icon {
    background: linear-gradient(135deg, var(--primary) 0%, #3565ef 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 16px 28px rgba(23, 69, 209, 0.28);
    animation: floating-icon-wave 3.1s ease-in-out infinite 0.4s;
}

.floating-action-cart {
    animation: floating-orbit-cart 15s linear infinite;
}

.floating-action-whatsapp .floating-action-icon {
    filter: saturate(1.05);
}

.floating-actions-orbit:hover .floating-action-orbit,
.floating-actions-orbit:hover .floating-action-orbit .floating-action-icon,
.floating-actions-orbit:focus-within .floating-action-orbit,
.floating-actions-orbit:focus-within .floating-action-orbit .floating-action-icon {
    animation-play-state: paused;
}

.floating-action-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding-inline: 0.35rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #f45867 0%, var(--danger) 100%);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(204, 61, 76, 0.24);
    transform: translate(28%, -22%);
}

.footer-container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.footer-section h4 {
    margin: 0 0 1rem;
    color: #fff;
}

.footer-section p,
.footer-section li {
    color: #c1cbdd;
}

.footer-section ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-section li + li {
    margin-top: 0.45rem;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.18s ease;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    width: min(var(--container), calc(100% - 2rem));
    margin: 2rem auto 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #9aa8bf;
}

.toast-region {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 220;
    display: grid;
    gap: 0.8rem;
    width: min(380px, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 1rem 1.1rem;
    border-left: 5px solid var(--primary);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    animation: toast-in 0.22s ease;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

.toast.is-leaving {
    animation: toast-out 0.2s ease forwards;
}

.toast-content {
    display: grid;
    gap: 0.2rem;
}

.toast-content strong {
    color: var(--dark);
    font-size: 0.95rem;
}

.toast-content span {
    color: var(--muted);
    font-size: 0.93rem;
}

.toast-dismiss,
.app-dialog-close {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--secondary);
    cursor: pointer;
    font-weight: 800;
}

.toast-dismiss:hover,
.app-dialog-close:hover {
    background: var(--surface-soft);
    color: var(--dark);
}

.app-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.app-dialog {
    position: relative;
    width: min(480px, 100%);
    display: grid;
    gap: 0.9rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.app-dialog-eyebrow {
    margin: 0;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.app-dialog h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.5rem;
}

.app-dialog p {
    margin: 0;
    color: var(--muted);
}

.app-dialog-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
}

.app-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.4rem;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px) translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0) translateX(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) translateX(10px);
    }
}

@keyframes floating-wave-pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.82);
    }

    20% {
        opacity: 0.38;
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.1);
    }
}

@keyframes floating-hub-breath {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 18px 32px rgba(15, 159, 110, 0.32);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 36px rgba(15, 159, 110, 0.42);
    }
}

@keyframes floating-icon-wave {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 12px 24px rgba(23, 32, 51, 0.16);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 18px 30px rgba(23, 32, 51, 0.24);
    }
}

@keyframes floating-orbit-call {
    from {
        transform: translate(-50%, -50%) rotate(225deg) translateX(82px) rotate(-225deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(585deg) translateX(82px) rotate(-585deg);
    }
}

@keyframes floating-orbit-cart {
    from {
        transform: translate(-50%, -50%) rotate(315deg) translateX(82px) rotate(-315deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-45deg) translateX(82px) rotate(45deg);
    }
}

@media (max-width: 1100px) {
    .products-content,
    .cart-content,
    .products-hero,
    .cart-hero,
    .product-details,
    .post-hero,
    .post-details-grid {
        grid-template-columns: 1fr;
    }

    .sidebar,
    .summary-box {
        position: static;
    }

    .products-hero-panel,
    .cart-hero-help {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .navbar-container {
        min-height: 74px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 1rem;
        right: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.8rem;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        justify-content: space-between;
    }

    .hero {
        border-radius: 0 0 24px 24px;
    }

    .hero-wrapper {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 4rem 0 3rem;
    }

    .hero-content h1 {
        max-width: none;
    }

    .hero-image {
        justify-self: start;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
    }

    .cart-item-media {
        min-height: 220px;
    }

    .floating-actions {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 196px;
        height: 196px;
    }

    .floating-wave {
        width: 84px;
        height: 84px;
    }

    .floating-action-whatsapp .floating-action-icon {
        width: 68px;
        height: 68px;
    }

    .floating-action-icon {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 640px) {
    .container,
    .navbar-container,
    .footer-container,
    .footer-bottom {
        width: min(var(--container), calc(100% - 1.25rem));
    }

    .hero-wrapper,
    .products-hero-copy,
    .cart-hero-copy,
    .product-details,
    .products-main,
    .sidebar,
    .summary-box,
    .cart-items,
    .post-body,
    .cta-section .container {
        padding: 1.25rem;
    }

    .products-hero-panel,
    .cart-hero-help {
        grid-template-columns: 1fr;
    }

    .products-toolbar,
    .cart-list-header,
    .cart-item-top,
    .cart-item-bottom,
    .app-dialog-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-cta-group {
        grid-template-columns: 1fr;
    }

    .products-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .toast-region {
        top: auto;
        right: 0.75rem;
        bottom: 11rem;
        width: min(420px, calc(100vw - 1.5rem));
    }

    .floating-actions {
        right: 0.45rem;
        bottom: 0.45rem;
        width: 178px;
        height: 178px;
    }

    .floating-wave {
        width: 74px;
        height: 74px;
    }

    .floating-action-whatsapp .floating-action-icon {
        width: 62px;
        height: 62px;
    }

    .floating-action-icon {
        width: 48px;
        height: 48px;
    }

    .floating-action-label {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-wave,
    .floating-action-whatsapp .floating-action-icon,
    .floating-action-orbit,
    .floating-action-orbit .floating-action-icon {
        animation: none !important;
    }
}
