
    /* Base styles from the signup form */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-dropdown .dropdown-toggle {
    color: black;
    text-decoration: none;
}

.header h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 10px;
}

.steps {
    background: #f8f9fa;
    padding: 30px 40px;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 85px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    width: 20%;
    transition: width 0.5s ease;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: #6c757d;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.step.completed .step-circle {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.step.active .step-circle {
    background: #1e3c72;
    border-color: #1e3c72;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
    font-weight: 500;
}

.step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

.step.active .step-label {
    color: #1e3c72;
    font-weight: 600;
}

.form-container {
    padding: 40px;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Form styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
    transform: translateY(-2px);
}

input::placeholder, textarea::placeholder {
    color: #adb5bd;
}

.required {
    color: #dc3545;
}

/* Medical conditions checkboxes */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
}

.checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.checkbox-grid label:hover {
    background-color: #f8f9fa;
}

.search-filter {
    margin-bottom: 15px;
}

.search-filter input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
}

/* Photo upload - Updated to match new design */
.photo-upload-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #e1e5e9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 40px;
    margin-bottom: 5px;
}

.preview-text {
    font-size: 12px;
    color: #6c757d;
}

.photo-dropzone {
    flex: 1;
    border: 2px dashed #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-dropzone:hover {
    border-color: #1e3c72;
    background: #f8f9fa;
}

.upload-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.dropzone-title {
    font-weight: 600;
    margin: 5px 0;
}

.dropzone-subtitle {
    font-size: 14px;
    color: #6c757d;
    margin: 5px 0;
}

.btn-browse {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin: 10px 0;
}

.btn-browse:hover {
    background: #2a5298;
}

.dropzone-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.btn-remove-photo {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-remove-photo:hover {
    background: #c82333;
}

/* Emergency contacts - Updated to match new design */
.contact-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e1e5e9;
}

.contact-group h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 18px;
}

.btn-add {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

/* Section styles */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 20px;
    color: #1e3c72;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 14px;
}

.section-helper {
    color: #6c757d;
    font-size: 13px;
    margin: 5px 0 15px 0;
    font-style: italic;
}

/* Protected section */
.protected-section {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
}

/* Group label for checkboxes */
.group-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.alert-label {
    color: #dc3545;
}

/* Other input textarea */
.other-input {
    margin-top: 20px;
}

.other-input textarea {
    min-height: 60px;
}

/* Date picker styles */
.date-picker-container {
    position: relative;
}

.date-input {
    padding-right: 40px;
}

.date-picker-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
}

.custom-date-picker {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 5px;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.date-nav-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

.date-picker-title {
    display: flex;
    gap: 10px;
}

.date-select {
    padding: 5px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-picker-days button {
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
}

.date-picker-days button:hover {
    background: #f8f9fa;
}

.date-picker-days button.selected {
    background: #1e3c72;
    color: white;
}

.date-picker-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn-date-action {
    padding: 8px 16px;
    border: 1px solid #e1e5e9;
    background: white;
    border-radius: 6px;
    cursor: pointer;
}

.btn-date-action:hover {
    background: #f8f9fa;
}

/* Review section */
.review-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    margin: -20px;
}

.review-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
}

