/**
 * Graveerheer Theme - Custom CSS
 * Minimal overrides that Tailwind cannot handle via CDN.
 *
 * @package Graveerheer
 */

/* ─── Material Symbols Settings ───────────────────────────────── */

.material-symbols-outlined {
    font-variation-settings:
        'FILL' 0,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

/* Filled variant */
.material-symbols-outlined.filled {
    font-variation-settings:
        'FILL' 1,
        'wght' 400,
        'GRAD' 0,
        'opsz' 24;
}

/* ─── Glass Nav Effect ────────────────────────────────────────── */

.glass-nav {
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    backdrop-filter: blur(12px) saturate(180%);
    background-color: rgba(255, 255, 255, 0.8);
}

@supports not (backdrop-filter: blur(12px)) {
    .glass-nav {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

/* ─── Editorial Shadow Utility ────────────────────────────────── */

.editorial-shadow {
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.editorial-shadow-lg {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ─── Text Shadow Utility ─────────────────────────────────────── */

.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-md {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.text-shadow-lg {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ─── Hide Scrollbar Utility ──────────────────────────────────── */

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ─── Mobile Menu Animations ──────────────────────────────────── */

.mobile-menu-backdrop {
    opacity: 0;
    animation: fadeIn 0.2s ease-out forwards;
}

.mobile-menu-drawer {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ─── WooCommerce Overrides ───────────────────────────────────── */

/* Remove default WC styling artifacts */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
}

.woocommerce-message {
    background-color: #f1f4f9;
    border-left: 4px solid #855400;
    color: #181c20;
}

.woocommerce-info {
    background-color: #c9e6ff;
    border-left: 4px solid #006491;
    color: #181c20;
}

.woocommerce-error {
    background-color: #ffdad6;
    border-left: 4px solid #ba1a1a;
    color: #181c20;
}

.woocommerce-error li {
    list-style: none;
}

/* Star rating */
.star-rating {
    color: #f8a000;
}

/* Price styling */
.woocommerce .price,
.woocommerce .amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #855400;
}

.woocommerce del .amount {
    color: #867461;
    font-weight: 400;
}

/* Buttons */
.woocommerce .button,
.woocommerce input[type="submit"] {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    background-color: #855400;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.woocommerce .button:hover,
.woocommerce input[type="submit"]:hover {
    background-color: #653e00;
}

.woocommerce .button.alt {
    background-color: #f8a000;
    color: #633d00;
}

.woocommerce .button.alt:hover {
    background-color: #ffb95d;
}

/* Form inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid #d8c3ad;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #181c20;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: #855400;
    box-shadow: 0 0 0 3px rgba(133, 84, 0, 0.15);
}

/* ─── Line Clamp Utility ──────────────────────────────────────── */

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
