/* =============================================
   AURA CUSTOM SHIRT DESIGNER - COMPLETE CSS
   Fully Responsive | Mobile Optimized | Desktop Optimized
   ============================================= */

/* RESET & BASE STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
}

.aura-custom-shirt {
    font-family: -apple-system, BlinkMacSystemFont, 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #0B1F3A;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    width: 100%;
}

/* STEP CARDS - Mobile First */
.aura-step-card {
    display: block;
    background: #fff;
    padding: 25px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(11, 31, 58, 0.08);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(11, 31, 58, 0.04);
    width: 100%;
}

/* STEP CARDS - Desktop */
@media (min-width: 769px) {
    .aura-custom-shirt {
        padding: 20px 0;
    }
    
    .aura-step-card {
        display: flex;
        gap: 40px;
        padding: 50px;
        margin-bottom: 32px;
    }
    
    .aura-step-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(11, 31, 58, 0.09);
    }
}

.aura-step-number {
    font-family: 'Bodoni Moda', serif;
    font-size: 50px;
    line-height: 1;
    color: #0b1f3a;
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .aura-step-number {
        font-size: 78px;
        min-width: 100px;
        margin-bottom: 0;
    }
}

.aura-step-content {
    flex: 1;
    width: 100%;
}

.aura-step-title {
    font-family: 'Bodoni Moda', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0B1F3A;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .aura-step-title {
        font-size: 38px;
        margin-bottom: 16px;
    }
}

.aura-step-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 25px;
    max-width: 720px;
}

@media (min-width: 769px) {
    .aura-step-desc {
        font-size: 15.5px;
        margin-bottom: 32px;
    }
}

.aura-step-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #1FA6A3;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

@media (min-width: 769px) {
    .aura-step-subtitle {
        font-size: 14.5px;
        font-weight: 400;
        color: #000;
        margin-bottom: 24px;
    }
}

/* FABRIC GRID - Mobile First (2 columns) */
.aura-fabric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

@media (min-width: 480px) {
    .aura-fabric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (min-width: 640px) {
    .aura-fabric-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }
}

/* FABRIC CARD - Equal height with flex */
.aura-fabric {
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 220px;
}

@media (min-width: 768px) {
    .aura-fabric {
        min-height: 280px;
    }
}

.aura-fabric:hover {
    transform: translateY(-3px);
}

@media (min-width: 768px) {
    .aura-fabric:hover {
        transform: translateY(-6px);
    }
}

/* Selected swatch border - 2px solid #0b1f3a on entire card */
.aura-fabric.active {
    border: 2px solid #0b1f3a;
    border-radius: 12px;
}

/* Article Number - Above Image */
.aura-article-no {
    display: block;
    color: #0B1F3A;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-align: center;
}

@media (min-width: 768px) {
    .aura-article-no {
        font-size: 12px;
        margin-bottom: 8px;
    }
}

/* Fabric Image */
.aura-fabric img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: block;
}

@media (min-width: 768px) {
    .aura-fabric img {
        border-radius: 12px;
        border-width: 3px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }
}

.aura-fabric.active img {
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(31, 166, 163, 0.2);
}

/* Fabric Details - Title - Fixed min height for alignment */
.aura-fabric-name {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #0B1F3A;
    text-transform: uppercase !important;
    line-height: 1.3;
    min-height: 30px;
    word-break: break-word;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .aura-fabric-name {
        margin-top: 12px;
        font-size: 14px;
        min-height: 30px;
    }
}

/* Price - Pushed to bottom with border-top for consistency */
.aura-fabric-price {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #000;
    
    padding-bottom: 6px;
}

@media (min-width: 768px) {
    .aura-fabric-price {
        font-size: 13px;
        
        padding-bottom: 8px;
    }
}

/* LARGE IMAGE PREVIEW WITH DESCRIPTION AT BOTTOM - Mobile Optimized */
#aura-image-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

