* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 56px;
}

/* Header */
.header {
    background-color: #fff;
    padding: 12px 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: 100%;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 44px;
    height: 44px;
    width: auto;
    object-fit: contain;
}


/* Product Image Section */
.product-image-section {
    background-color: #fff;
    padding: 16px;
    margin-bottom: 16px;
}

.main-image-container {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.zoom-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.thumbnail.active {
    border-color: #10b981;
}

.thumbnail:hover {
    border-color: #10b981;
    opacity: 0.9;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto;
}

/* Product Info */
.product-info {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.product-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
}

.badge {
    background-color: #10b981;
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.badge svg {
    width: 16px;
    height: 16px;
}

/* Quantity Section */
.quantity-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.quantity-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #1f2937;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
    max-width: 150px;
}

.qty-btn {
    background-color: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 18px;
    cursor: pointer;
    color: #374151;
    font-weight: 400;
    line-height: 1;
    transition: background-color 0.2s;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #f3f4f6;
}

.qty-btn:active {
    background-color: #e5e7eb;
}

.qty-input {
    flex: 1;
    border: none;
    border-left: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 8px;
    background-color: #fff;
    color: #1f2937;
    appearance: textfield;
    -moz-appearance: textfield;
    min-width: 50px;
    max-width: 70px;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input:focus {
    outline: none;
    background-color: #fafafa;
}

/* Cart Section */
.cart-section {
    background-color: #fff;
    padding: 0 16px 20px;
    margin-bottom: 16px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #059669;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* Description Section */
.description-section {
    background-color: #fff;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 16px;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    text-transform: uppercase;
}

.toggle-icon {
    transition: transform 0.3s;
    color: #6b7280;
}

.section-header.active .toggle-icon {
    transform: rotate(180deg);
}

.description-content {
    padding: 20px 16px;
    display: none;
}

.description-content.active {
    display: block;
}

.description-title {
    font-size: 20px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-title svg {
    color: #10b981;
}

.description-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 16px;
    font-weight: 500;
}

.description-text {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

/* Highlights Section */
.highlights-section {
    background-color: #fff;
    padding: 24px 16px;
    margin-bottom: 16px;
}

.highlights-title {
    font-size: 22px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlights-title svg {
    color: #fbbf24;
}

.highlights-list {
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.check-icon {
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 6px;
}

.highlight-content p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.benefit-item {
    display: flex;
    gap: 12px;
}

.benefit-content h3 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* Where to Use Section */
.where-to-use-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.where-to-use-section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
}

.where-list {
    list-style: none;
}

.where-list li {
    font-size: 15px;
    color: #4b5563;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.where-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Technical Section */
.technical-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.technical-section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.technical-section h2 svg {
    color: #fbbf24;
}

.technical-list {
    list-style: none;
}

.technical-list li {
    font-size: 15px;
    color: #4b5563;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.technical-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Why Choose Section */
.why-choose-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.why-choose-section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.why-choose-section h2 svg {
    color: #10b981;
}

.why-choose-section p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
}

/* Ideal For Section */
.ideal-for-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
}

.ideal-for-section h2 {
    font-size: 18px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ideal-list {
    list-style: none;
}

.ideal-list li {
    font-size: 15px;
    color: #4b5563;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.ideal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Services Section */
.services-section {
    background-color: #fff;
    padding: 20px 16px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-item svg {
    color: #6b7280;
}

.service-item a {
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.service-item a:hover {
    color: #10b981;
}

/* Reviews Section */
.reviews-section {
    background-color: #fff;
    padding: 24px 16px;
    margin-bottom: 16px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.rating-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.rating-number {
    font-size: 48px;
    font-weight: bold;
    color: #1f2937;
    line-height: 1;
    margin-bottom: 8px;
}

.stars-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 4px;
}

.stars svg {
    color: #fbbf24;
}

.rating-count {
    font-size: 14px;
    color: #6b7280;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    max-width: 150px;
}

.breakdown-item {
    font-size: 14px;
    color: #4b5563;
    white-space: nowrap;
}

.write-review-btn {
    width: 100%;
    background-color: #374151;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
}

.reviews-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #1f2937;
    cursor: pointer;
    max-width: 200px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #10b981;
    position: relative;
}

.reviewer-avatar::after {
    content: "✓";
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #10b981;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars svg {
    color: #fbbf24;
    width: 16px;
    height: 16px;
}

.review-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.reply-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 8px;
}

.reply-btn:hover {
    color: #1f2937;
}

.reply-btn svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background-color: #111827;
    padding: 48px 16px 24px;
    padding-bottom: calc(24px + 72px);
    color: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.footer-column ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    margin-top: 32px;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-copyright p {
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer {
        padding: 32px 16px 24px;
        padding-bottom: calc(24px + 72px);
    }
}

/* Floating Buy Button */
.floating-buy-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.floating-buy-btn.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.floating-buy-btn .add-to-cart-btn {
    width: 100%;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .product-title {
        font-size: 18px;
    }
    
    .price {
        font-size: 24px;
    }
    
    .highlights-title {
        font-size: 20px;
    }

    .reviews-header {
        flex-direction: column;
        gap: 16px;
    }

    .rating-breakdown {
        max-width: 100%;
        width: 100%;
    }
}

