/**
 * LoveMyWishes Custom Styles
 * Additional styles for WooCommerce pages and components
 * 
 * @package LoveMyWishes_Elegance
 */

/* ============================================
   WOOCOMMERCE SHOP PAGE
   ============================================ */
.woocommerce-main {
    padding-top: calc(var(--header-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    min-height: 80vh;
}

.woocommerce-breadcrumb {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--space-2xl);
}

.woocommerce-breadcrumb a {
    color: var(--color-primary);
}

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

.breadcrumb-sep {
    margin: 0 var(--space-sm);
    color: var(--color-secondary);
}

/* Shop Header */
.woocommerce-products-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.woocommerce-products-header__title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.term-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-gray-400);
}

/* Shop Controls */
.woocommerce-notices-wrapper {
    margin-bottom: var(--space-xl);
}

.woocommerce-result-count {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.woocommerce-ordering select {
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--color-gray-100);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition-base);
}

.woocommerce-ordering select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* ============================================
   SINGLE PRODUCT PAGE
   ============================================ */
.single-product .woocommerce-main {
    background: var(--color-white);
}

.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

@media (max-width: 768px) {
    .single-product .product {
        grid-template-columns: 1fr;
    }
}

/* Product Gallery */
.woocommerce-product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-xl));
}

.woocommerce-product-gallery__image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-cream);
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    z-index: 10;
}

.woocommerce-product-gallery__trigger:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Product Gallery Thumbnails */
.flex-control-thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: 0;
    list-style: none;
}

.flex-control-thumbs li {
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
}

.flex-control-thumbs li:hover,
.flex-control-thumbs li.flex-active {
    border-color: var(--color-secondary);
}

.flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Summary */
.entry-summary {
    padding: var(--space-xl) 0;
}

.product_title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.star-rating {
    display: flex;
    gap: 2px;
    color: var(--color-secondary);
    font-size: 0;
}

.star-rating::before {
    content: '★★★★★';
    font-size: var(--text-lg);
    letter-spacing: 2px;
}

.star-rating span::before {
    content: '★★★★★';
    font-size: var(--text-lg);
    letter-spacing: 2px;
    position: absolute;
    color: var(--color-secondary);
}

.woocommerce-review-link {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

.woocommerce-review-link:hover {
    color: var(--color-secondary);
}

/* Product Price */
.entry-summary .price {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.entry-summary .price del {
    color: var(--color-gray-300);
    font-size: var(--text-lg);
    margin-right: var(--space-sm);
}

.entry-summary .price ins {
    text-decoration: none;
    color: var(--color-error);
}

/* Short Description */
.woocommerce-product-details__short-description {
    font-size: var(--text-base);
    color: var(--color-gray-400);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-gray-100);
}

/* Add to Cart Form */
.cart {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.quantity {
    display: flex;
    align-items: center;
    border: 2px solid var(--color-gray-100);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity .qty {
    width: 60px;
    height: 50px;
    text-align: center;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border: none;
    background: var(--color-white);
}

.quantity .qty:focus {
    outline: none;
}

.quantity-btn {
    width: 44px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    cursor: pointer;
    transition: var(--transition-base);
}

.quantity-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.single_add_to_cart_button {
    flex: 1;
    min-height: 54px;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
}

.single_add_to_cart_button:hover {
    background: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Product Meta */
.product_meta {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-gray-100);
}

.product_meta > span {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--space-sm);
}

.product_meta a {
    color: var(--color-primary);
}

.product_meta a:hover {
    color: var(--color-secondary);
}

/* ============================================
   PRODUCT TABS
   ============================================ */
.woocommerce-tabs {
    grid-column: 1 / -1;
    margin-top: var(--space-4xl);
    border-top: 1px solid var(--color-gray-100);
    padding-top: var(--space-3xl);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: var(--space-xl);
    border-bottom: 2px solid var(--color-gray-100);
    margin-bottom: var(--space-2xl);
    padding: 0;
    list-style: none;
}

.woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: var(--space-md) 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition-base);
}

.woocommerce-tabs ul.tabs li a:hover,
.woocommerce-tabs ul.tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-secondary);
}

.woocommerce-tabs .panel {
    max-width: 800px;
}

.woocommerce-tabs .panel h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

/* Reviews */
.woocommerce-Reviews {
    max-width: none;
}

.commentlist {
    list-style: none;
    padding: 0;
}

.comment_container {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.comment_container .avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-text {
    flex: 1;
}

.comment-text .star-rating {
    margin-bottom: var(--space-sm);
}

.comment-text .meta {
    font-size: var(--text-sm);
    color: var(--color-gray-400);
    margin-bottom: var(--space-md);
}

.comment-text .description p {
    margin: 0;
    color: var(--color-gray-400);
}

/* Review Form */
#review_form_wrapper {
    margin-top: var(--space-2xl);
}

#reply-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.comment-form-rating label {
    font-weight: 600;
    margin-right: var(--space-md);
}

