/* ===================================
   WooCommerce Styles for Adrin Theme - Redesigned
   =================================== */

/* Color Variables */

/* General WooCommerce Styles */
.woocommerce-page {
    /* padding: 40px 0; */
}

.woocommerce-page .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Products Header */
.woocommerce-products-header {
    margin-bottom: 50px;
    text-align: center;
}

.woocommerce-products-header__title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Product Loop/Grid - Redesigned */
.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 3px solid transparent;
    position: relative;

    /* display: flex;
    flex-direction: column; */
    height: 100%;
    width: auto;
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #47d5ff;
    z-index: 1;
}

.woocommerce ul.products li.product:nth-child(3n+1)::before {
        background: #47d5ff;
}

.woocommerce ul.products li.product:nth-child(3n+2)::before {
    background: #47d5ff;
}

.woocommerce ul.products li.product:nth-child(3n+3)::before {
    background: #47d5ff;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product a {
    text-decoration: none;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 25px 0 15px;
    padding: 0 25px;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--pastel-yellow);
}

.woocommerce ul.products li.product .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding: 0 25px;
    font-family: 'Kedebideri', sans-serif;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-right: 10px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--pastel-yellow);
}

/* Sale Badge */
.woocommerce span.onsale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #47d5ff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    font-family: 'Kedebideri', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hide sale badge on single product detail page */
.woocommerce div.product span.onsale,
.woocommerce.single-product span.onsale,
.woocommerce div.product .wp-block-woocommerce-product-sale-badge,
.woocommerce div.product .wc-block-components-product-sale-badge,
body.single-product .woocommerce span.onsale {
    display: none !important;
}

/* Star Rating */
.woocommerce ul.products li.product .star-rating {
    margin: 0 auto 15px;
    color: var(--pastel-yellow);
    display: none;
}

.woocommerce .star-rating span::before {
    color: var(--pastel-yellow);
}

/* Add to Cart Button - Redesigned */
.woocommerce ul.products li.product .button,
.woocommerce .button,
.woocommerce button.button {
    background: #000;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    font-family: 'Kedebideri', sans-serif;
    letter-spacing: 0.5px;
    margin: 0 25px 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce ul.products li.product .button:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--pastel-yellow);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin-top: 10px;
    color: var(--pastel-yellow);
    font-weight: 600;
    font-family: 'Kedebideri', sans-serif;
}

/* Single Product - Redesigned */
.woocommerce div.product {
    margin-bottom: 0;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

/* Ensure single product layout */
.woocommerce.single-product .site-main {
    position: relative;
}

.woocommerce.single-product .site-main > .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ensure product div doesn't wrap related products */
.woocommerce div.product::after {
    content: '';
    display: block;
    clear: both;
}

.woocommerce div.product .product_title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.woocommerce div.product h2 {
    font-size: 40px;
}

.woocommerce div.product .price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--pastel-yellow);
    margin-bottom: 30px;
    font-family: 'Kedebideri', sans-serif;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    font-family: 'Kedebideri', sans-serif;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
}

.woocommerce div.product .single_add_to_cart_button {

    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    font-family: 'Kedebideri', sans-serif;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Quantity Input Field - Styled */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    position: relative;
}

.woocommerce .quantity .qty {
    width: 80px;
    height: 50px;
    padding: 0 15px;
    text-align: center;
    font-family: 'Kedebideri', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #47d5ff;
    border-radius: 10px;
    transition: all 0.3s ease;
    appearance: none;
    -moz-appearance: textfield;
}

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

.woocommerce .quantity .qty:focus {
    outline: none;
    border-color: var(--pastel-yellow);
    box-shadow: 0 0 0 3px rgba(71, 213, 255, 0.2);
    background-color: #fff;
}

.woocommerce .quantity .qty:hover {
    border-color: var(--pastel-yellow);
}

/* Quantity input on single product page */
.woocommerce div.product form.cart .quantity {
    margin-bottom: 0;
}

.woocommerce div.product form.cart .quantity .qty {
    height: 50px;
    line-height: 50px;
}

/* Quantity input in cart */
.woocommerce table.shop_table .quantity .qty {
    width: 70px;
    height: 45px;
    font-size: 1rem;
    border-color: var(--pastel-yellow);
}

.woocommerce table.shop_table .quantity .qty:focus {
    border-color: var(--pastel-yellow);
}

