/**
 * WooCommerce Custom Styles
 * Theme: Ekspertka Okularowa
 * 
 * This stylesheet overrides default WooCommerce styles
 * and applies custom brand styling using Tailwind CSS classes
 */

/* ===================================
   Custom Product Gallery (single product)
   We use our own gallery, hide WC default if present
   =================================== */

/* Hide default WC gallery (we render our own) */
.woocommerce div.product div.images,
.woocommerce-product-gallery {
    display: none !important;
}

/* Our custom gallery */
.eo-gallery-main img {
    transition: opacity 0.3s ease;
}

/* 2-column equal photo grid (ulandka style) */
.eo-product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.eo-product-grid__item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background-color: rgba(235, 146, 199, 0.08);
}

/* First photo: full width when total is odd */
.eo-product-grid__item:first-child:nth-last-child(odd):last-child,
.eo-product-grid__item:first-child:nth-last-child(1) {
    grid-column: 1 / -1;
}

.eo-thumb-btn {
    cursor: pointer;
    flex-shrink: 0;
}

.eo-thumb-btn img {
    pointer-events: none;
}

/* ===================================
   Product Info & Add to Cart
   =================================== */

/* Wrap for add to cart form on single product */
.eo-add-to-cart-wrap .cart {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.eo-add-to-cart-wrap form.cart {
    margin: 0;
}

/* Hide variation selects when we have custom swatches */
.eo-add-to-cart-wrap .variations {
    margin-bottom: 0;
    border: none;
}

.eo-add-to-cart-wrap .variations td,
.eo-add-to-cart-wrap .variations th {
    padding: 0.5rem 0;
    border: none;
    vertical-align: middle;
}

.eo-add-to-cart-wrap .variations label {
    font-weight: 600;
    color: var(--brand-burgundy);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.eo-add-to-cart-wrap .variations select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(106, 11, 68, 0.15);
    color: var(--brand-burgundy);
    font-size: 0.875rem;
    background-color: white;
}

.eo-add-to-cart-wrap .variations select:focus {
    outline: none;
    border-color: var(--brand-magenta);
}

/* Quantity Input */
.eo-add-to-cart-wrap .quantity,
.woocommerce div.product form.cart div.quantity {
    margin-right: 0.75rem;
}

.eo-add-to-cart-wrap .quantity input.qty,
.woocommerce div.product form.cart div.quantity input.qty {
    width: 4rem;
    padding: 0.85rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(106, 11, 68, 0.15);
    text-align: center;
    color: var(--brand-burgundy);
    font-size: 0.875rem;
}

.eo-add-to-cart-wrap .quantity input.qty:focus {
    outline: none;
    border-color: var(--brand-magenta);
}

/* Add to Cart Button */
.eo-add-to-cart-wrap .single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button {
    width: 100%;
    padding: 1rem;
    border-radius: 9999px;
    background-color: var(--brand-burgundy);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* WooCommerce button często jest renderowany w trybie flex; centrujemy treść */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.eo-add-to-cart-wrap .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background-color: var(--brand-magenta);
}

.eo-add-to-cart-wrap .single_add_to_cart_button:disabled,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Flex row for quantity + button */
.eo-add-to-cart-wrap form.cart > .quantity,
.eo-add-to-cart-wrap form.cart > button {
    display: inline-flex;
}

/* Reset link (clear variation) */
.eo-add-to-cart-wrap .reset_variations {
    font-size: 0.75rem;
    color: var(--brand-magenta);
    text-decoration: underline;
    margin-top: 0.5rem;
    display: inline-block;
}

/* Single variation wrap */
.eo-add-to-cart-wrap .single_variation_wrap {
    margin-top: 1rem;
}

.eo-add-to-cart-wrap .woocommerce-variation-price {
    margin-bottom: 1rem;
}

.eo-add-to-cart-wrap .woocommerce-variation-price .price {
    color: var(--brand-magenta);
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
}

/* ===================================
   Product Meta
   =================================== */

.woocommerce div.product .product_meta {
    font-size: 0.875rem;
    color: rgba(106, 11, 68, 0.6);
}

.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 0.5rem;
}

.woocommerce div.product .product_meta a {
    color: var(--brand-burgundy);
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    color: var(--brand-magenta);
}

/* ===================================
   Price
   =================================== */

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--brand-magenta);
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
}

.woocommerce div.product p.price del,
.woocommerce div.product span.price del {
    color: rgba(106, 11, 68, 0.35);
    font-size: 1.125rem;
    font-style: normal;
}

