/* Merchandise Single Product Page Styles */

.merchandise-single-product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue Condensed', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #fff;
}

/* Breadcrumb */
.merchandise-product-breadcrumb {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 0.9rem;
}

.merchandise-product-breadcrumb a {
    color: #003c71;
    text-decoration: none;
    transition: color 0.3s ease;
}

.merchandise-product-breadcrumb a:hover {
    color: #0f2f4f;
    text-decoration: underline;
}

.merchandise-product-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

.merchandise-product-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* Product Main Section */
.product-main-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Images */
.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#main-product-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

#main-product-image:hover {
    transform: scale(1.02);
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.sale-badge,
.featured-badge,
.out-of-stock-badge,
.low-stock-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.sale-badge {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: white;
}

.featured-badge {
    background: linear-gradient(135deg, #ffa500, #ffb347);
    color: white;
}

.out-of-stock-badge {
    background: linear-gradient(135deg, #6c757d, #868e96);
    color: white;
}

.low-stock-badge {
    background: linear-gradient(135deg, #ffc107, #ffcd39);
    color: #212529;
}

/* Zoom Icon */
.zoom-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.zoom-icon:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

.zoom-icon svg {
    color: #003c71;
}

/* Thumbnail Images */
.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.thumbnail-btn {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-btn.active {
    border-color: #003c71;
    box-shadow: 0 0 0 2px rgba(22, 65, 112, 0.2);
}

.thumbnail-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-btn:hover {
    border-color: #003c71;
    transform: translateY(-2px);
}

/* Product Information */
.product-info-section {
    padding: 20px 0;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.product-sku {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.product-sku span {
    font-weight: 600;
    color: #495057;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars .star-rating {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-count {
    color: #003c71;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.rating-count:hover {
    color: #0f2f4f;
    text-decoration: underline;
}

/* Price */
.product-price {
    margin-bottom: 25px;
}

.product-price .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: #003c71;
}

.product-price .price del {
    color: #6c757d;
    font-size: 1.6rem;
    margin-right: 10px;
}

.product-price .price ins {
    text-decoration: none;
}

/* Product Excerpt */
.product-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #003c71;
}

.product-excerpt p {
    margin-bottom: 15px;
}

.product-excerpt p:last-child {
    margin-bottom: 0;
}

/* Purchase Section */
.product-purchase-section {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

/* Quantity and Add to Cart */
.cart .quantity {
    display: inline-block;
    margin-right: 15px;
}

.cart .quantity input {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Add to Cart Button - Override all WooCommerce styles */
.merchandise-single-product .cart .single_add_to_cart_button,
.single-product-merchandise .cart .single_add_to_cart_button,
.cart .single_add_to_cart_button,
.single_add_to_cart_button,
button.single_add_to_cart_button {
    background: linear-gradient(135deg, #003c71, #003c71) !important;
    background-color: #003c71 !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(12, 59, 111, 0.3) !important;
}

.merchandise-single-product .cart .single_add_to_cart_button:hover,
.single-product-merchandise .cart .single_add_to_cart_button:hover,
.cart .single_add_to_cart_button:hover,
.single_add_to_cart_button:hover,
button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #003c71, #003c71) !important;
    background-color: #003c71 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(12, 59, 111, 0.4) !important;
}

/* View Cart link after adding to cart */
.cart .added_to_cart,
a.added_to_cart {
    display: inline-block;
    margin-left: 15px;
    color: #004071;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: underline;
    vertical-align: middle;
    line-height: 50px;
}

.cart .added_to_cart:hover,
a.added_to_cart:hover {
    color: #00a77e;
}

/* Variations */
.variations {
    margin-bottom: 20px;
}

.variations tr {
    border: none;
}

.variations .label {
    font-weight: 600;
    color: #495057;
    padding: 10px 0;
}

.variations .value select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

/* Additional Info */
.product-additional-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #495057;
}

.stock-status {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.stock-status.instock {
    background: #d4edda;
    color: #155724;
}

.stock-status.outofstock {
    background: #f8d7da;
    color: #721c24;
}


/* Product Details Tabs - Hidden for now */
.product-details-section {
    display: none;
    margin-bottom: 60px;
}

.product-tabs {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tab-headers {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-header {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-header.active {
    color: #003c71;
    background: white;
}

.tab-header.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #003c71, #1a5490);
}

.tab-header:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.tab-contents {
    min-height: 300px;
}

.tab-content {
    display: none;
    padding: 0;
}

.tab-content.active {
    display: block;
}

.tab-inner {
    padding: 40px;
}

/* Specifications Table */
.specifications-table {
    display: grid;
    gap: 1px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
}

.spec-label,
.spec-value {
    padding: 15px 20px;
}

.spec-label {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.spec-value {
    color: #212529;
}

/* Shipping Info */
.shipping-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #003c71;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.info-section h4 svg {
    color: #003c71;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: #495057;
}

.info-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Related Products */
.related-products-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #003c71, #1a5490);
    border-radius: 2px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.related-product-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.12);
}

.related-product-image {
    position: relative;
    overflow: hidden;
}

.related-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-product-item:hover .related-product-image img {
    transform: scale(1.05);
}

.sale-badge-small {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.related-product-info {
    padding: 20px;
}

.related-product-title a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-title a:hover {
    color: #003c71;
}

.related-product-price {
    margin: 10px 0;
    font-weight: 700;
    color: #003c71;
    font-size: 1.1rem;
}

.related-product-rating {
    font-size: 0.9rem;
}

/* Recently Viewed */
.recently-viewed-section {
    margin-bottom: 60px;
}

.recently-viewed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Image Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.9);
}

.zoom-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.zoom-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.zoom-close:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.zoom-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.zoom-prev,
.zoom-next {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    pointer-events: all;
}

.zoom-prev:hover,
.zoom-next:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-main-section {
        gap: 40px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 992px) {
    .product-main-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .shipping-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        flex: 1 1 calc(50% - 1px);
    }
}

@media (max-width: 768px) {
    .merchandise-single-product {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price .price {
        font-size: 1.8rem;
    }
    
    .tab-header {
        flex: 1 1 100%;
        padding: 15px;
    }
    
    .tab-inner {
        padding: 25px;
    }
    
    .social-buttons {
        justify-content: center;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .product-main-section {
        gap: 20px;
    }
    
    .thumbnail-images {
        gap: 5px;
    }
    
    .thumbnail-btn {
        flex: 0 0 60px;
        height: 60px;
    }
    
    .specifications-table {
        display: block;
    }
    
    .spec-row {
        display: block;
        margin-bottom: 1px;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}