/* Product Page Base Styles */
/* Updated: 2026-01-18 - Optimized button sizes */

/* ===== GLOBAL & RESET ===== */
body,
html,
.site,
.site-content,
.content-area,
.site-main,
#main,
#content,
.woocommerce,
.woocommerce-page {
    background: #151515 !important;
    background-color: #151515 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* ===== HIDE FLOATING BUY BUTTONS (Plugin interference) ===== */
body.single-product .floating-buy-btn,
body.single-product .quick-buy-btn,
body.single-product .sticky-add-to-cart,
body.single-product .xoo-wsc-basket,
body.single-product .wc-buy-now-btn,
body.single-product .buy-now-button,
body.single-product .floating-cart,
body.single-product [class*="floating-buy"],
body.single-product [class*="quick-buy"],
body.single-product [class*="sticky-buy"],
body.single-product [class*="buy-now-float"],
body.single-product [id*="floating"],
body.single-product div[style*="position: fixed"]:not(.header):not(.nav):not(.logo-banner):not(.main-nav):not([class]),
body.single-product div[style*="position: fixed"][style*="right"],
body.single-product div[style*="position: fixed"][style*="bottom"]:not(.main-nav):not(.logo-banner) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ===== PRODUCT PAGE CONTAINER ===== */
.product-page {
    padding: 40px 0 80px;
    min-height: 80vh;
    background: transparent;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

/* Background Image */
.product-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/tire-1757696909765-Photoroom.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -2;
    pointer-events: none;
}

.product-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
    pointer-events: none;
}

.product-page > .container {
    max-width: 1300px; /* Slightly constrained for better reading measure */
    margin: 0 auto;
    padding: 0 25px;
    width: 100%;
    box-sizing: border-box;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    margin-bottom: 25px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #888;
}
.breadcrumb a {
    color: #FFFF00;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: #fff;
}
.breadcrumb span {
    color: #ccc;
}

/* ===== PRODUCT DETAIL GRID ===== */
.product-detail {
    display: grid;
    grid-template-columns: 45% 55%; /* Fixed ratio for cleaner layout */
    gap: 50px;
    margin-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
    align-items: start; /* Essential for sticky image */
}

/* ===== IMAGES (Sticky on Desktop) ===== */
.product-images {
    position: sticky;
    top: 130px; /* Space for header */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image {
    width: 100%;
    height: auto;
    min-height: 400px;
    max-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: #151515;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail.active {
    opacity: 1;
    border-color: #FFFF00;
}

.thumbnail:hover {
    opacity: 1;
    border-color: rgba(255, 255, 0, 0.5);
}

.thumbnail img {
    max-width: 100%;
    max-height: 100%;
    padding: 5px;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 0 10px;
}

.product-brand {
    color: #FFFF00;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 0, 0.1);
    border-radius: 4px;
}

.product-title {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Meta Data */
.product-meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-meta span {
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-meta strong {
    color: #eee;
    font-weight: 600;
}

/* Price */
.product-price-section {
    margin-bottom: 25px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.price {
    font-size: 42px;
    font-weight: 900;
    color: #FFFF00;
    line-height: 1;
    letter-spacing: -1px;
}

.regular-price {
    font-size: 20px;
    color: #666;
    text-decoration: line-through;
    margin-bottom: 5px;
    font-weight: 500;
}

/* Stock Status */
.stock-status {
    margin-bottom: 25px;
    font-size: 15px;
}

.in-stock {
    color: #4CAF50;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.in-stock i {
    font-size: 12px;
}

.out-of-stock {
    color: #f44336;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(244, 67, 54, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

/* Short Description */
.short-description {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: #ddd;
    line-height: 1.7;
    font-size: 15px;
    border-left: 3px solid #FFFF00;
}

/* Actions Container */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    background: #151515;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Quantity */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-selector label {
    color: #aaa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 6px;
    padding: 2px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    color: #FFFF00;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 0, 0.1);
    color: #fff;
}

.quantity-display {
    width: 40px;
    height: 32px;
    background: transparent;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #333;
    border-right: 1px solid #333;
}

/* Buttons */
.buttons-row {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 400px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 14px;
}

.btn-add-cart {
    background: transparent;
    color: #FFFF00;
    border: 2px solid #FFFF00;
}

.btn-add-cart:hover {
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
    transform: translateY(-2px);
}

.btn-buy-now {
    background: #FFFF00;
    color: #000;
    border: 2px solid #FFFF00;
}

.btn-buy-now:hover {
    background: #ffed4e;
    border-color: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 0, 0.3);
}

/* Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature i {
    font-size: 24px;
    color: #FFFF00;
    background: rgba(255, 255, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.feature:hover i {
    transform: rotateY(180deg);
    background: #FFFF00;
    color: #000;
}

.feature span {
    display: block;
    color: #ccc;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
}

/* Description Section */
.product-description-section {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 40px;
}

.product-description-section h2 {
    color: #FFFF00;
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.description-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 16px;
}

/* Wheel Alignment Add-on */
.alignment-addon-section {
    background: #151515;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.alignment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #FFFF00;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.alignment-description {
    color: #999;
    font-size: 13px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.alignment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alignment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #222;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.alignment-option:hover {
    border-color: #555;
    background: #2a2a2a;
}

.alignment-option input[type="radio"]:checked + .option-radio {
    border-color: #FFFF00;
    background: #FFFF00;
}

.alignment-option input[type="radio"]:checked ~ .option-content .option-title {
    color: #FFFF00;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #666;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.option-title {
    color: #ddd;
    font-size: 14px;
    font-weight: 600;
}

.option-price {
    color: #4CAF50;
    font-size: 15px;
    font-weight: 700;
}
