:root {
    --gf-accent: #7137c7;
}
/* Use the original drawer and auth transitions with live server data. */
[hidden] { display: none !important; }
.gf-ajax-status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3000; max-width: min(560px, 92vw); padding: 15px 24px; color: white; background: #242126; border-radius: 16px; box-shadow: 0 8px 30px #0003; }
.gf-ajax-status.is-error { background: #842029; }
.gf-drawer-open { overflow: hidden; }
#cartDrawerContent { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.gf-cart-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gf-qty input { width: 40px; padding: 3px 0; text-align: center; border: 0; border-radius: 0; appearance: textfield; font-size: 12px; }
.gf-qty input::-webkit-inner-spin-button { appearance: none; }
#gfAuth .gf-input { display: flex; font-weight: 400; }
#gfAuth .gf-avatar-field { text-align: left; font-size: 12px; margin-bottom: 15px; }
#gfAuth .gf-avatar-field input { max-width: 100%; font-size: 12px; }
#gfAuth .gf-form { padding-top: 25px; padding-bottom: 25px; }
#gfAuth .gf-form form { max-height: 100%; overflow-y: auto; padding: 4px; }
#gfAuth .gf-panel-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.gf-address-edit { margin-block: 14px; }
.gf-address-edit summary { cursor: pointer; color: var(--gf-accent); font-weight: 600; }
.gf-detail-tabs { display: flex; gap: 28px; border-bottom: 1px solid #ddd; }
.gf-detail-tabs a { padding: 15px 2px; color: #666; text-decoration: none; }
.gf-detail-tabs a.active { color: var(--gf-accent); border-bottom: 2px solid currentColor; }
[data-tab-panel].active { animation: gf-panel-enter .25s ease; }
@keyframes gf-panel-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
body { color: var(--gf-ink); }
a { color: var(--gf-accent); }
.app-form { display: grid; gap: 18px; max-width: 650px; margin: 25px 0; }
label { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
input, select, textarea { padding: 11px 13px; border: 1px solid #c8c2cd; border-radius: 8px; font: inherit; background: white; min-width: 0; }
textarea { min-height: 110px; }
.gf-button { display: inline-block; border: 0; border-radius: 24px; padding: 11px 24px; color: white; background: var(--gf-accent); text-decoration: none; text-align: center; }
button:disabled { opacity: .5; cursor: not-allowed; }
.filter-bar, .inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; margin: 24px 0; }
.inline-form { margin: 0; align-items: center; }
.inline-form input { max-width: 150px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.product-card { border: 1px solid #e5dfe8; border-radius: 18px; padding: 20px; background: white; }
.product-card img { width: 100%; height: 230px; object-fit: contain; margin-bottom: 16px; }
.product-card h2 { font-size: 20px; line-height: 1.4; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin: 36px 0; }
.product-detail > img { width: 100%; max-height: 540px; object-fit: contain; }
.article-image { width: 100%; max-height: 450px; object-fit: cover; }
.article-body { max-width: 850px; font-size: 18px; line-height: 1.8; }
.review { border-bottom: 1px solid #ddd; padding: 18px 0; }
.review h3 { font-size: 18px; }
table { width: 100%; border-collapse: collapse; margin: 20px 0; }
th, td { border-bottom: 1px solid #e0dbe4; padding: 14px; text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.totals { max-width: 480px; margin: 30px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 30px; padding: 10px; border-bottom: 1px solid #ddd; }
:focus-visible { outline: 3px solid #cb76df; outline-offset: 3px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .product-grid, .product-detail { grid-template-columns: 1fr; } .filter-bar { align-items: stretch; flex-direction: column; } }
@media print {
    header, footer, .gf-account-bar, .no-print { display: none !important; }
    .receipt { width: 72mm; margin: 0 auto; font-size: 12px; }
    .receipt table, .receipt th, .receipt td { padding: 4px; font-size: 11px; }
    .receipt h1 { font-size: 18px; }
}

/* Extend the supplied menu classes without changing their existing palette. */
.gf-primary-item {
    position: relative;
    display: flex;
    align-items: center;
}
.gf-primary-dropdown > summary {
    list-style: none;
    cursor: pointer;
    padding: 10px;
}
.gf-primary-submenu {
    position: absolute;
    z-index: 1200;
    top: 100%;
    left: 0;
    min-width: 240px;
    padding: 18px;
    background: white;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .13);
}
.gf-primary-submenu, .gf-submenu-list, .gf-mobile-menu-list {
    list-style: none;
    padding-left: 18px;
}
.gf-primary-submenu a, .gf-mobile-menu-list a {
    display: inline-block;
    padding: 8px 0;
}
.gf-menu-children > summary {
    cursor: pointer;
    font-size: 14px;
}
.gf-footer-logo {
    width: auto;
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
}
.site-code-editor {
    font-family: ui-monospace, Consolas, monospace;
    min-height: 300px;
    white-space: pre;
}
.gf-actions-left { flex-wrap: nowrap; }
.gf-navbar.gf-padd-8 { padding-inline: clamp(20px, 4vw, 100px) !important; gap: 20px; }
.gf-logo { width: 240px; max-width: 22vw; }
.gf-logo img { width: 100%; max-height: 88px; object-fit: contain; position: static; transform: none; }
.gf-actions-left, .gf-actions-right { min-width: 0; }
.gf-primary-item > a { white-space: nowrap; }
.gf-primary-submenu a { white-space: normal; }
.product-card-image-wrap { position: relative; }
.product-card-image-wrap .gf-product-wishlist { opacity: 1; border: 0; }
.gf-product-cart { width: 100%; border: 0; border-radius: 25px; padding: 12px; margin-top: 14px; background: var(--gf-purple); color: white; }
.gf-product-card { height: 100%; }
.category-banner { width: 100%; max-height: 300px; object-fit: cover; border-radius: 22px; margin-bottom: 25px; }
.cart-update-button { border: 0; background: transparent; color: var(--gf-purple); text-decoration: underline; margin-top: 6px; }
.gfc-summary-box { background: white; padding: 28px; border-radius: 24px; }
.gfc-summary .totals { max-width: none; }
.gfc-product-price { overflow-wrap: anywhere; }
.gfw-image > a { display: block; height: 100%; }
.gfw-image-action form { width: 100%; }
.gfw-cart { width: 100%; }
.app-form label { display: grid; gap: 6px; }
.gf-server-auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 650px; }
.gf-server-auth .gf-form { position: static; width: 100%; height: auto; padding: 45px; }
.gf-server-auth .gf-panel { position: static; width: 100%; height: 100%; }
.gf-server-auth .gf-panel-side { width: 100%; min-height: 100%; }
.gf-server-auth .app-form { margin: 20px 0; width: 100%; }
.gf-server-auth input { width: 100%; }
.gf-server-auth input[type=file] { max-width: 100%; }
.gfo-section { padding: 60px 0; }
.gfo-confirm-box table { text-align: left; }
.gfa-account-content { min-width: 0; }
.gfa-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.gf-footer-social-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px 0; }
.gf-footer-social-links a { color: white; }
@media (min-width: 768px) and (max-width: 1199px) {
    .gf-navbar { flex-wrap: wrap; padding-top: 18px !important; padding-bottom: 18px !important; }
    .gf-navbar > .gf-logo { position: static !important; transform: none !important; order: -1; max-width: 220px; width: 220px; }
    .gf-actions-left { order: 2; width: 100%; flex-wrap: wrap; }
    .gf-actions-right { margin-left: auto; }
}
@media (min-width: 1200px) {
    .gf-actions-left { max-width: calc(50% - 145px); flex-wrap: wrap; }
    .gf-actions-left .gf-pill { padding-inline: 18px; font-size: 16px; }
    .gf-actions-right { max-width: calc(50% - 145px); }
    .gf-actions-right .gf-select { padding-inline: 8px; }
}
@media (max-width: 767px) {
    .gf-server-auth { grid-template-columns: 1fr; min-height: 0; }
    .gf-server-auth .gf-panel { display: none; }
    .gf-server-auth .gf-form { padding: 28px; opacity: 1; transform: none; }
    .gf-logo { width: 210px; max-width: 62vw; }
    .gf-logo img { width: 100%; max-height: 64px; }
    .gfw-image-action { opacity: 1; transform: none; }
}
@media (max-width: 767px) {
    .gf-primary-submenu { position: static; }
}