.comment-form-rating .stars {
    display: inline-flex;
    gap: 4px;
}

.comment-form-rating .stars a {
    font-size: var(--text-xl);
    color: var(--color-gray-200);
    transition: var(--transition-base);
}

.comment-form-rating .stars a:hover,
.comment-form-rating .stars a.active {
    color: var(--color-secondary);
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */
.related.products {
    grid-column: 1 / -1;
    margin-top: var(--space-4xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-gray-100);
}

.related.products > h2,
.upsells.products > h2 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

/* ============================================
   CART PAGE
   ============================================ */
.woocommerce-cart-form {
    margin-bottom: var(--space-3xl);
}

.woocommerce-cart-form table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart-form th {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    padding: var(--space-md);
    background: var(--color-cream);
    text-align: left;
    border-bottom: 2px solid var(--color-gray-100);
}

.woocommerce-cart-form td {
    padding: var(--space-lg);
    vertical-align: middle;
    border-bottom: 1px solid var(--color-gray-100);
}

.woocommerce-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.woocommerce-cart-form .product-name a {
    font-weight: 600;
    color: var(--color-primary);
}

.woocommerce-cart-form .product-name a:hover {
    color: var(--color-secondary);
}

.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
    font-family: var(--font-display);
    font-size: var(--text-lg);
}

.woocommerce-cart-form .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--color-cream);
    border-radius: 50%;
    color: var(--color-gray-400);
    font-size: var(--text-lg);
    transition: var(--transition-base);
}

.woocommerce-cart-form .product-remove a:hover {
    background: var(--color-error);
    color: var(--color-white);
}

/* Cart Actions */
.woocommerce-cart-form .actions {
    padding: var(--space-xl);
    background: var(--color-cream);
}

.woocommerce-cart-form .coupon {
    display: flex;
    gap: var(--space-md);
}

.woocommerce-cart-form .coupon input {
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-gray-100);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
}

.woocommerce-cart-form .coupon input:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* Cart Totals */
.cart_totals {
    background: var(--color-cream);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
}

.cart_totals h2 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.cart_totals table {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.cart_totals th {
    font-weight: 600;
    text-align: left;
    padding: var(--space-md) 0;
}

.cart_totals td {
    text-align: right;
    padding: var(--space-md) 0;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-gray-200);
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition-base);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--color-secondary) !important;
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

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

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.woocommerce-checkout .form-row {
    margin-bottom: var(--space-md);
}

.woocommerce-checkout .form-row label {
    display: block;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.woocommerce-checkout .form-row .required {
    color: var(--color-error);
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-gray-100);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: var(--transition-base);
}

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

/* Order Review */
#order_review_heading {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    margin-bottom: var(--space-lg);
}

.woocommerce-checkout-review-order {
    background: var(--color-cream);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: var(--space-xl);
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-gray-100);
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    padding-top: var(--space-lg);
    border-top: 2px solid var(--color-gray-200);
    border-bottom: none;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-xl);
}

.wc_payment_method {
    padding: var(--space-md);
    border: 2px solid var(--color-gray-100);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-sm);
    transition: var(--transition-base);
}

.wc_payment_method:hover,
.wc_payment_method.active {
    border-color: var(--color-secondary);
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
}

.wc_payment_method .payment_box {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--color-white);
    border-radius: var(--border-radius);
    font-size: var(--text-sm);
    color: var(--color-gray-400);
}

/* Place Order Button */
#place_order {
    display: block;
    width: 100%;
    padding: var(--space-lg) var(--space-xl);
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-base);
}

#place_order:hover {
    background: var(--color-secondary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   MY ACCOUNT PAGE
   ============================================ */
.woocommerce-MyAccount-navigation {
    width: 250px;
    flex-shrink: 0;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    background: var(--color-cream);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--color-gray-100);
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-primary);
    transition: var(--transition-base);
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--color-primary);
    color: var(--color-white);
}

.woocommerce-MyAccount-content {
    flex: 1;
}

/* ============================================
   NOTICES & MESSAGES
   ============================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.woocommerce-message {
    background: rgba(74, 124, 89, 0.1);
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
}

.woocommerce-info {
    background: rgba(201, 168, 124, 0.1);
    border-left: 4px solid var(--color-secondary);
    color: var(--color-secondary);
}

.woocommerce-error {
    background: rgba(197, 75, 75, 0.1);
    border-left: 4px solid var(--color-error);
    color: var(--color-error);
    list-style: none;
    padding-left: var(--space-lg);
}

.woocommerce-message .button,
.woocommerce-info .button {
    margin-left: auto;
    background: transparent !important;
    color: inherit !important;
    border: 2px solid currentColor !important;
    padding: var(--space-xs) var(--space-md) !important;
}

/* ============================================
   LOADING STATES
   ============================================ */
.woocommerce .blockUI.blockOverlay {
    background: rgba(250, 248, 245, 0.8) !important;
}

.woocommerce .loader::before {
    border-color: var(--color-secondary) transparent transparent transparent;
}
