:root {
    --shopx-primary: #2e4dff;
    --shopx-primary-soft: #e8edff;
    --shopx-accent: #0ea678;
    --shopx-text: #1f2a44;
    --shopx-muted: #63708a;
    --shopx-border: #dfe5f2;
    --shopx-surface: #ffffff;
    --shopx-background: #f5f7fd;
    --shopx-danger-bg: #fff3f3;
    --shopx-danger-text: #9a2121;
    --shopx-success-bg: #ecfbf4;
    --shopx-success-text: #166846;
}

body,
button,
input,
select,
textarea {
    font-family: "Cairo", sans-serif;
}

.shopx-header .main-menu .navigation > li > a,
.shopx-topline-title strong,
.shopx-topline-title span,
.shopx-topline-meta span,
.shopx-footer,
.shopx-primary-btn,
.shopx-secondary-btn {
    font-family: "Cairo", sans-serif;
}

.shopx-header .main-menu .navigation > li > a {
    font-size: 16px;
    font-weight: 700;
}

.shopx-header .logo-box img {
    max-height: 46px;
    width: auto;
}

.shopx-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-inline-start: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shopx-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.shopx-cart-badge.is-empty {
    opacity: 0.65;
}

.shopx-topline {
    background: var(--shopx-background);
    padding: 18px 0 10px;
}

.shopx-topline-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.shopx-topline-title {
    display: grid;
    gap: 3px;
}

.shopx-topline-title strong {
    color: var(--shopx-text);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.shopx-topline-title span,
.shopx-topline-meta span {
    color: var(--shopx-muted);
    font-size: 13px;
}

.shopx-topline-meta span {
    border: 1px solid var(--shopx-border);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
}

.shopx-flash {
    border-radius: 10px;
    padding: 11px 14px;
    border: 1px solid transparent;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.6;
}

.shopx-flash.is-error {
    background: var(--shopx-danger-bg);
    color: var(--shopx-danger-text);
    border-color: #f4caca;
}

.shopx-flash.is-success {
    background: var(--shopx-success-bg);
    color: var(--shopx-success-text);
    border-color: #caeedc;
}

.shopx-page-section {
    padding: 34px 0 72px;
    background: var(--shopx-background);
}

.shopx-toolbar-card,
.shopx-summary-panel,
.shopx-cart-items-panel,
.shopx-cart-summary-panel,
.shopx-empty-state,
.shopx-success-card {
    border: 1px solid var(--shopx-border);
    border-radius: 18px;
    background: var(--shopx-surface);
    box-shadow: 0 10px 32px rgba(28, 47, 92, 0.07);
}

.shopx-toolbar-card {
    padding: 20px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.shopx-toolbar-card-elevated {
    box-shadow: 0 16px 42px rgba(31, 49, 99, 0.1);
}

.shopx-store-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.shopx-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shopx-store-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shopx-store-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid var(--shopx-border);
    object-fit: cover;
    background: #fff;
}

.shopx-store-brand h2 {
    margin: 0;
    color: var(--shopx-text);
    font-size: 23px;
    line-height: 1.2;
}

.shopx-store-brand p {
    margin: 4px 0 0;
    color: var(--shopx-muted);
    font-size: 14px;
    line-height: 1.6;
}

.shopx-products-caption {
    margin: 0 0 12px;
    color: var(--shopx-muted);
    font-size: 14px;
    line-height: 1.5;
}

.shopx-search-wrap input,
.shopx-form-group input,
.shopx-form-group textarea,
.shopx-cart-item-row input,
.shopx-qty-input,
.shopx-variant-select {
    width: 100%;
    border: 1px solid var(--shopx-border);
    border-radius: 10px;
    background: #fff;
    color: var(--shopx-text);
    font-size: 14px;
    padding: 11px 12px;
    line-height: 1.3;
}

.shopx-search-wrap input {
    background: #fbfcff;
}

.shopx-search-wrap-icon {
    position: relative;
}

.shopx-search-wrap-icon i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7e8aa8;
    font-size: 14px;
}

.shopx-search-wrap-icon input {
    padding-right: 36px;
}

.shopx-categories-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #dfe6f5;
    border-radius: 12px;
    background: #f8faff;
}

.shopx-categories-bar .shopx-choice-chip {
    min-height: 40px;
    padding: 7px 12px;
}

.shopx-categories-bar .shopx-choice-chip small {
    margin-inline-start: 6px;
    color: #6f7fa3;
    font-size: 11px;
    font-weight: 700;
}

.shopx-main-categories {
    margin-top: 12px;
}

.shopx-sub-categories {
    margin-top: 8px;
    border-style: dashed;
    background: #fff;
}

.shopx-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.shopx-summary-panel {
    padding: 16px;
    position: sticky;
    top: 20px;
}

.shopx-summary-panel h3,
.shopx-cart-summary-panel h3,
.shopx-cart-panel-head h3 {
    margin: 0 0 12px;
    color: var(--shopx-text);
    font-size: 21px;
    line-height: 1.2;
}

.shopx-summary-lines {
    border: 1px solid var(--shopx-border);
    border-radius: 12px;
    background: #fbfcff;
    padding: 11px 12px;
    margin-bottom: 12px;
}

.shopx-summary-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: var(--shopx-muted);
    font-size: 14px;
}

.shopx-summary-lines > div:last-child {
    margin-bottom: 0;
}

.shopx-summary-lines strong {
    color: var(--shopx-text);
    font-size: 15px;
}

