 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Poppins', sans-serif;
     line-height: 1.6;
     color: #333;
     background-color: #f8f9fa;
     overflow-x: hidden;
 }

 a {
     text-decoration: none;
     color: inherit;
     transition: color 0.3s;
 }

 ul {
     list-style: none;
 }

 img {
     max-width: 100%;
     height: auto;
     display: block;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 20px;
 }

 /* ====== HEADER STYLES ====== */
 .header {
     background-color: #232f3e;
     color: white;
     position: sticky;
     top: 0;
     z-index: 1000;
     box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
 }

 .header-top {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 15px 5%;
     flex-wrap: wrap;
 }

 .logo-container {
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     font-size: 22px;
     font-weight: 700;
     color: white;
 }

 .logo i {
     color: #ff9900;
     font-size: 28px;
 }

 .search-container {
     flex: 1;
     max-width: 600px;
     margin: 0 20px;
     position: relative;
 }

 .search-box {
     display: flex;
     background: white;
     border-radius: 4px;
     overflow: hidden;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

 .search-box input {
     flex: 1;
     padding: 12px 20px;
     border: none;
     outline: none;
     font-size: 16px;
     font-family: 'Poppins', sans-serif;
 }

 .search-box input::placeholder {
     color: #999;
 }

 .search-box button {
     background-color: #ff9900;
     color: white;
     border: none;
     padding: 0 25px;
     cursor: pointer;
     font-size: 16px;
     transition: background-color 0.3s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .search-box button:hover {
     background-color: #e68900;
 }

 .header-actions {
     display: flex;
     align-items: center;
     gap: 20px;
 }

 .cart-container {
     position: relative;
 }

 .cart-icon {
     font-size: 22px;
     cursor: pointer;
     position: relative;
     padding: 8px;
     border-radius: 4px;
     transition: background-color 0.3s;
 }

 .cart-icon:hover {
     background-color: rgba(255, 255, 255, 0.1);
 }

 .cart-count {
     position: absolute;
     top: -5px;
     right: -5px;
     background-color: #ff9900;
     color: white;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 12px;
     font-weight: bold;
 }

 /* ====== NAVBAR STYLES ====== */
 .navbar {
     background-color: #37475a;
     padding: 0 5%;
 }

 .navbar ul {
     display: flex;
     flex-wrap: wrap;
 }

 .navbar li {
     position: relative;
 }

 .navbar a {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 15px 20px;
     font-weight: 500;
     transition: background-color 0.3s;
     white-space: nowrap;
 }

 .navbar a:hover {
     background-color: #485769;
 }

 .navbar a.active {
     background-color: #ff9900;
     color: white;
 }

 .dropdown-content {
     position: absolute;
     top: 100%;
     left: 0;
     background-color: white;
     min-width: 220px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
     display: none;
     z-index: 100;
     border-radius: 0 0 8px 8px;
     overflow: hidden;
     animation: dropdownFade 0.3s ease;
 }

 @keyframes dropdownFade {
     from {
         opacity: 0;
         transform: translateY(-10px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 .dropdown-content a {
     color: #333;
     padding: 12px 20px;
     border-bottom: 1px solid #eee;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .dropdown-content a:hover {
     background-color: #f5f5f5;
     color: #ff9900;
 }

 .dropdown-content a i {
     width: 20px;
     color: #666;
 }

 .dropdown:hover .dropdown-content {
     display: block;
 }
 .preview-page {
    padding: 0 5% 60px;
    background-color: #f8f9fa;
    min-height: 70vh;
}

/* Preview Container */
.preview-container {
    margin-bottom: 60px;
}

/* No Preview Selected */
.no-preview-selected {
    background: white;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px dashed #ddd;
}

.no-preview-content i {
    font-size: 70px;
    color: #ddd;
    margin-bottom: 25px;
    opacity: 0.7;
}

.no-preview-content h2 {
    color: #232f3e;
    margin-bottom: 15px;
    font-size: 28px;
}

.no-preview-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-preview-content a {
    color: #ff9900;
    text-decoration: underline;
    font-weight: 500;
}

.no-preview-content a:hover {
    color: #e68900;
}

.browse-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #232f3e, #37475a);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.browse-btn:hover {
    background: linear-gradient(135deg, #37475a, #232f3e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* Product Preview */
.product-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: linear-gradient(135deg, #232f3e, #37475a);
    color: white;
}

.preview-header h2 {
    font-size: 24px;
    font-weight: 600;
}

.close-preview {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-preview:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preview-content {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.preview-images {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-image img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.thumbnail:hover {
    border-color: #ff9900;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #ff9900;
    box-shadow: 0 3px 10px rgba(255, 153, 0, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-details {
    flex: 2;
    min-width: 300px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.preview-category {
    display: inline-block;
    background: linear-gradient(135deg, #ff9900, #ffad33);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.preview-title {
    color: #232f3e;
    font-size: 28px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #ffc107;
    font-size: 18px;
}

.rating-value {
    font-weight: 600;
    color: #333;
}

.rating-count {
    color: #666;
    font-size: 14px;
}

.preview-price {
    margin-bottom: 25px;
}

.current-price {
    font-size: 36px;
    color: #232f3e;
    font-weight: 700;
    margin-right: 15px;
}

.original-price {
    font-size: 24px;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px;
}

.preview-description {
    margin-bottom: 30px;
    flex: 1;
}

.preview-description h4 {
    color: #232f3e;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.preview-description p {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.preview-features {
    margin-bottom: 30px;
}

.preview-features h4 {
    color: #232f3e;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.preview-features ul {
    list-style: none;
    padding: 0;
}

.preview-features li {
    color: #555;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.preview-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff9900;
    font-weight: bold;
}

.preview-specs {
    margin-bottom: 30px;
}

.preview-specs h4 {
    color: #232f3e;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spec-label {
    color: #666;
    font-size: 14px;
}

.spec-value {
    color: #232f3e;
    font-weight: 500;
    font-size: 14px;
}

.preview-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.preview-btn {
    flex: 1;
    min-width: 200px;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.amazon-btn {
    background: linear-gradient(135deg, #232f3e, #37475a);
    color: white;
}

.amazon-btn:hover {
    background: linear-gradient(135deg, #37475a, #232f3e);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-btn {
    background: linear-gradient(135deg, #ff9900, #ffad33);
    color: white;
}

.cart-btn:hover {
    background: linear-gradient(135deg, #ffad33, #ff9900);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.wishlist-btn {
    background: white;
    color: #333;
    border: 2px solid #ddd;
}

.wishlist-btn:hover {
    border-color: #ff9900;
    color: #ff9900;
    transform: translateY(-2px);
}

/* Related Products */
.related-products {
    margin-bottom: 60px;
}

.related-products h3 {
    color: #232f3e;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-product {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.related-product:hover {
    transform: translateY(-5px);
}

.related-product-image {
    height: 150px;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.related-product:hover .related-product-image img {
    transform: scale(1.05);
}

.related-product-info {
    padding: 20px;
}

.related-product-name {
    font-size: 16px;
    color: #232f3e;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-product-price {
    font-size: 20px;
    color: #ff9900;
    font-weight: 600;
    margin-bottom: 15px;
}

.related-product-actions {
    display: flex;
    gap: 10px;
}

.related-view-btn {
    flex: 1;
    background: #232f3e;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-view-btn:hover {
    background: #ff9900;
}

/* Recently Viewed */
.recently-viewed h3 {
    color: #232f3e;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.recent-product {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.recent-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.recent-product-image {
    height: 120px;
    overflow: hidden;
}

.recent-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-product-info {
    padding: 15px;
}

.recent-product-name {
    font-size: 14px;
    color: #232f3e;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-product-price {
    font-size: 16px;
    color: #ff9900;
    font-weight: 600;
}

/* Quick Actions */
.quick-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.quick-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9900, #ffad33);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
    transition: all 0.3s;
}

.quick-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

.quick-action-btn.secondary {
    background: linear-gradient(135deg, #232f3e, #37475a);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* ====== FOOTER STYLES ====== */
.footer {
    background-color: #232f3e;
    color: white;
    padding: 50px 5% 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-logo i {
    color: #ff9900;
    font-size: 24px;
}

.footer-logo h3 {
    font-weight: 600;
}

.footer-description {
    color: #aaa;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #37475a;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #ff9900;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff9900;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #ff9900;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ddd;
    font-size: 14px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section ul li a:hover {
    color: #ff9900;
    padding-left: 5px;
}

.footer-section ul li i {
    width: 20px;
    color: #ff9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #37475a;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* ====== CART MODAL ====== */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cart-modal-content {
    background-color: white;
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.cart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #232f3e;
    color: white;
}

.cart-modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close-cart {
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
    padding: 0 5px;
}

.close-cart:hover {
    color: #ff9900;
}

.cart-modal-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-cart i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-cart h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.empty-cart p {
    color: #888;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
    line-height: 1.4;
}

.cart-item-price {
    font-size: 16px;
    color: #ff9900;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.remove-item:hover {
    color: #cc0000;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.total-amount {
    color: #ff9900;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff9900;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checkout-btn:hover {
    background-color: #e68900;
}

/* Responsive Design for Preview Page */
@media (max-width: 992px) {
    .preview-content {
        flex-direction: column;
    }

    .preview-images {
        min-height: 300px;
    }

    .preview-btn {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .preview-page {
        padding: 0 20px 40px;
    }

    .preview-title {
        font-size: 24px;
    }

    .current-price {
        font-size: 30px;
    }

    .original-price {
        font-size: 20px;
    }

    .preview-actions {
        flex-direction: column;
    }

    .preview-btn {
        width: 100%;
    }

    .related-grid,
    .recent-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .no-preview-selected {
        padding: 40px 20px;
    }

    .no-preview-content h2 {
        font-size: 24px;
    }

    .preview-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .preview-images,
    .preview-details {
        padding: 20px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        bottom: 20px;
        right: 20px;
    }

    .quick-action-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}