/* Price animation styles */
#product-price {
    display: inline-block;
    position: relative;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Product Image Carousel */
.product-image-carousel {
    position: relative;
    width: 100%;
}

.carousel-main {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #f8f8f8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

.carousel-image {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    display: block;
    background: #ffffff;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    color: var(--purple-dark);
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
}

.carousel-main:hover .carousel-nav {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(123, 31, 162, 0.3);
    color: var(--purple-medium);
}

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

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-main:hover .carousel-indicators {
    opacity: 1;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.3);
}

.carousel-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--purple-light) transparent;
    -webkit-overflow-scrolling: touch;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--purple-light);
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--purple-medium);
}

.carousel-thumbnail {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carousel-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.carousel-thumbnail:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.25);
    border-color: var(--purple-light);
}

.carousel-thumbnail.active {
    border-color: var(--purple-dark);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.35);
    transform: translateY(-2px);
}

.carousel-thumbnail.active::after {
    border-color: var(--purple-medium);
}

.carousel-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-thumbnail:hover img {
    transform: scale(1.1);
}

/* Dark Theme Support for Carousel */
body.dark-theme .carousel-main {
    background: #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body.dark-theme .carousel-image {
    background: #2d2d2d;
}

body.dark-theme .carousel-nav {
    background: rgba(45, 45, 45, 0.95);
    color: var(--purple-lighter);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .carousel-nav:hover {
    background: rgba(60, 60, 60, 1);
    color: var(--purple-light);
    box-shadow: 0 4px 20px rgba(123, 31, 162, 0.4);
}

body.dark-theme .carousel-indicators {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-theme .carousel-indicator {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

body.dark-theme .carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
}

body.dark-theme .carousel-thumbnail {
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .carousel-thumbnail:hover {
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.35);
    border-color: var(--purple-light);
}

body.dark-theme .carousel-thumbnail.active {
    border-color: var(--purple-lighter);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.45);
}

body.dark-theme .carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--purple-medium);
}

body.dark-theme .carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .carousel-main {
        aspect-ratio: 1;
        border-radius: 12px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        opacity: 0.9;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .carousel-indicators {
        opacity: 1;
        bottom: 12px;
        padding: 6px 10px;
    }
    
    .carousel-thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .carousel-thumbnails {
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .carousel-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Cart Product Thumbnails */
.cart-product-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.cart-product-thumbnail:hover {
    border-color: var(--purple-medium);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.2);
}

.cart-thumbnail-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Cart Total Row Styling */
.cart-total-row {
    background-color: #f8f8f8;
}

.cart-total-label {
    color: #333;
}

.cart-total-price {
    color: var(--purple-dark);
}

/* Dark Theme Support for Cart */
body.dark-theme .cart-product-thumbnail {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .cart-product-thumbnail:hover {
    border-color: var(--purple-light);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3);
}

body.dark-theme .cart-total-row {
    background-color: #2d2d2d !important;
}

body.dark-theme .cart-total-row td {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
    border-color: #404040 !important;
}

body.dark-theme .cart-total-label {
    color: #e0e0e0 !important;
}

body.dark-theme .cart-total-price {
    color: var(--purple-lighter) !important;
}

/* Responsive Cart Thumbnails */
@media (max-width: 768px) {
    .cart-product-thumbnail {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .cart-product-thumbnail {
        width: 60px;
        height: 60px;
    }
}

/* Quantity Selector */
.quantity-selector-wrapper {
    width: 100%;
}

.quantity-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 200px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-selector:hover {
    border-color: var(--purple-medium);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
}

.quantity-selector:focus-within {
    border-color: var(--purple-dark);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.25);
}

.quantity-btn {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    border: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--purple-dark);
    font-size: 1.2rem;
    padding: 0;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    color: var(--purple-dark);
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.quantity-btn:disabled:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
}

.quantity-input {
    flex: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    padding: 0.75rem 0.5rem;
    min-width: 60px;
    width: 100%;
    outline: none;
    -moz-appearance: textfield;
    display: block;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
}

/* Dark Theme Support */
body.dark-theme .quantity-label {
    color: #e0e0e0;
}

body.dark-theme .quantity-selector {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .quantity-selector:hover {
    border-color: var(--purple-light);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.25);
}

body.dark-theme .quantity-selector:focus-within {
    border-color: var(--purple-lighter);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.35);
}

body.dark-theme .quantity-btn {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    color: var(--purple-lighter);
}

body.dark-theme .quantity-btn:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.2) 0%, rgba(156, 39, 176, 0.2) 100%);
    color: var(--purple-lighter);
}