.woocommerce div.product p.price ins,
.woocommerce div.product span.price ins {
    text-decoration: none;
}

/* ===================================
   Product Attributes Table (Specyfikacja)
   =================================== */

.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.woocommerce-product-attributes tr {
    border-bottom: 1px solid rgba(106, 11, 68, 0.06);
}

.woocommerce-product-attributes th {
    text-align: left;
    padding: 0.625rem 1rem 0.625rem 0;
    color: var(--brand-burgundy);
    font-weight: 500;
    width: 40%;
}

.woocommerce-product-attributes td {
    padding: 0.625rem 0;
    color: rgba(106, 11, 68, 0.6);
}

.woocommerce-product-attributes td p {
    margin: 0;
}

/* ===================================
   Product Loop (Archive) - Custom Grid
   =================================== */

/* Reset any default WooCommerce list styles */
.woocommerce ul.products,
.eo-products-grid {
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Product card in related/upsell sections */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.woocommerce ul.products li.product img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-burgundy);
    margin: 0.75rem 0 0.25rem;
}

.woocommerce ul.products li.product .price {
    color: var(--brand-magenta);
    font-size: 0.875rem;
    font-weight: 500;
}

/* List view adjustments */
.eo-list-view .eo-product-card.eo-list-item {
    border-bottom: 1px solid rgba(106, 11, 68, 0.08);
    padding-bottom: 1rem;
}

/* ===================================
   Catalog Ordering / Sort Dropdown
   =================================== */

.eo-sort-wrapper .woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select,
.eo-sort-wrapper select {
    padding: 0.5rem 1rem;
    padding-right: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(106, 11, 68, 0.15);
    color: var(--brand-burgundy);
    font-size: 0.875rem;
    background-color: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236A0B44' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.woocommerce-ordering select:focus,
.eo-sort-wrapper select:focus {
    outline: none;
    border-color: var(--brand-magenta);
}

/* ===================================
   Result Count
   =================================== */

.woocommerce-result-count {
    font-size: 0.75rem;
    color: rgba(106, 11, 68, 0.5);
    margin: 0;
}

/* ===================================
   Pagination
   =================================== */

.woocommerce nav.woocommerce-pagination {
    text-align: center;
    margin-top: 2rem;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--brand-burgundy);
    text-decoration: none;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background-color: rgba(106, 11, 68, 0.05);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background-color: var(--brand-burgundy);
    color: white;
}

/* Page number links in our custom pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--brand-burgundy);
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers:hover {
    background-color: rgba(106, 11, 68, 0.05);
}

.page-numbers.current {
    background-color: var(--brand-burgundy);
    color: white;
}

/* ===================================
   Messages & Notices
   =================================== */

/* WooCommerce notices — ogólne (np. na stronach koszyka/checkout) */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid;
    font-size: 0.875rem;
}

.woocommerce-message {
    background-color: rgba(185, 52, 135, 0.08);
    border-color: var(--brand-magenta);
    color: var(--brand-burgundy);
}

.woocommerce-info {
    background-color: rgba(106, 11, 68, 0.08);
    border-color: var(--brand-burgundy);
    color: var(--brand-burgundy);
}

.woocommerce-error {
    background-color: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    color: #991b1b;
}

/* Ukryj link "Zobacz koszyk" wstrzykiwany przez WooCommerce do karty produktu po AJAX */
a.added_to_cart.wc-forward {
    display: none !important;
}

/* Ukryj natywne notyfikacje WooCommerce poza koszykiem/checkout — używamy własnego toastu */
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-notices-wrapper,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-message,
body:not(.woocommerce-cart):not(.woocommerce-checkout) .woocommerce-info {
    display: none !important;
}

/* ===================================
   Toast "Dodano do koszyka"
   =================================== */
#eo-toast-container {
    position: fixed;
    top: 100px;
    right: 1.25rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
    width: 280px;
}

.eo-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border-radius: 14px;
    padding: 0.875rem 1rem;
    box-shadow: 0 8px 32px rgba(106, 11, 68, 0.16);
    pointer-events: auto;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eo-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.eo-toast__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--brand-burgundy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eo-toast__body {
    flex: 1;
    min-width: 0;
}

.eo-toast__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-burgundy);
    margin: 0 0 2px;
}

