/**
 * Product Detail Page Styles
 */

/* Breadcrumb */
.product-breadcrumb {
    padding: 20px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e8e8e8;
}

.product-breadcrumb .breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: #666;
}

.product-breadcrumb .breadcrumb a {
    color: #DC4D28;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb .breadcrumb a:hover {
    color: #b83d1f;
    text-decoration: underline;
}

/* Product Main Section */
.product-main {
    padding: 60px 0;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery__main {
    position: relative;
    margin-bottom: 20px;
}

.product-gallery__main-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-gallery__main-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-gallery__main-image > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.product-gallery__image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-gallery__badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.product-gallery__badge .badge-percent {
    display: inline-block;
    padding: 8px 16px;
    background: #dc4d28;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 77, 40, 0.3);
}

.product-gallery__thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.product-gallery__thumbnails::-webkit-scrollbar {
    height: 8px;
}

.product-gallery__thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.product-gallery__thumbnails::-webkit-scrollbar-thumb {
    background: #DC4D28;
    border-radius: 4px;
}

.product-gallery__thumbnails::-webkit-scrollbar-thumb:hover {
    background: #b83d1f;
}

.product-gallery__thumbnail {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-gallery__thumbnail:hover {
    border-color: #DC4D28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-gallery__thumbnail.active {
    border-color: #DC4D28;
    box-shadow: 0 0 0 3px rgba(220, 77, 40, 0.2);
}

.product-gallery__thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
}

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

.product-info__title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.product-info__meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.product-meta-item svg {
    flex-shrink: 0;
    color: #DC4D28;
}

.product-meta-item__label {
    font-weight: 600;
    color: #666;
}

.product-meta-item__value {
    color: #2c3e50;
}

.product-meta-item__value a {
    color: #DC4D28;
    text-decoration: none;
}

.product-meta-item__value a:hover {
    text-decoration: underline;
}

.product-meta-item__brand-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.product-meta-item--full {
    flex-wrap: wrap;
}

/* Product Pricing */
.product-info__pricing {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.product-info__pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #DC4D28 0%, #ff6b45 100%);
}

.product-price-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

/* Price Rows for VAT Display */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    transition: all 0.3s ease;
}

.price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.price-row:first-child {
    padding-top: 0;
}

.price-label {
    font-size: 15px;
    color: #666;
    font-weight: 600;
    min-width: 120px;
    display: flex;
    align-items: center;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.product-price--sale {
    color: #DC4D28;
    text-shadow: 0 1px 2px rgba(220, 77, 40, 0.1);
}

.product-price--regular {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
    font-weight: 700;
    opacity: 0.8;
}

.product-price--current {
    color: #2c3e50;
}

/* VAT Notice */
.vat-notice {
    display: flex;
    align-items: center;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(220, 77, 40, 0.08);
    border-left: 3px solid #DC4D28;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.vat-notice svg {
    color: #DC4D28;
    flex-shrink: 0;
}

.vat-notice span {
    line-height: 1.4;
}

/* Stock Status */
.product-info__stock {
    margin-bottom: 20px;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.stock-status--in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-status--in-stock svg {
    stroke: #155724;
}

.stock-status--out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

.stock-status--out-of-stock svg {
    stroke: #721c24;
}

/* Short Description */
.product-info__short-description {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #DC4D28;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Add to Cart Section */
.product-info__cart {
    margin-bottom: 30px;
}

.product-add-to-cart-form {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    width: 40px;
    height: 46px;
    border: none;
    background: white;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.quantity-btn:hover {
    background: #f8f9fa;
    color: #DC4D28;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn svg {
    width: 14px;
    height: 14px;
}

.quantity-input {
    width: 70px;
    height: 46px;
    border: none;
    border-left: 1px solid #e8e8e8;
    border-right: 1px solid #e8e8e8;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    outline: none;
    background: white;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    background: #dc4d28;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 77, 40, 0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 77, 40, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}

.product-out-of-stock-notice {
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    text-align: center;
}

.product-out-of-stock-notice p {
    margin: 0;
    font-size: 15px;
}

/* Contact Order Button */
.btn-contact-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    margin-top: 12px;
    background: white;
    color: #DC4D28;
    border: 2px solid #DC4D28;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact-order:hover {
    background: #DC4D28;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 77, 40, 0.3);
    text-decoration: none;
}

.btn-contact-order svg {
    transition: all 0.3s ease;
}

/* Product Description Section */
.product-description-section {
    padding: 40px 0;
    background: #ffffff;
}

.product-description-section__title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #DC4D28;
    position: relative;
}

.product-description-section__title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: #DC4D28;
}

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

.product-description-section__content p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.product-description-section__content p:last-child {
    margin-bottom: 0;
}

.product-description-section__content h2,
.product-description-section__content h3,
.product-description-section__content h4 {
    margin-top: 32px;
    margin-bottom: 16px;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

.product-description-section__content h2 {
    font-size: 24px;
    margin-top: 40px;
}

.product-description-section__content h3 {
    font-size: 20px;
}

.product-description-section__content h4 {
    font-size: 18px;
}

.product-description-section__content h2:first-child,
.product-description-section__content h3:first-child,
.product-description-section__content h4:first-child {
    margin-top: 0;
}

.product-description-section__content ul,
.product-description-section__content ol {
    padding-left: 25px;
    margin: 16px 0;
}

.product-description-section__content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.product-description-section__content strong {
    color: #2c3e50;
    font-weight: 600;
}

.product-description-section__content a {
    color: #DC4D28;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-description-section__content a:hover {
    color: #b83d1f;
    text-decoration: underline;
}

.product-description-section__content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 8px;
}

.product-description-section__content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: #f8f9fa;
    border-left: 4px solid #DC4D28;
    font-style: italic;
    color: #555;
}

.product-description-section__content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
}

