/*
 * WooCommerce Stylesheet Overrides for Faqqua Perfumes
 * Fully customized for the dark theme.
 */

/* ==========================================================================
   1. SHOP PAGE
   ========================================================================== */

.woocommerce-content-area {
    padding: 60px 0 100px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.shop-sidebar {
    background: var(--color-bg-secondary);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    height: fit-content;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.woocommerce-result-count {
    color: var(--color-text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.woocommerce-ordering select {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    min-width: 200px;
}

.woocommerce-ordering select:focus {
    border-color: var(--color-gold);
}

/* Pagination overrides */
.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
}

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

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.woocommerce-pagination ul li a:focus,
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--color-gold);
    color: #0A0A0A;
    border-color: var(--color-gold);
}

/* ==========================================================================
   2. SINGLE PRODUCT
   ========================================================================== */

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.woocommerce-product-gallery {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.woocommerce-product-gallery__trigger {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 99;
    background: var(--color-bg);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.woocommerce-product-gallery__trigger:hover {
    border-color: var(--color-gold);
}

.woocommerce-product-gallery figure {
    margin: 0;
}

.flex-control-thumbs {
    display: flex;
    gap: 10px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.flex-control-thumbs li {
    width: calc(25% - 7.5px);
    cursor: pointer;
}

.flex-control-thumbs img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
    border-color: var(--color-gold);
    opacity: 1;
}

.product_title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.star-rating {
    color: var(--color-gold);
    font-size: 1rem;
}

.woocommerce-review-link {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.price {
    font-size: 1.8rem;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 25px;
}

.woocommerce-product-details__short-description {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.variations {
    width: 100%;
    margin-bottom: 30px;
}

.variations td {
    padding: 10px 0;
    vertical-align: middle;
}

.variations .label {
    width: 25%;
    color: var(--color-text);
    font-weight: 500;
}

.variations select {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.woocommerce-variation-add-to-cart,
.cart:not(.woocommerce-cart-form) {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.quantity {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 50px;
    background: var(--color-bg-card);
}

.quantity input.qty {
    width: 60px;
    height: 100%;
    background: transparent;
    border: none;
    text-align: center;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1.1rem;
    -moz-appearance: textfield;
}

.single_add_to_cart_button {
    height: 50px;
    padding: 0 40px;
    background: var(--color-gold);
    color: #0A0A0A;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

.single_add_to_cart_button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.product_meta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.product_meta > span {
    display: block;
    margin-bottom: 8px;
}

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

.product_meta a:hover {
    text-decoration: underline;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 60px;
    border-top: 1px solid var(--color-border);
    padding-top: 40px;
}

.wc-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 1px solid var(--color-border);
    gap: 30px;
}

.wc-tabs li {
    margin: 0;
}

.wc-tabs li a {
    display: block;
    padding: 15px 0;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.wc-tabs li.active a,
.wc-tabs li a:hover {
    color: var(--color-gold);
}

.wc-tabs li.active a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-gold);
}

.woocommerce-Tabs-panel {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* Reviews */
#reviews #comments h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

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

.commentlist li {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.commentlist img.avatar {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.comment-text {
    margin-left: 80px;
}

.comment-text p.meta {
    margin: 0 0 10px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.comment-text p.meta strong {
    color: var(--color-text);
    font-size: 1.1rem;
}

#review_form_wrapper {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-top: 40px;
}

/* Related Products */
.related.products,
.upsells.products {
    margin-top: 80px;
}

.related.products > h2,
.upsells.products > h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

/* ==========================================================================
   3. CART
   ========================================================================== */

.woocommerce-cart table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.woocommerce-cart table.shop_table th {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.woocommerce-cart .product-remove a {
    color: var(--color-error);
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 26px;
    text-align: center;
    border: 1px solid var(--color-error);
    border-radius: 50%;
    transition: var(--transition);
}

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

.woocommerce-cart .product-thumbnail img {
    width: 80px;
    height: auto;
    border-radius: var(--radius-sm);
}

.woocommerce-cart .product-name a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
}

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

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
    color: var(--color-gold);
    font-weight: 600;
}

.woocommerce-cart .actions {
    padding: 30px 0 !important;
}

.coupon {
    display: flex;
    gap: 15px;
    float: left;
}

.coupon input.input-text {
    padding: 12px 15px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    width: 200px;
}

.actions .button {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.actions .button:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.cart-collaterals {
    display: flex;
    justify-content: flex-end;
}

.cart_totals {
    width: 40%;
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--radius-md);
}

.cart_totals h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.cart_totals table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart_totals th,
.cart_totals td {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart_totals th {
    text-align: left;
    color: var(--color-text);
    font-weight: 500;
}

.cart_totals td {
    text-align: right;
    color: var(--color-gold);
    font-weight: 600;
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--color-gold);
    color: #0A0A0A;
    padding: 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: var(--transition);
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   4. CHECKOUT
   ========================================================================== */

.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-gold);
}

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

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

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

#order_review {
    background: var(--color-bg-secondary);
    padding: 30px;
    border-radius: var(--radius-md);
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

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

.woocommerce-checkout-review-order-table th {
    text-align: left;
}

.woocommerce-checkout-review-order-table td {
    text-align: right;
}

#payment {
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc_payment_methods li {
    margin-bottom: 15px;
}

.wc_payment_methods label {
    display: inline-block;
    margin-left: 10px;
    font-weight: 500;
}

.payment_box {
    background: var(--color-bg);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

#place_order {
    width: 100%;
    background: var(--color-gold);
    color: #0A0A0A;
    padding: 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
}

#place_order:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   5. MY ACCOUNT
   ========================================================================== */

.woocommerce-MyAccount-navigation {
    float: left;
    width: 25%;
}

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

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

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--color-text);
    transition: var(--transition);
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--color-gold);
    color: #0A0A0A;
}

.woocommerce-MyAccount-content {
    float: right;
    width: 70%;
}

.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   6. NOTICES
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 20px 25px;
    margin: 0 0 30px;
    border-radius: var(--radius-md);
    background: var(--color-bg-secondary);
    border-left: 5px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
}

.woocommerce-error {
    border-color: var(--color-error);
}

.woocommerce-message .button,
.woocommerce-info .button {
    background: var(--color-gold);
    color: #0A0A0A;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================================================
   7. BREADCRUMBS
   ========================================================================== */

.woocommerce-breadcrumb {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

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

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

/* ==========================================================================
   8. WIDGETS
   ========================================================================== */

.widget_price_filter .ui-slider {
    background: var(--color-bg-card);
    height: 6px;
    border-radius: 3px;
    margin: 15px 0 25px;
    position: relative;
}

.widget_price_filter .ui-slider-range {
    background: var(--color-gold);
    height: 100%;
    position: absolute;
}

.widget_price_filter .ui-slider-handle {
    width: 16px;
    height: 16px;
    background: var(--color-gold);
    border-radius: 50%;
    position: absolute;
    top: -5px;
    cursor: ew-resize;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.widget_price_filter .price_slider_amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget_price_filter .button {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.widget_product_categories ul,
.widget_rating_filter ul {
    list-style: none;
    padding: 0;
}

.widget_product_categories li,
.widget_rating_filter li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}

.widget_product_categories a {
    color: var(--color-text-secondary);
}

.widget_product_categories a:hover {
    color: var(--color-gold);
}

.widget_products li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.widget_products img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.widget_products .product-title {
    display: block;
    color: var(--color-text);
    font-weight: 500;
}

.widget_products .amount {
    color: var(--color-gold);
    font-weight: 600;
}

/* ==========================================================================
   9. MINI-CART
   ========================================================================== */

.widget_shopping_cart {
    background: var(--color-bg-secondary);
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.woocommerce-mini-cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.woocommerce-mini-cart-item img {
    width: 60px;
    height: auto;
    border-radius: var(--radius-sm);
}

.woocommerce-mini-cart-item a.remove {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--color-error);
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border: 1px solid var(--color-error);
    border-radius: 50%;
}

.woocommerce-mini-cart__total {
    border-top: 2px solid var(--color-border);
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}

.woocommerce-mini-cart__buttons .button {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    padding: 12px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    border-radius: var(--radius-sm);
}

.woocommerce-mini-cart__buttons .checkout {
    background: var(--color-gold);
    color: #0A0A0A;
    border-color: var(--color-gold);
}