body.dark-theme .quantity-btn:active {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.25) 0%, rgba(156, 39, 176, 0.25) 100%);
}

body.dark-theme .quantity-input {
    color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .quantity-selector {
        max-width: 100%;
    }
    
    .quantity-btn {
        width: 52px;
        height: 52px;
    }
}

/* Dimension Selector */
/* Orientation Switch */
.orientation-switch-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.orientation-switch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.orientation-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    min-width: 80px;
    text-align: center;
}

.orientation-label-left {
    color: #666;
}

.orientation-label-right {
    color: #666;
}

.orientation-label.active,
.orientation-label-left.active,
.orientation-label-right.active {
    color: var(--purple-dark);
    font-weight: 700;
}

.orientation-rectangle-switch {
    cursor: pointer;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    border: 2px solid rgba(123, 31, 162, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orientation-rectangle-switch:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-color: rgba(123, 31, 162, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
}

.orientation-rectangle-switch:active {
    transform: scale(0.95);
}

.orientation-rectangle {
    width: 60px;
    height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.orientation-rectangle.portrait {
    width: 40px;
    height: 60px;
}

.orientation-rectangle-inner {
    width: 50px;
    height: 30px;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-medium) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.orientation-rectangle-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.orientation-rectangle-switch:hover .orientation-rectangle-inner::before {
    left: 100%;
}

.orientation-rectangle.portrait .orientation-rectangle-inner {
    width: 30px;
    height: 50px;
}

/* Dark Theme Support for Orientation Switch */
body.dark-theme .orientation-label {
    color: #b0b0b0;
}

body.dark-theme .orientation-label-left {
    color: #b0b0b0;
}

body.dark-theme .orientation-label-right {
    color: #b0b0b0;
}

body.dark-theme .orientation-label.active,
body.dark-theme .orientation-label-left.active,
body.dark-theme .orientation-label-right.active {
    color: var(--purple-lighter);
}

body.dark-theme .orientation-rectangle-switch {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    border-color: rgba(123, 31, 162, 0.2);
}

body.dark-theme .orientation-rectangle-switch:hover {
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
    border-color: rgba(123, 31, 162, 0.3);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.25);
}

body.dark-theme .orientation-rectangle-inner {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 100%);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dimension-selector {
    margin-bottom: 0;
}

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

.dimension-option {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.dimension-option:hover {
    border-color: var(--purple-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
}

.dimension-option.selected {
    border-color: var(--purple-dark);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.2);
    transform: translateY(-2px);
}

.dimension-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-medium), var(--purple-light));
    border-radius: 12px 12px 0 0;
}

.dimension-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--purple-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
}

.dimension-size {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.dimension-option.selected .dimension-size {
    color: var(--purple-dark);
}

.dimension-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.dimension-option:hover .dimension-price {
    color: var(--purple-medium);
}

/* Dark Theme Support */
body.dark-theme .dimension-option {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .dimension-option:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

body.dark-theme .dimension-option.selected {
    border-color: var(--purple-lighter);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
}

body.dark-theme .dimension-size {
    color: #e0e0e0;
}

body.dark-theme .dimension-option.selected .dimension-size {
    color: var(--purple-lighter);
}

body.dark-theme .dimension-price {
    color: var(--purple-lighter);
}

body.dark-theme .dimension-option:hover .dimension-price {
    color: var(--purple-light);
}

body.dark-theme .dimension-option.selected .dimension-price {
    color: var(--purple-lighter);
}

/* Responsive */
@media (max-width: 768px) {
    .dimension-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .dimension-option {
        padding: 1rem 0.75rem;
    }
    
    .dimension-size {
        font-size: 0.9rem;
    }
    
    .dimension-price {
        font-size: 1rem;
    }
}

/* Delivery Priority Selector */
.delivery-priority-selector {
    margin-bottom: 0;
}

.delivery-priority-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.delivery-priority-option {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.delivery-priority-option:hover {
    border-color: var(--purple-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
}

.delivery-priority-option.selected {
    border-color: var(--purple-dark);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.2);
    transform: translateY(-2px);
}

.delivery-priority-option.selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple-medium), var(--purple-light));
    border-radius: 12px 12px 0 0;
}

.delivery-priority-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--purple-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 1;
}

.priority-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.delivery-priority-option.selected .priority-name {
    color: var(--purple-dark);
}