.shopx-summary-lines .shopx-total strong {
    color: var(--shopx-primary);
    font-size: 19px;
}

.shopx-selected-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 270px;
    overflow: auto;
}

.shopx-selected-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px dashed var(--shopx-border);
    padding: 8px 0;
    font-size: 13px;
    color: var(--shopx-muted);
}

.shopx-selected-list li:last-child {
    border-bottom: 0;
}

.shopx-selected-list strong {
    color: var(--shopx-text);
}

.shopx-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.shopx-primary-btn,
.shopx-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 15px;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.shopx-primary-btn {
    background: linear-gradient(135deg, #2e4dff, #3e6dff);
    color: #fff;
    flex: 1 1 170px;
}

.shopx-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.shopx-primary-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.shopx-secondary-btn {
    background: #fff;
    color: var(--shopx-primary);
    border: 1px solid #ced8ff;
    flex: 1 1 140px;
}

.shopx-secondary-btn:hover {
    color: var(--shopx-primary);
    background: var(--shopx-primary-soft);
}

.shopx-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.shopx-products-grid-modern {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shopx-product-card {
    border: 1px solid var(--shopx-border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(31, 42, 68, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shopx-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(28, 47, 92, 0.12);
}

.shopx-product-card-modern .js-shopx-product-form {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.shopx-product-image {
    margin: 0;
    height: 230px;
    background: #f3f6ff;
    position: relative;
}

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

.shopx-zoom-btn {
    position: absolute;
    left: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(16, 26, 48, 0.88);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.shopx-zoom-btn:hover {
    color: #fff;
}

.shopx-product-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}

.shopx-product-header-modern {
    margin-bottom: 0;
}

.shopx-price-pill {
    background: #eaf0ff;
    color: var(--shopx-primary);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    padding: 6px 11px;
}

.shopx-product-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.shopx-product-header h4 {
    margin: 0;
    color: var(--shopx-text);
    font-size: 18px;
    line-height: 1.4;
}

.shopx-product-header span {
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 9px;
}

.shopx-product-meta span {
    color: var(--shopx-muted);
    font-size: 13px;
}

.shopx-product-meta strong {
    color: var(--shopx-primary);
    font-size: 17px;
}

.shopx-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopx-product-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid #dbe5ff;
    border-radius: 999px;
    font-size: 12px;
    color: #4f5b78;
    background: #fbfdff;
}

.shopx-product-tags span i {
    color: var(--shopx-primary);
}

.shopx-variant-flow {
    display: grid;
    gap: 12px;
}

.shopx-step-block {
    display: grid;
    gap: 8px;
}

.shopx-step-title {
    margin: 0;
    color: var(--shopx-text);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.shopx-step-title span {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #e7edff;
    color: var(--shopx-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.shopx-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopx-choice-chip {
    border: 1px solid #d7deef;
    border-radius: 12px;
    background: #fff;
    color: var(--shopx-text);
    padding: 8px 10px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.18s ease;
}

.shopx-choice-chip:hover {
    border-color: #b7c5ef;
    background: #f8faff;
}

.shopx-choice-chip.is-active {
    border-color: #7f96f7;
    background: #ecf1ff;
    box-shadow: 0 0 0 3px rgba(46, 77, 255, 0.12);
}

.shopx-choice-label {
    font-weight: 700;
}

.shopx-color-chip {
    min-width: 108px;
    justify-content: flex-start;
}

.shopx-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: var(--swatch-color, #94a3b8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

.shopx-color-chip small,
.shopx-size-chip small {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #f3f6ff;
    color: #5f6d90;
    font-size: 11px;
    padding: 2px 7px;
}

.shopx-size-list {
    min-height: 52px;
}

.shopx-size-chip {
    min-width: 74px;
}

.shopx-chip-note {
    font-weight: 600;
}

.shopx-choice-empty {
    display: inline-flex;
    align-items: center;
    border: 1px dashed var(--shopx-border);
    border-radius: 10px;
    color: var(--shopx-muted);
    font-size: 12px;
    min-height: 48px;
    padding: 8px 11px;
}

.shopx-variant-picker {
    display: grid;
    gap: 6px;
}

.shopx-variant-picker label {
    margin: 0;
    color: var(--shopx-text);
    font-size: 13px;
    font-weight: 700;
}

.shopx-variant-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #7d88a3 50%), linear-gradient(135deg, #7d88a3 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1.05em), calc(100% - 15px) calc(1.05em);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-left: 16px;
    padding-right: 36px;
}

.shopx-variant-select:focus {
    border-color: #8ca3ff;
    box-shadow: 0 0 0 3px rgba(46, 77, 255, 0.12);
    outline: 0;
}

.shopx-variant-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.shopx-variant-detail {
    border: 1px solid var(--shopx-border);
    border-radius: 10px;
    background: #fbfcff;
    padding: 9px 8px;
    display: grid;
    justify-items: start;
    gap: 2px;
}

.shopx-variant-detail i {
    color: var(--shopx-primary);
    font-size: 13px;
}

.shopx-variant-detail span {
    color: var(--shopx-muted);
    font-size: 11px;
}

.shopx-variant-detail strong {
    color: var(--shopx-text);
    font-size: 13px;
}

.shopx-order-hint {
    margin: 0;
    color: var(--shopx-muted);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shopx-order-hint i {
    color: var(--shopx-primary);
}

.shopx-cart-summary-panel > .shopx-order-hint {
    margin: -2px 0 12px;
}

.shopx-variants-box {
    border-top: 1px dashed var(--shopx-border);
    padding-top: 8px;
    display: grid;
    gap: 7px;
}

.shopx-product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.shopx-variant-row {
    display: grid;
    grid-template-columns: 1fr 90px;
    align-items: center;
    gap: 8px;
    color: var(--shopx-text);
    font-size: 13px;
}

.shopx-in-cart-note {
    display: inline-block;
    margin-inline-start: 6px;
    color: var(--shopx-primary);
    font-size: 11px;
    font-weight: 700;
}

.shopx-qty-input {
    text-align: center;
    font-weight: 600;
    padding: 8px 10px;
}

.shopx-hidden {
    display: none !important;
}

.shopx-empty-state {
    padding: 26px;
    text-align: center;
}

.shopx-empty-state h3 {
    margin: 0 0 8px;
    color: var(--shopx-text);
    font-size: 23px;
    line-height: 1.2;
}

.shopx-empty-state p {
    margin: 0;
    color: var(--shopx-muted);
    font-size: 15px;
    line-height: 1.8;
}

.shopx-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 350px);
    gap: 16px;
    align-items: start;
}

.shopx-cart-items-panel,
.shopx-cart-summary-panel {
    padding: 16px;
}

.shopx-cart-summary-panel {
    position: sticky;
    top: 20px;
}

.shopx-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.shopx-cart-panel-head span {
    color: var(--shopx-muted);
    font-size: 13px;
}

.shopx-cart-items-list {
    display: grid;
    gap: 12px;
}

.shopx-cart-item {
    border: 1px solid var(--shopx-border);
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0;
}

.shopx-cart-item-image {
    margin: 0;
    height: 100%;
    background: #f3f6ff;
}

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

.shopx-cart-item-body {
    padding: 12px;
}

.shopx-cart-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.shopx-cart-item-head h4 {
    margin: 0;
    color: var(--shopx-text);
    font-size: 17px;
    line-height: 1.3;
}

.shopx-cart-item-head span,
.shopx-cart-item-meta span {
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-cart-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.shopx-cart-item-row {
    display: grid;
    grid-template-columns: 140px 140px minmax(0, 1fr);
    gap: 8px;
    align-items: end;
}

.shopx-cart-item-row label {
    margin: 0;
    display: grid;
    gap: 4px;
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-cart-item-row input[readonly] {
    background: #f5f7fd;
}

.shopx-cart-line-total {
    border: 1px dashed var(--shopx-border);
    border-radius: 10px;
    background: #fbfcff;
    padding: 8px;
    min-height: 44px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 2px;
}

.shopx-cart-line-total span {
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-cart-line-total strong {
    color: var(--shopx-text);
    font-size: 16px;
}

.shopx-form-group {
    display: grid;
    gap: 5px;
    margin-bottom: 10px;
}

.shopx-form-group label {
    color: var(--shopx-text);
    font-size: 13px;
    margin: 0;
}

.shopx-form-group textarea {
    min-height: 98px;
    resize: vertical;
}

.shopx-map-group {
    border: 1px dashed #ced9ff;
    border-radius: 12px;
    background: #f9fbff;
    padding: 10px;
}

.shopx-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopx-map-btn {
    flex: 1 1 160px;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13px;
}

.shopx-map-status {
    margin: 0;
    color: var(--shopx-muted);
    font-size: 12px;
    line-height: 1.6;
}

.shopx-map-status.is-success {
    color: var(--shopx-success-text);
}

.shopx-map-status.is-error {
    color: var(--shopx-danger-text);
}

.shopx-map-preview {
    width: 100%;
    height: 210px;
    border: 1px solid var(--shopx-border);
    border-radius: 12px;
    background: #f3f6ff;
}

.shopx-success-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 20px;
}

.shopx-success-card h3 {
    margin: 0 0 8px;
    color: var(--shopx-text);
    font-size: 28px;
    line-height: 1.3;
}

.shopx-success-card p {
    color: var(--shopx-muted);
    margin: 0 0 8px;
    font-size: 15px;
}

.shopx-success-card strong {
    display: inline-block;
    color: var(--shopx-primary);
    font-size: 28px;
    margin: 4px 0 14px;
}

.shopx-contact-card {
    border: 1px solid var(--shopx-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(28, 47, 92, 0.07);
    padding: 20px;
}

.shopx-contact-head {
    margin-bottom: 14px;
}

.shopx-contact-head h2 {
    margin: 0 0 8px;
    color: var(--shopx-text);
    font-size: 26px;
    line-height: 1.2;
}

.shopx-contact-head p {
    margin: 0;
    color: var(--shopx-muted);
    font-size: 15px;
    line-height: 1.8;
}

.shopx-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.shopx-contact-item {
    border: 1px solid var(--shopx-border);
    border-radius: 11px;
    background: #fbfcff;
    padding: 11px;
    display: grid;
    gap: 6px;
}

.shopx-contact-item span {
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-contact-item strong,
.shopx-contact-item a {
    color: var(--shopx-text);
    font-size: 15px;
    line-height: 1.5;
}

.shopx-invoice-card {
    border: 1px solid var(--shopx-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(25, 40, 77, 0.08);
    overflow: hidden;
}

.shopx-invoice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--shopx-border);
    background: linear-gradient(180deg, #fbfdff, #f5f8ff);
}

.shopx-invoice-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shopx-invoice-brand img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--shopx-border);
    object-fit: cover;
    background: #fff;
}

.shopx-invoice-brand h2 {
    margin: 0 0 3px;
    color: var(--shopx-text);
    font-size: 23px;
    line-height: 1.25;
}

.shopx-invoice-brand p {
    margin: 0;
    color: var(--shopx-muted);
    font-size: 13px;
}

.shopx-invoice-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
}

.shopx-invoice-contact span {
    color: var(--shopx-muted);
    font-size: 12px;
    border: 1px solid var(--shopx-border);
    border-radius: 999px;
    padding: 5px 9px;
    background: #fff;
}

.shopx-invoice-meta {
    display: grid;
    gap: 5px;
    border: 1px solid var(--shopx-border);
    border-radius: 12px;
    background: #fff;
    padding: 10px 12px;
    min-width: 240px;
}

.shopx-invoice-meta strong {
    color: var(--shopx-text);
    font-size: 17px;
    line-height: 1.2;
}

.shopx-invoice-meta span {
    color: var(--shopx-muted);
    font-size: 13px;
}

.shopx-invoice-section {
    padding: 16px 18px;
    border-bottom: 1px solid var(--shopx-border);
}

.shopx-invoice-section h3 {
    margin: 0 0 12px;
    color: var(--shopx-text);
    font-size: 19px;
    line-height: 1.2;
}

.shopx-invoice-customer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.shopx-invoice-customer > div {
    border: 1px solid var(--shopx-border);
    border-radius: 11px;
    background: #fbfcff;
    padding: 10px;
    display: grid;
    gap: 4px;
}

.shopx-invoice-customer span {
    color: var(--shopx-muted);
    font-size: 12px;
}

.shopx-invoice-customer strong {
    color: var(--shopx-text);
    font-size: 14px;
}

.shopx-invoice-table-wrap {
    overflow: auto;
    border: 1px solid var(--shopx-border);
    border-radius: 12px;
}

.shopx-invoice-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.shopx-invoice-table th,
.shopx-invoice-table td {
    border-bottom: 1px solid #edf1fa;
    padding: 9px 10px;
    text-align: right;
    font-size: 13px;
    color: var(--shopx-text);
}

.shopx-invoice-table thead th {
    background: #f4f7ff;
    color: #5f6a87;
    font-weight: 700;
}

.shopx-invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.shopx-invoice-summary {
    padding: 14px 18px;
    border-bottom: 1px solid var(--shopx-border);
    background: #f8faff;
}

.shopx-invoice-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.shopx-invoice-summary span {
    color: var(--shopx-muted);
    font-size: 14px;
}

.shopx-invoice-summary strong {
    color: var(--shopx-primary);
    font-size: 22px;
}

.shopx-invoice-summary p {
    margin: 0;
    color: var(--shopx-text);
    font-size: 13px;
    line-height: 1.7;
}

.shopx-invoice-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 18px;
    color: var(--shopx-muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.shopx-invoice-actions {
    justify-content: center;
    margin-top: 14px;
}

.shopx-footer {
    background: #101a30;
    color: #cad4ef;
    padding: 34px 0 14px;
}

.shopx-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 14px;
}

.shopx-footer h4,
.shopx-footer h5 {
    color: #fff;
    margin: 0 0 9px;
}

.shopx-footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.shopx-footer-brand img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.shopx-footer h4 {
    font-size: 21px;
}

.shopx-footer h5 {
    font-size: 16px;
}

.shopx-footer p {
    margin: 0;
    color: #cad4ef;
    font-size: 14px;
    line-height: 1.8;
}

.shopx-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.shopx-footer li,
.shopx-footer a {
    color: #cad4ef;
    font-size: 14px;
    text-decoration: none;
}

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

.shopx-footer-copy {
    border-top: 1px solid rgba(200, 210, 235, 0.22);
    padding-top: 10px;
    text-align: center;
    font-size: 13px;
    color: #c0cbe8;
}

.shopx-floating-cart {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    border-radius: 999px;
    background: #1e315f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(18, 34, 73, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
}

.shopx-floating-cart i {
    font-size: 16px;
}

.shopx-floating-cart span {
    font-size: 13px;
    font-weight: 700;
}

.shopx-floating-cart strong {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    color: #1e315f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 0 6px;
}

.shopx-floating-cart strong.is-empty {
    opacity: 0.72;
}

.shopx-floating-cart:hover {
    color: #fff;
}

@media (max-width: 1199px) {
    .shopx-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-cart-item-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-cart-line-total {
        grid-column: span 2;
        justify-items: start;
    }
}

@media (max-width: 991px) {
    .shopx-topline-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .shopx-layout-grid,
    .shopx-cart-layout {
        grid-template-columns: 1fr;
    }

    .shopx-summary-panel {
        position: static;
        order: 2;
    }

    .shopx-cart-summary-panel {
        position: static;
    }

    .shopx-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-products-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-contact-grid {
        grid-template-columns: 1fr;
    }

    .shopx-color-chip {
        min-width: 96px;
    }

    .shopx-variant-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-invoice-header {
        flex-direction: column;
    }

    .shopx-invoice-meta {
        width: 100%;
        min-width: 0;
    }

    .shopx-invoice-customer {
        grid-template-columns: 1fr;
    }

    .shopx-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .shopx-page-section {
        padding: 22px 0 58px;
    }

    .shopx-toolbar-card,
    .shopx-summary-panel,
    .shopx-cart-items-panel,
    .shopx-cart-summary-panel,
    .shopx-empty-state,
    .shopx-success-card {
        border-radius: 14px;
    }

    .shopx-store-head {
        flex-direction: column;
        align-items: stretch;
    }

    .shopx-toolbar-actions {
        width: 100%;
    }

    .shopx-store-brand h2 {
        font-size: 20px;
    }

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

    .shopx-products-grid-modern {
        grid-template-columns: 1fr;
    }

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

    .shopx-cart-item-image {
        height: 200px;
    }

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

    .shopx-cart-line-total {
        grid-column: auto;
        justify-items: end;
    }

    .shopx-product-actions {
        grid-template-columns: 1fr;
    }

    .shopx-choice-chip {
        width: 100%;
        justify-content: flex-start;
    }

    .shopx-categories-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .shopx-categories-bar .shopx-choice-chip {
        width: auto;
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .shopx-size-chip {
        justify-content: space-between;
    }

    .shopx-variant-details {
        grid-template-columns: 1fr;
    }

    .shopx-floating-cart {
        right: 12px;
        bottom: 12px;
        padding: 10px 12px;
    }
}

@media (max-width: 575px) {
    .shopx-topline {
        padding-top: 12px;
    }

    .shopx-topline-title strong {
        font-size: 16px;
    }

    .shopx-summary-actions {
        flex-direction: column;
    }

    .shopx-map-actions {
        flex-direction: column;
    }

    .shopx-map-btn {
        width: 100%;
    }
}

@media print {
    .main-header,
    .shopx-topline,
    .shopx-footer,
    .shopx-floating-cart,
    .shopx-invoice-actions,
    .page-title {
        display: none !important;
    }

    body,
    .boxed_wrapper,
    .shopx-page-section {
        background: #fff !important;
    }

    .shopx-page-section {
        padding: 0 !important;
    }

    .shopx-invoice-card {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .shopx-invoice-table-wrap {
        overflow: visible !important;
    }
}

/* ===== Shop VNext Redesign ===== */
:root {
    --shopx2-primary: #111827;
    --shopx2-secondary: #8b5e3c;
    --shopx2-soft: #f5efe7;
    --shopx2-text: #191919;
    --shopx2-muted: #5b6472;
    --shopx2-border: #e5e7eb;
    --shopx2-bg: #f7f7f7;
    --shopx2-surface: #ffffff;
    --shopx2-radius-lg: 24px;
    --shopx2-radius-md: 16px;
    --shopx2-shadow: 0 20px 55px rgba(16, 24, 40, 0.08);
}

body.shopx-body,
body.shopx-body button,
body.shopx-body input,
body.shopx-body select,
body.shopx-body textarea {
    font-family: "Tajawal", sans-serif;
}

body.shopx-body {
    background: var(--shopx2-bg);
    color: var(--shopx2-text);
}

.shopx-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 85% 0, rgba(139, 94, 60, 0.08), transparent 40%),
        radial-gradient(circle at 10% 10%, rgba(17, 24, 39, 0.07), transparent 45%),
        var(--shopx2-bg);
}

.shopx-site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(10px);
}

.shopx-topbar {
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.shopx-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.shopx-topbar-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.shopx-topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.shopx-topbar-meta a {
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.shopx-topbar-meta a:hover {
    color: #fff;
}

.shopx-mainbar {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--shopx2-border);
}

.shopx-mainbar-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 16px;
    position: relative;
}

.shopx-menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--shopx2-border);
    background: #fff;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}

.shopx-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--shopx2-primary);
}

.shopx-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--shopx2-text);
}

.shopx-brand img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--shopx2-border);
    background: #fff;
}