@media (min-width: 768px) {
    #aura-image-preview {
        width: 380px;
        max-width: 380px;
        border-radius: 20px;
        box-shadow: 0 20px 60px rgba(11, 31, 58, 0.25);
    }
}

#aura-image-preview.show {
    opacity: 1;
    visibility: visible;
}

#aura-image-preview img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Description area at bottom of preview image */
.aura-preview-description {
    padding: 10px 12px;
    background: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #0b1f3a;
    border-top: 1px solid rgba(11, 31, 58, 0.1);
    display: block !important;
}

@media (min-width: 768px) {
    .aura-preview-description {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* VIDEO SECTION - Mobile First */
.aura-video-wrapper {
    margin: 25px 0 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(11, 31, 58, 0.1);
}

@media (min-width: 768px) {
    .aura-video-wrapper {
        margin: 35px 0 45px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(11, 31, 58, 0.1);
    }
}

.aura-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.aura-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.aura-video-caption {
    background: #f8f9fa;
    padding: 10px 15px;
    text-align: center;
    font-size: 11px;
    color: rgba(11, 31, 58, 0.68);
    border-top: 1px solid rgba(11, 31, 58, 0.08);
}

@media (min-width: 768px) {
    .aura-video-caption {
        padding: 15px 20px;
        font-size: 14px;
    }
}

/* MEASUREMENT TABLE - Mobile First */
.aura-measurement-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    margin: 0 -5px;
    padding: 0 5px;
}

@media (min-width: 768px) {
    .aura-measurement-table-wrap {
        margin: 0;
        padding: 0;
        border-radius: 12px;
    }
}

.aura-measurement-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 450px;
}

.aura-measurement-table th {
    background: #0B1F3A;
    color: #fff;
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .aura-measurement-table th {
        padding: 18px 20px;
        font-size: 14px;
    }
}

.aura-measurement-table td {
    padding: 10px 8px;
    font-size: 12px;
    border: none;
    vertical-align: middle;
    border-bottom: 1px solid rgba(11, 31, 58, 0.08);
}

@media (min-width: 768px) {
    .aura-measurement-table td {
        padding: 15px;
        font-size: 14px;
    }
}

.aura-measurement-table tr:last-child td {
    border-bottom: none;
}

.aura-measurement-table input {
    width: 100%;
    max-width: 90px;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    border: 1.5px solid rgba(11, 31, 58, 0.15);
    transition: 0.3s;
}

@media (min-width: 768px) {
    .aura-measurement-table input {
        max-width: 140px;
        height: 42px;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 8px;
    }
}

.aura-measurement-table input:focus {
    outline: none;
    border-color: #1FA6A3;
    box-shadow: 0 0 0 3px rgba(31, 166, 163, 0.1);
}

/* BUTTONS - Mobile First */
.aura-save-btn,
.aura-cart-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}

.aura-save-btn {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: #1fa6a3 !important;
    color: #fff !important;
    font-size: 12px !important;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .aura-save-btn {
        width: auto;
        height: 58px;
        padding: 0 42px;
        font-size: 13.5px !important;
        margin-top: 30px;
        border-radius: 10px;
    }
    
    .aura-save-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(31, 166, 163, 0.3);
    }
}

.aura-cart-wrap {
    text-align: center;
}

.aura-cart-btn {
    width: 100%;
    height: 50px;
    padding: 0 20px !important;
    background: #1fa6a3 !important;
    color: #fff !important;
    font-size: 12px !important;
    margin: 20px auto 0;
    display: inline-block;
}

@media (min-width: 768px) {
    .aura-cart-btn {
        width: auto;
        height: 66px;
        padding: 0 70px !important;
        font-size: 14.5px !important;
        margin: 30px auto 0;
        min-width: 320px;
        border-radius: 10px;
    }
    
    .aura-cart-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(11, 31, 58, 0.2);
        background: linear-gradient(to right, #1FA6A3, #0d7a78);
    }
}

