/* =========================================
   Testimonials Section (Ultra Luxury Redesign)
   ========================================= */
.testimonials-section {
    background: linear-gradient(135deg, #1a1a1a, #000000); /* Deep Black/Dark Theme */
    color: #fff;
    position: relative;
    padding-top: 100px;
    padding-bottom: 120px;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/pattern-dark.png'); /* Subtle Pattern */
    opacity: 0.05;
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.testimonial-card {
    background: linear-gradient(145deg, #222, #111);
    border: 1px solid rgba(255, 215, 0, 0.1); /* Subtle Gold Border */
    border-radius: 25px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.testimonial-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    border-color: var(--secondary-color); /* Gold Border on Hover */
}

.quote-icon-bg {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.rating-stars {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 20px;
}

.testimonial-card .text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-style: italic;
    min-height: 90px;
}

.author-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.avatar-circle {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    border: 2px solid var(--secondary-color);
}

.author-details .info {
    text-align: right;
}

.author-details h4 {
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
    font-weight: 700;
}

.author-details span {
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: block;
}

/* =========================================
   Compact CTA Section
   ========================================= */
.cta-section-compact {
    background: var(--primary-color);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 10;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-text-col {
    text-align: right;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #fff;
}

.cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-btn-col {
    flex-shrink: 0;
}

.btn-cta-compact {
    background: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-cta-compact:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   Blog Section (Fire & Sparks Luxury Redesign)
   ========================================= */
.blog-section {
    background-color: #f8f9fa;
    padding-bottom: 100px;
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    perspective: 1000px;
}

.blog-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 25px;
    padding: 2px; /* Border width */
    background: linear-gradient(45deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(86, 95, 163, 0.2); /* Colored Shadow */
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-img {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 25px 25px 0 0;
}

.blog-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.blog-card:hover .blog-img::after {
    opacity: 1;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-img img {
    transform: scale(1.15) rotate(2deg);
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

/* New Label Effect */
.blog-label {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.blog-label i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.blog-card:hover .blog-label {
    transform: translateY(0);
    opacity: 1;
}

/* Date Badge Redesign */
.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    min-width: 70px;
    z-index: 3;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-date {
    transform: scale(1.1);
}

.blog-date .day {
    display: block;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), #2a2f55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 2px;
}

.blog-date .month {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.blog-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
    background: #fff;
}

/* Blog Meta Data Luxury */
.blog-meta-luxury {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #777;
}

.blog-meta-luxury .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-meta-luxury .meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.blog-meta-luxury .meta-item:hover {
    background: var(--primary-color);
    color: #fff;
}

.blog-meta-luxury .meta-item:hover i {
    color: #fff;
}

.blog-meta-luxury .rating i {
    color: #ffc107; /* Gold Star */
}

.blog-content .title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-content .title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    background: linear-gradient(to left, var(--primary-color), var(--primary-color));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: right bottom;
    padding-bottom: 3px;
}

.blog-content .title a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
}

.blog-content .excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.7;
    flex-grow: 1;
}

.blog-content .read-more {
    color: var(--primary-color);
    font-weight: 800;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    margin-top: auto;
    padding: 10px 20px;
    background: rgba(86, 95, 163, 0.05); /* Light primary bg */
    border-radius: 50px;
    align-self: flex-start;
}

.blog-content .read-more i {
    transition: transform 0.3s;
}

.blog-card:hover .read-more {
    background: var(--primary-color);
    color: #fff;
    gap: 12px;
    box-shadow: 0 5px 15px rgba(86, 95, 163, 0.3);
}

.blog-card:hover .read-more i {
    transform: translateX(-5px); /* Move arrow left (RTL) */
}

/* =========================================
   FAQ Section (Dark Luxury)
   ========================================= */
.faq-dark {
    background: linear-gradient(135deg, #111, #222);
    color: #fff;
    position: relative;
}

.faq-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/pattern-dark.png');
    opacity: 0.03;
    pointer-events: none;
}

.faq-dark .section-title {
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.faq-dark .section-title span {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.faq-dark .section-subtitle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-dark .section-desc {
    color: #aaa;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: #1a1a1a;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #555;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.question-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

.question-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 30px;
    text-align: center;
    transition: color 0.3s ease;
}

.faq-item.active .question-icon {
    color: var(--secondary-color);
}

.faq-question .toggle-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #151515; /* Slightly darker for answer area */
}

.faq-answer p {
    margin-bottom: 20px;
    color: #ccc;
    line-height: 1.7;
}

/* Active State */
.faq-item.active {
    border-color: var(--secondary-color);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 20px;
    border-top: 1px solid #333;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .testimonials-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text-col {
        text-align: center;
    }
}

/* =========================================
   "Royal" Clean Luxury Checkout Design (Refined)
   ========================================= */

/* Hide Default Theme Headers on Checkout */
.woocommerce-checkout .single-hero,
.woocommerce-checkout .goha-breadcrumbs,
.woocommerce-checkout .page-title-simple {
    display: none !important;
}

/* Global Checkout Wrapper */
.goha-luxury-checkout-wrapper {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Tajawal', sans-serif;
    direction: rtl; /* Ensure RTL */
}

/* 1. Progress Steps Indicator (Clean & Professional) */
.goha-checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.step-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 1px solid #e0e0e0; /* Thinner border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #ccc;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #999;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 -10px;
    position: relative;
    top: -14px;
    z-index: 1;
}

/* Active/Completed States */
.step-item.active .step-icon,
.step-item.completed .step-icon {
    background: var(--primary-color, #2c3e50);
    border-color: var(--primary-color, #2c3e50);
    color: #fff;
    box-shadow: none; /* Removed shadow/glow */
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: var(--primary-color, #2c3e50);
}

.step-line.active {
    background: var(--primary-color, #2c3e50);
}

/* 2. Modern Header (Clean Text - No Frames/Backgrounds) */
.goha-checkout-header-modern {
    text-align: center;
    margin-bottom: 40px;
}

/* Removed ::after underline */

.modern-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color, #2c3e50);
    margin: 0;
    background: none; /* Ensure no background */
}

.modern-subtitle {
    font-size: 1rem;
    color: #777;
    margin-top: 8px;
}

/* 3. Layout Grid */
.goha-checkout-cols {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 4. Luxury White Cards (Clean - Minimal Shadow) */
.goha-checkout-box, .goha-checkout-review-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03); /* Very subtle shadow */
    border: 1px solid #f0f0f0;
}

/* Box Headers - Removed "Glow" and Borders */
.box-header-glow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    /* Removed border-bottom and padding */
}

.box-header-glow i {
    font-size: 1.4rem;
    color: var(--primary-color, #2c3e50);
}

.goha-checkout-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color, #2c3e50);
    /* No background, no frame */
}

/* 5. Form Fields (Clean & Minimal) */
.woocommerce-input-wrapper {
    width: 100%;
}

.form-row {
    margin-bottom: 20px !important;
}

.form-row label {
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    display: block;
}

.form-row input.input-text,
.form-row textarea {
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease !important;
}

.form-row input.input-text:focus,
.form-row textarea:focus {
    border-color: var(--primary-color, #2c3e50) !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    height: 45px !important;
    padding: 8px !important;
}

/* 6. Order Review Table */
.woocommerce-checkout-review-order-table {
    border: none !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    border: none !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    font-size: 0.95rem;
    color: #555;
}

.product-name {
    font-weight: 500;
}

.product-total {
    font-weight: 700;
    color: #333;
    text-align: left;
}

.order-total th, .order-total td {
    border-top: 2px solid #eee !important;
    border-bottom: none !important;
    font-size: 1.1rem !important;
    padding-top: 20px !important;
    color: #222;
}

.order-total .amount {
    color: var(--primary-color, #2c3e50);
    font-weight: 800;
    font-size: 1.4rem;
}

/* Payment Methods */
#payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.wc_payment_methods {
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.wc_payment_method {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 15px;
}

.wc_payment_method input[type="radio"]:checked + label {
    color: var(--primary-color, #2c3e50);
    font-weight: 700;
}

/* Place Order Button (Simple) */
#place_order {
    background: var(--primary-color, #2c3e50) !important;
    color: #fff !important;
    border-radius: 6px !important; /* Less rounded */
    font-size: 1.1rem !important;
    font-weight: 700;
    padding: 15px 30px !important;
    margin-top: 10px !important;
    width: 100%;
    border: none !important;
    transition: opacity 0.3s ease;
    box-shadow: none !important;
}

#place_order:hover {
    opacity: 0.9;
}

/* Sticky Box */
.sticky-box {
    position: sticky;
    top: 40px;
}

/* Responsive */
@media (max-width: 991px) {
    .goha-checkout-cols {
        grid-template-columns: 1fr;
    }
    
    .goha-checkout-review-box {
        order: -1;
    }
}

@media (max-width: 768px) {
    .goha-luxury-checkout-wrapper {
        margin: 20px auto;
    }

    .modern-title {
        font-size: 1.8rem;
    }

    .goha-checkout-steps {
        margin-bottom: 30px;
        transform: scale(0.9);
    }
    
    .goha-checkout-box, .goha-checkout-review-box {
        padding: 20px;
    }
}

/* Custom Currency Symbol (Luxury Image Mask) */
.custom-currency-symbol {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    background-color: var(--primary-color, #c19d60); /* Primary Color */
    -webkit-mask: url('../img/sar.png') no-repeat center;
    mask: url('../img/sar.png') no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
    vertical-align: -0.2em;
    margin: 0 3px;
}

/* --- Floating Cart Widget (Luxury) --- */
.rwad-floating-cart {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999; /* Above everything */
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floating-cart-trigger {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    text-decoration: none !important;
    color: var(--primary-color, #c19d60);
    border: 1px solid rgba(193, 157, 96, 0.15);
    height: 60px;
    min-width: 60px;
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.floating-cart-trigger:hover,
.rwad-floating-cart.item-added .floating-cart-trigger {
    box-shadow: 0 15px 50px rgba(193, 157, 96, 0.25);
    border-color: var(--primary-color, #c19d60);
    padding-left: 25px; /* Extra space for text on left end */
}

/* Icon Box */
.floating-cart-icon-box {
    width: 44px;
    height: 44px;
    background: var(--primary-color, #c19d60);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s ease;
}

.floating-cart-trigger:hover .floating-cart-icon-box {
    transform: scale(1.1);
}

.floating-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Text Container */
.floating-cart-text {
    max-width: 0;
    opacity: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: all 0.5s ease;
    white-space: nowrap;
}

/* Show Text on Hover or Added */
.rwad-floating-cart:hover .floating-cart-text,
.rwad-floating-cart.item-added .floating-cart-text {
    max-width: 200px;
    opacity: 1;
    margin-right: 15px; /* RTL Spacing */
}

.fc-title {
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.fc-sub {
    font-size: 15px;
    font-weight: 800;
    color: #000;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fc-sub i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.rwad-floating-cart:hover .fc-sub i {
    transform: translateX(-3px); /* RTL arrow moves left */
}

/* Mini Cart Popup */
.rwad-mini-cart-popup {
    position: absolute;
    bottom: 80px; /* Above the button */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 320px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100000;
    border: 1px solid #eee;
    overflow: hidden;
}

.rwad-floating-cart.open .rwad-mini-cart-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mini-cart-header {
    background: #f8f8f8;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mini-cart-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
}

.close-mini-cart {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s;
}

.close-mini-cart:hover {
    color: #ff4d4d;
}

/* WooCommerce Mini Cart Styles */
.widget_shopping_cart_content {
    max-height: 400px;
    overflow-y: auto;
}

.woocommerce-mini-cart {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    gap: 15px;
}

.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.woocommerce-mini-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 0 !important; /* Reset standard WC margin */
}

.woocommerce-mini-cart-item a:not(.remove) {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
    line-height: 1.3;
}

.woocommerce-mini-cart-item .quantity {
    font-size: 12px;
    color: #777;
    display: block;
}

.woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 10px;
    left: 10px; /* RTL */
    background: #fff0f0;
    color: #ff4d4d !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.woocommerce-mini-cart-item .remove:hover {
    background: #ff4d4d;
    color: #fff !important;
}

/* Footer (Total & Buttons) */
.woocommerce-mini-cart__total {
    padding: 15px;
    margin: 0;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #333;
    background: #fff;
}

.woocommerce-mini-cart__buttons {
    padding: 15px;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.woocommerce-mini-cart__buttons .button.checkout {
    background: var(--primary-color, #c19d60);
    color: #fff;
    border: none;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
    background: #000;
}

.woocommerce-mini-cart__buttons .button:not(.checkout) {
    background: #f5f5f5;
    color: #333;
}

.woocommerce-mini-cart__buttons .button:not(.checkout):hover {
    background: #e0e0e0;
}

/* Empty Cart Message */
.woocommerce-mini-cart__empty-message {
    padding: 30px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

/* Animation: Shake/Bounce */
@keyframes cart-pop {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
    100% { transform: translateX(-50%) scale(1); }
}

@keyframes cart-wobble {
    0% { transform: translateX(0%); }
    15% { transform: translateX(-5%) rotate(-5deg); }
    30% { transform: translateX(4%) rotate(3deg); }
    45% { transform: translateX(-3%) rotate(-3deg); }
    60% { transform: translateX(2%) rotate(2deg); }
    75% { transform: translateX(-1%) rotate(-1deg); }
    100% { transform: translateX(0%); }
}

.rwad-floating-cart.item-added {
    animation: cart-pop 0.4s ease;
}

.rwad-floating-cart.item-added .floating-cart-icon-box {
    animation: cart-wobble 0.8s ease;
    background: #000; /* Highlight color on add */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .rwad-floating-cart {
        bottom: 20px;
        left: 50%; /* Center on mobile too */
        transform: translateX(-50%);
    }
    
    .floating-cart-trigger {
        height: 50px;
        min-width: 50px;
        padding: 5px;
    }
    
    .floating-cart-icon-box {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Mobile Popup */
    .rwad-mini-cart-popup {
        width: 90vw; /* Wider on mobile */
        max-width: 350px;
        bottom: 70px;
    }
}
