/* Namix Pre-Order Frontend Styles */
:root {
    --namix-black: #111111;
    --namix-white: #ffffff;
    --namix-gray: #888888;
    --namix-light-gray: #f5f5f5;
    --namix-font-heading: 'Cormorant Garamond', serif;
    --namix-font-body: 'Inter', sans-serif;
}

.namix-showroom-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--namix-font-body);
    color: var(--namix-black);
    padding: 20px;
}

.namix-showroom-title {
    font-family: var(--namix-font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 20px 0 10px;
}

.namix-showroom-pricing {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.namix-total-price::before {
    content: '\20A6';
    margin-right: 4px;
}

.namix-showroom-timeline {
    color: var(--namix-gray);
    margin-bottom: 30px;
}

.namix-section {
    margin-bottom: 25px;
}

.namix-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #555;
}

.namix-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.namix-swatch-btn {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.2s;
}

.namix-swatch-btn.active,
.namix-swatch-btn:hover {
    border-color: var(--namix-black);
}

.namix-swatch-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.namix-swatch-text {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

/* NAMIX: Enhanced Swatch Descriptions */
.namix-selected-fabric {
    font-size: 0.9rem;
    color: #444;
    margin-top: 15px;
    padding: 12px 15px;
    background: #fafafa;
    border-left: 3px solid var(--namix-black);
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
    font-style: italic;
    max-width: 100%;
    word-wrap: break-word;
}

.namix-sizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.namix-size-btn {
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    background: var(--namix-white);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--namix-font-body);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.namix-size-btn:hover,
.namix-size-btn.active {
    border-color: var(--namix-black);
    background: var(--namix-black);
    color: var(--namix-white);
}

.namix-bespoke-toggle {
    background: none;
    border: none;
    color: var(--namix-gray);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 12px;
    font-size: 0.85rem;
}

.namix-bespoke-fields {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: var(--namix-light-gray);
    border-radius: 8px;
}

.namix-bespoke-fields.open {
    display: block;
}

.namix-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.namix-customer-details input,
.namix-bespoke-fields input,
.namix-showroom-details-full textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--namix-font-body);
    font-size: 0.95rem;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.namix-showroom-details-full textarea {
    min-height: 100px;
    resize: vertical;
}

.namix-checkboxes {
    margin: 20px 0;
}

.namix-checkboxes label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.namix-checkboxes input[type="checkbox"] {
    margin-right: 8px;
}

.namix-deposit-final-checkout {
    padding: 15px;
    background: var(--namix-light-gray);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.namix-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--namix-black);
    color: var(--namix-white);
    border: none;
    border-radius: 8px;
    font-family: var(--namix-font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.namix-submit-btn:hover {
    background: #333;
}

.namix-submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

#namix-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
    display: none;
}

#namix-message.error {
    background: #ffe6e6;
    color: #cc0000;
    display: block;
}

#namix-message.success {
    background: #e6ffe6;
    color: #006600;
    display: block;
}

/* Skeleton Loader */
.namix-skeleton-wrapper {
    padding: 20px;
}

.namix-skel-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: namix-shimmer 1.5s infinite;
    border-radius: 8px;
}

.namix-skel-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: namix-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-top: 15px;
}

@keyframes namix-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Image Gallery */
.namix-main-image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.namix-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.namix-swipe-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.namix-swipe-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    transition: background 0.2s;
}

.namix-swipe-btn:hover {
    background: #fff;
}

.namix-thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
}

.namix-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.namix-thumb.active,
.namix-thumb:hover {
    border-color: var(--namix-black);
}

.namix-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.namix-video-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: var(--namix-black);
}

/* WhatsApp FAB */
.namix-whatsapp-fab {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.2s;
}

.namix-whatsapp-fab:hover {
    transform: scale(1.1);
}

/* Success Overlay */
.namix-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.namix-success-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.namix-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.namix-checkmark-svg {
    width: 80px;
    height: 80px;
}

.namix-checkmark-circle {
    stroke: #25D366;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 0;
    animation: namix-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.namix-checkmark-check {
    stroke: #25D366;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: namix-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

@keyframes namix-stroke {
    100% { stroke-dashoffset: 0; }
}

.namix-close-overlay {
    margin-top: 20px;
    padding: 10px 30px;
    background: var(--namix-black);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* Empty State */
.namix-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.namix-empty-state h2 {
    font-family: var(--namix-font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.namix-back-link {
    color: var(--namix-black);
    text-decoration: underline;
}

/* Portal / Tracking Page */
.namix-portal-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.namix-portal-header {
    text-align: center;
    margin-bottom: 30px;
}

.namix-portal-header h2 {
    font-family: var(--namix-font-heading);
    font-size: 2rem;
    margin-bottom: 8px;
}

.namix-portal-header p {
    color: var(--namix-gray);
}

.namix-portal-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.namix-portal-search input {
    flex: 1;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.namix-portal-btn {
    padding: 14px 24px;
    background: var(--namix-black);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.namix-portal-btn:hover {
    background: #333;
}

.namix-portal-btn:disabled {
    background: #999;
}

.namix-portal-error {
    background: #ffe6e6;
    color: #cc0000;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.namix-portal-order-info {
    background: var(--namix-light-gray);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.namix-portal-order-info p {
    margin-bottom: 8px;
}

.namix-portal-timeline {
    position: relative;
    padding-left: 30px;
}

.namix-portal-step {
    position: relative;
    padding-bottom: 30px;
    padding-left: 25px;
}

.namix-portal-step:last-child {
    padding-bottom: 0;
}

.namix-portal-step::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 12px;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.namix-portal-step:last-child::before {
    display: none;
}

.namix-portal-dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #ddd;
}

.namix-portal-step.active .namix-portal-dot {
    background: var(--namix-black);
    box-shadow: 0 0 0 2px var(--namix-black);
}

.namix-portal-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.namix-portal-date {
    margin: 0;
    font-size: 0.8rem;
    color: var(--namix-gray);
}

.namix-portal-snippet {
    margin: 4px 0 0;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .namix-row {
        grid-template-columns: 1fr;
    }
    .namix-showroom-title {
        font-size: 1.8rem;
    }
    .namix-portal-search {
        flex-direction: column;
    }
}


/* NAMIX: Mobile Lightbox Zoom */
.namix-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}
.namix-lightbox-overlay.namix-lightbox-active {
    opacity: 1;
    visibility: visible;
}
.namix-lightbox-img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.namix-lightbox-overlay.namix-lightbox-active .namix-lightbox-img {
    transform: scale(1);
}
@media (min-width: 1025px) {
    .namix-lightbox-overlay { display: none !important; }
}
