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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    overflow-x: hidden;
}

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

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

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

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.page-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.cart-count {
    background-color: #ff4444;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 20px;
    text-align: center;
}

/* Product Detail Section */
.product-detail {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

/* Product Images Section */
.product-images {
    position: relative;
    padding: 20px;
    background-color: #fafafa;
}

.image-slider {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none;
}

.control-btn {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
}

.control-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-slider {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.thumbnail-slider::-webkit-scrollbar {
    height: 5px;
}

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

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

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #ff4444;
    transform: scale(1.05);
}

/* Product Info Section */
.product-info {
    padding: 20px;
    position: relative;
}

.product-header {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flash-sale-badge {
  background-color: #ff3e3e;
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(255, 62, 62, 0.3);
  animation: pulse 1.5s infinite;
}

.promotion-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
}

.promotion-badges::-webkit-scrollbar {
  height: 3px;
}

.promotion-badges::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.promotion-badges::-webkit-scrollbar-thumb {
  background: #ff3e3e;
  border-radius: 10px;
}

.promo-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.promo-badge.best-seller {
  background-color: #ff6b35;
  color: white;
}

.promo-badge.hot {
  background-color: #f7931e;
  color: white;
}

.promo-badge.limited-stock {
  background-color: #a64dff;
  color: white;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.countdown-timer {
  margin: 10px 0;
  padding: 12px;
  background-color: #fff3f3;
  border-radius: 8px;
  border-left: 4px solid #ff3e3e;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.countdown-label {
  font-size: 16px;
  font-weight: bold;
  color: #ff3e3e;
  white-space: nowrap;
}

.countdown-display {
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.countdown-value {
  display: inline-block;
  background-color: #ff3e3e;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  font-size: 20px;
  font-weight: bold;
  line-height: 40px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-unit {
  font-size: 12px;
  color: #666;
  font-weight: bold;
}

.countdown-separator {
  font-size: 24px;
  font-weight: bold;
  color: #ff3e3e;
  line-height: 40px;
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 5px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.rating-text {
    font-size: 18px;
    font-weight: 700;
    color: #ff4444;
}

.review-count, .sales-count {
    font-size: 14px;
    color: #999;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.current-price {
    font-size: 36px;
    font-weight: 700;
    color: #ff4444;
}

.original-price {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}

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

.save-info {
    font-size: 14px;
    color: #666;
}

.save-text {
    color: #ff4444;
    font-weight: 600;
}

/* Product Offers */
.product-offers {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #fff8f8;
    border-radius: 6px;
    font-size: 14px;
    color: #ff4444;
    border: 1px solid #ffe8e8;
}

.offer-item i {
    font-size: 16px;
}

/* Product Specs */
.product-specs {
    margin-bottom: 25px;
}

.spec-group {
    margin-bottom: 20px;
}

.spec-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

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

.spec-option {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: #fff;
    color: #666;
}

.spec-option:hover {
    border-color: #ff4444;
    color: #ff4444;
}

.spec-option.active {
    border-color: #ff4444;
    background-color: #fff8f8;
    color: #ff4444;
    font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.quantity-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

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

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.action-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.cart-btn {
    background-color: #fff;
    color: #ff4444;
    border: 2px solid #ff4444;
}

.cart-btn:hover {
    background-color: #fff8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.buy-btn {
    background-color: #ff4444;
    color: #fff;
}

.buy-btn:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Delivery Info */
.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.delivery-item i {
    color: #4caf50;
    font-size: 18px;
    margin-top: 2px;
}

/* Product Description Section */
.product-description {
    background-color: #fff;
    margin-top: 15px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin-bottom: 80px;
}

.desc-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.desc-tabs::-webkit-scrollbar {
    height: 3px;
}

.desc-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.desc-tabs::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.tab {
    padding: 12px 20px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab:hover {
    color: #ff4444;
    background-color: #fff8f8;
}

.tab.active {
    color: #ff4444;
    border-bottom: 2px solid #ff4444;
    background-color: transparent;
}

.tab-content {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

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

/* Description Tab Content */
.desc-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 18px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 8px;
    border-left: 4px solid #ff4444;
}

.feature-item i {
    color: #ff4444;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
}

.usage-guide {
    margin-bottom: 30px;
}

.usage-guide p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.usage-guide strong {
    color: #333;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
    overflow: visible;
    box-sizing: border-box;
}

.product-gallery img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: block;
}

.product-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Reviews Tab Content */
.reviews-summary {
    margin-bottom: 30px;
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 12px;
}

.overall-rating {
    text-align: center;
}

.rating-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #ff4444;
    line-height: 1;
}

.rating-label {
    display: block;
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.rating-level {
    width: 40px;
    font-size: 14px;
    color: #666;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background-color: #ff4444;
    border-radius: 4px;
}

.rating-percentage {
    width: 40px;
    font-size: 14px;
    color: #999;
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.review-item {
    padding: 20px;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.reviewer-rating {
    color: #ffc107;
    font-size: 14px;
}

.review-date {
    font-size: 14px;
    color: #999;
}

.review-content {
    margin-bottom: 15px;
}

.review-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.review-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.review-images img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.review-images img:hover {
    transform: scale(1.1);
}

/* Specs Table */
.specs-table {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.spec-row {
    display: flex;
    gap: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.spec-row:hover {
    background-color: #fafafa;
}

.spec-label {
    width: 140px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.spec-value {
    flex: 1;
    color: #666;
    font-size: 15px;
}

/* Shipping Info */
.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.shipping-item {
    padding: 25px;
    background-color: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.shipping-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.shipping-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shipping-title i {
    color: #4caf50;
}

.shipping-desc {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 15px;
}

.shipping-list {
    list-style-type: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-list li {
    position: relative;
    padding-left: 28px;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

.shipping-list li::before {
    content: '✓';
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* Bottom Navigation */




/* Responsive Design - Mobile First Approach */

/* Mobile Devices (Small) */
@media (max-width: 480px) {
    .top-nav {
        padding: 10px 0;
    }
    
    .nav-content {
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 18px;
    }
    
    .nav-btn {
        font-size: 18px;
        padding: 6px;
    }
    
    .product-detail {
        padding: 10px;
        margin-top: 10px;
    }
    
    .product-images {
        padding: 15px;
    }
    
    .image-slider {
        height: 280px;
        border-radius: 8px;
    }
    
    .slider-controls {
        padding: 0 10px;
    }
    
    .control-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .thumbnail {
        flex: 0 0 70px;
        height: 70px;
        border-radius: 6px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .product-rating {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-text {
        font-size: 16px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 15px;
    }
    
    .price-container {
        gap: 10px;
    }
    
    .current-price {
        font-size: 30px;
    }
    
    .original-price {
        font-size: 16px;
    }
    
    .product-offers {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .offer-item {
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .spec-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .spec-option {
        text-align: center;
        padding: 10px;
    }
    
    .quantity-selector {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
    
    .quantity-control {
        border-radius: 6px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .quantity-input {
        width: 50px;
        height: 36px;
        font-size: 14px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .action-btn {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    .delivery-info {
        gap: 12px;
    }
    
    .delivery-item {
        font-size: 13px;
        gap: 10px;
    }
    
    .delivery-item i {
        font-size: 16px;
    }
    
    .product-description {
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 70px;
    }
    
    .desc-tabs {
        gap: 5px;
        padding-bottom: 10px;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .desc-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .feature-list {
        gap: 12px;
    }
    
    .feature-item {
        padding: 12px;
        gap: 12px;
    }
    
    .feature-item i {
        font-size: 18px;
    }
    
    .feature-item span {
        font-size: 14px;
    }
    
    .usage-guide p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .product-gallery {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .product-gallery img {
        height: auto;
        max-height: none;
        object-fit: cover;
    }
    
    .rating-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .rating-number {
        font-size: 36px;
    }
    
    .rating-bar {
        margin-bottom: 10px;
    }
    
    .rating-level {
        width: 35px;
        font-size: 13px;
    }
    
    .rating-percentage {
        width: 35px;
        font-size: 13px;
    }
    
    .review-item {
        padding: 15px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reviewer-name {
        font-size: 15px;
    }
    
    .review-content p {
        font-size: 14px;
    }
    
    .review-images img {
        width: 80px;
        height: 80px;
    }
    
    .spec-row {
        flex-direction: column;
        gap: 8px;
        padding: 12px 0;
    }
    
    .spec-label {
        width: auto;
        font-size: 14px;
    }
    
    .spec-value {
        font-size: 14px;
    }
    
    .shipping-item {
        padding: 20px;
    }
    
    .shipping-title {
        font-size: 18px;
    }
    
    .shipping-desc {
        font-size: 14px;
    }
    
    .shipping-list li {
        font-size: 13px;
        padding-left: 25px;
    }
    


}

/* Mobile Devices (Medium) */
@media (min-width: 481px) and (max-width: 767px) {
    .product-detail {
        padding: 15px;
    }
    
    .image-slider {
        height: 320px;
    }
    
    .thumbnail {
        flex: 0 0 75px;
        height: 75px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .current-price {
        font-size: 32px;
    }
    
    .action-buttons {
        gap: 15px;
    }
    
    .action-btn {
        padding: 13px 20px;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 991px) {
    .product-detail {
        display: flex;
        flex-direction: column;
        padding: 20px;
    }
    
    .product-images {
        width: 100%;
        padding: 20px;
    }
    
    .image-slider {
        height: 400px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .action-buttons {
        gap: 20px;
    }
    
    .action-btn {
        padding: 14px 25px;
        font-size: 17px;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
}

/* Desktop Devices */
@media (min-width: 992px) {
    .product-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 25px;
    }
    
    .product-images {
        width: 100%;
        padding: 20px;
    }
    
    .image-slider {
        height: 500px;
    }
    
    .product-title {
        font-size: 28px;
    }
    
    .action-buttons {
        gap: 20px;
    }
    
    .action-btn {
        padding: 14px 30px;
        font-size: 18px;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
}

/* Large Desktop Devices */
@media (min-width: 1200px) {
    .image-slider {
        height: 550px;
    }
    
    .product-title {
        font-size: 30px;
    }
    
    .product-gallery img {
        height: 220px;
    }
}

/* Shopping Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cart-modal.active {
    display: block;
}

.cart-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-modal-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

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

.cart-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f5f5f5;
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.cart-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.cart-empty p {
    margin-bottom: 20px;
    font-size: 16px;
}

.continue-shopping-btn {
    background-color: #ff4444;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.continue-shopping-btn:hover {
    background-color: #ff3333;
}

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

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

.cart-item-name {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.cart-item-spec {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.cart-item-price {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ff4444;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.cart-quantity-btn {
    background-color: #f5f5f5;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

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

.cart-quantity {
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    padding: 5px;
}

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

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-total span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.cart-total span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: #ff4444;
}

.checkout-btn {
    width: 100%;
    background-color: #ff4444;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #ff3333;
}

/* Cart Count Badge */
.cart-count {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Touch Device Enhancements */
@media (hover: none) and (pointer: coarse) {
    .spec-option:active {
        background-color: #fff8f8;
    }
    
    .cart-quantity-btn:active {
        background-color: #eee;
    }
    
    .cart-remove-btn:active {
        color: #ff4444;
    }
}    
    .action-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    

    
    .review-images img:active {
        transform: scale(1.05);
    }
}

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

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

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

.tab-pane.active {
    animation: fadeIn 0.5s ease;
}

/* Focus States for Accessibility */
button:focus, input:focus, select:focus, a:focus {
    outline: 2px solid #ff4444;
    outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Zoom Effect for Product Images */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #4caf50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}