/*
Theme Name: VouchPay
Theme URI: https://example.com/electrogift
Author: VouchPay
Author URI: https://example.com
Description: A WooCommerce voucher marketplace theme with an admin importer for starter categories and products.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: electrogift
*/

:root {
    --eg-blue: #0759d8;
    --eg-blue-dark: #0048b7;
    --eg-text: #08111f;
    --eg-muted: #5d6a7c;
    --eg-border: #d8e0ec;
    --eg-soft: #f4f7fc;
    --eg-sidebar: #eef4ff;
    --eg-footer: #dbeafe;
    --eg-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --eg-radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--eg-soft);
    color: var(--eg-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.eg-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--eg-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
}

.eg-header-inner,
.eg-shell,
.eg-footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.eg-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 64px;
}

.eg-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.eg-brand-logo {
    width: auto;
    max-width: 210px;
    max-height: 52px;
    object-fit: contain;
}

.eg-header .eg-brand-logo {
    max-height: 42px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.eg-brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #0967eb, #4f46e5);
    color: #fff;
    font-weight: 900;
}

.eg-brand-text {
    font-size: 22px;
}

.eg-brand-text span {
    color: var(--eg-blue);
}

.eg-nav-list {
    display: flex;
    gap: 22px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #233044;
    font-size: 14px;
    font-weight: 600;
}

.eg-nav {
    margin-left: 72px;
}

.eg-nav-list a {
    display: inline-flex;
    padding: 22px 0 18px;
    border-bottom: 2px solid transparent;
}

.eg-nav-list a:hover,
.eg-nav-list .current-menu-item > a,
.eg-nav-list a.is-active {
    color: var(--eg-blue);
    border-bottom-color: var(--eg-blue);
}

.eg-search {
    position: relative;
    flex: 1;
    max-width: 520px;
    margin-left: auto;
}

.eg-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    display: grid;
    place-items: center;
    color: #738095;
    transform: translateY(-50%);
}

.eg-search input[type="search"] {
    width: 100%;
    height: 42px;
    border: 1px solid #c8d3e3;
    border-radius: 14px;
    background: #f7f9fd;
    color: #111827;
    font: inherit;
    font-size: 14px;
    outline: none;
    padding: 0 16px 0 44px;
}

.eg-search input[type="search"]:focus {
    border-color: var(--eg-blue);
    background: #fff;
}

.eg-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eg-cart {
    position: relative;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    color: var(--eg-blue);
}

.eg-cart:hover {
    background: #eef4ff;
}

.electrogift-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.eg-sign-in,
.eg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
    padding: 0 18px;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.eg-sign-in,
.eg-button-primary {
    background: var(--eg-blue);
    color: #fff;
}

