/* ============================================================
   Shop Template — Order Detail Page
   @package WiderMatrix
   ============================================================ */

/* ---------- Hero ---------- */
.shop-hero {
    padding: 32px 0 24px;
}

/* ---------- Main Layout ---------- */
.shop-main-section {
    padding: 24px 0 60px;
}
.shop-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ---------- Left: Product ---------- */
.shop-product-col {
    min-width: 0;
}
.shop-gallery-main {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-soft);
}
.shop-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.25s ease;
}
.shop-gallery-main img.switching {
    opacity: 0;
}

/* Gallery arrows */
.shop-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity var(--transition), background var(--transition), color var(--transition), transform 0.15s ease;
    z-index: 5;
}
.shop-arrow-prev { left: 12px; }
.shop-arrow-next { right: 12px; }
.shop-gallery-main:hover .shop-gallery-arrow {
    opacity: 1;
}
.shop-gallery-arrow:hover {
    background: var(--brand-primary);
    color: #fff;
}
.shop-gallery-arrow:active {
    transform: translateY(-50%) scale(0.9);
}

/* Gallery counter badge */
.shop-gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(20, 12, 18, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Gallery dots */
.shop-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.shop-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: var(--color-border);
    cursor: pointer;
    transition: width 0.25s ease, background var(--transition);
}
.shop-dot:hover {
    background: var(--color-text-muted);
}
.shop-dot.active {
    width: 24px;
    background: var(--brand-primary);
}

/* Mobile: arrows always visible */
@media (max-width: 1100px) {
    .shop-gallery-arrow {
        opacity: 1;
        width: 34px;
        height: 34px;
    }
    .shop-arrow-prev { left: 8px; }
    .shop-arrow-next { right: 8px; }
}
.shop-short-desc {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}
.shop-content {
    margin-top: 24px;
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--color-text);
}
.shop-content h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 36px 0 14px;
    color: var(--color-text);
    line-height: 1.3;
}
.shop-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--color-text);
    line-height: 1.4;
}
.shop-content h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 22px 0 8px;
    color: var(--color-text);
}
.shop-content p {
    margin: 0 0 16px;
}
.shop-content p:last-child {
    margin-bottom: 0;
}
.shop-content ul,
.shop-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.shop-content li {
    margin-bottom: 6px;
    line-height: 1.7;
}
.shop-content blockquote {
    border-left: 4px solid var(--brand-primary);
    margin: 24px 0;
    padding: 18px 22px;
    background: var(--color-bg-soft);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.8;
}
.shop-content blockquote p {
    margin: 0;
}
.shop-content a {
    color: var(--brand-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.shop-content a:hover {
    color: var(--brand-primary-dark);
}
.shop-content strong {
    font-weight: 700;
    color: var(--color-text);
}
.shop-content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 28px 0;
}
.shop-content img {
    border-radius: var(--radius-sm);
    margin: 16px auto;
    display: block;
    max-width: 100%;
    height: auto;
}
.shop-content figure {
    margin: 16px 0 20px;
    max-width: 100%;
}
.shop-content figcaption {
    font-size: 13px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}
.shop-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.shop-content table td,
.shop-content table th {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    font-size: 14px;
}
.shop-content table th {
    background: var(--color-bg-soft);
    font-weight: 700;
    text-align: left;
}
.shop-content tbody tr:nth-child(even) {
    background: var(--color-bg-soft);
}
.shop-content tbody tr:hover {
    background: rgba(136, 62, 116, 0.04);
}

/* ---------- Right: Order Form (sticky) ---------- */
.shop-form-col {
    position: sticky;
    top: 70px;
    align-self: start;
}
.shop-sticky-form {
    position: relative;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* Promo badge */
.shop-promo-badge {
    position: absolute;
    top: -13px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff7a2f, #f7418f);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(247, 65, 143, 0.4);
    animation: promoFloat 2.6s ease-in-out infinite;
    z-index: 5;
}
@keyframes promoFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

.shop-form-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--color-text);
}
.shop-form-subtitle {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}
.shop-form-section {
    margin-bottom: 24px;
}
.shop-form-heading {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.shop-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.shop-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.shop-field-full {
    margin-top: 12px;
}
.shop-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}
.shop-field input,
.shop-field select,
.shop-field textarea {
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--color-bg);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.shop-field input:focus,
.shop-field select:focus,
.shop-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(136, 62, 116, 0.1);
}

/* Submit button loading dots */
.shop-dots span {
    display: inline-block;
    animation: shopDotBounce 1.2s infinite;
    font-weight: 900;
}
.shop-dots span:nth-child(2) { animation-delay: 0.15s; }
.shop-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes shopDotBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%           { transform: translateY(-5px); opacity: 1; }
}

