/**
 * Lightweight WooCommerce Product Header Card
 * Main stylesheet (non-critical)
 */

/* ===============================
   PRODUCT TITLE & PRICE STYLES
================================ */

.single-product .product_title,
.single-product .summary > .price {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.single-product .product_title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #111827;
    letter-spacing: -0.3px;
}

.single-product .product_title:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* ===============================
   PRICE STYLES
================================ */

.single-product .summary > .price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

/* Sale price (strikethrough) */
.single-product .price del {
    opacity: 0.55;
    font-size: 0.85em;
    color: #6b7280;
}

/* New/sale price */
.single-product .price ins {
    text-decoration: none;
    color: #dc2626;
    font-weight: 700;
}

/* ===============================
   HANDMADE BADGE
================================ */

.lw-handmade-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid #d1fae5;
    transition: all 0.2s ease;
}

.lw-handmade-badge:hover {
    background: #d1fae5;
    border-color: #a7f3d0;
    box-shadow: 0 1px 3px rgba(21, 128, 61, 0.1);
}

/* ===============================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 768px) {
    .single-product .product_title,
    .single-product .summary > .price {
        padding: 12px 14px;
        margin: 0 0 12px;
        font-size: 1rem;
    }

    .single-product .product_title {
        font-size: 1rem;
    }

    .single-product .summary > .price {
        flex-wrap: wrap;
        font-size: 1.1rem;
        gap: 8px;
    }

    .lw-handmade-badge {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .single-product .product_title {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .single-product .summary > .price {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .lw-handmade-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* ===============================
   ACCESSIBILITY
================================ */

@media (prefers-reduced-motion: reduce) {
    .single-product .product_title,
    .single-product .summary > .price,
    .lw-handmade-badge {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .single-product .product_title,
    .single-product .summary > .price {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }

    .lw-handmade-badge {
        background: #064e3b;
        color: #86efac;
        border-color: #047857;
    }
}