.shopx-brand strong {
    display: block;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
    color: #121926;
}

.shopx-brand small {
    color: var(--shopx2-muted);
    font-size: 12px;
    font-weight: 600;
}

.shopx-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.shopx-main-nav a {
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    padding: 11px 16px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.shopx-main-nav a:hover {
    background: #f3f4f6;
    color: #111827;
}

.shopx-main-nav a.is-active {
    background: #111827;
    color: #fff;
}

.shopx-head-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shopx-head-cart {
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid var(--shopx2-border);
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
}

.shopx-head-cart:hover {
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.shopx-cart-badge {
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--shopx2-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.shopx-cart-badge.is-empty {
    opacity: 0.5;
}

.shopx-flash-wrap {
    padding: 12px 0 0;
    background: transparent;
}

.shopx-flash {
    border-radius: 14px;
    border: 1px solid transparent;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.shopx-flash.is-error {
    background: #fff1f1;
    color: #7f1d1d;
    border-color: #fecaca;
}

.shopx-flash.is-success {
    background: #edfdf3;
    color: #14532d;
    border-color: #c8f2d7;
}

.shopx-main-content {
    padding-bottom: 130px;
}

.shopx-hero {
    padding: 20px 0 18px;
}

.shopx-hero-card {
    border-radius: var(--shopx2-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background:
        linear-gradient(130deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.78)),
        var(--shopx-hero-bg) center/cover no-repeat;
    color: #fff;
    min-height: 280px;
    box-shadow: var(--shopx2-shadow);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding: 34px;
    overflow: hidden;
    position: relative;
}

.shopx-hero-card::before,
.shopx-hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.shopx-hero-card::before {
    width: 220px;
    height: 220px;
    background: rgba(139, 94, 60, 0.25);
    left: -50px;
    top: -70px;
}

.shopx-hero-card::after {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.08);
    left: 26%;
    bottom: -48px;
}

.shopx-hero-content,
.shopx-hero-brand {
    position: relative;
    z-index: 2;
}

.shopx-hero-content {
    max-width: 720px;
}

.shopx-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 700;
}

.shopx-hero-content h1 {
    margin: 12px 0 10px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
    color: #fff;
}

.shopx-hero-content p {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.9;
}

.shopx-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.shopx-hero-brand {
    min-width: 220px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.11);
    backdrop-filter: blur(6px);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.shopx-hero-brand img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.shopx-hero-brand strong {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.shopx-hero-brand span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
}

.shopx-hero-compact .shopx-hero-card {
    min-height: 210px;
    padding-block: 24px;
}

.shopx-page-section {
    background: transparent;
    padding: 8px 0 70px;
}

.shopx-toolbar-card,
.shopx-cart-items-panel,
.shopx-cart-summary-panel,
.shopx-empty-state,
.shopx-contact-card,
.shopx-invoice-card {
    border: 1px solid var(--shopx2-border);
    border-radius: var(--shopx2-radius-lg);
    background: var(--shopx2-surface);
    box-shadow: var(--shopx2-shadow);
}

.shopx-toolbar-card {
    padding: 24px;
}

.shopx-filter-card {
    background:
        linear-gradient(180deg, #ffffff, #fcfcfc);
}

.shopx-store-head {
    align-items: flex-start;
    margin-bottom: 14px;
}

.shopx-store-brand h2 {
    font-size: clamp(22px, 2.6vw, 30px);
    margin: 0;
    color: #111827;
}

.shopx-store-brand p {
    margin: 6px 0 0;
    color: var(--shopx2-muted);
}

.shopx-toolbar-actions {
    gap: 10px;
}

.shopx-primary-btn,
.shopx-secondary-btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.shopx-primary-btn {
    background: var(--shopx2-primary);
    color: #fff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.2);
}

.shopx-primary-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    background: var(--shopx2-primary);
    filter: brightness(1.12);
}

.shopx-secondary-btn {
    background: #fff;
    color: #111827;
    border-color: var(--shopx2-border);
}

.shopx-secondary-btn:hover {
    color: #111827;
    transform: translateY(-1px);
    border-color: #d1d5db;
    background: #f9fafb;
}

.shopx-products-caption {
    margin-bottom: 12px;
    color: var(--shopx2-muted);
    font-size: 14px;
}

.shopx-search-wrap input,
.shopx-form-group input,
.shopx-form-group textarea,
.shopx-cart-item-row input,
.shopx-qty-input,
.shopx-variant-select {
    border: 1px solid var(--shopx2-border);
    border-radius: 12px;
    min-height: 46px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    padding: 11px 13px;
}

.shopx-search-wrap-icon i {
    right: 13px;
    color: #7c8594;
}

.shopx-search-wrap-icon input {
    padding-right: 38px;
}

.shopx-categories-bar {
    border-radius: 14px;
    border-color: #eceef2;
    background: #f8f9fb;
}

.shopx-main-categories {
    margin-top: 14px;
}

.shopx-sub-categories {
    margin-top: 10px;
    background: #fff;
}

.shopx-choice-chip {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
    background: #fff;
    color: #1f2937;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.shopx-choice-chip:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.shopx-choice-chip.is-active {
    border-color: var(--shopx2-primary);
    background: var(--shopx2-primary);
    color: #fff;
}

.shopx-choice-chip.is-active small {
    color: rgba(255, 255, 255, 0.9);
}

.shopx-products-grid-modern {
    margin-top: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.shopx-product-card-modern {
    border-radius: 20px;
    border: 1px solid var(--shopx2-border);
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    background: #fff;
}

.shopx-product-image {
    height: 270px;
    background: #f5f6f8;
}

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

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

.shopx-zoom-btn {
    border-radius: 999px;
    bottom: 12px;
    left: 12px;
    right: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
}

.shopx-product-body {
    padding: 16px;
}

.shopx-product-header-modern h4 {
    font-size: 20px;
    color: #111827;
}

.shopx-price-pill {
    border-radius: 999px;
    background: var(--shopx2-soft);
    color: var(--shopx2-secondary);
    border: 1px solid #eadac9;
    font-size: 15px;
    font-weight: 800;
}

.shopx-product-tags span {
    border-radius: 999px;
    border: 1px solid #eceff3;
    background: #fff;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
}

.shopx-variant-flow {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.shopx-step-title span {
    background: var(--shopx2-primary);
    color: #fff;
}

.shopx-color-chip .shopx-color-dot {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 1px solid rgba(17, 24, 39, 0.15);
}

.shopx-size-list {
    min-height: 52px;
}

.shopx-variant-details {
    border-radius: 14px;
    border: 1px solid #eceef2;
    background: #f9fafb;
}

.shopx-variant-detail strong {
    color: #111827;
}

.shopx-order-hint {
    color: #6b7280;
}

.shopx-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 18px;
}

.shopx-cart-items-panel {
    padding: 16px;
}

.shopx-cart-panel-head {
    border: 1px solid #eceef2;
    border-radius: 14px;
    background: #f9fafb;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.shopx-cart-panel-head h3 {
    margin: 0;
}

.shopx-cart-panel-head p {
    margin: 2px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.shopx-cart-panel-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    background: #111827;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.shopx-cart-item {
    border-radius: 16px;
    border: 1px solid #eceef2;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.05);
}

.shopx-cart-item-image {
    border-radius: 14px;
    overflow: hidden;
}

.shopx-cart-item-head h4 {
    color: #111827;
    font-size: 17px;
}

.shopx-cart-item-head span {
    color: var(--shopx2-secondary);
}

.shopx-cart-item-meta span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
}

.shopx-cart-line-total {
    border-radius: 12px;
    background: var(--shopx2-primary);
    color: #fff;
    min-height: 46px;
}

.shopx-cart-line-total strong {
    color: #fff;
}

.shopx-cart-summary-panel {
    padding: 18px;
    position: sticky;
    top: 120px;
}

.shopx-form-group label {
    color: #111827;
    font-weight: 700;
}

.shopx-map-group {
    border: 1px dashed #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.shopx-map-preview {
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.shopx-summary-lines {
    border-radius: 14px;
    border-color: #e5e7eb;
    background: #fafafa;
}

.shopx-summary-lines .shopx-total strong {
    color: var(--shopx2-secondary);
}

.shopx-summary-actions {
    gap: 10px;
}

.shopx-contact-card {
    padding: 24px;
}

.shopx-contact-card-modern {
    background:
        linear-gradient(180deg, #ffffff, #fcfcfc);
}

.shopx-contact-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    color: #111827;
}

.shopx-contact-grid {
    margin-top: 12px;
    gap: 12px;
}

.shopx-contact-item {
    border-radius: 14px;
    border-color: #e5e7eb;
    background: #f9fafb;
}

.shopx-contact-item span {
    color: #6b7280;
}

.shopx-contact-item strong {
    color: #111827;
}

.shopx-invoice-card {
    padding: 24px;
}

.shopx-invoice-header {
    border-bottom: 1px solid #eceef2;
    padding-bottom: 14px;
}

.shopx-invoice-brand h2 {
    color: #111827;
}

.shopx-invoice-meta strong {
    border-radius: 12px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
}

.shopx-invoice-section h3 {
    color: #111827;
}

.shopx-invoice-customer {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
    padding: 12px;
}

.shopx-invoice-table th {
    background: #111827;
    color: #fff;
}

.shopx-invoice-table td {
    border-color: #eceef2;
}

.shopx-invoice-summary {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fafafa;
}

.shopx-invoice-summary strong {
    color: var(--shopx2-secondary);
}

.shopx-empty-state {
    text-align: center;
    padding: 36px 22px;
}

.shopx-empty-state h3 {
    color: #111827;
}

.shopx-hidden {
    display: none !important;
}

.shopx-floating-cart {
    right: 18px;
    bottom: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: linear-gradient(120deg, #111827, #1f2937);
    color: #fff;
    box-shadow: 0 20px 44px rgba(17, 24, 39, 0.35);
    min-height: 56px;
    padding: 10px 16px;
}

.shopx-floating-cart strong {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.shopx-site-footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.9);
    padding: 54px 0 86px;
    margin-top: 14px;
}

.shopx-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 24px;
}

.shopx-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shopx-footer-brand img {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.shopx-footer-brand h4 {
    margin: 0;
    color: #fff;
    font-size: 22px;
}

.shopx-footer-brand p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.9;
}

.shopx-site-footer h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}

.shopx-site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.shopx-site-footer li {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.shopx-site-footer a {
    color: rgba(255, 255, 255, 0.87);
}

.shopx-site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.shopx-footer-copy {
    margin-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.shopx-mobile-dock {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 10px;
    z-index: 920;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.45);
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
}

.shopx-mobile-dock a {
    min-height: 52px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.82);
    display: grid;
    place-content: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 700;
    position: relative;
    text-align: center;
}

.shopx-mobile-dock a i {
    font-size: 16px;
}

.shopx-mobile-dock a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.shopx-mobile-dock .shopx-cart-badge {
    position: absolute;
    top: 5px;
    left: 16px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    padding: 0 5px;
}

@media (max-width: 1199px) {
    .shopx-products-grid-modern {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopx-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .shopx-cart-layout {
        grid-template-columns: 1fr;
    }

    .shopx-cart-summary-panel {
        position: static;
    }
}

@media (max-width: 1024px) {
    .shopx-site-header {
        position: relative;
    }

    .shopx-mainbar-inner {
        grid-template-columns: auto 1fr auto;
        min-height: 76px;
    }

    .shopx-menu-toggle {
        display: inline-flex;
    }

    .shopx-main-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        padding: 10px;
        border-radius: 16px;
        border: 1px solid var(--shopx2-border);
        background: #fff;
        box-shadow: 0 16px 40px rgba(17, 24, 39, 0.15);
        display: none;
        flex-direction: column;
        align-items: stretch;
        z-index: 1000;
    }

    .shopx-main-nav.is-open {
        display: flex;
    }

    .shopx-main-nav a {
        border-radius: 10px;
        text-align: center;
    }

    .shopx-topbar-meta {
        display: none;
    }
}

@media (max-width: 767px) {
    .shopx-main-content {
        padding-bottom: 164px;
    }

    .shopx-brand img {
        width: 45px;
        height: 45px;
    }

    .shopx-brand strong {
        font-size: 17px;
    }

    .shopx-head-cart span {
        display: none;
    }

    .shopx-hero {
        padding-top: 14px;
    }

    .shopx-hero-card {
        padding: 18px;
        min-height: 220px;
        flex-direction: column;
        align-items: flex-start;
    }

    .shopx-hero-brand {
        width: 100%;
        min-width: 0;
    }

    .shopx-toolbar-card {
        padding: 16px;
        border-radius: 18px;
    }

    .shopx-store-head {
        flex-direction: column;
        gap: 12px;
    }

    .shopx-products-grid-modern {
        grid-template-columns: 1fr;
    }

    .shopx-product-image {
        height: 240px;
    }

    .shopx-floating-cart {
        display: none;
    }

    .shopx-site-footer {
        padding-bottom: 126px;
    }

    .shopx-footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shopx-mobile-dock {
        display: grid;
    }
}

@media print {
    .shopx-site-header,
    .shopx-site-footer,
    .shopx-floating-cart,
    .shopx-mobile-dock,
    .shopx-hero,
    .shopx-invoice-actions {
        display: none !important;
    }

    .shopx-main-content,
    .shopx-page-section {
        padding: 0 !important;
        background: #fff !important;
    }
}

/* ===== Batch 1: product card, gallery slider, sticky add-to-cart ===== */
.shopx-product-card-modern .js-shopx-product-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.shopx-product-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

/* Gallery slider */
.shopx-product-image.js-shopx-gallery {
    position: relative;
    overflow: hidden;
}

.shopx-gallery-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.shopx-gallery-slide {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}

.shopx-gallery-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.shopx-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopx-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.shopx-product-image.js-shopx-gallery:hover .shopx-gallery-nav {
    opacity: 1;
}

.shopx-gallery-nav:hover {
    background: #fff;
}

.shopx-gallery-prev {
    right: 10px;
}

.shopx-gallery-next {
    left: 10px;
}

.shopx-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.shopx-gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.15);
    cursor: pointer;
    transition: background-color 0.2s ease, width 0.2s ease;
}

