/* ==========================================================================
   GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
:root {
    --bridal-gold: #d4af37;
    --dark-accent: #1a1a1a;
    --success-green: #2d6a4f;
    --danger-red: #c94c4c;
    --border-light: #eee;
    --bg-white: #fdfdfd;
}

body {
    background-color: var(--bg-white);
    font-family: 'Inter', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Playfair Display', serif;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar { background-color: var(--dark-accent); padding: 1rem 0; }
.navbar-brand { letter-spacing: 2px; }
.nav-link { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   REUSABLE COMPONENTS (Buttons & Spinners)
   ========================================================================== */
.btn-gold { 
    background-color: var(--bridal-gold); 
    color: white !important; 
    border: none; 
    padding: 12px 30px; 
    font-weight: 600; 
    transition: 0.3s;
}
.btn-gold:hover { background-color: #b8962d; transform: translateY(-1px); }

.btn-gold-sm { background-color: var(--bridal-gold); color: white; font-size: 0.8rem; border: none; padding: 5px 15px; border-radius: 4px; }
.btn-gold-sm:hover { background-color: #b8962d; color: white; }

.btn-outline-gold { border: 2px solid var(--bridal-gold); color: var(--bridal-gold); font-weight: 600; transition: 0.3s; background: transparent; }
.btn-outline-gold:hover { background: var(--bridal-gold); color: #fff; }

.btn-bridal-outline { border: 2px solid var(--dark-accent); color: var(--dark-accent); font-weight: 600; padding: 10px 25px; transition: 0.3s; background: transparent; }
.btn-bridal-outline:hover { background-color: var(--dark-accent); color: #fff; }

.btn-cancel { border: 2px solid var(--danger-red); color: var(--danger-red); background: transparent; font-weight: 600; }
.btn-cancel:hover { background: var(--danger-red); color: white; }

/* Spinners & Screen Locks */
#searchLoader, #screenLock, #loginLoader {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(255,255,255,0.95); z-index: 10000; 
    flex-direction: column; align-items: center; justify-content: center;
}
.spinner-gold {
    width: 3rem; height: 3rem; border: 0.25em solid #f3f3f3;
    border-top: 0.25em solid var(--bridal-gold); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   CATALOG & PRODUCT DISPLAYS
   ========================================================================== */
.product-card { border: none; transition: 0.3s; background: transparent; cursor: pointer; }
.product-card:hover { transform: translateY(-5px); }
.img-wrapper { position: relative; overflow: hidden; border-radius: 8px; background: #f1f1f1; border: 1px solid var(--border-light); height: 400px; }
.product-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.8s ease-in-out; }
.product-img.loaded { opacity: 1; }

/* Details Page Specific */
.main-img-container { height: 600px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border-light); cursor: zoom-in; }
.main-img-container img { max-width: 100%; max-height: 100%; object-fit: contain; }
.thumb-img { width: 80px; height: 110px; object-fit: cover; cursor: pointer; border: 2px solid transparent; transition: 0.2s; }
.thumb-img.active { border-color: var(--bridal-gold); }

/* ==========================================================================
   CHECKOUT, ORDERS & TABLES
   ========================================================================== */
.product-thumb { width: 70px; height: 90px; object-fit: cover; border-radius: 4px; }
.table-container { background: #fff; border-radius: 12px; border: 1px solid var(--border-light); overflow: hidden; }
.confirmation-card, .detail-card { xmax-width: 700px; margin: 40px auto; border-radius: 15px; background: #fff; border: 1px solid var(--border-light); padding: 30px; }
.status-header { border-bottom: 2px solid #f8f9fa; padding-bottom: 20px; margin-bottom: 20px; }

/* ==========================================================================
   ASSETS & SIDEBARS
   ========================================================================== */
.asset-card { border: none; border-radius: 8px; overflow: hidden; transition: 0.3s; background: #fff; border: 1px solid var(--border-light); }
.asset-img-container { height: 350px; overflow: hidden; position: relative; background: #f8f9fa; }
.download-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.3s; }
.asset-card:hover .download-overlay { opacity: 1; }
.filter-sidebar { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border-light); }

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */
.login-body-wrapper { 
    height: 100vh; display: flex; align-items: center; justify-content: center;
    background-image: radial-gradient(var(--bridal-gold) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
}
.login-body { padding: 40px; }
.login-card { width: 100%; max-width: 400px; border-radius: 15px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); background: #fff; overflow: hidden; }
.login-header { background: var(--dark-accent); color: white; padding: 30px; text-align: center; }
.login-header h1 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 0; letter-spacing: 2px; }

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .navbar, .btn-action-row, .btn-row, .breadcrumb, button { display: none !important; }
    .confirmation-card, .detail-card { box-shadow: none !important; margin: 0; width: 100%; border: none; }
}


        /* Full Screen Loader */
        #profileLoader {
            display: none;
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.9);
            z-index: 10000;
            flex-direction: column; align-items: center; justify-content: center;
        }
        .spinner-gold {
            width: 3rem; height: 3rem;
            border: 0.25em solid #eee;
            border-top: 0.25em solid var(--bridal-gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .profile-card { background: #fff; border-radius: 12px; border: 1px solid #eee; padding: 25px; margin-bottom: 30px; }
        .section-title { border-bottom: 2px solid #f8f9fa; padding-bottom: 10px; margin-bottom: 20px; color: var(--dark-accent); }
        .form-label { font-weight: 600; font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
        
        .alert-success-bridal {
            background-color: #f0fdf4;
            color: var(--success-green);
            border: 1px solid #bbf7d0;
            border-radius: 8px;
        }





        /* Sidebar & Filters */
        .filter-section { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
        .filter-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; color: var(--dark-accent); }
        

        .form-check-input:checked { background-color: var(--bridal-gold); border-color: var(--bridal-gold); }        



        .size-chart-link { color: var(--bridal-gold); text-decoration: none; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
        .size-chart-link:hover { text-decoration: underline; }





        /* Success Card */
        .confirmation-card {
            max-width: 700px;
            margin: 40px auto;
            border: none;
            border-radius: 15px;
            background: #fff;
        }


.check-icon {
    width: 80px;
    height: 80px;
    background: #f0fdf4; /* Light success green background */
    color: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    /* Optional: Soft pulse animation to draw the eye */
    animation: shadow-pulse 2s infinite;
}

.check-icon svg {
    display: block;
}

@keyframes shadow-pulse {
    0% { box-shadow: 0 0 0 0px rgba(45, 106, 79, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(45, 106, 79, 0); }
    100% { box-shadow: 0 0 0 0px rgba(45, 106, 79, 0); }
}

        .order-number-box {
            background-color: #f8f9fa;
            border: 1px dashed #ced4da;
            padding: 15px;
            border-radius: 8px;
            display: inline-block;
            min-width: 250px;
        }
        


        @media print {
            .navbar, .btn-action-row, .breadcrumb { display: none !important; }
            .confirmation-card { box-shadow: none !important; margin: 0; width: 100%; }
        }


@media print {
    /* 1. Force the container to be full width */
    .container, .container-lg, .container-md {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 2. Hide things you don't want on a physical PO */
    nav, .navbar, .btn, .footer, #sidebar, .no-print {
        display: none !important;
    }

    /* 3. Remove shadows and borders that look muddy on paper */
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }

    /* 4. Ensure colors print (some browsers hide them to save ink) */
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


        .btn-action-icon {
            padding: 5px 10px;
            border-radius: 6px;
            border: 1px solid #dee2e6;
            background: white;
            transition: all 0.2s;
        }
        .btn-action-icon:hover { background: #f8f9fa; border-color: var(--bridal-gold); }
        .btn-remove:hover { border-color: #dc3545; color: #dc3545; }

        /* Stripe Mock */
        .stripe-mock-container {
            background: #fff; border: 1px solid #ced4da; padding: 12px; border-radius: 6px;
        }
        
        .summary-line { font-size: 0.95rem; margin-bottom: 8px; }
        .total-line { border-top: 2px solid #ddd; padding-top: 10px; margin-top: 10px; }
        



/* Full screen overlay */
.page-loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Or a light off-white */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Stay on top of everything */
    transition: opacity 0.4s ease, visibility 0.4s;
}

/* The Spinner */
.bridal-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(197, 168, 122, 0.2);
    border-radius: 50%;
    border-top-color: #c5a87a; /* Your Gold Color */
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 15px;
}

.loader-text {
    font-size: 0.75rem;
    letter-spacing: 3px;
    color: #c5a87a;
    font-weight: 600;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
}




