tr[data-order-url]:hover,
tr[data-product-url]:hover,
tr[data-category-url]:hover,
tr[data-user-url]:hover {
    background: rgba(15, 118, 110, 0.06);
}

/* Top promo bar */
.promo-bar {
    background: var(--ink);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.55rem 1rem;
}

/* Main header */
.site-header {
    position: relative;
    top: auto;
    z-index: auto;
    border-radius: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-header .brand-logo {
    height: 40px;
    width: auto;
}

.site-header .brand strong {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-header .brand small {
    display: none;
}

/* Header search */
.header-search {
    position: relative;
    max-width: 480px;
    width: 100%;
    justify-self: center;
}

.header-search input {
    width: 100%;
    padding: 0.65rem 2.75rem 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    font-size: 0.95rem;
    transition: border-color 180ms, box-shadow 180ms;
}

.header-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

/* Header utilities (cart, account) */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-utilities a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    transition: color 180ms;
}

.header-utilities a:hover {
    color: var(--accent);
}

/* Sub-navigation */
.sub-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 180ms, border-color 180ms;
}

.sub-nav a:hover {
    color: var(--ink);
}

.sub-nav a.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Storefront UI --- */
.hero-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 1rem 0.5rem;
    background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
}

.hero-banner.about {
    margin-bottom: 0px;
}

.hero-banner-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-media img {
    max-height: 220px;
    width: auto;
}

.hero-banner-content h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
}

.hero-banner-content {
    text-shadow: 0.5px 0.5px #000;
    background-color: #ededed;
    padding: 30px;
}

.hero-banner-content p {
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Trust bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.trust-item strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--muted);
}

.hero-copy {
    max-width: 60ch;
    font-size: 1.1rem;
    line-height: 1.6;
}

.hero-copy img {
    width: min(1180px, calc(100% - 2rem));
}

.site-footer {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem 1.5rem;
    background: var(--ink);
    color: #9ca3af;
    border: none;
    border-radius: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid strong {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-grid a {
    display: block;
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 0.2rem 0;
    transition: color 180ms;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem;
}

.footer-brand {
    font-size: 1.2rem;
}

.confirm-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
}

.confirm-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal-panel {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1.5rem;
    max-width: min(24rem, calc(100vw - 2rem));
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow);
}

.confirm-modal-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.confirm-modal-panel p {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.confirm-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.product-option-field {
    display: grid;
    gap: 0.35rem;
}

.product-option-field span {
    font-size: 0.9rem;
    font-weight: 600;
}

.product-option-field select {
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    font-size: 0.95rem;
    width: 100%;
}

.button-large {
    min-height: 3.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.about-split-reverse {
    direction: rtl;
}

.about-split-reverse > * {
    direction: ltr;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image svg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.about-copy {
    padding: 3rem 2.5rem;
}

.about-copy h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: #1e293b;
    letter-spacing: -0.02em;
}

.about-copy p {
    color: #475569;
    line-height: 1.7;
    font-size: 0.98rem;
}

@media (max-width: 920px) {
    .product-grid,
    .category-grid,
    .cart-layout,
    .checkout-layout,
    .order-status-layout,
    .cart-item-row,
    .checkout-grid-2,
    .checkout-grid-3 {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-sort-form {
        width: 100%;
        margin-left: 0;
    }

    .catalog-sort-form select {
        width: 100%;
    }

    .mini-cart-drawer {
        width: 100%;
    }

    .hero-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sub-nav {
        padding: 0 1rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-gallery {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .detail-specs-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .about-split {
        grid-template-columns: 1fr;
    }
    .about-image {
        min-height: 220px !important;
    }
    .about-copy {
        padding: 2rem 1.25rem;
    }

    .sub-nav {
        position: fixed;
        inset: 0;
        left: auto;
        width: min(18rem, 85vw);
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        padding: 4rem 1.25rem 1.25rem;
        background: var(--surface-strong);
        border-left: 1px solid var(--line);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 110;
        transform: translateX(100%);
        transition: transform 300ms ease;
    }

    .sub-nav.is-open {
        transform: translateX(0);
    }

    .sub-nav a {
        display: flex;
        padding: 0.75rem 1rem;
        border-radius: 12px;
        border-bottom: none;
    }
}

@media (max-width: 640px) {
    .catalog-header h1,
    .about-page h1,
    .not-found h1 {
        font-size: 2.4rem;
    }

    .chat-widget {
        right: 0.75rem;
        left: 0.75rem;
        bottom: max(0.75rem, env(safe-area-inset-bottom));
        justify-items: stretch;
    }

    .chat-launcher {
        width: 100%;
        min-height: 4.25rem;
        padding: 1rem 1.1rem;
        font-size: 1rem;
        touch-action: manipulation;
    }

    .chat-panel {
        width: 100%;
        max-height: min(36rem, calc(100vh - 6.25rem));
        padding: 1rem;
        border-radius: 24px 24px 20px 20px;
    }

    .chat-panel-body {
        min-height: 10rem;
    }

    .chat-panel-header {
        gap: 0.65rem;
    }

    .chat-messages {
        max-height: min(14rem, calc(100vh - 18rem));
    }

    .chat-field input,
    .chat-field textarea,
    .chat-form .button {
        font-size: 16px;
    }

    .chat-field textarea {
        min-height: 4rem;
    }
}

@keyframes chat-typing-bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
