:root {
    --brand-pink: #b8336a;
    --deep-pink: #8b2d5a;
    --light-pink: #f8f1f4;
    --text-dark: #2c2c2c;
    --text-light: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(184, 51, 106, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(184, 51, 106, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(184, 51, 106, 0.175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-pink), var(--deep-pink));
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    animation: fadeInUp 0.8s ease-out;
}

.loading-screen .brand-name {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: brandGlow 2s ease-in-out infinite alternate;
    color: var(--white) !important;
}

.loading-screen .brand-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85) !important;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid var(--white);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.loading-message p {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    animation: pulse 2s ease-in-out infinite;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Custom text color utilities */
.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes brandGlow {
    0% { 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); 
    }
    100% { 
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.4); 
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.6; 
    }
    50% { 
        opacity: 1; 
    }
}

/* Responsive loading screen */
@media (max-width: 768px) {
    .loading-screen .brand-name {
        font-size: 3rem !important;
        letter-spacing: 2px;
    }
    
    .loading-screen .brand-tagline {
        font-size: 1rem !important;
    }
    
    .loading-message p {
        font-size: 0.9rem !important;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

@media (max-width: 480px) {
    .loading-screen .brand-name {
        font-size: 2.5rem !important;
        letter-spacing: 1.5px;
    }
    
    .loading-screen .brand-tagline {
        font-size: 0.9rem !important;
    }
}

/* Brand Elements */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-pink);
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand .brand-name {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-pink) !important;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--light-pink), var(--white));
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
}

.qr-instruction {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    max-width: 100%;
}

.qr-placeholder {
    text-align: center;
    padding: 2.5rem;
    border: 2px dashed var(--brand-pink);
    border-radius: 1rem;
    margin-bottom: 2rem;
    background: var(--light-pink);
}

.qr-placeholder i {
    font-size: 5rem;
    color: var(--brand-pink);
    margin-bottom: 1rem;
}

.qr-placeholder p {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
}

.manual-entry {
    text-align: center;
}

.manual-entry .input-group {
    max-width: 500px;
    margin: 1rem auto 0;
}

.manual-entry .form-control {
    border: 2px solid var(--border-color);
    border-radius: 0.75rem 0 0 0.75rem;
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 1rem;
}

.manual-entry .form-control:focus {
    border-color: var(--brand-pink);
    box-shadow: 0 0 0 0.2rem rgba(184, 51, 106, 0.25);
}

.manual-entry .btn-primary {
    background: var(--brand-pink);
    border: 2px solid var(--brand-pink);
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
}

.manual-entry .btn-primary:hover {
    background: var(--deep-pink);
    border-color: var(--deep-pink);
}

/* Verification Section */
.verification-section {
    background: var(--white);
}

.verification-header {
    position: relative;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.verification-badge i {
    font-size: 1.25rem;
}

.verification-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.verification-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Product Images */
.product-images {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.image-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    min-height: 200px;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-clickable {
    cursor: pointer;
}

.image-clickable:hover {
    transform: scale(1.05);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.3s ease;
}

.image-modal-close {
    position: absolute;
    top: -10px;
    right: 10px;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.image-modal-close:hover {
    color: var(--brand-pink);
}

.image-modal-caption {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.8);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 1rem 0.75rem 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Product Details */
.product-details {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item value {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Certifications */
.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.certification-badge {
    background: linear-gradient(135deg, var(--brand-pink), var(--deep-pink));
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-pink);
    font-weight: bold;
}

/* Product Story */
.product-story {
    font-style: italic;
    line-height: 1.7;
    color: var(--text-light);
    background: var(--light-pink);
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--brand-pink);
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.info-card .card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card .card-title i {
    color: var(--brand-pink);
}

/* Artisan Profile */
.artisan-profile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.artisan-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-pink);
    flex-shrink: 0;
}

.artisan-details h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.artisan-details p {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.experience {
    color: var(--brand-pink);
    font-weight: 500;
}

.specialization {
    color: var(--text-dark);
    font-weight: 500;
}

.family-tradition {
    color: var(--deep-pink);
    font-weight: 500;
}

.location {
    color: var(--text-light);
}

.artisan-awards {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.award-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.award-list li {
    font-size: 0.85rem;
    color: var(--text-dark);
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1rem;
}

.award-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Customer Details */
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row .label {
    font-weight: 500;
    color: var(--text-light);
}

.detail-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Shipment Timeline */
.shipment-timeline {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 12px;
    top: 30px;
    width: 2px;
    height: 40px;
    background: var(--border-color);
}

.timeline-item.completed::after {
    background: #10b981;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timeline-item.completed .timeline-icon {
    background: #10b981;
    color: var(--white);
}

.timeline-content h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.tracking-info {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.tracking-info p {
    margin-bottom: 0.5rem;
}

.tracking-info p:last-child {
    margin-bottom: 0;
}

/* Certificate Card */
.certificate-card {
    background: linear-gradient(135deg, var(--brand-pink), var(--deep-pink));
    color: var(--white);
    border: none;
}

.certificate-card .card-title {
    color: var(--white);
}

.certificate-card .card-title i {
    color: var(--white);
}

.certificate-card p {
    color: rgba(255, 255, 255, 0.9);
}

.certificate-card .btn-primary {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--brand-pink);
    font-weight: 600;
}

.certificate-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    color: var(--deep-pink);
}

/* About Section */
.about-section {
    background: var(--light-gray);
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--brand-pink);
    margin-bottom: 1rem;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
}

.footer .brand-name {
    color: var(--white);
}

.footer .brand-tagline {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .verification-title {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .artisan-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .qr-instruction {
        padding: 1.5rem;
    }
    
    .product-images,
    .product-details {
        padding: 1.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeInUp 0.6s ease-out;
}

/* Button Styles */
.btn-primary {
    background: var(--brand-pink);
    border: 2px solid var(--brand-pink);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--deep-pink);
    border-color: var(--deep-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Utility Classes */
.min-vh-75 {
    min-height: 75vh;
}

.text-brand {
    color: var(--brand-pink) !important;
}

.bg-brand {
    background-color: var(--brand-pink) !important;
}