.aura-cart-btn #display-price {
    font-weight: 800;
    margin-left: 5px;
}

@media (min-width: 768px) {
    .aura-cart-btn #display-price {
        margin-left: 8px;
    }
}

/* TOAST NOTIFICATION */
.aura-toast {
    position: fixed;
    right: 15px;
    bottom: 15px;
    background: #0B1F3A;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .aura-toast {
        right: 25px;
        bottom: 25px;
        padding: 16px 26px;
        font-size: 13.5px;
        border-radius: 10px;
    }
}

.aura-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =============================================
   PRODUCTION TIME INFO BOX - Mobile First
   ============================================= */

.aura-production-box {
    background: #0B1F3A;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .aura-production-box {
        padding: 18px 28px;
        margin: 30px 0 25px;
        gap: 20px;
    }
    
    .aura-production-box:hover {
        box-shadow: 0 8px 25px rgba(11, 31, 58, 0.2);
        transform: translateY(-2px);
    }
}

.aura-production-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    color: #fff;
}

@media (min-width: 768px) {
    .aura-production-icon {
        font-size: 28px;
    }
}

.aura-production-content {
    flex: 1;
}

.aura-production-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1FA6A3;
    margin: 0 0 4px 0;
}

@media (min-width: 768px) {
    .aura-production-title {
        font-size: 13px;
        letter-spacing: 0.15em;
        margin-bottom: 6px;
    }
}

.aura-production-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.4;
    color: #ffffff;
    margin: 0;
}

@media (min-width: 768px) {
    .aura-production-text {
        font-size: 14px;
        line-height: 1.5;
    }
}

.aura-production-text strong {
    color: #ffffff;
    font-weight: 700;
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* Tablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .aura-fabric-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .aura-fabric {
        min-height: 240px;
    }
    
    .aura-fabric-name {
        font-size: 11px;
        min-height: 30px;
    }
    
    .aura-fabric-price {
        font-size: 11px;
		margin-top: -15px !important;
    }
    
    #aura-image-preview {
        max-width: 320px;
    }
}

/* Desktop (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .aura-fabric-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 20px;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .aura-fabric-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 25px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .aura-step-card {
        background: #1a1a2e;
        border-color: rgba(255, 255, 255, 0.08);
    }
    
    .aura-step-title,
    .aura-fabric-name,
    .aura-article-no {
        color: #fff;
    }
    
    .aura-step-desc {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .aura-fabric {
        background: #1a1a2e;
    }
    
    .aura-fabric-price {
        color: rgba(255, 255, 255, 0.8);
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    .aura-measurement-table {
        background: #1a1a2e;
    }
    
    .aura-measurement-table td {
        border-bottom-color: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.8);
    }
    
    .aura-measurement-table input {
        background: #2a2a3e;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .aura-video-caption {
        background: #1a1a2e;
        color: rgba(255, 255, 255, 0.6);
        border-top-color: rgba(255, 255, 255, 0.08);
    }
    
    .aura-preview-description {
        background: #1a1a2e;
        color: #fff;
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    
    #aura-image-preview {
        background: #1a1a2e;
    }
}

/* Print Styles */
@media print {
    .aura-custom-shirt {
        padding: 0;
    }
    
    .aura-step-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .aura-cart-btn,
    .aura-save-btn,
    .aura-video-wrapper,
    #aura-image-preview,
    .aura-toast,
    .aura-production-box {
        display: none;
    }
}

/* Accessibility - Focus States */
.aura-fabric:focus-visible,
.aura-save-btn:focus-visible,
.aura-cart-btn:focus-visible {
    outline: 3px solid #1FA6A3;
    outline-offset: 2px;
}

/* Loading Animation */
.aura-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.aura-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border: 3px solid #1FA6A3;
    border-top-color: transparent;
    border-radius: 50%;
    animation: aura-spin 0.8s linear infinite;
}

@keyframes aura-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}