.eg-sign-in:hover,
.eg-button-primary:hover {
    background: var(--eg-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.eg-button-ghost {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.eg-button-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.eg-button-soft {
    background: #dbeafe;
    color: #0f4eb5;
}

.eg-shell {
    display: flex;
    gap: 28px;
    padding-top: 30px;
}

.eg-sidebar {
    width: 248px;
    flex: 0 0 248px;
}

.eg-sidebar-sticky {
    position: sticky;
    top: 94px;
}

.eg-sidebar-title {
    margin: 14px 0 28px 12px;
}

.eg-sidebar-title h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.eg-sidebar-title p {
    margin: 2px 0 0;
    color: #667085;
    font-size: 12px;
}

.eg-category-nav {
    display: grid;
    gap: 8px;
}

.eg-category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    border-radius: 8px;
    color: #1c2636;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0 14px;
}

.eg-category-link span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: currentColor;
}

.eg-category-link:hover,
.eg-category-link.is-active {
    background: #2d73df;
    color: #fff;
    box-shadow: 0 10px 22px rgba(45, 115, 223, 0.22);
}

.eg-special-box,
.eg-sidebar-note {
    margin-top: 42px;
    border-radius: 12px;
    background: #dbe7ff;
    padding: 16px;
}

.eg-special-box span {
    display: block;
    color: #334155;
    font-size: 12px;
}

.eg-special-box strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.eg-special-box a {
    display: grid;
    margin-top: 12px;
    min-height: 32px;
    place-items: center;
    border-radius: 7px;
    background: var(--eg-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.eg-main {
    min-width: 0;
    flex: 1;
}

.eg-hero {
    min-height: 398px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 8px;
    background-color: #0f172a;
    background-position: center;
    background-size: cover;
    box-shadow: var(--eg-shadow);
    color: #fff;
    padding: 44px 48px;
}

.eg-hero-content {
    width: min(620px, 100%);
}

.eg-hero-content > span {
    display: inline-flex;
    border-radius: 999px;
    background: #1f72f2;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 8px 18px;
    text-transform: uppercase;
}

.eg-hero h1 {
    margin: 24px 0 0;
    max-width: 560px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.eg-hero p {
    max-width: 560px;
    margin: 24px 0 0;
    color: #e6edf8;
    font-size: 18px;
    line-height: 1.55;
}

.eg-hero-content div {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.eg-section {
    margin-top: 58px;
}

.eg-results-section {
    margin-top: 12px;
}

.eg-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.eg-section-head h1,
.eg-section-head h2 {
    margin: 0;
    color: #070d1b;
    font-size: clamp(30px, 4vw, 40px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.eg-section-head p {
    margin: 8px 0 0;
    color: #425066;
    font-size: 15px;
}

.eg-section-head > a {
    color: var(--eg-blue);
    font-size: 14px;
    font-weight: 800;
}

.eg-curated-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.eg-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.eg-product-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #cfd8e6;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.eg-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
}

.eg-product-feature {
    display: grid;
    grid-template-columns: 1fr;
}

.eg-product-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dbe4ef;
}

.eg-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

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

.eg-product-body {
    display: flex;
    min-height: 240px;
    flex-direction: column;
    padding: 28px;
}

.eg-product-feature .eg-product-body {
    min-height: 250px;
}

.eg-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.eg-product-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #f3f7ff;
    color: var(--eg-blue);
    font-size: 24px;
}

.eg-product-badge {
    border-radius: 999px;
    background: #eff6ff;
    color: #0f60d0;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.eg-product-card h3 {
    margin: 28px 0 0;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.eg-product-feature h3 {
    margin-top: 16px;
    font-size: 25px;
}

.eg-product-card h3 a:hover {
    color: var(--eg-blue);
}

.eg-product-card p {
    margin: 10px 0 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
}

.eg-product-footer {
    display: grid;
    align-items: start;
    gap: 14px;
    margin-top: auto;
    padding-top: 32px;
}

.eg-product-footer > div {
    min-width: 0;
    width: 100%;
}

.eg-price-label {
    display: block;
    color: #1f2937;
    font-size: 11px;
    margin-bottom: 4px;
}

.eg-product-footer strong {
    display: block;
    color: var(--eg-blue);
    font-size: clamp(22px, 2.2vw, 27px);
    line-height: 1;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.eg-product-feature .eg-product-footer strong {
    font-size: clamp(24px, 2.4vw, 29px);
}

.eg-product-footer .eg-button {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 16px;
}

.eg-accent-green {
    border-left-color: #10b981;
}

.eg-accent-orange {
    border-left-color: #f97316;
}

.eg-accent-purple {
    border-left-color: #a855f7;
}

.eg-accent-red {
    border-left-color: #ef4444;
}

.eg-accent-pink {
    border-left-color: #ec4899;
}

.eg-sort-form select {
    min-height: 38px;
    border: 1px solid #c9d5e6;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    padding: 0 32px 0 12px;
}

.eg-empty-state {
    border: 1px solid var(--eg-border);
    border-radius: 16px;
    background: #fff;
    padding: 42px;
}

.eg-empty-state.compact {
    grid-column: 1 / -1;
    padding: 24px;
}

.eg-empty-state h1 {
    margin: 0;
    font-size: 34px;
}

.eg-empty-state p {
    color: var(--eg-muted);
}

.eg-footer {
    margin-top: 80px;
    border-top: 1px solid #9bbbe7;
    background: var(--eg-footer);
}

.eg-footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr auto;
    align-items: center;
    gap: 30px;
    min-height: 140px;
}

.eg-footer p {
    margin: 8px 0 0;
    color: #536174;
    font-size: 13px;
}

.eg-footer-links,
.eg-footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: #334155;
    font-size: 13px;
}

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

.eg-footer-links a:hover {
    color: var(--eg-blue);
}

.eg-footer-actions {
    display: flex;
    gap: 12px;
}

.eg-footer-actions a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    color: #1f2937;
}

.woocommerce a.added_to_cart {
    display: inline-flex;
    margin-left: 10px;
    color: var(--eg-blue);
    font-size: 13px;
    font-weight: 800;
}

.eg-page-shell,
.eg-single-shell {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 30px;
}

.eg-page-hero {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.38), transparent 32%),
        linear-gradient(135deg, #061224 0%, #0f2d5c 48%, #0a63d8 100%);
    color: #fff;
    padding: 36px 40px;
    box-shadow: var(--eg-shadow);
}

.eg-page-hero span,
.eg-detail-kicker > .eg-product-badge {
    display: inline-flex;
    width: fit-content;
}

.eg-page-hero span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 7px 12px;
    text-transform: uppercase;
}

.eg-page-hero h1 {
    margin: 14px 0 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.eg-page-hero p {
    max-width: 620px;
    margin: 16px 0 0;
    color: #e4ecf8;
    font-size: 17px;
}

.eg-page-card {
    margin-top: 24px;
    border: 1px solid var(--eg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
    padding: 34px;
}

.eg-commerce-page .eg-page-card {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.eg-page-card > *:first-child {
    margin-top: 0;
}

.eg-page-card > *:last-child {
    margin-bottom: 0;
}

.woocommerce table.shop_table {
    overflow: hidden;
    border: 1px solid var(--eg-border);
    border-collapse: separate;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.woocommerce table.shop_table th {
    background: #eef4ff;
    color: #111827;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
    border-top-color: #e5edf7;
    padding: 16px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt {
    border-radius: 10px;
    background: var(--eg-blue);
    color: #fff;
    font-weight: 900;
    line-height: 1;
    padding: 14px 20px;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover {
    background: var(--eg-blue-dark);
    color: #fff;
}

.woocommerce .quantity .qty {
    width: 76px;
    min-height: 42px;
    border: 1px solid #c9d5e6;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce .woocommerce-billing-fields,
.woocommerce .woocommerce-shipping-fields,
.woocommerce .woocommerce-additional-fields,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-navigation {
    border: 1px solid var(--eg-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 24px;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: min(460px, 100%);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-input-wrapper .select2-container .select2-selection {
    min-height: 44px;
    border: 1px solid #c9d5e6;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: 10px 12px;
}

.woocommerce-checkout #payment {
    border: 1px solid var(--eg-border);
    border-radius: 18px;
    background: #fff;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.eg-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.eg-breadcrumbs a:hover {
    color: var(--eg-blue);
}

.eg-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 34px;
    overflow: hidden;
    border: 1px solid var(--eg-border);
    border-left: 6px solid #3b82f6;
    border-radius: 24px;
    background:
        radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.12), transparent 36%),
        #fff;
    box-shadow: var(--eg-shadow);
    padding: 24px;
}

.eg-detail-media {
    min-height: 540px;
    overflow: hidden;
    border-radius: 18px;
    background: #0f172a;
}

.eg-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eg-detail-placeholder {
    display: grid;
    min-height: 540px;
    place-items: center;
    color: #bfdbfe;
    font-size: 88px;
}

.eg-detail-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px 12px 18px 0;
}

.eg-detail-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.eg-detail-content h1 {
    margin: 24px 0 0;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.eg-detail-price {
    margin-top: 22px;
    color: var(--eg-blue);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 900;
    letter-spacing: -0.06em;
}

.eg-detail-summary {
    max-width: 560px;
    margin-top: 20px;
    color: #334155;
    font-size: 18px;
    line-height: 1.55;
}

.eg-detail-summary p {
    margin: 0;
}

.eg-detail-actions {
    margin-top: 30px;
}

.eg-detail-cart-form {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.eg-detail-cart-form .eg-button {
    min-height: 48px;
    padding-inline: 26px;
}

.eg-stock-note {
    color: #b91c1c;
    font-weight: 800;
}

.eg-product-facts {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
}

.eg-product-facts div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #e5edf7;
    padding-top: 12px;
}

.eg-product-facts dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eg-product-facts dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    text-align: right;
}

.eg-product-facts a {
    color: var(--eg-blue);
}

.eg-detail-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    margin-top: 28px;
}

.eg-detail-panel {
    border: 1px solid var(--eg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.eg-detail-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.eg-detail-description {
    color: #334155;
    font-size: 16px;
    line-height: 1.7;
}

.eg-detail-description > *:first-child {
    margin-top: 0;
}

.eg-detail-description > *:last-child {
    margin-bottom: 0;
}

.eg-detail-side-panel ol {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-left: 20px;
    color: #334155;
    line-height: 1.55;
}

.eg-related-products {
    margin-top: 46px;
}

.eg-amount-picker {
    display: grid;
    gap: 14px;
    width: 100%;
    border: 1px solid #d9e3f2;
    border-radius: 16px;
    background: #f8fbff;
    padding: 16px;
}

.eg-amount-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eg-amount-picker-head span {
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eg-amount-picker-head strong {
    color: var(--eg-blue);
    font-size: 22px;
    letter-spacing: -0.05em;
}

.eg-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.eg-amount-option {
    min-height: 40px;
    border: 1px solid #c9d5e6;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    padding: 0 14px;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.eg-amount-option:hover,
.eg-amount-option.is-selected {
    border-color: var(--eg-blue);
    background: var(--eg-blue);
    color: #fff;
    transform: translateY(-1px);
}

.eg-custom-amount {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eg-custom-amount input {
    min-height: 44px;
    border: 1px solid #c9d5e6;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: normal;
    padding: 0 14px;
    text-transform: none;
}

.eg-custom-amount input:focus {
    border-color: var(--eg-blue);
    outline: none;
}

.eg-detail-cart-form .eg-amount-picker {
    flex-basis: 100%;
    margin-bottom: 4px;
}

.eg-amount-modal[hidden] {
    display: none;
}

.eg-modal-open {
    overflow: hidden;
}

.eg-amount-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.eg-amount-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.66);
    backdrop-filter: blur(8px);
}

.eg-amount-modal-dialog {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
    width: min(920px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 40px 90px rgba(2, 6, 23, 0.38);
}

.eg-amount-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
}

.eg-amount-modal-media {
    min-height: 100%;
    background: #0f172a;
}

.eg-amount-modal-media img,
.eg-amount-modal-media .eg-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.eg-amount-modal-content {
    display: grid;
    align-content: center;
    gap: 16px;
    overflow-y: auto;
    padding: 42px;
}

.eg-amount-modal-content h2 {
    margin: 0;
    color: #061224;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.eg-amount-modal-content p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.55;
}

.eg-modal-price-label {
    color: var(--eg-blue);
    font-size: 24px;
    letter-spacing: -0.05em;
}

.eg-amount-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.eg-amount-modal-actions .eg-button {
    min-height: 46px;
}

.eg-scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: var(--eg-blue);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 40px rgba(7, 89, 216, 0.3);
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.eg-scroll-top:hover {
    background: var(--eg-blue-dark);
}

.eg-scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.eg-contact-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 30px;
}

.eg-contact-hero {
    overflow: hidden;
    border-radius: 26px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.68)),
        url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1400&q=80');
    background-position: center;
    background-size: cover;
    color: #fff;
    box-shadow: var(--eg-shadow);
    padding: 54px;
}

.eg-contact-hero div {
    max-width: 680px;
}

.eg-contact-hero span {
    display: inline-flex;
    border-radius: 999px;
    background: #1f72f2;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 8px 14px;
    text-transform: uppercase;
}

.eg-contact-hero h1 {
    margin: 20px 0 0;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 0.94;
    letter-spacing: -0.07em;
}

.eg-contact-hero p {
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.6;
}

.eg-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    margin-top: 28px;
}

.eg-contact-card {
    border: 1px solid var(--eg-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.07);
    padding: 32px;
}

.eg-contact-card h2 {
    margin: 0 0 18px;
    font-size: 32px;
    letter-spacing: -0.06em;
}

.eg-contact-form {
    display: grid;
    gap: 16px;
}

.eg-contact-form label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eg-contact-form input,
.eg-contact-form textarea {
    width: 100%;
    border: 1px solid #c9d5e6;
    border-radius: 12px;
    background: #f8fbff;
    color: #0f172a;
    font: inherit;
    font-size: 15px;
    letter-spacing: normal;
    padding: 13px 14px;
    text-transform: none;
}

.eg-contact-form input:focus,
.eg-contact-form textarea:focus {
    border-color: var(--eg-blue);
    background: #fff;
    outline: none;
}

.eg-contact-form textarea {
    resize: vertical;
}

.eg-contact-form .eg-button {
    justify-self: start;
    min-height: 48px;
}

.eg-contact-notice {
    margin-bottom: 18px;
    border-radius: 12px;
    font-weight: 800;
    padding: 12px 14px;
}

.eg-contact-notice.success {
    background: #dcfce7;
    color: #166534;
}

.eg-contact-notice.error {
    background: #fee2e2;
    color: #991b1b;
}

.eg-contact-info-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.12), transparent 34%),
        #fff;
}

