/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}

html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Navigation Bar */
.top-nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Sticky Navigation */
.top-nav.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Add margin to main content when nav is sticky to prevent content overlap */
.top-nav.sticky + main.container {
    margin-top: 80px;
    transition: margin-top 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    position: relative;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: #f0f0f0;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product Detail Section */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.image-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f9fa;
    max-height: 500px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 500px;
    margin: 0 auto;
}

.slide img:hover {
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
}

.control-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.thumbnail-slider {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    width: 100%;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.thumbnail-slider::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-slider::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
}

.thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.product-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    overflow-x: hidden;
}

.tag {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

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

.rating-stars {
    color: #f39c12;
    font-size: 1.2rem;
}

.rating-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.review-count, .sales-count {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Product Price */
.product-price {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* Flash Sale Banner */
.flash-sale-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff3838 0%, #ff1a1a 100%);
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 56, 56, 0.3);
    position: relative;
    overflow: hidden;
}

.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.flash-sale-banner i {
    font-size: 1.3rem;
    animation: pulse 1.2s infinite alternate;
    z-index: 1;
}

.flash-sale-text {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    z-index: 1;
}

.timer-item {
    background: linear-gradient(145deg, white 0%, #f5f5f5 100%);
    color: #ff3838;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.timer-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff3838, #ff6666);
}

.timer-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: 'Arial', sans-serif;
    color: #e74c3c;
}

.timer-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #999;
    margin-top: 2px;
}

.timer-separator {
    font-size: 1.3rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e74c3c;
}

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