.priority-description {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.delivery-priority-option.selected .priority-description {
    color: var(--purple-medium);
}

/* Dark Theme Support */
body.dark-theme .delivery-priority-option {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .delivery-priority-option:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

body.dark-theme .delivery-priority-option.selected {
    border-color: var(--purple-lighter);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
}

body.dark-theme .priority-name {
    color: #e0e0e0;
}

body.dark-theme .delivery-priority-option.selected .priority-name {
    color: var(--purple-lighter);
}

body.dark-theme .priority-description {
    color: #b0b0b0;
}

body.dark-theme .delivery-priority-option.selected .priority-description {
    color: var(--purple-lighter);
}

/* Responsive */
@media (max-width: 768px) {
    .delivery-priority-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Lithophane Help Section */
.lithophane-help-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
}

.lithophane-help-toggle {
    background: transparent;
    border: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lithophane-help-toggle:hover {
    background: rgba(123, 31, 162, 0.05);
    color: var(--purple-dark);
}

.lithophane-help-toggle:focus {
    box-shadow: none;
    outline: none;
}

.lithophane-help-toggle[aria-expanded="true"] .help-chevron {
    transform: rotate(180deg);
}

.lithophane-help-toggle[aria-expanded="true"] {
    background: rgba(123, 31, 162, 0.08);
    border-bottom: 1px solid #e0e0e0;
}

.lithophane-help-content {
    color: #555;
    line-height: 1.7;
}

.lithophane-help-content ul {
    list-style-type: none;
    padding-left: 0;
}

.lithophane-help-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.lithophane-help-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple-medium);
    font-weight: bold;
    font-size: 1.1rem;
}

.border-purple {
    border-color: var(--purple-medium) !important;
}

/* Dark Theme Support */
body.dark-theme .lithophane-help-card {
    border-color: #404040;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
}

body.dark-theme .lithophane-help-toggle {
    color: #e0e0e0;
}

body.dark-theme .lithophane-help-toggle:hover {
    background: rgba(123, 31, 162, 0.1);
    color: var(--purple-lighter);
}

body.dark-theme .lithophane-help-toggle[aria-expanded="true"] {
    background: rgba(123, 31, 162, 0.15);
    border-bottom-color: #404040;
}

body.dark-theme .lithophane-help-content {
    color: #d0d0d0;
}

body.dark-theme .alert-light {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--purple-light) !important;
}

body.dark-theme .alert-light .text-muted {
    color: #b0b0b0 !important;
}

/* Shape Selector */
.shape-selector {
    margin-bottom: 0;
}

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

.shape-option {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.shape-option:hover {
    border-color: var(--purple-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
}

.shape-option.selected {
    border-color: var(--purple-dark);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.2);
    transform: translateY(-2px);
}

.shape-option.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--purple-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    z-index: 2;
}

.shape-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.shape-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.shape-option.selected .shape-name {
    color: var(--purple-dark);
}

/* Stand Selector */
.stand-selector {
    margin-bottom: 0;
}

.stand-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stand-option {
    position: relative;
    padding: 1.25rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
}

.stand-option:hover {
    border-color: var(--purple-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123, 31, 162, 0.15);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
}

/* External stand option - golden hover effect */
.stand-option[data-stand="external"]:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.02) 0%, rgba(255, 215, 0, 0.02) 100%);
}

.stand-option.selected {
    border-color: var(--purple-dark);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.08) 0%, rgba(156, 39, 176, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(123, 31, 162, 0.2);
    transform: translateY(-2px);
}

/* External stand option - golden styling when selected */
.stand-option[data-stand="external"].selected {
    border-color: #d4af37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.stand-option[data-stand="external"].selected::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #ffd700);
    border-radius: 12px 12px 0 0;
}

.stand-option.selected::after {
    display: none;
}

.stand-option[data-stand="external"].selected::after {
    display: none;
}

.stand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.stand-option.selected .stand-name {
    color: var(--purple-dark);
}

.stand-option[data-stand="external"].selected .stand-name {
    color: #b8941f;
}

