/* Single Product Page Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 80px;
    background-attachment: fixed;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header .page-title {
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb-custom {
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
}

.breadcrumb-custom a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.9;
}

.breadcrumb-custom a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb-custom span {
    color: #fff;
    opacity: 1;
}

/* Breadcrumb */
.product-breadcrumb {
    font-size: 14px;
    color: #666;
}

.product-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.product-breadcrumb a:hover {
    color: #333;
}

.product-breadcrumb span {
    color: #333;
    font-weight: 600;
}

/* Product Images */
.main-product-image {
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #f8f9fa;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: zoom-in;
}

.main-product-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

/* Zoom effect using CSS ::after */
.main-product-image::after {
    display: var(--zoom-display, none);
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: var(--zoom-url);
    background-size: 200%;
    background-position: var(--zoom-x, 0%) var(--zoom-y, 0%);
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10;
}

.product-gallery {
    margin-top: 15px;
}

.gallery-thumb {
    border: 2px solid #e5e5e5;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    height: 100px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #333;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Info */
.product-info-section {
    padding-left: 30px;
}

.product-single-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Star Rating */
.product-rating-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating-display {
    display: flex;
    gap: 3px;
}

.star-rating-display i {
    color: #ffc107;
    font-size: 16px;
}

.star-rating-display i.far {
    color: #ddd;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.product-single-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.product-single-price del {
    font-size: 18px;
    color: #999;
    margin-right: 10px;
    font-weight: 400;
}

.product-single-price ins {
    text-decoration: none;
    color: #333;
}

/* Availability */
.product-availability {
    font-size: 14px;
}

.product-availability .in-stock {
    color: #28a745;
    font-weight: 600;
}

.product-availability .out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.product-short-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

/* Variable Product Variations */
.variations .variation-item {
    margin-bottom: 20px;
}

.variations .variation-item label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.variations .variation-select,
.variations .form-select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    font-size: 14px;
    color: #666;
    transition: border-color 0.3s;
}

.variations .variation-select:focus,
.variations .form-select:focus {
    outline: none;
    border-color: #333;
}

/* Validation Error Styles */
.variation-error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.variation-error-message i {
    margin-right: 8px;
}

.variations .variation-select.error-field {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.variations .variation-select.error-field:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.required {
    color: #dc3545;
}

/* Size Guide Link */
.size-guide-link-wrapper {
    margin-top: 10px;
}

.size-guide-trigger {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.size-guide-trigger:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Price Display */
.price-display {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.single_variation_wrap {
    margin-top: 10px;
}

.single_variation {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.single_variation .price {
    color: #333;
}

.single_variation .price del {
    font-size: 18px;
    color: #999;
    margin-right: 10px;
    font-weight: 400;
}

.single_variation .price ins {
    text-decoration: none;
    color: #333;
}

/* Quantity Row */
.product-quantity-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.product-quantity-row label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0;
    min-width: 50px;
}

.quantity-controls {
    display: flex;
    border: 1px solid #ddd;
}

.qty-btn {
    width: 40px;
    height: 48px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    color: #666;
}

.qty-btn:hover {
    background: #e9ecef;
    color: #333;
}

.qty-input {
    width: 80px;
    height: 48px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 16px;
    font-weight: 600;
}

.qty-input:focus {
    outline: none;
}

/* Action Buttons */
.product-actions-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 20px;
}

.btn-add-to-cart-main {
    flex: 1;
    padding: 15px 30px;
    background: #333;
    color: #fff;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-add-to-cart-main:hover {
    background: #000;
}

.btn-add-to-cart-main:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-icon-action {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-icon-action:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #333;
}

/* Social Share */
.product-social-share {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.social-share-icons {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
}

.social-icon.facebook {
    color: #3b5998;
}

.social-icon.twitter {
    color: #1da1f2;
}

.social-icon.email {
    color: #dd4b39;
}

.social-icon.linkedin {
    color: #0077b5;
}

.social-icon.pinterest {
    color: #bd081c;
}

.social-icon:hover {
    background: #f8f9fa;
    border-color: #333;
}

.share-count {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #ddd;
}

/* Product Tabs */
.product-tabs {
    border-bottom: 2px solid #ddd;
}

.product-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 15px 25px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: -2px;
}

.product-tabs .nav-link:hover {
    color: #333;
    background: transparent;
}

.product-tabs .nav-link.active {
    color: #fff;
    background: #f5a623;
    border-bottom: 2px solid #f5a623;
}

.tab-content {
    padding: 30px 0;
}

.product-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.product-description-content h5 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-description-content p {
    margin-bottom: 15px;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Size Guide Modal */
.size-guide-table {
    margin-top: 20px;
}

.size-guide-table th,
.size-guide-table td {
    text-align: center;
    padding: 12px;
    font-size: 14px;
}

.size-guide-table thead th {
    background: #333;
    color: #fff;
    font-weight: 600;
}

.measuring-tips {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
}

.measuring-tips h6 {
    color: #333;
    font-weight: 600;
}

/* Lightbox Styles */
.product-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-lightbox-overlay.active {
    display: flex;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-image-wrapper {
    position: relative;
    overflow: hidden;
}

.lightbox-main-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 991px) {
    .product-info-section {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-single-title {
        font-size: 20px;
    }
    
    .product-single-price {
        font-size: 20px;
    }
    
    /* Disable zoom on tablet and mobile */
    .main-product-image::after {
        display: none !important;
    }
    
    .main-product-image {
        cursor: default;
    }
    
    .page-header .page-title {
        font-size: 36px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
}

@media (max-width: 768px) {
    .product-quantity-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-actions-row {
        flex-wrap: wrap;
    }
    
    .btn-add-to-cart-main {
        width: 100%;
    }
    
    .product-tabs .nav-link {
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .social-share-icons {
        flex-direction: row;
        max-width: none;
    }
    
    .main-product-image {
        max-height: 400px;
    }
    
    .page-header .page-title {
        font-size: 28px;
        letter-spacing: 2px;
    }
    
    .page-header {
        padding: 80px 0 50px;
        background-attachment: scroll !important;
    }
    
    .breadcrumb-custom {
        font-size: 13px;
    }
}