.product-description-section__content table th,
.product-description-section__content table td {
    padding: 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.product-description-section__content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}


/* Related Products */
.product-related {
    padding: 60px 0;
    background: #f8f9fa;
}

.product-related .container {
    max-width: 1140px;
}

.related-products__title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 40px 0;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.related-products__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #DC4D28 0%, #ff6b45 100%);
    border-radius: 2px;
}

.related-products__slider {
    position: relative;
}

.related-products__slider .product-card {
    margin: 0 8px;
}

/* Slick Slider Arrows */
.related-products__slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-products__slider .slick-arrow:hover {
    background: #DC4D28;
    border-color: #DC4D28;
    box-shadow: 0 4px 12px rgba(220, 77, 40, 0.3);
}

.related-products__slider .slick-arrow::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #666;
    border-right: 2px solid #666;
}

.related-products__slider .slick-arrow:hover::before {
    border-color: white;
}

.related-products__slider .slick-prev {
    left: -22px;
}

.related-products__slider .slick-prev::before {
    transform: rotate(-135deg);
    margin-right: -3px;
}

.related-products__slider .slick-next {
    right: -22px;
}

.related-products__slider .slick-next::before {
    transform: rotate(45deg);
    margin-left: -3px;
}

.related-products__slider .slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.related-products__slider .slick-disabled:hover {
    background: white;
    border-color: #e8e8e8;
    box-shadow: none;
}

.related-products__slider .slick-disabled:hover::before {
    border-color: #666;
}

/* Responsive */
@media (max-width: 991px) {
    .product-gallery {
        position: static;
    }

    .product-info__title {
        font-size: 28px;
    }

    .product-price {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .product-main {
        padding: 40px 0;
    }

    .product-info__title {
        font-size: 24px;
    }

    .product-price {
        font-size: 24px;
    }

    .product-price--regular {
        font-size: 17px;
    }

    .product-add-to-cart-form {
        flex-direction: column;
    }

    .quantity-selector {
        justify-content: center;
    }

    .product-description-section {
        padding: 30px 0;
    }

    .product-description-section__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .product-description-section__content {
        font-size: 14px;
    }

    .product-description-section__content h2 {
        font-size: 20px;
        margin-top: 30px;
    }

    .product-description-section__content h3 {
        font-size: 18px;
    }

    .product-description-section__content h4 {
        font-size: 16px;
    }

    .related-products__title {
        font-size: 22px;
    }

    .related-products__slider .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .related-products__slider .slick-prev {
        left: -15px;
    }

    .related-products__slider .slick-next {
        right: -15px;
    }

    .related-products__slider .product-card {
        margin: 0 6px;
    }

    .product-gallery__thumbnails {
        gap: 8px;
    }

    .product-gallery__thumbnail {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }
}

/* Product Variations */
.product-info__variations {
    margin-bottom: 24px;
}

.variation-selector {
    margin-bottom: 20px;
}

.variation-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-option {
    padding: 8px 16px;
    border: 2px solid #e8e8e8;
    background: white;
    color: #666;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.variation-option:hover {
    border-color: #DC4D28;
    color: #DC4D28;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 77, 40, 0.2);
}

.variation-option.selected {
    background: #DC4D28;
    border-color: #DC4D28;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 77, 40, 0.3);
}

.variation-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
    color: #999;
    border-color: #e8e8e8;
}

.variation-option:disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #e8e8e8;
    color: #999;
}

.variation-selection-message {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 14px;
    text-align: center;
}

.btn-add-to-cart--variable:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-add-to-cart--variable:disabled:hover {
    transform: none;
    box-shadow: none;
    background: #ccc;
}

/* Debug variations (remove in production) */
#variation-debug {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #666;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

/* Variable product price styling */
.product-price--variable {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.product-price--variable .amount {
    color: #2c3e50;
}

/* Responsive variations */
@media (max-width: 767px) {
    .variation-options {
        gap: 6px;
    }

    .variation-option {
        padding: 6px 12px;
        font-size: 13px;
    }

    .product-price--variable {
        font-size: 24px;
    }

    .variation-selection-message {
        font-size: 13px;
        padding: 10px 12px;
    }
}