/* ---------- Custom Country Dropdown ---------- */
.shop-country-wrap {
    position: relative;
}
.shop-country-wrap input {
    padding-right: 36px;
    cursor: pointer;
}
.shop-country-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
    transition: transform var(--transition);
}
.shop-country-wrap.open .shop-country-arrow {
    transform: translateY(-50%) rotate(180deg);
}
.shop-country-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 220px;
    overflow-y: auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 6px;
    z-index: 50;
    display: none;
}
.shop-country-wrap.open .shop-country-list {
    display: block;
    animation: shopDropIn 0.18s ease;
}
@keyframes shopDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.shop-country-list li {
    padding: 9px 12px;
    font-size: 14px;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.shop-country-list li:hover,
.shop-country-list li.highlighted {
    background: rgba(136, 62, 116, 0.08);
    color: var(--brand-primary);
}
.shop-country-list li.selected {
    background: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}
.shop-country-list li.no-match {
    color: var(--color-text-muted);
    cursor: default;
    font-style: italic;
}
.shop-country-list li.no-match:hover {
    background: transparent;
    color: var(--color-text-muted);
}

/* ---------- Accessories List ---------- */
.shop-accessories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.shop-acc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.shop-acc-item:hover {
    border-color: var(--brand-primary);
    background: var(--color-bg-soft);
}
.shop-acc-item:has(.shop-acc-check:checked) {
    border-color: var(--brand-primary);
    background: rgba(136, 62, 116, 0.04);
}
.shop-acc-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--brand-primary);
    cursor: pointer;
}
.shop-acc-item img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.shop-acc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shop-acc-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}
.shop-acc-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}
.shop-acc-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
}

/* Quantity controls */
.shop-acc-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: background var(--transition);
}
.qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: var(--color-bg-soft); }
.qty-input {
    width: 44px;
    height: 28px;
    border: 1px solid var(--color-border);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.shop-acc-subtotal {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

/* Total bar */
.shop-total-bar {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 15px;
}
.shop-total-bar strong {
    font-size: 20px;
    color: var(--brand-primary);
    margin-left: auto;
}
.shop-total-bar small {
    width: 100%;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Submit button */
.shop-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    padding: 14px 24px;
    margin-top: 4px;
}

/* Success state */
.shop-success {
    text-align: center;
    padding: 40px 20px;
}
.shop-success h3 {
    margin: 16px 0 8px;
    font-size: 20px;
    color: var(--color-text);
}
.shop-success p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Trust Badges ---------- */
.shop-trust-section {
    padding: 40px 0;
    background: var(--color-bg-soft);
}
.shop-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}
.shop-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.shop-trust-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}
.shop-trust-item p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* ---------- Related Products (ROI Cards) ---------- */
.shop-related-section {
    padding: 64px 0;
    background: var(--color-bg);
}
.shop-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.shop-rp-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.shop-rp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(136, 62, 116, 0.25);
}
.shop-rp-img {
    display: block;
    overflow: hidden;
}
.shop-rp-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.shop-rp-card:hover .shop-rp-img img {
    transform: scale(1.05);
}
.shop-rp-body {
    padding: 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.shop-rp-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
    color: var(--color-text);
}
.shop-rp-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}
.shop-rp-title a:hover {
    color: var(--brand-primary);
}
.shop-rp-roi {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.shop-rp-roi li {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(136, 62, 116, 0.07);
    border-left: 3px solid var(--brand-primary);
    padding: 5px 10px;
    border-radius: 0 6px 6px 0;
}
.shop-rp-excerpt {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin: 0 0 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-rp-actions {
    display: flex;
    gap: 10px;
}
.shop-rp-btn {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    font-family: inherit;
}
.shop-rp-btn-solid {
    background: var(--brand-primary);
    color: #fff;
}
.shop-rp-btn-solid:hover {
    background: var(--brand-primary-dark);
    color: #fff;
}
.shop-rp-btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.shop-rp-btn-outline:hover {
    background: rgba(136, 62, 116, 0.08);
}
@media (max-width: 992px) {
    .shop-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .shop-related-grid { grid-template-columns: 1fr; }
    .shop-certs-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Certificates Section ---------- */
.shop-certs-section {
    margin-top: 48px;
}
.shop-certs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.shop-cert-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.shop-cert-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 6px 20px rgba(136, 62, 116, 0.1);
    transform: translateY(-3px);
}
.shop-cert-card img {
    width: 100%;
    max-width: 120px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}
.shop-cert-card h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 4px;
}
.shop-cert-card p {
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0 0 6px;
    word-break: break-all;
}
.shop-cert-validity {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-primary);
    background: rgba(136, 62, 116, 0.08);
    padding: 3px 8px;
    border-radius: 10px;
}

