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

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
}

/* Main Content */
.main-content {
    transition: transform 0.3s ease, filter 0.3s ease;
    padding: 20px;
}

.main-content.panel-open {
    transform: translateX(-25%);
    filter: brightness(0.7);
}

/* Existing Product Showcase Styles */
.showcase {
    position: relative;
    max-width: 350px;
    margin: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.showcase-banner {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-img.hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.showcase:hover .product-img.hover {
    opacity: 1;
}

.showcase-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.showcase-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.showcase:hover .showcase-actions {
    opacity: 1;
    transform: translateX(0);
}

.btn-action {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.btn-action ion-icon {
    font-size: 18px;
}

.showcase-content {
    padding: 20px;
}

.showcase-category {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.showcase-title {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 8px 0;
    display: block;
}

.showcase-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 10px 0;
}

.showcase-rating ion-icon {
    color: #f1c40f;
    font-size: 14px;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.price-box del {
    color: #95a5a6;
    font-size: 16px;
}

/* Overlay Backdrop */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Product Detail Panel */
.product-detail-panel {
    position: fixed;
    top: 0;
    right: -50%;
    width: 50%;
    height: 100vh;
    background: #fff;
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.product-detail-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #ecf0f1;
    background: #f8f9fa;
}

.panel-header h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.close-panel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-panel-btn:hover {
    background: #e9ecef;
}

.close-panel-btn ion-icon {
    font-size: 24px;
    color: #6c757d;
}

.panel-content {
    padding: 25px;
}

.product-image-section {
    margin-bottom: 25px;
}

.panel-product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-info-section {
    space-y: 20px;
}

.product-category-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.product-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.product-rating ion-icon {
    color: #f1c40f;
    font-size: 16px;
}

.rating-text {
    color: #7f8c8d;
    font-size: 14px;
    margin-left: 8px;
}

.product-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 28px;
    font-weight: bold;
    color: #e74c3c;
}

.original-price {
    color: #95a5a6;
    font-size: 18px;
    text-decoration: line-through;
}

.discount-percent {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-description {
    margin-bottom: 25px;
}

.product-description h4,
.product-specifications h4 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-description p {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: #5a6c7d;
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.feature-list li::before {
    content: "✓";
    color: #27ae60;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.product-specifications {
    margin-bottom: 30px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.spec-item strong {
    color: #2c3e50;
}

.spec-item span {
    color: #5a6c7d;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    border: none;
    padding: 10px;
    width: 60px;
    text-align: center;
    font-size: 16px;
}

.add-to-cart-btn {
    flex: 1;
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.wishlist-btn {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.wishlist-btn ion-icon {
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-detail-panel {
        width: 100%;
        right: -100%;
    }
    
    .main-content.panel-open {
        transform: translateX(-100%);
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quantity-selector {
        align-self: center;
    }
}

/* Smooth scrollbar for panel */
.product-detail-panel::-webkit-scrollbar {
    width: 6px;
}

.product-detail-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.product-detail-panel::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.product-detail-panel::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Additional styles for universal overlay enhancements */
.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.shipping-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.shipping-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5a6c7d;
}

.shipping-item ion-icon {
    color: #3498db;
    font-size: 16px;
}

.contact-btn {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.contact-btn:hover {
    background: #e67e22;
    transform: translateY(-1px);
}

.product-features {
    margin-bottom: 25px;
}

.image-gallery {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}

.image-gallery img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.image-gallery img:hover,
.image-gallery img.active {
    border-color: #3498db;
}
/* Enhanced Price-Based Styling */
.product-detail-panel.enhanced {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-tier-badge {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Tier-specific overlay styling */
.product-detail-panel[data-tier="basic"] {
    border-left: 4px solid #95a5a6;
}

.product-detail-panel[data-tier="standard"] {
    border-left: 4px solid #3498db;
}

.product-detail-panel[data-tier="professional"] {
    border-left: 4px solid #f39c12;
}

.product-detail-panel[data-tier="business"] {
    border-left: 4px solid #e67e22;
}

.product-detail-panel[data-tier="enterprise"] {
    border-left: 4px solid #9b59b6;
}

.product-detail-panel[data-tier="premium"] {
    border-left: 4px solid #e74c3c;
}

.product-detail-panel[data-tier="ultimate"] {
    border-left: 4px solid #2c3e50;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    color: white;
}

.product-detail-panel[data-tier="ultimate"] .panel-header,
.product-detail-panel[data-tier="ultimate"] .panel-content {
    background: transparent;
    color: white;
}

.protection-level {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.protection-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.protection-name {
    font-size: 16px;
    font-weight: 600;
}

.protection-tier {
    background: rgba(0,0,0,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    color: #666;
}

/* Enhanced features styling */
.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-features li ion-icon {
    color: #27ae60;
    font-size: 16px;
}

.support-details {
    background: #e8f5e8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.support-item {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
}

.security-features {
    background: #fff3e0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

.security-item ion-icon {
    color: #ff9800;
    font-size: 14px;
}

.benefits-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: white;
}

.benefits-highlight {
    border-left: 4px solid white;
    padding-left: 15px;
}

.benefits-highlight h5 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.benefit-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.benefit-items span {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.add-to-cart-btn.enhanced {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.add-to-cart-btn.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Mobile responsiveness for enhanced features */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-items {
        flex-direction: column;
    }
    
    .protection-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}