.review-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.review-summary {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.review-category {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.review-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-category h3 {
    color: #1e3c72;
    margin-bottom: 15px;
    font-size: 18px;
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-label {
    color: #6c757d;
    font-weight: 500;
}

.review-value {
    color: #495057;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

.order-total {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    margin-top: 30px;
}

.total-amount {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
}

/* Payment section - Simplified for Stripe Checkout */
.payment-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 40px;
    margin: -20px;
    text-align: center;
}

.payment-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 30px;
}

.payment-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.order-summary-payment {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.payment-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 18px;
    color: #1e3c72;
}

/* Button styles */
.btn-container {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn {
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.3);
}

.btn-secondary {
    background: #e9ecef;
    color: #6c757d;
}

.btn-secondary:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

/* Language dropdown */
.language-dropdown {
    position: fixed;
    top: 15px;
    right: 20px;
    display: inline-block;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

.dropdown-toggle {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.dropdown-toggle:hover {
    background: #f0f4ff;
    border-color: #bbb;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 12px;
    padding: 6px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    z-index: 10;
}

.language-dropdown:hover .dropdown-menu,
.language-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
}

.dropdown-item:hover {
    background: #f0f4ff;
    color: #0056d2;
    transform: translateX(3px);
}

.dropdown-item.active {
    background: #eaf1ff;
    color: #0056d2;
    font-weight: 600;
}

.flag-icon {
    font-size: 18px;
    margin-right: 8px;
}

.check-mark {
    color: #1e90ff;
    font-weight: bold;
    margin-left: auto;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid transparent;
}

.alert-info {
    background-color: #e7f1ff;
    border-color: #b3d7ff;
    color: #0062cc;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    .steps {
        padding: 20px;
        overflow-x: auto;
    }

    .steps-container {
        min-width: 600px;
    }

    .progress-bar {
        left: 20px;
        right: 20px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
        max-width: 60px;
    }

    .bracelet-section,
    .review-section,
    .payment-section,
    .medical-section {
        padding: 20px;
        margin: -10px;
    }

    .bracelet-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .photo-upload-container {
        flex-direction: column;
        text-align: center;
    }

    .photo-preview {
        margin: 0 auto;
    }

    .btn-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Additional utility classes */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.hide {
    display: none;
}

/* STEP CONTAINER */
.step-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: #111;
}
/* RESPONSIVE */
@media (max-width: 992px) {
    .bracelet-product-card {
        grid-template-columns: 1fr;
    }

    .bracelet-image-container {
        min-height: 260px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 22px;
    }

    .bracelet-title {
        font-size: 20px;
    }
}
.bracelet-product-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.bracelet-product-card:hover {
    transform: translateY(-4px);
}

/* SELECTED STATE */
.bracelet-product-card.selected {
    border-color: #000;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.bracelet-product-card.selected .add-to-cart-bracelet {
    background: linear-gradient(135deg, #000, #333);
    color: #fff;
}
/* Add these styles to your existing CSS */

.bracelet-price-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #1e3c72;
}

.bracelet-price-review {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bracelet-price-amount {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
}

.bracelet-type {
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
}

.bracelet-price-section .review-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Update the existing review-item styles slightly */
.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
}

  
      /* =========================
         STEP 2 – BRACELET DESIGN
      ========================= */

  .bracelet-section {
      max-width: 1200px;
      margin: 0 auto;
  }

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Grid */
.bracelet-section {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card */
.bracelet-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.bracelet-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Selected state */
.bracelet-product-card.selected {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.15),
    0 20px 40px rgba(0,0,0,0.15);
}

/* Image */
    .bracelet-image-container {
        height: 250px;
        background-size: cover;
        background-position: center;
        position: relative;
        background-color: #f8f9fa;
        cursor: pointer;
        border-radius: 16px 16px 0 0;
        /* Ensure the background image covers properly */
        background-repeat: no-repeat;
        background-attachment: scroll;
    }

/* Price badge */
.bracelet-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

/* Content */
.bracelet-content {
    padding: 20px;
}

.bracelet-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bracelet-description {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
}

/* Button */
.add-to-cart-bracelet {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(135deg, #0066ff, #0044cc);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-bracelet:hover {
    background: linear-gradient(135deg, #0044cc, #002a80);
}

.bracelet-product-card.selected .add-to-cart-bracelet {
    background: linear-gradient(135deg, #28a745, #20c997);
}

/* Stats */
.product-stats {
    display: flex;
    justify-content: space-between;
    margin: 18px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 700;
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: #777;
}

/* Features */
.bracelet-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f3f5;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.feature-icon {
    font-size: 18px;
}

/* Mobile */
@media (max-width: 768px) {
    .bracelet-section {
        grid-template-columns: 1fr;
    }
}

  
  .crop-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.8);
      z-index: 9999;
      align-items: center;
      justify-content: center;
  }

.crop-modal.active {
    display: flex;
}

.crop-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    width: 90%;
}

.crop-preview-container {
    margin: 20px auto;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #e1e5e9;
    background: #f8f9fa;
}

/* Add this for the preview element */
#cropPreview {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
}

/* Ensure Cropper.js preview works properly */
#cropPreview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}
.crop-image-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

#cropImage {
    max-width: 100%;
    max-height: 400px;
    display: block;
}

.crop-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.crop-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.crop-confirm {
    background: #28a745;
    color: white;
}

.crop-cancel {
    background: #dc3545;
    color: white;
}

.crop-rotate {
    background: #007bff;
    color: white;
}