/* ---------- Company About Section ---------- */
.shop-about-section {
    margin-top: 48px;
}
.shop-about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}
.shop-about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.shop-about-image:hover img {
    transform: scale(1.02);
}
.shop-about-content p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin: 0 0 14px;
}
.shop-about-content p:last-child { margin-bottom: 0; }

/* ---------- FAQ Section ---------- */
.shop-faq-section {
    margin-top: 48px;
}
.shop-section-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 20px;
    padding-left: 14px;
    border-left: 4px solid var(--brand-primary);
}
.shop-faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-bottom: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.shop-faq-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(136, 62, 116, 0.08);
}
.shop-faq-q {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 10px;
}
.shop-faq-q::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--brand-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 6px;
    margin-right: 10px;
    vertical-align: 2px;
}
.shop-faq-a {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted);
    padding-left: 32px;
}
.shop-faq-a p { margin: 0 0 8px; }
.shop-faq-a p:last-child { margin-bottom: 0; }

/* ---------- Reviews Section ---------- */
.shop-reviews-section {
    margin-top: 48px;
}
.shop-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.shop-reviews-header .shop-section-title {
    margin-bottom: 0;
}
.shop-reviews-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-primary);
    background: rgba(136, 62, 116, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
}
.shop-reviews-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.shop-review-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.shop-review-item:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 16px rgba(136, 62, 116, 0.08);
}
.shop-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.shop-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), #a94d8e);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}
.shop-review-stars {
    font-size: 13px;
    color: #f5a623;
    letter-spacing: 1px;
}
.shop-review-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--color-text-muted);
}
.shop-review-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================
   Mobile FAB + Form Modal
   ============================================================ */
.shop-fab {
    display: none;
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, var(--brand-primary), #a94d8e);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(136, 62, 116, 0.5);
    transition: transform var(--transition), box-shadow var(--transition);
    animation: fabPulse 2.4s ease-in-out infinite;
}
.shop-fab:active {
    transform: translateY(-50%) scale(0.9);
}
@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(136, 62, 116, 0.5); }
    50%       { box-shadow: 0 4px 26px rgba(136, 62, 116, 0.75); }
}

.shop-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 10, 20, 0.6);
    backdrop-filter: blur(4px);
    align-items: flex-end;
    justify-content: center;
}
.shop-modal-overlay.open {
    display: flex;
    animation: shopFadeIn 0.2s ease;
}
@keyframes shopFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.shop-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    background: var(--color-bg);
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    animation: shopSlideUp 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes shopSlideUp {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.shop-modal-close {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    background: var(--color-bg);
    border: none;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
}
.shop-modal-close:active {
    color: var(--brand-primary);
}
.shop-modal-body {
    padding: 0 4px 24px;
}
.shop-modal-body .shop-sticky-form {
    box-shadow: none;
    border: none;
    border-radius: 0;
    position: static;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .shop-form-col {
        position: static;
    }
    .shop-fab {
        display: flex;
    }
    .shop-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .shop-hero { padding: 24px 0 16px; }
    .shop-main-section { padding: 16px 0 40px; }
    .shop-sticky-form { padding: 24px 18px; }
    .shop-form-grid { grid-template-columns: 1fr; }
    .shop-acc-item { flex-wrap: wrap; row-gap: 10px; }
    .shop-acc-info { min-width: 55%; }
    .shop-acc-qty { margin-left: auto; }
    .shop-acc-subtotal { min-width: auto; }
    .shop-trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============================================================
   Custom Toast Modal (replaces native alert)
   ============================================================ */
.shop-toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 10, 18, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.shop-toast-overlay.visible {
    opacity: 1;
}
.shop-toast-box {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-toast-overlay.visible .shop-toast-box {
    transform: translateY(0) scale(1);
}
.shop-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
    margin-bottom: 16px;
}
.shop-toast-icon.error {
    background: #fef2f2;
    color: #dc2626;
}
.shop-toast-icon.success {
    background: #f0fdf4;
    color: #16a34a;
}
.shop-toast-msg {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 22px;
}
.shop-toast-btn {
    display: inline-block;
    padding: 10px 36px;
    border: none;
    border-radius: 8px;
    background: var(--brand-primary, #883e74);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.shop-toast-btn:hover {
    background: var(--brand-primary-dark, #6d2f5c);
    transform: translateY(-1px);
}
