/*
Theme Name:   Hello Elementor Bakery Child
Theme URI:    https://yoursite.com
Description:  Child theme for Hello Elementor — Luxury Bakery Product Cards
Author:       Your Name
Author URI:   https://yoursite.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* =========================
   CARD
========================= */
.lux-card {
    position: relative;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.07);
    transition: transform .3s, box-shadow .3s;
    list-style: none;
}
.lux-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.11);
}

/* =========================
   IMAGE
========================= */
.lux-image-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
}
.lux-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    display: block;
}
.lux-card:hover .lux-image-wrap img {
    transform: scale(1.05);
}

/* =========================
   BADGES
========================= */
.lux-veg {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #4a8c35;
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    z-index: 3;
    text-transform: uppercase;
}
.lux-heart {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 3;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    transition: transform .2s;
}
.lux-heart:hover {
    transform: scale(1.1);
}
.lux-ribbon {
    position: absolute;
    top: 20px;
    right: -44px;
    background: #c0687a;
    color: #fff;
    padding: 7px 44px;
    transform: rotate(45deg);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    z-index: 3;
    text-transform: uppercase;
}

/* =========================
   ACTION BAR
========================= */
.lux-action-bar {
    display: flex;
    background: #a87200;
}
.lux-order-btn {
    flex: 1;
    background: #c99818;
    border: none;
    color: #1a0e00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .25s;
    text-transform: uppercase;
    font-family: inherit;
}
.lux-order-btn:hover {
    background: #b88a10;
}
.lux-icon {
    width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    border-left: 1px solid rgba(255,255,255,0.15);
    font-size: 16px;
    transition: background .25s;
}
.lux-icon:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* =========================
   BODY
========================= */
.lux-body {
    padding: 22px 24px 26px;
}
.lux-category {
    color: #b8860b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lux-category::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8dfc8;
}
.lux-title {
    display: block;
    color: #1a0e00;
    text-decoration: none;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: Georgia, serif;
    transition: color .2s;
}
.lux-title:hover {
    color: #b8860b;
}
.lux-desc {
    color: #8a7d6b;
    line-height: 1.75;
    font-size: 14px;
    margin-bottom: 18px;
}
.lux-review {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.lux-stars {
    color: #d4a017;
    font-size: 13px;
    letter-spacing: 2px;
}
.lux-review span {
    color: #aaa;
    font-size: 12px;
}
.lux-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lux-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a0e00;
    font-family: Georgia, serif;
}
.lux-old-price {
    color: #bbb;
    margin-left: 8px;
    text-decoration: line-through;
    font-size: 15px;
}
.lux-save {
    background: #fdeaea;
    color: #a84040;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* =========================
   DRAWER
========================= */
.lux-drawer {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 50;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lux-drawer.open {
    right: 0;
}

/* DRAWER HEADER */
.lux-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f0e8d8;
    background: #fdfaf5;
    flex-shrink: 0;
}
.lux-drawer-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
    color: #b8860b;
    text-transform: uppercase;
}
.lux-drawer-close {
    background: #f0e8d8;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    font-family: inherit;
}
.lux-drawer-close:hover {
    background: #e0d0b0;
    color: #1a0e00;
}

/* DRAWER BODY */
.lux-drawer-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
}

/* LOADING */
.lux-drawer-loading {
    text-align: center;
    padding: 40px 0;
    color: #ccc;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =========================
   WOOCOMMERCE FORM
========================= */
.lux-drawer-form table.variations {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin-bottom: 6px;
}
.lux-drawer-form table.variations tr,
.lux-drawer-form table.variations td,
.lux-drawer-form table.variations th {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
}
.lux-drawer-form table.variations label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    display: block;
}
.lux-drawer-form table.variations select {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e8dfc8;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    background: #fdfaf5;
    color: #1a0e00;
    margin-bottom: 16px;
    cursor: pointer;
    appearance: auto;
    font-family: inherit;
}
.lux-drawer-form table.variations select:focus {
    outline: none;
    border-color: #c99818;
    background: #fff;
}
.lux-drawer-form .reset_variations {
    display: none !important;
}
.lux-drawer-form .single_variation_wrap {
    display: block !important;
}
.lux-drawer-form .woocommerce-variation-price,
.lux-drawer-form .woocommerce-variation-availability {
    display: none !important;
}

/* QUANTITY */
.lux-drawer-form .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    border: 1.5px solid #e8dfc8;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}
.lux-drawer-form .quantity input[type="number"] {
    width: 70px;
    height: 46px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a0e00;
    background: #fdfaf5;
    font-family: inherit;
    -moz-appearance: textfield;
}
.lux-drawer-form .quantity input[type="number"]::-webkit-outer-spin-button,
.lux-drawer-form .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}
.lux-drawer-form .quantity input[type="number"]:focus {
    outline: none;
}

/* ADD TO CART */
.lux-drawer-form .single_add_to_cart_button,
.lux-drawer-form button[type="submit"] {
    width: 100% !important;
    height: 52px !important;
    border: none !important;
    background: #1a0e00 !important;
    color: #c99818 !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background .25s !important;
    display: block !important;
    font-family: inherit !important;
}
.lux-drawer-form .single_add_to_cart_button:hover,
.lux-drawer-form button[type="submit"]:hover {
    background: #2e1a00 !important;
}
.lux-drawer-form .single_add_to_cart_button.disabled,
.lux-drawer-form .single_add_to_cart_button:disabled {
    background: #ddd !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 767px) {
    .lux-title  { font-size: 22px; }
    .lux-price  { font-size: 26px; }
    .lux-body   { padding: 18px 16px 22px; }
}