/**
 * Product Carousel Widget Styles
 * DazzleDiva Widgets
 */

:root {
    --jewelry-primary-burgundy: #4A0025;
    --jewelry-dark-burgundy: #5A252A;
    --jewelry-light-burgundy: #8B3A42;
    --jewelry-gold: #D4AF37;
    --jewelry-light-gold: #F4E4BC;
    --jewelry-dark-gold: #B8941F;
    --jewelry-cream: #F8F6F0;
    --jewelry-white: #FFFFFF;
    --jewelry-text-dark: #2C2C2C;
    --jewelry-text-light: #666666;
    --jewelry-shadow: rgba(114, 47, 55, 0.15);
    --jewelry-gold-shadow: rgba(212, 175, 55, 0.3);
    --jewelry-border-light: rgba(212, 175, 55, 0.2);
}

.dazzle-featured-categories-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f4 50%, #ffffff 100%);
    padding-top: 10px;
    position: relative;
    overflow: hidden;
}

.dazzle-carousel-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.dazzle-carousel-container-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Arrow Navigation Styles - Desktop/Tablet Only */
.dazzle-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--jewelry-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--jewelry-gold-shadow);
    color: var(--jewelry-primary-burgundy);
}

.dazzle-carousel-arrow:hover {
    background: var(--jewelry-white);
    border-color: var(--jewelry-dark-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px var(--jewelry-gold-shadow);
    color: var(--jewelry-dark-gold);
}

.dazzle-carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.dazzle-carousel-arrow-left {
    left: -25px;
}

.dazzle-carousel-arrow-right {
    right: -25px;
}

.dazzle-carousel-arrow svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hide arrows on mobile */
@media (max-width: 767px) {
    .dazzle-carousel-arrow {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .dazzle-carousel-container-wrapper {
        padding: 0;
    }
}

.dazzle-section-header {
    text-align: center;
    /* margin-bottom: 40px; */
}

.dazzle-section-subtitle {
    font-size: 0.95rem;
    color: #D2AE37;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
}

.dazzle-section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d2ae37, transparent);
}

.dazzle-section-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #4A0025;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.dazzle-section-description {
    font-size: 1.1rem;
    color: #666;
    margin: 10px auto 0;
    font-weight: 300;
    line-height: 1.7;
    text-align: center;
    max-width: 1360px;
}

.dazzle-carousel-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-behavior: auto; /* Disable CSS smooth scroll to use JS animation */
    will-change: scroll-position; /* Optimize for scrolling */
}

/* Hide scrollbar on all devices */
.dazzle-carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.dazzle-carousel-wrapper {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Desktop/Tablet: No grab cursor, use default */
@media (min-width: 768px) {
    .dazzle-carousel-wrapper {
        cursor: default;
    }
}

/* Mobile: Grab cursor for drag-to-scroll */
@media (max-width: 767px) {
    .dazzle-carousel-wrapper {
        cursor: grab;
    }
    
    .dazzle-product-card,
    .dazzle-product-image-container,
    .dazzle-product-image,
    .dazzle-product-hover-image {
        cursor: pointer;
    }
}

/* Drag-to-scroll visual feedback */
.dazzle-carousel-wrapper.dazzle-dragging {
    cursor: grabbing !important;
    user-select: none;
    scroll-behavior: auto;
}

.dazzle-carousel-wrapper.dazzle-dragging * {
    pointer-events: none;
}

.dazzle-carousel-wrapper.dazzle-dragging .dazzle-product-card {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.dazzle-carousel-wrapper:active {
    cursor: grabbing;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .dazzle-quick-view-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .dazzle-add-to-cart-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.dazzle-product-card {
    min-width: 200px;
    width: 200px;
    background: var(--jewelry-white);
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--jewelry-shadow);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid var(--jewelry-border-light);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    cursor: pointer;
}

.dazzle-product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px var(--jewelry-shadow);
    border-color: var(--jewelry-gold);
}

.dazzle-product-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.dazzle-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.dazzle-product-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.dazzle-product-card:hover .dazzle-product-image {
    opacity: 0;
}

.dazzle-product-card:hover .dazzle-product-hover-image {
    opacity: 1;
}

.dazzle-sale-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #490012;
    color: var(--jewelry-white);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 12px var(--jewelry-gold-shadow);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    max-width: 80px;
    text-align: center;
    line-height: 1.2;
    min-width: fit-content;
}

