/**
 * Custom WooCommerce Product Template Styles
 * Place in: assets/style.css
 */

/* Reset and Container */
.custom-product-wrapper {
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.custom-product-container {
    display: flex;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    gap: 0;
}

/* Left Column - Images */
.custom-product-images {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

.custom-product-image {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.custom-product-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Right Column - Product Info */
.custom-product-info {
    width: 50%;
    padding: 80px 60px;
    background: #ffffff;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: 100vh;
    overflow-y: auto;
}

/* Category Label */
.custom-product-category {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin-bottom: 15px;
}

/* Product Title */
.custom-product-title {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000000;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

/* Price */
.custom-product-price {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 25px;
}

.custom-product-price .price {
    font-size: 18px;
    color: #000000;
}

.custom-product-price del {
    opacity: 0.5;
    margin-right: 10px;
}

/* Short Description */
.custom-product-short-description {
    font-size: 14px;
    line-height: 1.6;
    color: #000000;
    margin-bottom: 30px;
}

/* Product Form (Variations) */
.custom-product-form {
    margin-bottom: 20px;
}

.custom-product-form table.variations {
    border: none;
    margin-bottom: 20px;
}

.custom-product-form table.variations td,
.custom-product-form table.variations th {
    border: none;
    padding: 10px 0;
    vertical-align: middle;
}

.custom-product-form table.variations label {
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-product-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border-radius: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.custom-product-form .quantity {
    margin-bottom: 20px;
}

.custom-product-form .quantity input {
    width: 80px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    text-align: center;
}

/* Buttons Container - Side by Side */
.custom-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Add to Cart Button */
.custom-product-form .single_add_to_cart_button {
    flex: 1;
    padding: 15px 30px;
    background: #dc0000;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 50px;
}

.custom-product-form .single_add_to_cart_button:hover {
    background: #b30000;
}

/* Buy Now Button */
.custom-buy-now-btn {
    flex: 1;
    padding: 15px 30px;
    background: #ffffff;
    color: #dc0000;
    border: 2px solid #dc0000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.custom-buy-now-btn:hover {
    background: #dc0000;
    color: #ffffff;
}

/* Product Meta */
.custom-product-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}

.custom-meta-item {
    margin-bottom: 10px;
    color: #000000;
}

.custom-meta-item .meta-label {
    font-weight: 500;
    margin-right: 10px;
}

.custom-meta-item a {
    color: #000000;
    text-decoration: none;
}

.custom-meta-item a:hover {
    text-decoration: underline;
}

/* Delivery Notice */
.custom-delivery-notice {
    margin-top: 25px;
    padding: 15px;
    background: #f8f8f8;
    font-size: 13px;
    color: #000000;
    text-align: center;
}

/* Description Section Below */
.custom-product-description-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 60px;
}

.custom-description-tabs h2 {
    font-size: 20px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    color: #000000;
}

.custom-description-content {
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-product-info {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .custom-product-container {
        flex-direction: column;
    }
    
    .custom-product-images,
    .custom-product-info {
        width: 100%;
    }
    
    .custom-product-info {
        position: static;
        padding: 30px 20px;
    }
    
    .custom-product-description-section {
        padding: 0 20px;
    }
    
    .custom-buttons-container {
        flex-direction: column;
    }
}

/* Hide default WooCommerce elements */
.woocommerce-product-gallery {
    display: none !important;
}

.product_title.entry-title {
    display: none !important;
}

/* Reset Button */
.reset_variations {
    font-size: 12px;
    color: #dc0000;
    text-decoration: underline;
    margin-top: 10px;
    display: inline-block;
}