.stand-description {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stand-option.selected .stand-description {
    color: var(--purple-medium);
}

.stand-option[data-stand="none"].selected .stand-description,
.stand-option[data-stand="integrated"].selected .stand-description {
    color: #4caf50;
}

.stand-option[data-stand="external"].selected .stand-description {
    color: #d4af37;
}

/* Dark Theme Support */
body.dark-theme .shape-option {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .shape-option:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

body.dark-theme .shape-option.selected {
    border-color: var(--purple-lighter);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
}

body.dark-theme .shape-name {
    color: #e0e0e0;
}

body.dark-theme .shape-option.selected .shape-name {
    color: var(--purple-lighter);
}

body.dark-theme .stand-option {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .stand-option:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

body.dark-theme .stand-option[data-stand="external"]:hover {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
}

body.dark-theme .stand-option.selected {
    border-color: var(--purple-lighter);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.15) 0%, rgba(156, 39, 176, 0.15) 100%);
}

/* External stand option - golden styling in dark theme */
body.dark-theme .stand-option[data-stand="external"].selected {
    border-color: #ffd700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(255, 215, 0, 0.15) 100%);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}

body.dark-theme .stand-option[data-stand="external"].selected::after {
    display: none;
}

body.dark-theme .stand-name {
    color: #e0e0e0;
}

body.dark-theme .stand-option.selected .stand-name {
    color: var(--purple-lighter);
}

body.dark-theme .stand-option[data-stand="external"].selected .stand-name {
    color: #ffd700;
}

body.dark-theme .stand-description {
    color: #b0b0b0;
}

body.dark-theme .stand-option.selected .stand-description {
    color: var(--purple-light);
}

body.dark-theme .stand-option[data-stand="none"].selected .stand-description,
body.dark-theme .stand-option[data-stand="integrated"].selected .stand-description {
    color: #66bb6a;
}

body.dark-theme .stand-option[data-stand="external"].selected .stand-description {
    color: #ffd700;
}

/* Responsive */
@media (max-width: 768px) {
    .stand-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Modern Upload Zone */
.modern-upload-zone {
    position: relative;
    border: 3px dashed #d0d0d0;
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.02) 0%, rgba(156, 39, 176, 0.02) 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.modern-upload-zone::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(123, 31, 162, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.modern-upload-zone:hover::before {
    left: 100%;
}

.modern-upload-zone:hover {
    border-color: var(--purple-medium);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 31, 162, 0.15);
}

.modern-upload-zone.drag-over {
    border-color: var(--purple-dark);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(123, 31, 162, 0.25);
}

.modern-upload-zone.has-files {
    padding: 1.5rem;
    border-style: solid;
    border-width: 2px;
}

.upload-zone-content {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.modern-upload-zone {
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

.upload-icon {
    font-size: 4rem;
    color: var(--purple-medium);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.modern-upload-zone:hover .upload-icon {
    transform: translateY(-5px) scale(1.1);
    color: var(--purple-dark);
}

.modern-upload-zone.drag-over .upload-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--purple-dark);
}

.modern-upload-zone.has-files .upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.upload-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.modern-upload-zone.has-files .upload-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.upload-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modern-upload-zone.has-files .upload-subtitle {
    font-size: 0.85rem;
}

.upload-link {
    color: var(--purple-dark);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.upload-link:hover {
    color: var(--purple-medium);
}

.upload-hint {
    color: #999;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.modern-upload-zone.has-files .upload-hint {
    display: none;
}

/* Photo Preview Grid */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.photo-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--purple-light);
    background-color: #f5f5f5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-preview-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 20px rgba(123, 31, 162, 0.25);
    border-color: var(--purple-medium);
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-preview-item .remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background-color: rgba(220, 53, 69, 0.95);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
}

.photo-preview-item:hover .remove-btn {
    opacity: 1;
}

.photo-preview-item .remove-btn:hover {
    background-color: #dc3545;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.photo-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.photo-preview-item:hover .file-name {
    opacity: 1;
}

/* Dark Theme Support */
body.dark-theme .modern-upload-zone {
    border-color: #404040;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.05) 0%, rgba(156, 39, 176, 0.05) 100%);
}

body.dark-theme .modern-upload-zone:hover {
    border-color: var(--purple-light);
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.1) 0%, rgba(156, 39, 176, 0.1) 100%);
}

body.dark-theme .modern-upload-zone.drag-over {
    border-color: var(--purple-lighter);
}

body.dark-theme .upload-title {
    color: #e0e0e0;
}

body.dark-theme .upload-subtitle {
    color: #b0b0b0;
}

body.dark-theme .upload-link {
    color: var(--purple-lighter);
}

body.dark-theme .upload-link:hover {
    color: var(--purple-light);
}

body.dark-theme .upload-hint {
    color: #888;
}

body.dark-theme .photo-preview-item {
    background-color: #2d2d2d;
    border-color: var(--purple-lighter);
}

/* Responsive */
@media (max-width: 768px) {
    .modern-upload-zone {
        padding: 2rem 1.5rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-title {
        font-size: 1.1rem;
    }
    
    .photo-preview-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .photo-preview-item .remove-btn {
        opacity: 1;
    }
}