.dazzle-heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--jewelry-primary-burgundy);
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dazzle-heart-icon:hover {
    background: var(--jewelry-white);
    color: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dazzle-quick-view-icon {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--jewelry-primary-burgundy);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dazzle-quick-view-icon:hover {
    background: var(--jewelry-white);
    color: var(--jewelry-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dazzle-jewelry-icon-magnifying-glass {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.dazzle-product-card:hover .dazzle-quick-view-icon {
    opacity: 1;
}

.dazzle-add-to-cart-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--jewelry-primary-burgundy) 0%, var(--jewelry-dark-burgundy) 100%);
    color: var(--jewelry-white);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px var(--jewelry-shadow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.dazzle-add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--jewelry-dark-burgundy) 0%, var(--jewelry-primary-burgundy) 100%);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px var(--jewelry-shadow);
    color: white;
}

.dazzle-add-to-cart-btn:visited {
    background: linear-gradient(135deg, var(--jewelry-primary-burgundy) 0%, var(--jewelry-dark-burgundy) 100%);
    color: var(--jewelry-text-dark);
    text-decoration: none;
}

.dazzle-add-to-cart-btn:active {
    background: linear-gradient(135deg, var(--jewelry-dark-burgundy) 0%, var(--jewelry-primary-burgundy) 100%);
    color: white;
    transform: translateX(-50%) translateY(0);
}

.dazzle-product-card:hover .dazzle-add-to-cart-btn {
    opacity: 1;
}


.dazzle-product-details {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dazzle-product-details:hover {
    text-decoration: none;
    color: inherit;
}

.dazzle-product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--jewelry-text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
    margin-top: 0px;
}

.dazzle-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dazzle-product-title a:hover {
    color: var(--jewelry-gold);
}

.dazzle-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dazzle-original-price {
    font-size: 14px;
    color: var(--jewelry-text-light);
    text-decoration: line-through;
}

.dazzle-discounted-price {
    font-size: 18px;
    font-weight: bold;
    color: #4D0726;
}

.dazzle-discount-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dazzle-discount-percentage {
    color: var(--jewelry-gold);
    font-weight: bold;
    font-size: 14px;
}

.dazzle-save-text {
    color: var(--jewelry-text-light);
    font-size: 14px;
}


/* Large Desktop (1400px+) - Larger cards */
@media (min-width: 1400px) {
    .dazzle-carousel-container {
        padding: 0 40px;
    }
    
    .dazzle-section-title {
        font-size: 3rem;
    }
    
    .dazzle-section-subtitle {
        font-size: 1rem;
    }
    
    .dazzle-section-description {
        font-size: 1.25rem;
    }
    
    .dazzle-product-card {
        min-width: 240px;
        width: 300px;
    }
    
    .dazzle-product-image-container {
        height: 300px;
    }    
    
    .dazzle-product-title {
        font-size: 18px;
        margin-top: 0px;
    }
    
    .dazzle-discounted-price {
        font-size: 20px;
    }
}

/* Desktop/Laptop (1024px - 1399px) - Standard cards */
@media (min-width: 1024px) and (max-width: 1399px) {
    .dazzle-carousel-container {
        padding: 0 30px;
    }
    
    .dazzle-section-title {
        font-size: 2.5rem;
        margin: 0;
    }
    
    .dazzle-section-subtitle {
        font-size: 0.9rem;
    }
    
    .dazzle-section-description {
        font-size: 1.1rem;
    }
    
    .dazzle-product-card {
        min-width: 200px;
        width: 200px;
    }
}