.eo-toast__name {
    font-size: 0.8rem;
    color: rgba(106, 11, 68, 0.65);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eo-toast__btn {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    background-color: var(--brand-burgundy);
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.eo-toast__btn:hover {
    background-color: var(--brand-magenta);
}

/* ===================================
   Breadcrumbs
   =================================== */

.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: rgba(106, 11, 68, 0.6);
}

.woocommerce-breadcrumb a {
    color: rgba(106, 11, 68, 0.6);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: var(--brand-magenta);
}

/* ===================================
   Related & Upsell Products
   (hidden - we render our own sections in single-product.php)
   =================================== */

.woocommerce .related.products,
.woocommerce .upsells.products,
.woocommerce .cross-sells {
    display: none;
}

/* ===================================
   Cart Page
   =================================== */

.woocommerce table.shop_table {
    border-radius: 1rem;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem;
}

.woocommerce table.shop_table th {
    background-color: rgba(106, 11, 68, 0.05);
    color: var(--brand-burgundy);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.woocommerce .cart-collaterals .cart_totals {
    background-color: rgba(246, 232, 210, 0.3);
    padding: 2rem;
    border-radius: 1rem;
}

.woocommerce .cart-collaterals .cart_totals h2 {
    color: var(--brand-burgundy);
    font-family: 'Playfair Display', Georgia, serif;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    padding: 1rem;
    border-radius: 9999px;
    background-color: var(--brand-burgundy);
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-size: 0.875rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--brand-magenta);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .woocommerce .related.products ul.products,
    .woocommerce .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}


/* ===================================
   YITH Wishlist — single product page
   =================================== */

/* Wrapper shortcode */
.woocommerce-page .eo-product-single-wishlist,
.single-product .mt-3:has(.yith-wcwl-add-to-wishlist) {
    width: 100%;
}

/* Kontener YITH na single */
.single-product .yith-wcwl-add-to-wishlist,
.single-product .yith-add-to-wishlist-button-block {
    width: 100% !important;
    margin: 0 !important;
}

/* Przycisk na single — szeroki, zaokrąglony */
.single-product .yith-wcwl-add-to-wishlist-button,
.single-product .yith-wcwl-add-button a,
.single-product .add_to_wishlist {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 12px 20px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(106, 11, 68, 0.15) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: var(--brand-burgundy) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: border-color 0.2s, background 0.2s, color 0.2s !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.single-product .yith-wcwl-add-to-wishlist-button:hover,
.single-product .yith-wcwl-add-button a:hover,
.single-product .add_to_wishlist:hover {
    border-color: rgba(185, 52, 135, 0.4) !important;
    background: rgba(185, 52, 135, 0.05) !important;
    color: var(--brand-magenta) !important;
    text-decoration: none !important;
}

/* Produkt dodany */
.single-product .yith-wcwl-add-to-wishlist-button--added,
.single-product .yith-wcwl-add-button a.added,
.single-product .yith-wcwl-add-button a.added_to_wishlist {
    border-color: var(--brand-magenta) !important;
    color: var(--brand-magenta) !important;
    background: rgba(185, 52, 135, 0.05) !important;
}

/* Ikona serca */
.single-product .yith-wcwl-add-to-wishlist-button svg,
.single-product .yith-wcwl-add-button a svg,
.single-product .yith-wcwl-add-button a i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* Ukryj linki nawigacyjne po dodaniu (przeglądaj/usuń) */
.single-product .yith-wcwl-wishlistadded-text,
.single-product .yith-wcwl-wishlistexistsbrowse,
.single-product .yith-wcwl-add-to-wishlist-browse,
.single-product .feedback {
    display: none !important;
}

/* ===================================
   YITH Wishlist — serce na karcie produktu
   =================================== */

/* Wrapper — absolutnie nad zdjęciem, prawy górny róg */
.eo-product-wishlist-wrap {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

/* Usuń domyślne marginesy i wyrównanie YITH */
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist,
.eo-product-wishlist-wrap .yith-add-to-wishlist-button-block {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
}

/* Przycisk — okrągły, białe tło */
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button,
.eo-product-wishlist-wrap .yith-wcwl-add-button a,
.eo-product-wishlist-wrap a.yith-wcwl-add-to-wishlist-button__wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    color: rgba(106, 11, 68, 0.6) !important;
    transition: background 0.2s, color 0.2s !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button:hover,
.eo-product-wishlist-wrap .yith-wcwl-add-button a:hover {
    background: #B93487 !important;
    color: #fff !important;
}

/* Produkt w wishliście — różowy */
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button--added,
.eo-product-wishlist-wrap .yith-wcwl-add-button a.added,
.eo-product-wishlist-wrap .yith-wcwl-add-button a.added_to_wishlist {
    background: #B93487 !important;
    color: #fff !important;
}

/* Ikona serca — rozmiar */
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button svg,
.eo-product-wishlist-wrap .yith-wcwl-add-button a svg,
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button i,
.eo-product-wishlist-wrap .yith-wcwl-add-button a i {
    width: 16px !important;
    height: 16px !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

/* Ukryj tekst, zostaw tylko ikonę */
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button__label,
.eo-product-wishlist-wrap .yith-wcwl-add-button a > span:not(.yith-wcwl-icon),
.eo-product-wishlist-wrap .yith-wcwl-add-button a span:not(.yith-wcwl-icon),
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-button > span:last-child {
    display: none !important;
}

/* Ukryj komunikaty/linki po dodaniu */
.eo-product-wishlist-wrap .yith-wcwl-wishlistadded-text,
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist-browse,
.eo-product-wishlist-wrap .yith-wcwl-wishlistexistsbrowse,
.eo-product-wishlist-wrap .feedback,
.eo-product-wishlist-wrap .yith-wcwl-add-to-wishlist__feedback {
    display: none !important;
}

/* ===================================
   Variation Swatches
   =================================== */

.variable-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.variable-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Color Swatches */
.variable-item.color-variable-item {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid transparent;
}

.variable-item.color-variable-item.selected {
    border-color: var(--brand-burgundy);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--brand-burgundy);
}

/* Size/Button Swatches */
.variable-item.button-variable-item {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(106, 11, 68, 0.2);
    color: var(--brand-burgundy);
    font-size: 0.875rem;
    font-weight: 500;
}

.variable-item.button-variable-item:hover {
    border-color: var(--brand-magenta);
    color: var(--brand-magenta);
}

.variable-item.button-variable-item.selected {
    background-color: var(--brand-burgundy);
    border-color: var(--brand-burgundy);
    color: white;
}

/* ===================================
   Loading States
   =================================== */

.woocommerce .blockUI.blockOverlay {
    background-color: rgba(106, 11, 68, 0.05) !important;
}

.woocommerce .loader::before {
    border-color: var(--brand-magenta) transparent transparent !important;
}

/* ===================================
   My Account - Global Styles
   =================================== */

/* Orders table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.woocommerce-orders-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(106, 11, 68, 0.5);
    border-bottom: 2px solid rgba(106, 11, 68, 0.08);
}

.woocommerce-orders-table tbody td {
    padding: 1rem;
    color: var(--brand-burgundy);
    border-bottom: 1px solid rgba(106, 11, 68, 0.06);
}

.woocommerce-orders-table tbody tr:hover {
    background-color: rgba(106, 11, 68, 0.02);
}

.woocommerce-orders-table .woocommerce-button {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--brand-burgundy);
    border: 1px solid rgba(106, 11, 68, 0.15);
    transition: all 0.2s;
}

.woocommerce-orders-table .woocommerce-button:hover {
    background-color: var(--brand-burgundy);
    color: white;
    border-color: var(--brand-burgundy);
}

/* Addresses */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-Address {
    padding: 1.5rem;
    border-radius: 1rem;
    background-color: rgba(246, 232, 210, 0.25);
}

.woocommerce-Address-title h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-burgundy);
    margin-bottom: 1rem;
}

.woocommerce-Address-title a {
    font-size: 0.75rem;
    color: var(--brand-magenta);
    text-decoration: none;
}

.woocommerce-Address-title a:hover {
    text-decoration: underline;
}

.woocommerce-Address address {
    font-style: normal;
    font-size: 0.875rem;
    color: rgba(106, 11, 68, 0.6);
    line-height: 1.6;
}

/* Edit Account form */
.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce-EditAccountForm legend {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-burgundy);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(106, 11, 68, 0.08);
    width: 100%;
}

/* Form fields (global WC forms) */
.woocommerce form .form-row {
    margin-bottom: 1rem;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-burgundy);
    margin-bottom: 0.5rem;
}

.woocommerce form .form-row label .required {
    color: var(--brand-magenta);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(106, 11, 68, 0.15);
    color: var(--brand-burgundy);
    font-size: 0.875rem;
    background-color: white;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--brand-magenta);
}

/* Save button in account forms */
.woocommerce-Button,
.woocommerce button[name="save_account_details"],
.woocommerce button[name="save_address"] {
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    background-color: var(--brand-burgundy);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.woocommerce-Button:hover,
.woocommerce button[name="save_account_details"]:hover,
.woocommerce button[name="save_address"]:hover {
    background-color: var(--brand-magenta);
}
