/* CutterPros Custom Styles */

:root {
    --cp-red: #D33831;
    --cp-red-dark: #b02f29;
    --cp-red-darker: #a82a24;
    --cp-red-light: #fff5f5;
    --cp-red-border: #fde8e7;
    --cp-charcoal: #1a1a1a;
    --cp-slate: #4a4a4a;
    --cp-muted: #6c757d;
}

/* CutterPros brand color */
.bg-cutterpros {
    background-color: var(--cp-red) !important;
}

/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, .display-4 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Fix: use brand red for all primary color accents */
.text-primary { color: var(--cp-red) !important; }
.btn-outline-primary {
    color: var(--cp-red);
    border-color: var(--cp-red);
}
.btn-outline-primary:hover {
    background-color: var(--cp-red);
    border-color: var(--cp-red);
    color: #fff;
}

/* Unify hero CTA to exact brand red */
.btn.bg-danger,
.btn-danger {
    background-color: var(--cp-red) !important;
    border-color: var(--cp-red) !important;
}
.btn-danger:hover { background-color: var(--cp-red-dark) !important; }

a,
a:visited,
a:hover {
    color: var(--cp-red);
    text-decoration: none;
}

/* Navbar brand */
.navbar-brand {
    font-size: 1.5rem;
}

/* Product card */
.product-card img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 1rem;
}

/* Search suggestions */
#search-suggestions a {
    max-height: 60px;
    overflow: hidden;
}

#search-suggestions a:hover {
    background-color: #f8f9fa;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-1px);
}

/* Footer links */
footer a:hover {
    color: #fff !important;
}

/* Utility */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions */
* {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

/* ============================================================
   Sidebar Category Nav — verticalmenu2 style
   ECT legacy outputs a FLAT list; depth via ectraq0/ectraq1/ectraq2 classes
   ============================================================ */

.left_nav_wrap {
    border: 1px solid #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.left_nav_wrap h2 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    padding: 0.55rem 0.75rem;
    margin-bottom: 0;
    border-bottom: none;
    background: var(--cp-red);
}

.left_nav ul.ectverticalmenu2 {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* All items base */
.left_nav ul.ectverticalmenu2 li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.left_nav ul.ectverticalmenu2 li a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    color: #343a40;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.left_nav ul.ectverticalmenu2 li a:hover {
    background-color: #fff5f5;
    color: #D33831;
    border-left-color: #D33831;
}

/* Top-level category (has subs) */
.left_nav ul.ectverticalmenu2 li.ectmenuhassub1 > a {
    font-weight: 600;
    color: #212529;
    border-left-color: #D33831;
    background-color: #fdf2f2;
}

.left_nav ul.ectverticalmenu2 li.ectmenuhassub1 > a::after {
    content: '+';
    float: right;
    font-size: 0.75rem;
    color: #adb5bd;
    font-weight: 400;
    margin-top: 1px;
}

/* Depth 1 sub-items: ectraq0 */
.left_nav ul.ectverticalmenu2 li.ectraq0 a {
    padding-left: 1.25rem;
    font-size: 0.845rem;
    color: #495057;
    background-color: #fafafa;
}

.left_nav ul.ectverticalmenu2 li.ectraq0 a:hover {
    background-color: #fff5f5;
    color: #D33831;
    border-left-color: #D33831;
}

/* Depth 2 sub-items: ectraq1 */
.left_nav ul.ectverticalmenu2 li.ectraq1 a {
    padding-left: 1.75rem;
    font-size: 0.82rem;
    color: #6c757d;
    background-color: #f5f5f5;
}

.left_nav ul.ectverticalmenu2 li.ectraq1 a:hover {
    background-color: #fff5f5;
    color: #D33831;
    border-left-color: #D33831;
}

/* Depth 3 sub-items: ectraq2 */
.left_nav ul.ectverticalmenu2 li.ectraq2 a {
    padding-left: 2.25rem;
    font-size: 0.8rem;
    color: #868e96;
    background-color: #f0f0f0;
}

.left_nav ul.ectverticalmenu2 li.ectraq2 a:hover {
    background-color: #fff5f5;
    color: #D33831;
    border-left-color: #D33831;
}

/* Selected/active state */
.left_nav ul.ectverticalmenu2 li.ectselected > a {
    background-color: #D33831;
    color: #fff !important;
    font-weight: 600;
    border-left-color: #a82a24;
}

.left_nav ul.ectverticalmenu2 li.ectmenuhassub1.ectselected > a::after {
    content: '−';
    color: rgba(255,255,255,0.7);
}

.ectbutton {
    flex-shrink: 0;
    height: 38px;
    padding: 0.375rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;
    background-color: #D33831;
    border: 1px solid #D33831;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease-in-out,
                background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out,
                box-shadow 0.15s ease-in-out;
}


.ectbutton:hover {
    background-color: #b02f29;
    border-color: #a82a24;
    transform: translateY(-1px);
}

.ectbutton:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(211, 56, 49, 0.25);
}

.ectbutton:active {
    background-color: #a82a24;
    border-color: #9e2722;
    transform: none;
}

/* ============================================================
   Minimal Email Signup Form
   ============================================================ */

.minimailsignup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

input[type="*"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    appearance: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="*"]:focus {
    color: #212529;
    background-color: #fff;
    border-color: #e07b77;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(211, 56, 49, 0.25);
}

input[type="*"]::placeholder {
    color: #6c757d;
    opacity: 1;
}

input[type="submit"] {
    flex-shrink: 0;
    height: 38px;
    padding: 0.375rem 1rem;
    margin-top: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;
    background-color: #D33831;
    border: 1px solid #D33831;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease-in-out,
                background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out,
                box-shadow 0.15s ease-in-out;
}

.minimailsignup button {
    flex-shrink: 0;
    height: 38px;
    padding: 0.375rem 1rem;
    margin-top: 1rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    color: #fff;
    background-color: #D33831;
    border: 1px solid #D33831;
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    transition: color 0.15s ease-in-out,
                background-color 0.15s ease-in-out,
                border-color 0.15s ease-in-out,
                box-shadow 0.15s ease-in-out;
}

/* ============================================================
   Category Cards
   ============================================================ */

.category-card {
    background: var(--cp-red-light);
    border-radius: 0.75rem !important;
    border: 1px solid var(--cp-red-border) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.category-card:hover {
    background: var(--cp-red) !important;
    color: #fff !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(211, 56, 49, 0.25) !important;
}

.category-card:hover .card-title { color: #fff !important; }
.category-card:hover svg { filter: brightness(0) invert(1); }
.category-card .card-title {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================================
   Trust anchor row (hero)
   ============================================================ */

.trust-anchor {
    font-size: 0.82rem;
    color: var(--cp-muted);
}

.trust-anchor .stars { color: #f5a623; }

/* ============================================================
   Why Choose Us section
   ============================================================ */

.trust-pillar h4 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

/* ============================================================
   Footer improvements
   ============================================================ */

.footer h3 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.footer ul li { margin-bottom: 0.35rem; }

.footer a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.875rem;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.footer a:hover { color: #fff !important; }
