/* ============================================================
   masinelesvaikams.lt - custom stiliai virš Bootstrap 5
   ============================================================ */

:root {
    --brand-red:    #dc3545;
    --brand-red-2:  #b02a37;
    --brand-orange: #f78c1f;
    --brand-dark:   #1a1d23;
    --brand-light:  #fafbfd;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--brand-light);
    color: #1a1d23;
}

/* ---------- Header / sale bar ---------- */
.sale-bar {
    background: linear-gradient(90deg, var(--brand-red) 0%, var(--brand-orange) 100%);
    color: #fff;
    letter-spacing: .04em;
    font-size: .85rem;
}
.brand-emoji { font-size: 1.4rem; }
.navbar-brand { font-size: 1.15rem; }
.site-header .nav-link { color: #1a1d23; font-weight: 500; }
.site-header .nav-link:hover { color: var(--brand-red); }

/* ---------- Hero ---------- */
.hero {
    background:
        radial-gradient(ellipse at top right, rgba(220, 53, 69, .07), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(247, 140, 31, .06), transparent 60%);
}
.hero h1 { line-height: 1.1; letter-spacing: -0.02em; }
.py-lg-6 { padding-top: 4.5rem !important; padding-bottom: 4.5rem !important; }

/* ---------- Product card ---------- */
.product-card {
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
    border-radius: .75rem;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08) !important;
}
.product-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f1f3f6;
    border-radius: .75rem .75rem 0 0;
}
.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform .3s ease;
}
.product-card:hover .product-image { transform: scale(1.05); }

.product-badges {
    position: absolute;
    top: .6rem;
    left: .6rem;
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}
.product-badges .badge { font-size: .72rem; padding: .35em .55em; }
.product-status {
    position: absolute;
    top: .6rem;
    right: .6rem;
}

.product-card.product-sold { opacity: .55; filter: grayscale(.5); }
.product-card.product-sold .product-image { filter: grayscale(.8); }

.status-badge { font-size: .75rem; padding: .35em .6em; }
.only-one-badge {
    background: linear-gradient(90deg, var(--brand-red), var(--brand-orange)) !important;
    color: #fff !important;
}

/* ---------- Catalog ---------- */
.catalog-hero h1 { font-size: 1.85rem; letter-spacing: -.01em; }
.breadcrumb a { color: #6c757d; }
.breadcrumb a:hover { color: var(--brand-red); }

/* ---------- Product page ---------- */
.gallery-main img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    padding: 1rem;
}
.gallery-thumbs {
    margin-top: .5rem;
}
.gallery-thumb {
    width: 78px;
    height: 78px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: .5rem;
    padding: 4px;
    cursor: pointer;
    transition: border-color .15s ease;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-thumb:hover { border-color: #dee2e6; }
.gallery-thumb.active {
    border-color: var(--brand-red);
}

.price-box { padding: 1rem 0; border-top: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }

.spec-list { font-size: .95rem; }
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px dashed #e3e6ea;
    gap: 1rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-weight: 600; color: #495057; margin: 0; }
.spec-row dd { margin: 0; text-align: right; color: #1a1d23; }

/* ---------- Buttons / forms ---------- */
.btn-danger {
    background: var(--brand-red);
    border-color: var(--brand-red);
}
.btn-danger:hover, .btn-danger:focus {
    background: var(--brand-red-2);
    border-color: var(--brand-red-2);
}

/* ---------- Footer ---------- */
.site-footer h5, .site-footer h6 { color: #fff; }
.site-footer a:hover { color: var(--brand-orange) !important; }

/* ---------- Hero stats ---------- */
.hero-stats { border-radius: 1rem; }

/* ---------- Utility ---------- */
.lead-sm { font-size: 1.05rem; color: #495057; line-height: 1.7; }

/* ---------- Responsive small ---------- */
@media (max-width: 575.98px) {
    .hero h1 { font-size: 2rem; }
    .display-5 { font-size: 1.75rem; }
    .product-image-wrap { aspect-ratio: 1 / 1; }
}