.eg-contact-info-card > p {
    margin: -6px 0 24px;
    color: #475569;
    line-height: 1.6;
}

.eg-contact-methods {
    display: grid;
    gap: 14px;
}

.eg-contact-methods div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    border-top: 1px solid #e5edf7;
    padding-top: 16px;
}

.eg-contact-methods span {
    grid-row: span 2;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--eg-blue);
    font-size: 24px;
}

.eg-contact-methods strong {
    color: #0f172a;
    font-size: 17px;
}

.eg-contact-methods p {
    margin: 4px 0 0;
    color: #64748b;
    line-height: 1.45;
}

@media (max-width: 1100px) {
    .eg-shell {
        display: block;
    }

    .eg-sidebar {
        width: auto;
        margin-bottom: 26px;
    }

    .eg-sidebar-sticky {
        position: static;
    }

    .eg-category-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .eg-category-link {
        flex: 0 0 auto;
    }

    .eg-special-box {
        display: none;
    }

    .eg-product-detail,
    .eg-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .eg-detail-content {
        padding: 10px 4px 4px;
    }
}

@media (max-width: 900px) {
    .eg-nav {
        display: none;
    }

    .eg-header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .eg-search {
        order: 3;
        max-width: none;
        flex-basis: 100%;
    }

    .eg-curated-grid,
    .eg-product-grid,
    .eg-contact-grid,
    .eg-footer-inner {
        grid-template-columns: 1fr;
    }

    .eg-page-hero,
    .eg-page-card,
    .eg-detail-panel,
    .eg-product-detail {
        border-radius: 18px;
    }

    .eg-detail-media,
    .eg-detail-placeholder {
        min-height: 380px;
    }

    .eg-amount-modal-dialog {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .eg-amount-modal-media {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .eg-header-inner,
    .eg-shell,
    .eg-page-shell,
    .eg-single-shell,
    .eg-contact-shell,
    .eg-footer-inner {
        width: min(100% - 22px, 1240px);
    }

    .eg-brand-text {
        font-size: 19px;
    }

    .eg-sign-in {
        padding: 0 12px;
        font-size: 12px;
    }

    .eg-hero {
        min-height: auto;
        padding: 34px 24px;
    }

    .eg-page-hero,
    .eg-contact-hero,
    .eg-page-card,
    .eg-contact-card,
    .eg-product-detail,
    .eg-detail-panel {
        padding: 22px;
    }

    .eg-detail-media,
    .eg-detail-placeholder {
        min-height: 260px;
    }

    .eg-amount-modal {
        padding: 12px;
    }

    .eg-amount-modal-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 18px;
    }

    .eg-amount-modal-content {
        padding: 24px;
    }

    .eg-amount-picker-head,
    .eg-amount-modal-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .eg-amount-modal-actions .eg-button {
        width: 100%;
    }

    .eg-section-head,
    .eg-product-footer,
    .eg-product-facts div {
        align-items: flex-start;
        flex-direction: column;
    }

    .eg-product-facts dd {
        text-align: left;
    }

    .eg-product-footer .eg-button {
        width: 100%;
    }

    .eg-contact-form .eg-button {
        width: 100%;
    }

    .eg-scroll-top {
        right: 14px;
        bottom: 14px;
    }
}