.crop-info {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}
    /* Add to your priority.css */
    .bracelet-product-card.selected {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
    }

    .add-to-cart-bracelet {
        transition: all 0.3s ease;
    }

    .add-to-cart-bracelet[disabled] {
        background: #e9ecef !important;
        color: #6c757d !important;
        cursor: not-allowed;
        opacity: 0.7;
    }
    /* ==============================
   BRACELET SECTION REDESIGN
   ============================== */

    .bracelet-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .bracelet-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 0 auto;
        max-width: 1000px;
    }

    .bracelet-card-wrapper {
        display: flex;
        justify-content: center;
    }

    .bracelet-product-card {
        width: 100%;
        max-width: 420px;
        background: #ffffff;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border: 3px solid transparent;
        position: relative;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .bracelet-product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .bracelet-product-card.selected {
        border-color: #28a745;
        background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
        box-shadow: 0 20px 50px rgba(40, 167, 69, 0.2);
    }

    .bracelet-image-container {
        height: 250px;
        background-size: cover;
        background-position: center;
        position: relative;
        background-color: #f8f9fa;
    }

    .bracelet-price-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: linear-gradient(135deg, #ff9800, #ff5722);
        color: #fff;
        padding: 8px 18px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 2;
    }

    .bracelet-content {
        padding: 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .bracelet-title {
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 12px;
        text-align: center;
    }

    .bracelet-description {
        font-size: 14px;
        color: #666;
        line-height: 1.6;
        margin-bottom: 20px;
        text-align: center;
        flex-grow: 1;
    }

    .add-to-cart-bracelet {
        width: 100%;
        padding: 14px;
        border-radius: 12px;
        border: none;
        font-weight: 600;
        font-size: 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 15px 0;
        letter-spacing: 0.5px;
    }

    .add-to-cart-bracelet:hover {
        background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .bracelet-product-card.selected .add-to-cart-bracelet {
        background: linear-gradient(135deg, #28a745, #20c997);
        box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    }

    .bracelet-product-card.selected .add-to-cart-bracelet:hover {
        background: linear-gradient(135deg, #229a37, #1db589);
    }

    /* Product Stats */
    .product-stats {
        display: flex;
        justify-content: space-around;
        margin: 20px 0;
        padding: 15px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-radius: 12px;
        border: 1px solid #e2e8f0;
    }

    .stat-item {
        text-align: center;
        flex: 1;
    }

    .stat-value {
        font-weight: 700;
        font-size: 18px;
        color: #1e3c72;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Features Grid */
    .bracelet-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .feature-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        padding: 12px;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 500;
        color: #334155;
        transition: all 0.3s ease;
    }

    .feature-item:hover {
        background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
        transform: translateY(-2px);
    }

    .feature-icon {
        font-size: 20px;
        flex-shrink: 0;
    }

    .feature-text {
        flex: 1;
    }

    /* No bracelets message */
    .no-bracelets {
        text-align: center;
        color: #64748b;
        font-size: 18px;
        padding: 60px 20px;
        background: #f8fafc;
        border-radius: 12px;
        margin: 20px 0;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
        .bracelet-grid {
            gap: 30px;
            max-width: 800px;
        }

        .bracelet-product-card {
            max-width: 380px;
        }
    }

    @media (max-width: 768px) {
        .bracelet-grid {
            grid-template-columns: 1fr;
            gap: 30px;
            max-width: 500px;
        }

        .bracelet-product-card {
            max-width: 100%;
        }

        .bracelet-image-container {
            height: 220px;
        }

        .product-stats {
            padding: 12px;
        }

        .stat-value {
            font-size: 16px;
        }

        .bracelet-features {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .bracelet-container {
            padding: 0 15px;
        }

        .bracelet-grid {
            gap: 20px;
        }

        .bracelet-content {
            padding: 20px;
        }

        .bracelet-title {
            font-size: 20px;
        }

        .bracelet-features {
            grid-template-columns: 1fr;
        }

        .product-stats {
            flex-wrap: wrap;
            gap: 10px;
        }

        .stat-item {
            flex: 0 0 calc(33.333% - 10px);
        }
    }

    /* Selection Indicator */
    .bracelet-product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #28a745, #20c997);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 1;
    }

    .bracelet-product-card.selected::before {
        opacity: 1;
    }

    /* Price Badge Enhancement */
    .bracelet-price-badge::after {
        content: '';
        position: absolute;
        top: 50%;
        left: -8px;
        width: 16px;
        height: 16px;
        background: linear-gradient(135deg, #ff9800, #ff5722);
        transform: translateY(-50%) rotate(45deg);
        z-index: -1;
    }

    /* Section Title Enhancement */
    #step-2 .section-title {
        font-size: 28px;
        margin-bottom: 40px;
        color: #1e3c72;
        position: relative;
        padding-bottom: 15px;
    }

    #step-2 .section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
    }

    /* ==============================
   IMAGE PREVIEW MODAL STYLES
   ============================== */

    .image-preview-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 99999;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .image-preview-modal.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    .image-preview-container {
        max-width: 90%;
        max-height: 90%;
        background: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
    }

    .image-preview-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        color: white;
    }

    .image-preview-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
    }

    .close-preview-btn {
        background: none;
        border: none;
        color: white;
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        padding: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .close-preview-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

    .image-preview-body {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        background: #f8f9fa;
        min-height: 300px;
        max-height: 70vh;
        overflow: auto;
    }

    #previewFullImage {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        cursor: zoom-in;
        transition: transform 0.3s ease;
    }

    .image-preview-footer {
        padding: 15px 20px;
        background: #f8f9fa;
        border-top: 1px solid #e1e5e9;
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .image-preview-footer button {
        padding: 10px 20px;
        border: 2px solid #1e3c72;
        background: white;
        color: #1e3c72;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .image-preview-footer button:hover {
        background: #1e3c72;
        color: white;
        transform: translateY(-2px);
    }

    /* Bracelet Image Overlay for Preview */

    /* Update the overlay styles to only show on hover */
    .bracelet-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 16px 16px 0 0;
    }

    .bracelet-image-container:hover .bracelet-image-overlay {
        opacity: 1;
    }

    .preview-icon {
        font-size: 36px;
        color: white;
        margin-bottom: 8px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .preview-text {
        color: white;
        font-weight: 600;
        font-size: 16px;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        background: rgba(0, 0, 0, 0.5);
        padding: 4px 12px;
        border-radius: 20px;
    }

    /* Responsive styles for preview modal */
    @media (max-width: 768px) {
        .image-preview-container {
            max-width: 95%;
            max-height: 95%;
        }

        .image-preview-header h3 {
            font-size: 18px;
        }

        .image-preview-footer {
            flex-wrap: wrap;
        }

        .image-preview-footer button {
            flex: 1;
            justify-content: center;
            min-width: 100px;
        }

        .bracelet-image-overlay {
            opacity: 0.7; /* Always show on mobile for better UX */
        }
    }

    @media (max-width: 480px) {
        .image-preview-body {
            padding: 10px;
        }

        .preview-icon {
            font-size: 24px;
        }

        .preview-text {
            font-size: 14px;
        }
    }

    /* ==============================
       BRACELET IMAGE CONTAINER
       ============================== */

    .bracelet-image-container {
        height: 250px;
        background-size: cover;
        background-position: center;
        position: relative;
        background-color: #f8f9fa;
        cursor: pointer;
        border-radius: 16px 16px 0 0;
        transition: transform 0.3s ease;
    }

    /* Add a subtle hover effect on the image */
    .bracelet-product-card:hover .bracelet-image-container {
        transform: scale(1.02);
    }

    /* Ensure the background image is properly displayed */
    .bracelet-image-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: inherit;
        background-size: cover;
        background-position: center;
        z-index: 0;
        border-radius: 16px 16px 0 0;
    }

    /* Make sure price badge stays on top */
    .bracelet-price-badge {
        position: absolute;
        top: 20px;
        right: 20px;
        background: linear-gradient(135deg, #ff9800, #ff5722);
        color: #fff;
        padding: 8px 18px;
        border-radius: 50px;
        font-weight: 700;
        font-size: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        z-index: 3; /* Increased z-index to be above overlay */
    }

    /* Make sure overlay is properly layered */
    .bracelet-image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 16px 16px 0 0;
        z-index: 2; /* Between background and price badge */
    }

    /* Fallback if background image doesn't load */
    .bracelet-image-container:has(style*="background-image: none") {
        background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bracelet-image-container:has(style*="background-image: none")::before {
        content: '🖼️ Image';
        color: #999;
        font-size: 18px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .optional {
        color: #666;
        font-size: 0.9em;
        font-weight: normal;
    }