/* Quantity input wrapper styling */
.woocommerce form.cart .quantity {
    vertical-align: middle;
}

/* Quantity buttons if using custom quantity buttons plugin */
.woocommerce .quantity .minus,
.woocommerce .quantity .plus {
    width: 40px;
    height: 50px;
    background: var(--pastel-yellow);
    color: var(--text-dark);
    border: 2px solid var(--pastel-yellow);
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Kedebideri', sans-serif;
}

.woocommerce .quantity .minus:hover,
.woocommerce .quantity .plus:hover {
    background: var(--pastel-yellow);
    border-color: var(--pastel-yellow);
    transform: scale(1.05);
}

.woocommerce .quantity .minus {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: -2px;
}

.woocommerce .quantity .plus {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -2px;
}

/* Product Gallery */
.woocommerce div.product div.images {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product div.images img {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.woocommerce div.product div.images:hover img {
    transform: scale(1.02);
}

/* Related Products Section - Styled as Different Section (Outside Box Shadow Card) */
.woocommerce section.related.products {
    margin-top: 80px;
    margin-bottom: 80px;
    padding: 80px 40px;
    /* background: linear-gradient(135deg, var(--pastel-yellow) 0%, var(--pastel-peach) 100%); */
    position: relative;
    overflow: hidden;
    clear: both;
    width: 100%;
    /* Ensure it's outside the product div */
    display: block;
}

/* Ensure related products section is completely outside the product card */
.woocommerce-page .site-main section.related.products,
body.single-product .site-main section.related.products,
.woocommerce section.related.products {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
    width: calc(100% - 80px);
    box-sizing: border-box;
}

/* Ensure it breaks out of any container */
.single-product .site-main .container ~ section.related.products,
.single-product .container section.related.products {
    max-width: 1400px;
    width: calc(100% - 80px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
}

/* Remove any box shadow inheritance from product div and ensure separation */
.woocommerce div.product ~ section.related.products,
section.related.products {
    box-shadow: none;
    position: relative;
    z-index: 0;
}

/* Ensure proper spacing between product card and related products */
.woocommerce div.product + section.related.products {
    margin: 50px 0 0;
    max-width: 100%;
    width: 100%;
}

.woocommerce section.related.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-mint), var(--pastel-yellow));
    z-index: 1;
}

.woocommerce section.related.products > h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.woocommerce section.related.products > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-mint));
    border-radius: 2px;
}

.woocommerce section.related.products .woocommerce-loop-product__title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
}

.woocommerce section.related.products ul.products {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    gap: 35px;
}

.woocommerce section.related.products ul.products li.product {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.woocommerce section.related.products ul.products li.product:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.woocommerce section.related.products ul.products li.product::before {
    background: linear-gradient(90deg, var(--pastel-peach), var(--pastel-mint));
}

.woocommerce section.related.products ul.products li.product .button {
    background: #000;
    color: #fff;
}

.woocommerce section.related.products ul.products li.product .button:hover {
    background: var(--pastel-peach);
    color: #000;
}

/* Responsive for Related Products */
@media (max-width: 1024px) {
    .woocommerce section.related.products {
        padding: 60px 30px;
        margin-top: 60px;
        margin-bottom: 60px;
    }
    
    .woocommerce section.related.products > h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .woocommerce section.related.products ul.products {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .woocommerce section.related.products {
        padding: 50px 20px;
        margin-top: 50px;
        margin-bottom: 50px;
        border-radius: 20px;
    }
    
    .woocommerce section.related.products > h2 {
        font-size: 1.75rem;
        margin-bottom: 35px;
        letter-spacing: 1px;
    }
    
    .woocommerce section.related.products ul.products {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .woocommerce section.related.products {
        padding: 40px 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }
    
    .woocommerce section.related.products > h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* Cart Page - Redesigned */
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 20px;
    border: none;
    border-bottom: 2px solid var(--pastel-yellow);
}

.woocommerce table.shop_table th {
    background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-mint));
    font-weight: 600;
    text-align: left;
    color: var(--text-dark);
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.woocommerce table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce table.shop_table .product-thumbnail img {
    max-width: 100px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.woocommerce table.shop_table .product-remove a {
    color: #ff4444;
    font-size: 1.8rem;
    text-decoration: none;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(255, 68, 68, 0.1);
}

.woocommerce table.shop_table .product-remove a:hover {
    background: #ff4444;
    color: #fff;
    transform: rotate(90deg);
}

/* Cart Totals - Redesigned */
.woocommerce .cart-collaterals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.woocommerce .cart_totals {
    background: linear-gradient(135deg, var(--pastel-yellow), var(--pastel-peach));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.woocommerce .cart_totals h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.woocommerce .cart_totals table {
    margin-bottom: 25px;
}

.woocommerce .cart_totals table th {
    font-family: 'Kedebideri', sans-serif;
    font-weight: 600;
}

.woocommerce .cart_totals table td {
    font-family: 'Kedebideri', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.woocommerce .cart_totals .checkout-button {
    width: 100%;
    background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-mint));
    color: var(--text-dark);
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    font-family: 'Kedebideri', sans-serif;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    margin-top: 20px;
}

.woocommerce .cart_totals .checkout-button:hover {
    background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-yellow));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Checkout - Redesigned */
.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.woocommerce form.checkout h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--pastel-peach);
}