/* Tablet (768px - 1023px) - Smaller cards */
@media (min-width: 768px) and (max-width: 1023px) {
    .dazzle-carousel-wrapper {
        gap: 15px;
    }
    
    .dazzle-section-title {
        font-size: 2.2rem;
        margin: 0;
    }
    
    .dazzle-section-subtitle {
        font-size: 0.8rem;
    }
    
    .dazzle-section-description {
        font-size: 1rem;
    }
    
    .dazzle-product-card {
        min-width: 180px;
        width: 180px;
    }
    
    .dazzle-product-image-container {
        height: 180px;
    }
    
    .dazzle-product-details {
        padding: 12px;
    }
    
    .dazzle-product-title {
        font-size: 15px;
        margin-top: 0px;
    }
    
    .dazzle-heart-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
    
    .dazzle-quick-view-icon {
        top: 50px;
        right: 8px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .dazzle-add-to-cart-btn {
        font-size: 11px;
        padding: 8px 16px;
    }
}

/* Mobile (up to 767px) - Compact cards */
@media (max-width: 767px) {
    .dazzle-carousel-wrapper {
        gap: 12px;
    }
    
    .dazzle-carousel-container {
        padding: 0 7.5px;
    }
    
    .dazzle-section-title {
        font-size: 1.8rem;
        margin: 0;
    }
    
    .dazzle-section-subtitle {
        font-size: 0.75rem;
    }
    
    .dazzle-section-description {
        font-size: 0.9rem;
    }
    
    .dazzle-product-card {
        min-width: 160px;
        width: 160px;
    }
    
    .dazzle-product-image-container {
        height: 160px;
    }
    
    .dazzle-product-details {
        padding: 10px;
    }
    
    .dazzle-product-title {
        font-size: 14px;
        margin-top: 0px;
    }
    
    .dazzle-discounted-price {
        font-size: 16px;
    }
    
    .dazzle-original-price {
        font-size: 12px;
    }
    
    .dazzle-heart-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .dazzle-quick-view-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .dazzle-add-to-cart-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Extra Small Mobile (up to 480px) - Very compact cards */
@media (max-width: 480px) {
    .dazzle-carousel-wrapper {
        gap: 10px;
    }
    
    .dazzle-section-title {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .dazzle-section-subtitle {
        font-size: 0.7rem;
    }
    
    .dazzle-section-description {
        font-size: 0.85rem;
    }
    
    .dazzle-product-card {
        min-width: 140px;
        width: 140px;
    }
    
    .dazzle-product-image-container {
        height: 150px;
    }
    
    .dazzle-product-details {
        padding: 8px;
    }
    
    .dazzle-product-title {
        font-size: 12px;
        margin-top: 0px;
    }
    
    .dazzle-discounted-price {
        font-size: 12px;
    }
    
    .dazzle-original-price {
        font-size: 8px;
    }
    
    .dazzle-heart-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: 6px;
        right: 6px;
    }
    
    .dazzle-quick-view-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .dazzle-sale-tag {
        padding: 4px 8px;
        font-size: 8px;
        border-radius: 12px;
        top: 8px;
        left: 8px;
        max-width: 60px;
        letter-spacing: 0.2px;
    }
    
    .dazzle-discount-percentage {
        font-size: 8px;
    }
    
    .dazzle-save-text {
        font-size: 8px;
    }
    
    .dazzle-add-to-cart-btn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

@media (max-width: 360px) {
    .dazzle-product-card {
        min-width: 120px;
        width: 120px;
    }
    
    .dazzle-product-image-container {
        height: 120px;
    }
    
    .dazzle-heart-icon {
        width: 20px;
        height: 20px;
        font-size: 8px;
        top: 4px;
        right: 4px;
    }
    
    .dazzle-quick-view-icon {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .dazzle-sale-tag {
        padding: 3px 6px;
        font-size: 7px;
        border-radius: 10px;
        top: 6px;
        left: 6px;
        max-width: 50px;
        letter-spacing: 0.1px;
    }
    
    .dazzle-discount-percentage {
        font-size: 6px;
    }
    
    .dazzle-save-text {
        font-size: 6px;
    }
}

/* Modal Styles */
.dazzle-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.dazzle-modal-content {
    background-color: var(--jewelry-white);
    margin: 0;
    padding: 0;
    border-radius: 16px;
    width: 95%;
    max-width: 600px;
    min-width: 320px;
    max-height: 95vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dazzle-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--jewelry-text-light);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dazzle-close:hover {
    color: var(--jewelry-primary-burgundy);
}

.dazzle-modal-body {
    display: flex;
    gap: 20px;
    padding: 30px 20px 20px 20px;
    flex: 1;
    overflow: hidden;
}

.dazzle-modal-images {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.dazzle-main-image-container {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dazzle-modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.dazzle-modal-main-image:hover {
    transform: scale(1.05);
}

.dazzle-thumbnail-images {
    display: flex;
    gap: 10px;
}

.dazzle-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dazzle-thumbnail:hover {
    border-color: var(--jewelry-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dazzle-thumbnail.active {
    border-color: var(--jewelry-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dazzle-modal-details {
    flex: 1;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dazzle-modal-product-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--jewelry-text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

.dazzle-modal-brand {
    font-size: 14px;
    color: var(--jewelry-text-light);
    margin-bottom: 15px;
}

.dazzle-modal-brand a {
    color: var(--jewelry-primary-burgundy);
    text-decoration: none;
}

.dazzle-modal-brand a:hover {
    text-decoration: underline;
}

.dazzle-modal-prices {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.dazzle-modal-prices .dazzle-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dazzle-modal-prices .dazzle-original-price {
    font-size: 16px;
    color: var(--jewelry-text-light);
    text-decoration: line-through;
}

.dazzle-modal-prices .dazzle-special-price {
    font-size: 22px;
    font-weight: 700;
    color: #4D0726;
}

.dazzle-modal-stock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

.dazzle-modal-stock::before {
    content: "✓";
    font-weight: bold;
}

.dazzle-modal-quantity {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.dazzle-modal-quantity label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--jewelry-text-dark);
    margin-bottom: 8px;
}

.dazzle-modal-quantity select {
    width: 80px;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--jewelry-text-dark);
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-height: 40px;
    line-height: 1.2;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    box-sizing: border-box;
}

.dazzle-modal-quantity select:focus {
    outline: none;
    border-color: var(--jewelry-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
    background: #fafafa;
}

.dazzle-modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.dazzle-modal-add-to-cart {
    flex: 1;
    padding: 12px 24px;
    background: #4D0726;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dazzle-modal-add-to-cart:hover {
    background: #6B0A35;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 7, 38, 0.3);
    color: white;
}

.dazzle-modal-add-to-cart:visited {
    background: #4D0726;
    color: white;
    text-decoration: none;
}

.dazzle-modal-add-to-cart:active {
    background: #6B0A35;
    color: white;
    transform: translateY(0);
}

/* Responsive Modal */
@media (max-width: 1200px) {
    .dazzle-modal-content {
        width: 90%;
        max-width: 550px;
    }
}

@media (max-width: 1024px) {
    .dazzle-modal-content {
        width: 85%;
        max-width: 500px;
    }
    
    .dazzle-main-image-container {
        aspect-ratio: 1;
    }
    
    .dazzle-thumbnail {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    .dazzle-modal-content {
        width: 90%;
        max-width: 450px;
        min-width: 300px;
    }
    
    .dazzle-modal-body {
        flex-direction: column;
        gap: 15px;
        padding: 25px 15px 15px 15px;
    }
    
    .dazzle-modal-images {
        min-width: auto;
    }
    
    .dazzle-main-image-container {
        aspect-ratio: 1;
    }
    
    .dazzle-thumbnail {
        width: 40px;
        height: 40px;
    }
    
    .dazzle-modal-details {
        padding-left: 0;
    }
    
    .dazzle-modal-product-name {
        font-size: 18px;
    }
    
    .dazzle-modal-prices .dazzle-special-price {
        font-size: 20px;
    }
    
    .dazzle-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .dazzle-modal-add-to-cart {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .dazzle-modal-content {
        width: 95%;
        max-width: 400px;
        min-width: 280px;
    }
    
    .dazzle-modal-body {
        padding: 20px 12px 12px 12px;
        gap: 12px;
    }
    
    .dazzle-main-image-container {
        aspect-ratio: 1;
    }
    
    .dazzle-thumbnail {
        width: 35px;
        height: 35px;
    }
    
    .dazzle-modal-product-name {
        font-size: 16px;
    }
    
    .dazzle-modal-prices .dazzle-special-price {
        font-size: 18px;
    }
    
    .dazzle-modal-prices .dazzle-original-price {
        font-size: 14px;
    }
    
    .dazzle-modal-add-to-cart {
        padding: 8px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dazzle-modal-content {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .dazzle-modal-body {
        padding: 15px 10px 10px 10px;
        gap: 10px;
    }
    
    .dazzle-main-image-container {
        aspect-ratio: 1;
    }
    
    .dazzle-thumbnail {
        width: 30px;
        height: 30px;
    }
    
    .dazzle-modal-product-name {
        font-size: 14px;
    }
    
    .dazzle-modal-prices .dazzle-special-price {
        font-size: 16px;
    }
    
    .dazzle-modal-prices .dazzle-original-price {
        font-size: 12px;
    }
    
    .dazzle-modal-add-to-cart {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .dazzle-modal-quantity select {
        width: 70px;
        padding: 8px 10px;
        font-size: 12px;
        min-height: 36px;
    }
}

@media (max-width: 360px) {
    .dazzle-modal-body {
        padding: 12px 8px 8px 8px;
        gap: 8px;
    }
    
    .dazzle-main-image-container {
        aspect-ratio: 1;
    }
    
    .dazzle-thumbnail {
        width: 25px;
        height: 25px;
    }
    
    .dazzle-modal-product-name {
        font-size: 12px;
    }
    
    .dazzle-modal-prices .dazzle-special-price {
        font-size: 14px;
    }
    
    .dazzle-modal-prices .dazzle-original-price {
        font-size: 10px;
    }
}

/* Debug styles */
.dazzle-debug-info {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-family: monospace;
    font-size: 12px;
    color: #6c757d;
}