.shopx-gallery-dot.is-active {
    width: 20px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.35);
}

.shopx-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 2;
}

.shopx-product-image.js-shopx-gallery:hover .shopx-zoom-hint {
    opacity: 1;
}

/* Product code + description */
.shopx-code-tag {
    background: var(--shopx2-soft) !important;
    border-color: #eadac9 !important;
    color: var(--shopx2-secondary) !important;
}

.shopx-product-desc {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sticky / prominent add-to-cart bar */
.shopx-product-actions-sticky {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.shopx-add-cart-btn {
    flex: 1 1 auto;
    min-height: 50px;
    font-size: 15px;
    border-radius: 14px;
    background: var(--shopx2-secondary);
    box-shadow: 0 12px 26px rgba(139, 94, 60, 0.28);
}

.shopx-add-cart-btn:hover:not([disabled]) {
    background: #764b2f;
}

.shopx-add-cart-btn[disabled] {
    background: #e9ebef;
    color: #8a93a3;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.shopx-add-cart-btn.is-ready {
    animation: shopx-add-pop 0.25s ease;
}

@keyframes shopx-add-pop {
    0% { transform: scale(0.98); }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.shopx-view-cart-btn {
    flex: 0 0 auto;
    width: 50px;
    min-height: 50px;
    padding: 0;
    border-radius: 14px;
    font-size: 17px;
}

/* ===== Add-to-cart toast (AJAX feedback, no reload) ===== */
.shopx-toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%) translateY(24px);
    max-width: 90vw;
    padding: 13px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: #111827;
    box-shadow: 0 18px 44px rgba(17, 24, 39, 0.28);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
    text-align: center;
}

.shopx-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.shopx-toast.is-success {
    background: #166846;
}

.shopx-toast.is-error {
    background: #9a2121;
}

.shopx-add-cart-btn.is-loading {
    position: relative;
    color: transparent !important;
}

.shopx-add-cart-btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #fff;
    animation: shopx-spin 0.7s linear infinite;
}

