/* Ensure Font Awesome icons display properly */
.fas, .far, .fab {
    font-family: 'Font Awesome 6 Free' !important;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.fas {
    font-weight: 900 !important;
}

.far {
    font-weight: 400 !important;
}

.price-options-container {
    max-width: 450px;
}

.price-option-label {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    will-change: transform, box-shadow;
}

.price-option-label:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #2b4174 !important;
}

.price-radio {
    width: 18px;
    height: 18px;
    accent-color: #2b4174;
    transition: all 0.2s ease;
}

.option-text {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.option-price {
    font-size: 1.1rem;
    min-width: 80px;
    text-align: right;
    font-weight: 700;
    transition: color 0.3s ease;
}

.option-selected-indicator {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Price display animations */
#dynamic-price {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.8rem;
    font-weight: 700;
    color: #2b4174;
}

/* Only override what's necessary - let style.css handle the layout */
.gallery_btn_img_list.active {
    border-color: #fc7c7c;
}

/* Main product image */
#main-product-image {
    max-height: 600px;
    object-fit: contain;
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.gallery_img_list.active {
    border: none;
    outline: none;
}

.gallery_img_list.zoomed {
    cursor: zoom-out;
}

/* Full screen image modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: zoom-out;
}

.image-modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
}


/* Improved button styling */
.add_to_cart {
    background: linear-gradient(135deg, #2b4174 0%, #1a2a52 100%);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(43, 65, 116, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    height: auto;
}

.add_to_cart:hover, .add_to_cart:focus {
    background: linear-gradient(135deg, #1a2a52 0%, #0f1a3a 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(43, 65, 116, 0.4);
    transform: translateY(-2px);
}

.add_to_cart:active {
    background: linear-gradient(135deg, #0f1a3a 0%, #0a1529 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(43, 65, 116, 0.3);
    transform: translateY(0);
}

/* Buy Now button styling */
.buy_now_btn {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    outline: none;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    line-height: 1.2;
    height: auto;
}

.buy_now_btn:hover, .buy_now_btn:focus {
    background: linear-gradient(135deg, #c2185b 0%, #ad1457 100%) !important;
    color: #fff !important;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    transform: translateY(-2px);
}

.buy_now_btn:active {
    background: linear-gradient(135deg, #ad1457 0%, #880e4f 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
    transform: translateY(0);
}

/* Responsive adjustments for buttons */
@media (max-width: 576px) {
    .product_pro_button {
        gap: 10px;
    }

    .add_to_cart,
    .buy_now_btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 0;
        margin-top: 10px;
        flex: 1 1 auto;
    }
}

/* Product title styling */
.product__title {
    color: #2b4174;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Breadcrumb styling */
.product_breadcrumb {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: #2b4174;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #1a2a52;
    text-decoration: underline;
}

/* Focus states for accessibility */
.price-radio:focus {
    outline: 2px solid #2b4174;
    outline-offset: 2px;
}

/* Variation Image styles */
.variation-option-image {
    transition: transform 0.2s ease;
}

.variation-option-label:hover .variation-option-image {
    transform: scale(1.1);
}

/* Ensure variation container has proper spacing */
.variations_section {
    margin-bottom: 30px;
}

/* Related Products Card Styles - matching product list */
.product-card {
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: visible;
    position: relative;
    background: #fff;
    height: 100%;
    margin-bottom: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 5;
}

.product-card .product_thumb {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card .product_thumb img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-card:hover .product_thumb img {
    transform: scale(1.05);
}

/* Product Actions for Related Products */
.product-card .product-actions {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Product Badges */
.product-badges .badge {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: block;
}

.variation-options-container {
    margin-top: 10px;
}

.gallery_btn_img_list:focus {
    outline: 2px solid #2b4174;
    outline-offset: 2px;
}

/* Quantity control styling - Complete replacement */
.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-right: 15px;
    background: #fff;
    height: 46px;
}

.qty-decrease,
.qty-increase {
    width: 40px;
    height: 44px;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qty-decrease:hover,
.qty-increase:hover {
    background: #2b4174;
    color: #fff;
}

.qty-decrease:active,
.qty-increase:active {
    background: #1a2d52;
}

.qty-decrease {
    border-radius: 4px 0 0 4px;
    border-right: 1px solid #e0e0e0;
}

.qty-increase {
    border-radius: 0 4px 4px 0;
    border-left: 1px solid #e0e0e0;
}

.qty-input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    padding: 0;
}

.qty-input:focus {
    outline: none;
    background: #f8f9fa;
}

/* Remove spinner arrows from number input */
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* Product Variation Styles */
.variation-option-label {
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    user-select: none;
    display: inline-flex !important;
    align-items: center !important;
    min-width: 120px;
    justify-content: flex-start;
}

.variation-option-label:hover {
    background-color: #f8f9fa !important;
    border-color: #2b4174 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.variation-option-label.selected {
    background: linear-gradient(135deg, #2b4174 0%, #1a2a52 100%) !important;
    color: white !important;
    border-color: #2b4174 !important;
    box-shadow: 0 4px 12px rgba(43, 65, 116, 0.3);
    transform: scale(1.02);
}

.variation-option-label.selected .option-name {
    color: white !important;
}

.variation-option-label.selected .price-modifier {
    color: #fff !important;
}

.variation-option-label.selected .variation-option-image {
    border: 2px solid #fff;
}

.variation-radio {
    width: 20px;
    height: 20px;
    accent-color: #2b4174;
    cursor: pointer;
    position: relative;
    margin-right: 8px !important;
    flex-shrink: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    outline: none;
    transition: all 0.2s ease;
}

.variation-radio:checked {
    background-color: #2b4174;
    border-color: #2b4174;
    position: relative;
}

.variation-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.variation-radio:checked {
    accent-color: #2b4174;
}

.variation-radio:hover {
    transform: scale(1.1);
}

.variation-radio:focus {
    outline: 2px solid #2b4174;
    outline-offset: 2px;
}

.variations_section {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    margin-top: 20px;
}

/* Often Paired With Section */
.paired-products-section {
    background-color: #fafafa;
    padding-top: 40px;
    padding-bottom: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.paired-products-section .section_title h2 {
    color: #2b4174;
}

.paired-products-section .section_title p {
    color: #666;
    font-size: 14px;
}

.paired-product-display-text {
    font-style: italic;
    color: #888;
    min-height: 20px;
}

.paired-products-carousel .product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paired-products-carousel .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .paired-products-section {
        padding-top: 30px;
        padding-bottom: 15px;
    }

    .paired-products-section .section_title h2 {
        font-size: 1.5rem;
    }
}
