/* Product Page Specific Styles */

.nav-buy-btn {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.breadcrumb {
    padding: 1rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-hero {
    padding: 2rem 0 4rem;
    background: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    background: var(--background);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1rem;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ESP32 Bottle Cap Visual */
.product-image-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.esp32-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.bottle-cap {
    width: 200px;
    height: 250px;
    position: relative;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.cap-top {
    width: 200px;
    height: 80px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 100px 100px 20px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.button-indicator {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.brand-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    position: absolute;
    bottom: 10px;
    letter-spacing: 1px;
}

.cap-body {
    width: 180px;
    height: 100px;
    background: linear-gradient(180deg, #1976D2 0%, #1565C0 100%);
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 10px 0;
}

.thread {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.chip-visible {
    width: 140px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 8px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
}

.chip-label {
    color: #4CAF50;
    font-family: monospace;
    font-size: 0.9rem;
    font-weight: bold;
}

.bluetooth-indicator {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Thumbnail Images */
.thumbnail-images {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    flex: 1;
    background: var(--background);
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumb-cap {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
}

.thumb-side {
    width: 30px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 4px;
}

.thumb-tech {
    width: 45px;
    height: 30px;
    background: #1a1a1a;
    border-radius: 4px;
}

/* Product Info */
.product-info {
    padding: 1rem 0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.reviews {
    color: var(--text-light);
    text-decoration: underline;
    cursor: pointer;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-current {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-original {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-badge {
    background: var(--success);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-features-list {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
}

.check-icon {
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--background);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--background);
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

#quantity {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Color Selector */
.color-selector {
    margin-bottom: 2rem;
}

.color-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
}

.color-option:hover,
.color-option.active {
    border-color: var(--text-dark);
    transform: scale(1.1);
}

/* Purchase Button */
.btn-buy-now {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 2rem;
}

.btn-buy-now:hover {
    background: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(33, 150, 243, 0.3);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.6rem 1rem;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
    opacity: 0.7;
}

.payment-methods img {
    height: 26px;
}

/* Product Details Tabs */
.product-details {
    padding: 4rem 0;
    background: var(--background);
}

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
}

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

.tab-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tab-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.tab-content ul,
.tab-content ol {
    margin-left: 2rem;
    line-height: 2;
}

.tab-content li {
    margin-bottom: 0.5rem;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--background);
}

.specs-table td {
    padding: 1rem;
}

.specs-table td:first-child {
    width: 40%;
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--background);
}

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

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.stars-large {
    color: #FFC107;
    font-size: 2rem;
    margin: 0.5rem 0;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-bar span:first-child {
    width: 50px;
    font-weight: 600;
}

.bar {
    flex: 1;
    height: 10px;
    background: var(--background);
    border-radius: 5px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #FFC107;
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    color: var(--text-light);
}

/* Individual Reviews */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--background);
}

.review:last-child {
    border-bottom: none;
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verified {
    color: var(--success);
    font-size: 0.9rem;
}

.review-stars {
    color: #FFC107;
}

.review-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Related Products */
.related-products {
    padding: 4rem 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.card-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.accessory-icon {
    font-size: 4rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-small {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: #1976D2;
}

/* Responsive */
@media (max-width: 968px) {
    .breadcrumb {
        font-size: 0.85rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: relative;
        top: 0;
    }

    .main-image {
        min-height: 350px;
        padding: 1.5rem;
    }

    .bottle-cap {
        width: 150px;
        height: 190px;
    }

    .cap-top {
        width: 150px;
        height: 60px;
    }

    .button-indicator {
        width: 30px;
        height: 30px;
        top: 15px;
    }

    .cap-body {
        width: 135px;
        height: 75px;
    }

    .chip-visible {
        width: 105px;
        height: 45px;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-rating {
        flex-wrap: wrap;
    }

    .price-current {
        font-size: 2rem;
    }

    .price-original {
        font-size: 1.25rem;
    }

    .purchase-buttons {
        flex-direction: column;
    }

    .btn-buy-now,
    .btn-add-cart {
        width: 100%;
    }

    .trust-badges {
        flex-wrap: wrap;
    }

    .badge {
        flex: 1 1 45%;
        text-align: center;
        font-size: 0.85rem;
    }

    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }

    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .tab-content h2 {
        font-size: 1.5rem;
    }

    .tab-content h3 {
        font-size: 1.25rem;
    }

    .specs-table td {
        padding: 0.8rem 0.5rem;
        font-size: 0.9rem;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .product-hero {
        padding: 1rem 0 3rem;
    }

    .main-image {
        min-height: 300px;
        padding: 1rem;
    }

    .bottle-cap {
        width: 120px;
        height: 150px;
    }

    .cap-top {
        width: 120px;
        height: 50px;
    }

    .button-indicator {
        width: 25px;
        height: 25px;
        top: 12px;
    }

    .brand-text {
        font-size: 0.75rem;
    }

    .cap-body {
        width: 108px;
        height: 60px;
    }

    .thread {
        height: 6px;
    }

    .chip-visible {
        width: 85px;
        height: 35px;
    }

    .chip-label {
        font-size: 0.75rem;
    }

    .bluetooth-indicator {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .thumbnail-images {
        gap: 0.5rem;
    }

    .thumbnail {
        height: 60px;
        padding: 0.5rem;
    }

    .thumb-cap {
        width: 30px;
        height: 30px;
    }

    .thumb-side {
        width: 20px;
        height: 35px;
    }

    .thumb-tech {
        width: 30px;
        height: 20px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-rating {
        font-size: 0.9rem;
    }

    .stars {
        font-size: 1rem;
    }

    .price-current {
        font-size: 1.75rem;
    }

    .price-original {
        font-size: 1.1rem;
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }

    .product-description {
        font-size: 1rem;
    }

    .product-features-list {
        padding: 1rem;
    }

    .feature-item {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .color-selector label {
        font-size: 0.95rem;
    }

    .color-option {
        width: 45px;
        height: 45px;
    }

    .btn-buy-now {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .btn-add-cart {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .trust-badges {
        gap: 0.5rem;
    }

    .badge {
        flex: 1 1 100%;
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .payment-methods {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .payment-methods img {
        height: 22px;
    }

    .product-details {
        padding: 3rem 0;
    }

    .tabs {
        border-bottom: 1px solid #ddd;
    }

    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .tab-content h2 {
        font-size: 1.35rem;
    }

    .tab-content h3 {
        font-size: 1.15rem;
        margin: 1.5rem 0 0.8rem;
    }

    .tab-content ul,
    .tab-content ol {
        margin-left: 1.25rem;
        font-size: 0.95rem;
    }

    .specs-table td {
        padding: 0.6rem 0.25rem;
        font-size: 0.85rem;
    }

    .specs-table td:first-child {
        width: 35%;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .stars-large {
        font-size: 1.5rem;
    }

    .rating-breakdown {
        gap: 0.4rem;
    }

    .rating-bar {
        font-size: 0.9rem;
    }

    .rating-bar span:first-child {
        width: 40px;
        font-size: 0.85rem;
    }

    .bar {
        height: 8px;
    }

    .rating-bar span:last-child {
        width: 30px;
        font-size: 0.85rem;
    }

    .review {
        padding-bottom: 1.5rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .reviewer-info {
        font-size: 0.95rem;
    }

    .verified {
        font-size: 0.8rem;
    }

    .review-title {
        font-size: 1rem;
    }

    .review-text {
        font-size: 0.95rem;
    }

    .related-products {
        padding: 3rem 0;
    }

    .product-card {
        padding: 1.5rem;
    }

    .card-image {
        height: 100px;
    }

    .accessory-icon {
        font-size: 3rem;
    }

    .product-card h3 {
        font-size: 1.1rem;
    }

    .card-price {
        font-size: 1.3rem;
    }
}