.woocommerce form.checkout .form-row {
    margin-bottom: 25px;
}

.woocommerce form.checkout input.input-text,
.woocommerce form.checkout select,
.woocommerce form.checkout textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--pastel-mint);
    border-radius: 10px;
    font-family: 'Kedebideri', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.woocommerce form.checkout input.input-text:focus,
.woocommerce form.checkout select:focus,
.woocommerce form.checkout textarea:focus {
    outline: none;
    border-color: var(--pastel-peach);
    box-shadow: 0 0 0 3px rgba(255, 206, 187, 0.2);
}

/* Messages - Redesigned */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 15px;
    border-left: 5px solid;
    font-family: 'Kedebideri', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.woocommerce-message {
    background: linear-gradient(135deg, rgba(206, 235, 231, 0.3), rgba(255, 206, 187, 0.3));
    border-color: var(--pastel-mint);
    color: var(--text-dark);
}

.woocommerce-error {
    background: linear-gradient(135deg, rgba(255, 206, 187, 0.3), rgba(255, 238, 203, 0.3));
    border-color: #ff4444;
    color: #721c24;
}

.woocommerce-info {
    background: linear-gradient(135deg, rgba(206, 235, 231, 0.3), rgba(255, 238, 203, 0.3));
    border-color: var(--pastel-mint);
    color: var(--text-dark);
}

.woocommerce .cart-empty,
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-noreviews {
    font-family: 'Kedebideri', sans-serif;
}

/* Pagination - Redesigned */
.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 50px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: block;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid var(--pastel-mint);
    border-radius: 30px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Kedebideri', sans-serif;
    min-width: 45px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, var(--pastel-peach), var(--pastel-mint));
    color: var(--text-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 1024px) {
    .woocommerce ul.products {
        gap: 35px;
    }
    
    .woocommerce div.product {

        padding: 30px;
    }
    
    .woocommerce form.checkout {

    }
}

@media (max-width: 768px) {
    .woocommerce-page {
        padding: 30px 0;
    }
    
    .woocommerce ul.products {
    }
    
    .woocommerce ul.products li.product img {
        height: 280px;
    }
    
    .woocommerce-products-header__title {
        font-size: 2rem;
    }
    
    .woocommerce table.shop_table {
        font-size: 0.9rem;
    }
    
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 15px 10px;
    }
    
    .woocommerce .cart_totals {
        padding: 30px 25px;
    }
    .woocommerce ul.products[class*=columns-] li.product, .woocommerce-page ul.products[class*=columns-] li.product {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .woocommerce ul.products li.product img {
        height: 260px;
    }
    
    .woocommerce div.product {
        padding: 25px 20px;
    }
    
    .woocommerce div.product .product_title {
        font-size: 2rem;
    }
    
    .woocommerce table.shop_table th,
    .woocommerce table.shop_table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    /* Quantity input responsive */
    .woocommerce .quantity .qty {
        width: 70px;
        height: 45px;
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .woocommerce div.product form.cart .quantity .qty {
        height: 45px;
        line-height: 45px;
    }
    
    .woocommerce table.shop_table .quantity .qty {
        width: 60px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .woocommerce .quantity .minus,
    .woocommerce .quantity .plus {
        width: 35px;
        height: 45px;
        font-size: 1rem;
    }
}

.editor-styles-wrapper, .entry-content {
    padding-top: 94px;
}