/*
Theme Name: A. van Wees Distillery
Author: Antigravity
Version: 1.0.0
Text Domain: avw-distillery
*/

/* --- PRODUCT SIDEBAR --- */
.woo-custom-sidebar h2 { font-family: 'Kurversbrug', serif; font-size: 24px; color: #133E23; margin-bottom: 20px; }
.woo-custom-sidebar input { width: 100%; padding: 12px; border-radius: 20px; border: 1px solid #133E2320; }
.woo-pagination ul { display: flex; list-style: none; gap: 8px; justify-content: center; }
.woo-pagination ul li a { padding: 10px 16px; border-radius: 20px; background: #eedfcb; color: #133E23; text-decoration: none; }

/* --- CART --- */
@media (max-width: 768px) {
    .woocommerce-cart td:before { content: attr(data-title); font-weight: 700; float: left; }
    .woocommerce-cart tr { display: block; background: #fff; margin-bottom: 10px; padding: 15px; border-radius: 15px; }
    .woocommerce-cart td { display: block; text-align: right; border: none !important; }
}

/* --- MY ACCOUNT GLOBAL LAYOUT --- */
.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 40px !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    align-items: flex-start !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 240px !important;
    flex-shrink: 0 !important;
    background: #fff !important;
    border-radius: 15px !important;
    border: 1px solid #133E2310 !important;
    padding: 20px 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block !important; padding: 12px 25px !important; color: #133E2380 !important; font-weight: 600 !important; text-decoration: none !important; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: #133E23 !important; background: #133E2310 !important; border-left: 4px solid #133E23 !important; }

.woocommerce-account .woocommerce-MyAccount-content { flex: 1 !important; }

/* --- ADDRESSES PAGE (Side by Side) --- */
.woocommerce-account .woocommerce-Addresses, 
.woocommerce-account .addresses {
    display: flex !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 20px !important;
}

.woocommerce-account .woocommerce-Addresses .col-1,
.woocommerce-account .woocommerce-Addresses .col-2,
.woocommerce-account .addresses .u-column1,
.woocommerce-account .addresses .u-column2 {
    flex: 1 !important;
    width: 50% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #133E23 !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
}

.woocommerce-account .woocommerce-Address-title h3 {
    font-family: 'Kurversbrug', serif !important;
    font-size: 20px !important;
    color: #133E23 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-Address-title .edit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #133E23 !important;
    color: transparent !important;
    font-size: 0 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

.woocommerce-account .woocommerce-Address-title .edit::before {
    content: "" !important;
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23cdbca6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7'%3E%3C/path%3E%3Cpath d='M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}

.woocommerce-account .woocommerce-Address address {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #133E23 !important;
    font-style: normal !important;
}

/* --- ACCOUNT FORM FIELDS --- */
.woocommerce-account .form-row label { display: block; font-weight: 700; margin-bottom: 5px; color: #133E23; }
.woocommerce-account .form-row input.input-text { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #133E2320; }
.woocommerce-account .button { background: #133E23 !important; color: #cdbca6 !important; padding: 15px 30px !important; border-radius: 30px !important; text-transform: uppercase; font-family: 'Kurversbrug', serif; border: none !important; cursor: pointer; }

/* Responsive Mobile */
@media (max-width: 900px) {
    .woocommerce-account .woocommerce { flex-direction: column !important; }
    .woocommerce-account .woocommerce-MyAccount-navigation { width: 100% !important; }
    .woocommerce-account .woocommerce-Addresses { flex-direction: column !important; }
    .woocommerce-account .woocommerce-Addresses .col-1, .woocommerce-account .woocommerce-Addresses .col-2 { width: 100% !important; }
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

/* Cart form: qty + button side by side, equal height */
.single-product .cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
}

/* Add to basket button */
.single-product .single_add_to_cart_button {
    background-color: #36221d !important;
    color: #eedfcb !important;
    padding: 0 24px !important;
    height: 54px !important;
    border-radius: 12px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
}
.single-product .single_add_to_cart_button:hover {
    background-color: #000 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
    transform: translateY(-1px);
}

/* Quantity box */
.single-product .quantity {
    display: inline-flex !important;
    margin: 0 !important;
    height: 54px !important;
}
.single-product .quantity .qty {
    width: 65px !important;
    background: transparent !important;
    color: #36221d !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-align: center !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}
.single-product .quantity .qty:focus {
    background: white !important;
    box-shadow: 0 0 0 4px rgba(54, 34, 45, 0.05) !important;
}

/* Related carousel: no background, no border */
.related-carousel-wrapper {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.swiper-wrapper { padding-bottom: 50px; }

/* Hide Swiper default arrow pseudo-elements */
.swiper-button-next:after, .swiper-button-prev:after { display: none !important; }

/* Review area */
.reviews-aesthetic { font-family: 'DM Sans', sans-serif; }
.commentlist { padding: 0 !important; list-style: none !important; }
.commentlist li { margin-bottom: 2rem !important; border-bottom: 1px solid rgba(54,34,29,0.1) !important; padding-bottom: 2rem !important; }
.comment-text { background: white !important; padding: 2rem !important; border-radius: 20px !important; box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important; }
.star-rating { color: #36221d !important; font-size: 1.1em !important; margin-bottom: 0.5rem !important; }
.comment-author { font-weight: bold !important; color: #36221d !important; text-transform: uppercase !important; font-size: 0.8em !important; }
.comment-meta { margin-bottom: 1rem !important; opacity: 0.5; font-size: 0.8em; }
#review_form_wrapper { background: white !important; padding: 2.5rem !important; border-radius: 24px !important; margin-top: 3rem !important; border: 1px solid rgba(54,34,29,0.1) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.02); }
#reply-title { font-family: 'Kurversbrug', serif !important; text-transform: uppercase !important; margin-bottom: 1.5rem !important; display: block; font-size: 1.2rem; }
.comment-form input, .comment-form textarea { width: 100% !important; border-radius: 12px !important; padding: 14px !important; border: 1.5px solid rgba(54,34,29,0.1) !important; outline: none !important; background: #fdf8f1 !important; }
.comment-form input:focus, .comment-form textarea:focus { border-color: #36221d !important; background: white !important; }
#submit { background: #36221d !important; color: #eedfcb !important; padding: 14px 40px !important; border-radius: 12px !important; text-transform: uppercase !important; font-weight: bold !important; border: none !important; margin-top: 1rem !important; cursor: pointer; transition: all 0.3s ease; }
#submit:hover { background: #000 !important; }

/* --- PLACE ORDER BUTTON --- */
#place_order {
    display: inline-block !important;
    background: linear-gradient(90deg, rgba(0,0,0,0.2), rgba(0,0,0,0.2)), #432B25 !important;
    color: #fff !important;
    font-family: 'Kurversbrug', serif !important;
    font-size: 18px !important;
    padding: 14px 40px !important;
    border-radius: 34px !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: opacity 0.2s !important;
    width: 100% !important;
}
#place_order:hover {
    opacity: 0.88 !important;
}
