/**
 * Single Product Page Styles
 * Custom styles for WooCommerce single product page
 */

/* Product Gallery Styles */
.swiper-images-product {
    border-radius: 1rem;
    overflow: hidden;
}

.swiper-images-product .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Thumbnail Gallery */
.product-thumbnails li {
    transition: all 0.3s ease;
}

.product-thumbnails li.active {
    border-color: #000 !important;
}

.product-thumbnails li:hover {
    border-color: #666;
}

/* Product Tabs */
#tabs-section-product {
    position: sticky;
    top: 0;
    z-index: 990;
    background: white;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

#tabs-section-product li {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

#tabs-section-product li:hover {
    color: #000;
}

#tabs-section-product li.active {
    color: #000 !important;
    font-weight: 500;
}

#tabs-section-product li span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color, #007cba);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#tabs-section-product li.active span {
    transform: scaleX(1);
}


/* Product Options Table */
#options-product ul li {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

#options-product ul li:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0.6875rem 0.9375rem;
}

.quantity-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: #000;
    color: #fff;
}

.quantity-controls input {
    width: 3.1875rem;
    height: 1.5rem;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

/* Add to Cart Button */
.single_add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0.5rem;
    padding: 0.8125rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.single_add_to_cart_button:hover {
    background: transparent;
    color: #000;
}

.single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Size and Color Selection */
.size-options,
.color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-options input,
.color-options input {
    display: none;
}

.size-options label {
    display: block;
    border: 1px solid #e5e5e5;
    border-radius: 0.5rem;
    padding: 0.5625rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.size-options input:checked + label {
    color: var(--primary-color, #007cba);
    border-color: var(--primary-color, #007cba);
}

.color-options label {
    display: block;
    width: 3rem;
    height: 3rem;
    border: 1px solid transparent;
    border-radius: 0.3125rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-options input:checked + label {
    border-color: #000;
}

/* Product Features */
.product-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid #f0f0f0;
    border-radius: 1rem;
    padding: 1.375rem 1rem;
}

.product-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #000;
}

@media (min-width: 1280px) {
    .product-features {
        padding: 1.375rem 1.25rem;
    }
    
    .product-features .feature-item {
        gap: 1rem;
        font-size: 0.875rem;
    }
}

/* Related Products Carousel */
.swiper-products {
    overflow: visible;
}

@media (max-width: 639px) {
    .swiper-products {
        overflow: visible !important;
    }
}

/* Comments Section */
.comment-form {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.comment-form .form-row {
    margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #f8f9fa;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    outline: none;
    transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    background: transparent;
    border-color: #28a745;
}

.comment-form textarea {
    height: 9.625rem;
    resize: none;
    padding-top: 1rem;
}

.comment-form .form-submit {
    margin-top: 0.5rem;
}

.comment-form .submit {
    background: #000;
    color: #fff;
    border: 1px solid #000;
    border-radius: 0.5rem;
    padding: 0.625rem 1.3125rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    background: transparent;
    color: #000;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment-item {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}

@media (min-width: 768px) {
    .comment-item {
        padding: 1.5rem 2rem;
    }
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comment-author img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.comment-author-info h4 {
    font-size: 0.75rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.25rem;
}

.comment-author-info span {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-rating i {
    color: #ffc107;
}

.comment-rating span {
    background: #f0f0f0;
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: #000;
}

.comment-content {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .comment-content {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 1.5rem;
    }
}

.comment-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.comment-date {
    font-size: 0.875rem;
    font-weight: normal;
    color: rgba(0, 0, 0, 0.6);
}

.comment-separator {
    width: 0.375rem;
    height: 1px;
    background: #e5e5e5;
}

.comment-reply {
    font-size: 0.875rem;
    font-weight: 500;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-reply:hover {
    color: var(--primary-color, #007cba);
}

/* Responsive Design */
@media (max-width: 767px) {
    .comment-form {
        margin-bottom: 1.5rem;
    }
    
    .comment-form .submit {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 24rem;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background: #10b981;
    color: #fff;
}

.notification.error {
    background: #ef4444;
    color: #fff;
}

.notification.info {
    background: #3b82f6;
    color: #fff;
}

/* Desktop Add to Cart Form Styling */
.sevix-desktop-add-to-cart-wrapper .cart {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sevix-desktop-add-to-cart-wrapper .variations {
    width: 100%;
    margin-bottom: 1rem;
    margin-left: var(--dynamic-margin, 0);
}

.sevix-desktop-add-to-cart-wrapper .variations td {
    padding: 0.5rem 0;
    border: none;
    vertical-align: middle;
}

.sevix-desktop-add-to-cart-wrapper .variations .label {
    font-weight: 500;
    color: #1f2937;
    padding-left: 1rem;
    min-width: 80px;
}

.sevix-desktop-add-to-cart-wrapper .variations select {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    color: #374151;
    min-width: 120px;
}

.sevix-desktop-add-to-cart-wrapper .quantity {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.6875rem 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    flex-grow: 0;
    flex-shrink: 0;
    margin-left: auto;
}

.sevix-desktop-add-to-cart-wrapper .quantity input[type="number"] {
    width: 3.1875rem;
    height: 1.5rem;
    text-align: center;
    outline: 0;
    font-size: 1rem;
    font-weight: normal;
    letter-spacing: -0.02em;
    color: #6b7280;
    direction: ltr;
    border: none;
    background: transparent;
}

.sevix-desktop-add-to-cart-wrapper .quantity .qty-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.25rem;
    background: #f3f4f6;
    font-size: 1rem;
    line-height: 1;
    color: #6b7280;
    transition: all 0.3s ease;
    border: none;
}

.sevix-desktop-add-to-cart-wrapper .quantity .qty-btn:hover {
    background: #000;
    color: #fff;
}

.sevix-desktop-add-to-cart-wrapper .single_add_to_cart_button {
    flex-grow: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: white;
    background: black;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.8125rem 1.125rem;
    border: 1px solid black;
    cursor: pointer;
}

.sevix-desktop-add-to-cart-wrapper .single_add_to_cart_button:hover {
    background: transparent;
    color: black;
}

.sevix-desktop-add-to-cart-wrapper .single_add_to_cart_button:before {
    content: "\e90c";
    font-family: "icomoon";
    font-size: 1rem;
    line-height: 1;
}

.sevix-desktop-add-to-cart-wrapper .single_add_to_cart_button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.sevix-desktop-add-to-cart-wrapper .single_add_to_cart_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
