/* Product Modal - Full Screen */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
    position: relative;
}

.modal-product-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10001;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-actions {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.btn-select-phone {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.btn-select-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Modal Price Container - Top Right */
.modal-content .panel-product-price-container {
    position: absolute;
    top: 100px;
    right: 30px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(129, 140, 248, 0.95) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.modal-content .panel-product-price-container.has-discount {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-content .panel-product-price-normal {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.modal-content .panel-product-price-discounted {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.modal-content .panel-product-price-original {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .modal-content .panel-product-price-container {
        top: 80px;
        right: 15px;
        padding: 8px 12px;
        gap: 8px;
        border-radius: 10px;
    }
    
    .modal-content .panel-product-price-normal {
        font-size: 16px;
    }
    
    .modal-content .panel-product-price-discounted {
        font-size: 18px;
    }
    
    .modal-content .panel-product-price-original {
        font-size: 13px;
    }
}

/* Phone Selection Panel */
.phone-selection-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-selection-panel.active {
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* Fixed at top */
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    z-index: 10001; /* Above panel content */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    position: relative;
    z-index: 10002; /* Ensure it's above other elements */
    pointer-events: all; /* Ensure it's clickable */
}

.panel-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.panel-content {
    padding: 0px;
    padding-top: 80px; /* Space for fixed header */
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.panel-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    flex: 1;
}

.panel-product-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 0px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Remove product-category-info */
.product-category-info {
    display: none !important; /* Hidden - removed as requested */
}

.filter-select {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    box-shadow: var(--shadow-md);
}

.filter-select:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.7);
}

.btn-load-more-products {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.95);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-load-more-products:hover {
    background: rgba(99, 102, 241, 1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-load-more-products:active {
    transform: translateY(0);
}

.btn-search-products {
    padding: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-search-products:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--primary-hover);
}

.btn-search-products:active {
    transform: translateY(0);
}

.btn-search-products svg {
    width: 18px;
    height: 18px;
}

/* Panel Products List View */
.panel-products-list {
    flex: 1;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid var(--border-color);
}

.products-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.btn-back-to-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-back-to-product:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back-to-product svg {
    width: 18px;
    height: 18px;
}

.products-list-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 8px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.panel-products-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-navigation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-product-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    padding: 8px;
}

/* Panel Product Watermark - Position at bottom right */
.panel-product-image-container .product-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 15;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.panel-product-image {
    max-width: calc(100% - 60px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

.panel-product-image.slide-next {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel-product-image.slide-prev {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Panel Product Price Container - Top Right */
.panel-product-price-container {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(129, 140, 248, 0.95) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: auto;
    border: 2px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.panel-product-price-normal {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1;
}

.panel-product-price-discounted {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1;
}

.panel-product-price-original {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    line-height: 1;
}

/* Discount badge styling when has discount */
.panel-product-price-container.has-discount {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .panel-product-image-container {
        padding: 6px;
    }
    
    .panel-product-image {
        max-width: calc(100% - 40px);
    }
    
    .panel-product-image-container .product-watermark {
        right: 10px;
        bottom: 8px;
        font-size: 10px;
    }
    
    .panel-product-price-container {
        padding: 6px 10px;
        top: 8px;
        right: 8px;
        border-radius: 8px;
        gap: 6px;
    }
    
    .panel-product-price-normal {
        font-size: 14px;
    }
    
    .panel-product-price-discounted {
        font-size: 15px;
    }
    
    .panel-product-price-original {
        font-size: 11px;
    }
}

.panel-product-image.slide-in-next {
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel-product-image.slide-in-prev {
    animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-nav-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.product-nav-btn.prev {
    left: 8px; /* Max left position */
}

.product-nav-btn.next {
    right: 8px; /* Max right position */
}

.product-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-nav-btn:active {
    transform: scale(0.95);
}

.product-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navigation buttons removed - using swipe instead */

.panel-form {
    height: auto;
    max-height: none;
    background: var(--surface);
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select:hover {
    border-color: var(--primary-color);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Compact form row styles */
.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.form-select.compact {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
    min-width: 0;
}

.form-select.compact:first-child {
    flex: 1.2;
}

.form-select.compact:last-of-type {
    flex: 1.3;
}

.form-select.compact:hover {
    border-color: var(--primary-color);
}

.form-select.compact:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select.compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-to-cart.compact {
    flex-shrink: 0;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    white-space: nowrap;
    min-width: 80px;
}

.btn-add-to-cart.compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add-to-cart.compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(99, 102, 241, 0.5);
}

.other-input {
    display: none;
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.other-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.other-back-btn {
    display: none;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.other-back-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Fixed Bottom Cart Panel */
.cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    border-top: 2px solid var(--border-color);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-header:hover {
    background: var(--background);
}

.cart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.cart-toggle:hover {
    background: var(--background);
    color: var(--text-primary);
}

.cart-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
}

.cart-content.expanded {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.cart-items {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-manufacturer,
.cart-item-model {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.cart-item-remove {
    background: var(--error-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.cart-item-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-product-image {
        max-height: calc(100vh - 180px);
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    .modal-actions {
        bottom: 20px;
    }
    
    .btn-select-phone {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .phone-selection-panel {
        /* Full page on mobile */
    }
    
    .panel-header {
        padding: 5px 10px;
        position: fixed; /* Still fixed on mobile */
        top: 0;
        left: 0;
        right: 0;
    }
    
    .panel-header h3 {
        font-size: 18px;
    }
    
    .panel-content {
        padding: 0px;
        padding-top: 70px; /* Space for fixed header on mobile */
        padding-bottom: 90px; /* Space for fixed form on mobile */
    }
    
    .panel-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .panel-product-preview {
        min-height: auto;
        padding: 20px;
    }

    
    .panel-product-image {
        max-height: 100%; /* Full height of panel-layout on mobile */
        max-width: calc(100% - 60px); /* Reduced for smaller buttons on mobile */
    }
    
    .product-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .product-nav-btn.prev {
        left: 4px;
    }
    
    .product-nav-btn.next {
        right: 4px;
    }
    
    .other-input {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .product-category-info {
        display: none !important; /* Hidden on mobile too */
    }
    
    .filter-select {
        padding: 8px 14px;
        font-size: 13px;
        padding-right: 32px;
        min-width: 140px;
    }
    
    .btn-search-products {
        padding: 8px;
        width: 36px;
        height: 36px;
    }
    
    .btn-search-products svg {
        width: 16px;
        height: 16px;
    }
    
    .panel-products-list {
        padding: 12px;
        min-height: 50vh;
    }
    
    .panel-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        max-height: 50vh;
    }
    
    .products-list-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .btn-back-to-product {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .products-list-header h4 {
        font-size: 16px;
    }
    
    .btn-load-more-products {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
    }
    
    .panel-form {
        width: 100%;
    }
    
    .form-row {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .form-row:last-child {
        margin-bottom: 0;
    }
    
    .form-select.compact {
        min-width: calc(50% - 4px);
    }
    
    .form-row:first-child .form-select.compact {
        min-width: calc(50% - 4px);
    }
    
    .btn-add-to-cart.compact {
        width: 100%;
        margin-top: 8px;
    }
    
    .btn-load-more-products {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
}

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.product-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: var(--transition-base);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 120px;
    position: relative;
}

.modal-product-image {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10001;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-actions {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
}

.btn-select-phone {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.btn-select-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Modal Price Container - Top Right */
.modal-content .panel-product-price-container {
    position: absolute;
    top: 100px;
    right: 30px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(129, 140, 248, 0.95) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10002;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.modal-content .panel-product-price-container.has-discount {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-content .panel-product-price-normal {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.modal-content .panel-product-price-discounted {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.modal-content .panel-product-price-original {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: line-through;
}

@media (max-width: 768px) {
    .modal-content .panel-product-price-container {
        top: 80px;
        right: 15px;
        padding: 8px 12px;
        gap: 8px;
        border-radius: 10px;
    }
    
    .modal-content .panel-product-price-normal {
        font-size: 16px;
    }
    
    .modal-content .panel-product-price-discounted {
        font-size: 18px;
    }
    
    .modal-content .panel-product-price-original {
        font-size: 13px;
    }
}

/* Phone Selection Panel */
.phone-selection-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-selection-panel.active {
    transform: translateY(0);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* Fixed at top */
    top: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    z-index: 10001; /* Above panel content */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
    position: relative;
    z-index: 10002; /* Ensure it's above other elements */
    pointer-events: all; /* Ensure it's clickable */
}

.panel-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.panel-content {
    padding: 0px;
    padding-top: 80px; /* Space for fixed header */
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

.panel-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    flex: 1;
}

.panel-product-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 0px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: auto;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

/* Remove product-category-info */
.product-category-info {
    display: none !important; /* Hidden - removed as requested */
}

.filter-select {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    box-shadow: var(--shadow-md);
}

.filter-select:hover {
    background-color: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(255, 255, 255, 0.7);
}

.btn-load-more-products {
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.95);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-load-more-products:hover {
    background: rgba(99, 102, 241, 1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-load-more-products:active {
    transform: translateY(0);
}

.btn-search-products {
    padding: 10px;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-search-products:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--primary-hover);
}

.btn-search-products:active {
    transform: translateY(0);
}

.btn-search-products svg {
    width: 18px;
    height: 18px;
}

/* Panel Products List View */
.panel-products-list {
    flex: 1;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 2px solid var(--border-color);
}

.products-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.btn-back-to-product {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-back-to-product:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-back-to-product svg {
    width: 18px;
    height: 18px;
}

.products-list-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 8px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.panel-products-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.product-navigation {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-product-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 1;
    padding: 8px;
}

/* Panel Product Watermark - Position at bottom right */
.panel-product-image-container .product-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 15;
    pointer-events: none;
    user-select: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.panel-product-image {
    max-width: calc(100% - 60px);
    max-height: calc(100% - 20px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateX(0);
    opacity: 1;
}

.panel-product-image.slide-next {
    animation: slideOutLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel-product-image.slide-prev {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Panel Product Price Container - Top Right */
.panel-product-price-container {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: auto;
    left: auto;
    padding: 8px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95) 0%, rgba(129, 140, 248, 0.95) 100%);
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35), 0 2px 6px rgba(0, 0, 0, 0.1);
    min-height: auto;
    border: 2px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

.panel-product-price-normal {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1;
}

.panel-product-price-discounted {
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
    line-height: 1;
}

.panel-product-price-original {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: line-through;
    line-height: 1;
}

/* Discount badge styling when has discount */
.panel-product-price-container.has-discount {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.95) 0%, rgba(52, 211, 153, 0.95) 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .panel-product-image-container {
        padding: 6px;
    }
    
    .panel-product-image {
        max-width: calc(100% - 40px);
    }
    
    .panel-product-image-container .product-watermark {
        right: 10px;
        bottom: 8px;
        font-size: 10px;
    }
    
    .panel-product-price-container {
        padding: 6px 10px;
        top: 8px;
        right: 8px;
        border-radius: 8px;
        gap: 6px;
    }
    
    .panel-product-price-normal {
        font-size: 14px;
    }
    
    .panel-product-price-discounted {
        font-size: 15px;
    }
    
    .panel-product-price-original {
        font-size: 11px;
    }
}

.panel-product-image.slide-in-next {
    animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel-product-image.slide-in-prev {
    animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.product-nav-btn {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.product-nav-btn.prev {
    left: 8px; /* Max left position */
}

.product-nav-btn.next {
    right: 8px; /* Max right position */
}

.product-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-nav-btn:active {
    transform: scale(0.95);
}

.product-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navigation buttons removed - using swipe instead */

.panel-form {
    height: 40vh; /* 50% of viewport height */
    background: var(--surface);
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.form-select:hover {
    border-color: var(--primary-color);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Compact form row styles */
.form-row {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.form-select.compact {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px;
    min-width: 0;
}

.form-select.compact:first-child {
    flex: 1.2;
}

.form-select.compact:last-of-type {
    flex: 1.3;
}

.form-select.compact:hover {
    border-color: var(--primary-color);
}

.form-select.compact:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-select.compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-add-to-cart.compact {
    flex-shrink: 0;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    white-space: nowrap;
    min-width: 80px;
}

.btn-add-to-cart.compact:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-add-to-cart.compact:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(99, 102, 241, 0.5);
}

.other-input {
    display: none;
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-base);
}

.other-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.other-back-btn {
    display: none;
    padding: 8px 12px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.other-back-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Fixed Bottom Cart Panel */
.cart-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    border-top: 2px solid var(--border-color);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--surface);
    cursor: pointer;
    transition: var(--transition-base);
}

.cart-header:hover {
    background: var(--background);
}

.cart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-base);
}

.cart-toggle:hover {
    background: var(--background);
    color: var(--text-primary);
}

.cart-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--surface);
}

.cart-content.expanded {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.cart-items {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: white;
    padding: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-manufacturer,
.cart-item-model {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
}

.cart-item-remove {
    background: var(--error-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-base);
}

.cart-item-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-product-image {
        max-height: calc(100vh - 180px);
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .modal-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 32px;
    }
    
    .modal-actions {
        bottom: 20px;
    }
    
    .btn-select-phone {
        padding: 14px 28px;
        font-size: 14px;
    }
    
    .phone-selection-panel {
        /* Full page on mobile */
    }
    
    .panel-header {
        padding: 5px 10px;
        position: fixed; /* Still fixed on mobile */
        top: 0;
        left: 0;
        right: 0;
    }
    
    .panel-header h3 {
        font-size: 18px;
    }
    
    .panel-content {
        padding: 0px;
        padding-top: 70px; /* Space for fixed header on mobile */
        padding-bottom: 90px; /* Space for fixed form on mobile */
    }
    
    .panel-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .panel-product-preview {
        min-height: 50vh;
        padding: 20px;
    }
    
    .panel-product-image {
        max-height: 100%; /* Full height of panel-layout on mobile */
        max-width: calc(100% - 60px); /* Reduced for smaller buttons on mobile */
    }
    
    .product-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    .product-nav-btn.prev {
        left: 4px;
    }
    
    .product-nav-btn.next {
        right: 4px;
    }
    
    .other-input {
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .product-category-info {
        display: none !important; /* Hidden on mobile too */
    }
    
    .filter-select {
        padding: 8px 14px;
        font-size: 13px;
        padding-right: 32px;
        min-width: 140px;
    }
    
    .btn-search-products {
        padding: 8px;
        width: 36px;
        height: 36px;
    }
    
    .btn-search-products svg {
        width: 16px;
        height: 16px;
    }
    
    .panel-products-list {
        padding: 12px;
        min-height: 50vh;
    }
    
    .panel-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        max-height: 50vh;
    }
    
    .products-list-header {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .btn-back-to-product {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .products-list-header h4 {
        font-size: 16px;
    }
    
    .btn-load-more-products {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
    }
    
    .panel-form {
        width: 100%;
    }
    
    .form-row {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 8px;
    }
    
    .form-row:last-child {
        margin-bottom: 0;
    }
    
    .form-select.compact {
        min-width: calc(50% - 4px);
    }
    
    .form-row:first-child .form-select.compact {
        min-width: calc(50% - 4px);
    }
    
    .btn-add-to-cart.compact {
        width: 100%;
        margin-top: 8px;
    }
    
    .btn-load-more-products {
        padding: 8px 14px;
        font-size: 13px;
        min-width: auto;
        flex: 1;
    }
    
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-image {
        width: 50px;
        height: 50px;
    }
}


/* Cart Order Form */
.cart-order-form { 
    padding: 20px 16px; 
    border-top: 2px solid var(--border-color); 
    background: var(--surface);
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 10;
}
.order-form-header { margin-bottom: 16px; }
.order-form-header h3 { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0; }
.order-form { display: flex; flex-direction: column; gap: 20px; }

/* Inline form row for manufacturer and model */
.form-row-inline {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.form-row-inline .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Material Design Input Style */
.order-form .mat-input-wrapper,
.order-form .mat-select-wrapper {
    position: relative;
    margin-bottom: 0;
}

.order-form .mat-input,
.order-form .mat-select {
    width: 100%;
    padding: 16px 14px 8px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background);
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition-base);
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}

.order-form .mat-input:focus,
.order-form .mat-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.order-form .mat-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-base);
    background: var(--background);
    padding: 0 4px;
    margin: 0;
}

.order-form .mat-input:focus + .mat-label,
.order-form .mat-input.mat-input-filled + .mat-label,
.order-form .mat-input:not(:placeholder-shown) + .mat-label,
.order-form .mat-select:focus + .mat-label,
.order-form .mat-select:not([value=""]) + .mat-label,
.order-form .mat-label-active {
    top: 0;
    transform: translateY(-50%) scale(0.875);
    color: var(--primary-color);
    font-weight: 500;
}

.order-form .mat-input:focus + .mat-label {
    color: var(--primary-color);
}

.order-form .mat-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.order-form .mat-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.order-form .mat-input::placeholder {
    color: transparent;
}

.order-form .mat-input:focus::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.btn-submit-order { padding: 14px 24px; background: var(--primary-color); color: white; border: none; border-radius: var(--radius-md); font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--transition-base); display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.btn-submit-order:hover:not(:disabled) { background: #4f46e5; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.btn-submit-order:active:not(:disabled) { transform: translateY(0); }
.btn-submit-order:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-loading { display: inline-block; }

/* Language toggle button in panel header */
.panel-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn-toggle {
    padding: 6px 14px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.lang-btn-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