.discount-tag {
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.flash-discount {
    background-color: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: 10px;
}

.save-info {
    color: #27ae60;
    font-weight: 600;
}

/* Pulse Animation for Flash Sale */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Shine Animation for Flash Sale Banner */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Product Description */
.product-description h3,
.product-features h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.product-features ul {
    list-style: none;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: #555;
    line-height: 1.6;
}

.product-features li i {
    color: #27ae60;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Product Specs */
.product-specs {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-specs h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.spec-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.spec-option {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-option:hover {
    border-color: #3498db;
    background-color: #f8fbff;
}

.spec-option.active {
    border-color: #3498db;
    background-color: #e3f2fd;
    color: #1976d2;
}

.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.color-circle.white {
    background-color: #fff;
    border-color: #ccc;
}

.color-circle.gray {
    background-color: #808080;
}

.color-circle.black {
    background-color: #333;
}

.color-circle.chrome {
    background: linear-gradient(135deg, #f0f0f0 0%, #c0c0c0 50%, #f0f0f0 100%);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.quantity-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.quantity-btn:hover {
    background-color: #e0e0e0;
}

.quantity-input {
    width: 100%;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

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

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.action-btn {
    flex: 1;
    min-width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.add-to-cart {
    background-color: #3498db;
    color: white;
}

.add-to-cart:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.buy-now {
    background-color: #27ae60;
    color: white;
}

.buy-now:hover {
    background-color: #229954;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

/* Product Offers */
.product-offers {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    font-size: 0.95rem;
}

.offer-item i {
    color: #3498db;
    font-size: 1.2rem;
}

/* Product Tabs */
.product-tabs {
    margin: 40px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: #f8f9fa;
    color: #333;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background-color: #f8fbff;
}

.tab-content {
    padding: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Product Description Images */
.product-description-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.product-description-images img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.product-description-images img:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.feature-item p {
    color: #555;
    line-height: 1.6;
}

/* Specifications Table */
.specs-table {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.spec-row {
    display: flex;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.spec-label {
    font-weight: 600;
    color: #2c3e50;
    width: 150px;
    flex-shrink: 0;
}

.spec-value {
    color: #555;
}

/* Installation Steps */
.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    color: #555;
    line-height: 1.6;
}

/* Customer Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.review-item {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 700;
    color: #2c3e50;
}

.review-date {
    color: #999;
    font-size: 0.9rem;
}

.review-rating {
    color: #f39c12;
}

.review-content p {
    color: #555;
    line-height: 1.6;
}

/* Related Products */
.related-products {
    margin: 40px 0;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-products h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.related-product {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-product h4 {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.related-price {
    padding: 0 15px 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.related-buy-btn {
    margin: 0 15px 15px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(100% - 30px);
}

.related-buy-btn:hover {
    background-color: #2980b9;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ecf0f1;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 1.8rem;
    color: #bdc3c7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

.cart-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow-x: hidden;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.cart-body {
    padding: 30px;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #666;
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #999;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cart-item-spec {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #e74c3c;
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.cart-quantity-btn {
    background-color: #f5f5f5;
    border: none;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-quantity-btn:hover {
    background-color: #e0e0e0;
}

.cart-quantity {
    width: 40px;
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
}

.cart-remove-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #e74c3c;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cart-remove-btn:hover {
    background-color: #ffebee;
}

.cart-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.total-price {
    color: #e74c3c;
}

.checkout-btn {
    padding: 12px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .product-detail {
        grid-template-columns: 1fr;
        padding: 30px;
        box-sizing: border-box;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        box-sizing: border-box;
    }
    
    .product-images {
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        box-sizing: border-box;
    }
    
    .product-detail {
        padding: 20px 15px;
        margin: 20px 0;
        gap: 20px;
        box-sizing: border-box;
    }
    
    /* Product Info Responsive */
    .product-info {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Ensure all product-info sub-elements don't overflow */
    .product-info * {
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .product-title {
        word-break: break-word;
    }
    
    .product-tags {
        flex-wrap: wrap;
    }
    
    .product-price {
        overflow-x: hidden;
    }
    
    .price-container {
        flex-wrap: wrap;
    }
    
    .spec-options {
        flex-wrap: wrap;
    }
    
    .spec-option {
        max-width: calc(50% - 7px);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .product-header {
        padding-bottom: 15px;
    }
    
    .product-title {
        font-size: 1.4rem;
        word-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .product-tags {
        justify-content: center;
        gap: 8px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* Rating Responsive */
    .product-rating {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        flex-wrap: nowrap;
    }
    
    .rating-text {
        font-size: 1.2rem;
    }
    
    .review-count, .sales-count {
        font-size: 0.8rem;
    }
    
    .review-count, .sales-count {
        font-size: 0.85rem;
    }
    
    /* Price Responsive */
    .product-price {
        padding: 15px;
        margin-top: 15px;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .original-price {
        font-size: 1.2rem;
    }
    
    .discount-tag {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .flash-discount {
        font-size: 0.75rem;
        padding: 3px 6px;
    }
    
    /* Countdown Timer Responsive */
    .flash-sale-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .flash-sale-text {
        font-size: 1rem;
    }
    
    .countdown-timer {
        margin-left: 0;
    }
    
    .timer-item {
        min-width: 40px;
        padding: 5px 8px;
    }
    
    .timer-number {
        font-size: 1rem;
    }
    
    /* Price Container Responsive */
    .price-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* Specs Responsive */
    .product-specs {
        width: 100%;
        max-width: 100%;
    }
    
    .spec-options {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .spec-option {
        width: calc(33.333% - 7px);
        padding: 10px;
        box-sizing: border-box;
    }
    
    /* Quantity Responsive */
    .quantity-selector {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-control {
        width: 100%;
        max-width: 100%;
    }
    
    .quantity-input {
        width: 100%;
        max-width: 100%;
    }
    
    /* Actions Responsive */
    .action-btn {
        min-width: 100%;
        box-sizing: border-box;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .product-actions {
        gap: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        padding: 12px 20px;
        font-size: 1rem;
        flex: 1;
        min-width: 150px;
    }
    
    .related-products {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.5rem;
    }
    
    .product-detail {
        padding: 15px;
        margin: 15px 0;
        gap: 15px;
    }
    
    .thumbnail-slider {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .thumbnail-slider::-webkit-scrollbar {
        display: none;
    }
    
    .thumbnail {
        flex-shrink: 0;
        width: 70px;
        height: 70px;
    }
    
    .spec-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spec-option {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-modal-content {
        width: 95%;
        max-width: 400px;
    }
    
    /* Ensure all elements don't overflow on small screens */
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .product-description-images {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Fix flash sale banner layout */
    .flash-sale-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Adjust countdown timer */
    .countdown-timer {
        margin-left: 0;
        gap: 4px;
    }
    
    .timer-item {
        min-width: 35px;
        padding: 4px 6px;
    }
    
    .timer-number {
        font-size: 1rem;
    }
    
    .timer-label {
        font-size: 0.6rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail,
.product-tabs,
.related-products {
    animation: fadeIn 0.5s ease;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}