@keyframes shopx-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .shopx-toast {
        bottom: 84px;
    }
}

/* ===== Batch 3: main showcase slider ===== */
.shopx-showcase {
    position: relative;
    margin: 0 0 18px;
    border-radius: var(--shopx2-radius-lg);
    overflow: hidden;
    box-shadow: var(--shopx2-shadow);
    background: #0b1220;
    aspect-ratio: 16 / 6;
    min-height: 220px;
}

.shopx-showcase-track {
    position: absolute;
    inset: 0;
}

.shopx-showcase-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
}

.shopx-showcase-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.shopx-showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shopx-showcase-caption {
    position: absolute;
    inset-inline-start: 0;
    inset-block-end: 0;
    padding: 24px 28px;
    width: 100%;
    background: linear-gradient(to top, rgba(8, 12, 24, 0.82), rgba(8, 12, 24, 0.15) 60%, transparent);
    color: #fff;
}

.shopx-showcase-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--shopx2-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.shopx-showcase-caption h3 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}

.shopx-showcase-caption strong {
    font-size: 15px;
    color: #f3e9dd;
}

.shopx-showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.shopx-showcase-prev { right: 14px; }
.shopx-showcase-next { left: 14px; }

.shopx-showcase-dots {
    position: absolute;
    inset-block-end: 12px;
    inset-inline-end: 20px;
    display: flex;
    gap: 7px;
    z-index: 3;
}

.shopx-showcase-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.shopx-showcase-dot.is-active {
    width: 24px;
    background: #fff;
}

@media (max-width: 700px) {
    .shopx-showcase {
        aspect-ratio: 4 / 3;
        min-height: 260px;
    }
    .shopx-showcase-caption h3 { font-size: 19px; }
    .shopx-showcase-nav { width: 36px; height: 36px; }
}
