﻿:root {
    --altay-red: #e10b2c;
    --altay-red-dark: #a8081f;
    --altay-red-soft: #fff0f2;
    --altay-dark: #14171c;
    --altay-graphite: #1f242c;
    --altay-muted: #6b7280;
    --altay-bg: #f7f8fb;
    --altay-shadow: 0 10px 30px rgba(20, 23, 28, .08);
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
    color: #1f242c;
    background: var(--altay-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }

.text-danger, .text-altay { color: var(--altay-red) !important; }
.bg-altay { background-color: var(--altay-red) !important; }
.btn-danger { background: linear-gradient(135deg, var(--altay-red), var(--altay-red-dark)) !important; border: none !important; box-shadow: 0 6px 16px rgba(225,11,44,.25); transition: transform .15s ease, box-shadow .15s ease; }
.btn-danger:hover, .btn-danger:focus { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(225,11,44,.35) !important; background: linear-gradient(135deg, var(--altay-red-dark), var(--altay-red-dark)) !important; }
.btn-outline-danger { color: var(--altay-red); border-color: var(--altay-red); }
.btn-outline-danger:hover { background: var(--altay-red); border-color: var(--altay-red); }

.top-bar { background: var(--altay-dark); color: #cfd3da; padding: .5rem 0; font-size: .85rem; }
.top-bar a { color: #cfd3da; text-decoration: none; transition: color .15s ease; }
.top-bar a:hover { color: var(--altay-red); }
.top-bar i { color: var(--altay-red); margin-right: .25rem; }

.site-header .navbar { padding: .75rem 0; }
.site-header .navbar-brand img { border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.site-header .navbar-brand span { font-size: 1.15rem; letter-spacing: .3px; }
.site-header .nav-link { font-weight: 600; color: #2a2f37; padding: .6rem 1rem !important; position: relative; transition: color .15s ease; }
.site-header .nav-link::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .3rem; height: 2px; background: var(--altay-red); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.site-header .nav-link:hover { color: var(--altay-red); }
.site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }

.hero-slider .carousel-item { position: relative; }
.hero-slider .slide-img { width: 100%; height: 560px; object-fit: cover; }
.hero-slider .carousel-caption {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(120deg, rgba(20,23,28,.78) 0%, rgba(20,23,28,.45) 60%, rgba(20,23,28,.2) 100%);
    display: flex; align-items: center; text-align: left; padding: 0;
}
.hero-slider .carousel-caption .container { animation: heroIn .8s ease both; }
.hero-slider .carousel-caption h1 { font-weight: 800; font-size: 3rem; color: #fff; line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-slider .carousel-caption p { font-size: 1.2rem; max-width: 620px; color: #f3f4f6; margin-top: 1rem; }
.hero-slider .carousel-caption .btn { margin-top: 1.25rem; padding: .75rem 1.75rem; font-weight: 600; }
.hero-slider .carousel-indicators [data-bs-target] { width: 36px; height: 4px; border-radius: 2px; background-color: rgba(255,255,255,.45); border: none; }
.hero-slider .carousel-indicators .active { background-color: var(--altay-red); }
.hero-slider .carousel-control-prev, .hero-slider .carousel-control-next { width: 6%; opacity: .7; }
.hero-slider .carousel-control-prev:hover, .hero-slider .carousel-control-next:hover { opacity: 1; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-slider .slide-img { height: 380px; }
    .hero-slider .carousel-caption h1 { font-size: 1.75rem; }
    .hero-slider .carousel-caption p { font-size: .95rem; }
}

.section { padding: 5rem 0; }
.section-alt { background: #fff; }
.section-title { font-weight: 800; margin-bottom: 2.5rem; position: relative; display: inline-block; }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--altay-red), #ff6b6b); margin-top: .75rem; }
.section-eyebrow { color: var(--altay-red); font-weight: 700; letter-spacing: .12em; font-size: .8rem; text-transform: uppercase; margin-bottom: .5rem; }
.section-lead { color: var(--altay-muted); max-width: 720px; }

.category-card {
    display: block; padding: 2rem 1.25rem; background: #fff; border-radius: 1rem;
    box-shadow: var(--altay-shadow); text-decoration: none; color: #1f242c;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    height: 100%; text-align: center; border: 1px solid rgba(20,23,28,.04);
    position: relative; overflow: hidden;
}
.category-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--altay-red), #ff6b6b); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(225,11,44,.18); color: var(--altay-red); }
.category-card:hover::before { transform: scaleX(1); }
.category-card .icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: var(--altay-red-soft); color: var(--altay-red); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.category-card .icon-wrap i { font-size: 1.9rem; }
.category-card h6 { font-weight: 700; margin: 0; }

.product-card {
    background: #fff; border-radius: 1rem; overflow: hidden;
    box-shadow: var(--altay-shadow); height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex; flex-direction: column; border: 1px solid rgba(20,23,28,.04);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(20,23,28,.12); }
.product-card .img-wrap { width: 100%; height: 220px; background: linear-gradient(135deg,#f6f7fb,#eceff5); display: flex; align-items: center; justify-content: center; color: var(--altay-red); font-size: 3rem; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .img-wrap img { transform: scale(1.06); }
.product-card .body { padding: 1.25rem; }
.product-card .body h6 { font-weight: 700; margin-bottom: .5rem; }
.product-card .body p { color: var(--altay-muted); font-size: .9rem; margin-bottom: .75rem; }
.product-card .body .btn { font-weight: 600; }

.blog-card { background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: var(--altay-shadow); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(20,23,28,.12); }
.blog-card img { width: 100%; height: 220px; object-fit: cover; }
.blog-card .body { padding: 1.25rem; }
.blog-card .body h6 { font-weight: 700; }
.blog-card .meta { color: var(--altay-muted); font-size: .8rem; }

.ref-logo { background: #fff; padding: 1.25rem; border-radius: .75rem; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.05); display: flex; align-items: center; justify-content: center; min-height: 100px; transition: transform .2s ease; }
.ref-logo:hover { transform: translateY(-3px); }
.ref-logo img { max-height: 60px; max-width: 100%; filter: grayscale(.7); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
.ref-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ===== Footer ===== */
.site-footer {
    background: linear-gradient(180deg, #1a1f27 0%, #0e1116 100%);
    color: #d6dae1;
    margin-top: 4rem;
}
.site-footer .footer-brand { color: #fff; font-weight: 700; letter-spacing: .3px; }
.site-footer .footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; position: relative; padding-bottom: .5rem; }
.site-footer .footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--altay-red); border-radius: 1px; }
.site-footer .footer-text { color: #b9c0cb; line-height: 1.7; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .5rem; }
.site-footer .footer-links a { color: #d6dae1; text-decoration: none; transition: color .15s ease, padding-left .15s ease; display: inline-block; }
.site-footer .footer-links a::before { content: '\203A'; color: var(--altay-red); margin-right: .5rem; transition: margin-right .15s ease; }
.site-footer .footer-links a:hover { color: #fff; padding-left: 4px; }
.site-footer .footer-contact { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-contact li { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .85rem; color: #d6dae1; }
.site-footer .footer-contact li i { color: var(--altay-red); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.site-footer .footer-contact li a { color: #d6dae1; text-decoration: none; }
.site-footer .footer-contact li a:hover { color: #fff; }
.site-footer .footer-social { display: flex; gap: .6rem; }
.site-footer .footer-social a {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.06); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    text-decoration: none; transition: background .15s ease, transform .15s ease;
}
.site-footer .footer-social a:hover { background: var(--altay-red); transform: translateY(-2px); }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem; padding-top: 1.25rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
    color: #9aa3b1; font-size: .9rem;
}
.site-footer .footer-bottom strong { color: #fff; }
.site-footer .footer-admin { color: #6c7686; text-decoration: none; font-size: .8rem; transition: color .15s ease; }
.site-footer .footer-admin:hover { color: var(--altay-red); }

.whatsapp-fab {
    position: fixed; right: 24px; bottom: 24px; width: 60px; height: 60px;
    background: #25d366; color: #fff !important; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 1000; text-decoration: none;
    animation: pulse 2.2s infinite;
}
.whatsapp-fab:hover { background: #1faa53; transform: scale(1.05); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 8px 24px rgba(37,211,102,.45); }
    70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 8px 24px rgba(37,211,102,.45); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 8px 24px rgba(37,211,102,.45); }
}

.breadcrumb-bar { background: #fff; padding: 1rem 0; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.breadcrumb-bar .breadcrumb { margin: 0; }
.breadcrumb-bar .breadcrumb-item a { color: var(--altay-red); text-decoration: none; }
.breadcrumb-bar .breadcrumb-item.active { color: var(--altay-muted); }

/* ===== Forms / Cards generic polish ===== */
.card { border: none; border-radius: 1rem; box-shadow: var(--altay-shadow); }
.form-control, .form-select { border-radius: .6rem; padding: .65rem .9rem; border-color: #e3e6ec; }
.form-control:focus, .form-select:focus { border-color: var(--altay-red); box-shadow: 0 0 0 .2rem rgba(225,11,44,.12); }
.btn { border-radius: .6rem; padding: .55rem 1.1rem; font-weight: 500; }

/* ===== Stats / Feature strip ===== */
.feature-strip { background: #fff; border-radius: 1rem; box-shadow: var(--altay-shadow); padding: 1.75rem; margin-top: -3rem; position: relative; z-index: 5; }
.feature-strip.mt-0 { margin-top: 0; }
.feature-strip .feature-item { display: flex; align-items: center; gap: 1rem; }
.feature-strip .feature-item i { width: 48px; height: 48px; border-radius: 12px; background: var(--altay-red-soft); color: var(--altay-red); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.feature-strip .feature-item h6 { margin: 0 0 .15rem; font-weight: 700; }
.feature-strip .feature-item small { color: var(--altay-muted); }

/* ===== Product badges ===== */
.product-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    padding: .3rem .65rem; border-radius: 999px; color: #fff;
    text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.badge-featured { background: linear-gradient(135deg, #e10b2c, #a8081f); }
.badge-best { background: linear-gradient(135deg, #f59e0b, #b45309); }
.badge-popular { background: linear-gradient(135deg, #6366f1, #4338ca); }

/* ===== Products Index sidebar ===== */
.category-list li a {
    display: flex; align-items: center; justify-content: space-between;
    padding: .55rem .75rem; border-radius: .5rem; text-decoration: none;
    color: #2a2f37; font-weight: 500; margin-bottom: .15rem;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.category-list li a i.bi-chevron-right { color: #c5c9d2; font-size: .8rem; transition: transform .15s ease, color .15s ease; }
.category-list li a:hover { background: var(--altay-red-soft); color: var(--altay-red); }
.category-list li a:hover i.bi-chevron-right { color: var(--altay-red); transform: translateX(3px); }
.category-list li a.active { background: linear-gradient(135deg, var(--altay-red), var(--altay-red-dark)); color: #fff; }
.category-list li a.active i.bi-chevron-right { color: #fff; }

/* ===== Product detail ===== */
.product-detail-img img { max-height: 480px; object-fit: contain; width: 100%; }
.product-description { color: #374151; line-height: 1.75; }
.product-description p { margin-bottom: 1rem; }
.product-features li { padding: .35rem 0; color: #374151; }
.product-features li i { margin-right: .5rem; font-size: 1.1rem; }

/* ===== About page ===== */
.about-badge {
    position: absolute; bottom: -16px; right: -16px;
    background: #fff; border-radius: 1rem; padding: 1.1rem 1.4rem;
    box-shadow: 0 14px 30px rgba(20,23,28,.15); text-align: center;
}
.about-badge small { color: var(--altay-muted); font-weight: 600; }

.stat-card { background: #fff; border-radius: 1rem; padding: 2rem 1rem; box-shadow: var(--altay-shadow); transition: transform .2s ease; }
.stat-card:hover { transform: translateY(-4px); }
.stat-card .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--altay-red); line-height: 1; }
.stat-card .stat-label { color: var(--altay-muted); margin-top: .5rem; font-weight: 500; }

/* ===== Contact page ===== */
.contact-card {
    background: #fff; border-radius: 1rem; padding: 1.1rem 1.2rem;
    box-shadow: var(--altay-shadow); display: flex; align-items: flex-start; gap: 1rem;
    transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20,23,28,.1); }
.contact-card .ic {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--altay-red-soft); color: var(--altay-red);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.35rem; flex-shrink: 0;
}
.contact-card h6 { font-weight: 700; margin: 0 0 .15rem; }

/* ===== CTA Band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--altay-red), var(--altay-red-dark));
    box-shadow: 0 18px 40px rgba(225,11,44,.25);
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: -40% -10% auto auto;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(255,255,255,.08);
}
.cta-band > * { position: relative; z-index: 1; }

/* ===== Hero Search ===== */
.hero-search {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(20,23,28,.12);
    margin-top: -3rem;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(20,23,28,.04);
}
.hero-search .form-control-lg { font-size: 1rem; }

/* ===== Map ===== */
.map-wrap {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20,23,28,.06);
}
.map-wrap iframe {
    width: 100%;
    height: 460px;
    border: 0;
    display: block;
}
.map-directions {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    box-shadow: 0 12px 28px rgba(225,11,44,.35);
    z-index: 2;
}
@media (max-width: 576px) {
    .map-wrap iframe { height: 320px; }
    .map-directions { left: 1rem; right: 1rem; text-align: center; }
}

/* ===== Responsive Polish ===== */
@media (max-width: 991.98px) {
    .section { padding: 3.5rem 0; }
    .hero-search { padding: 1.25rem; margin-top: -2rem; }
    .feature-strip { padding: 1.25rem; }
}
@media (max-width: 767.98px) {
    body { font-size: .95rem; }
    .section { padding: 2.75rem 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
    .hero-slider .slide-img { height: 360px; }
    .hero-slider .carousel-caption h1 { font-size: 1.6rem; }
    .hero-slider .carousel-caption p { font-size: .9rem; }
    .hero-slider .carousel-caption .btn { padding: .55rem 1.1rem; font-size: .9rem; }
    .hero-search { padding: 1rem; margin-top: -1.5rem; }
    .hero-search .form-control-lg, .hero-search .btn-lg { font-size: .95rem; padding: .55rem .9rem; }
    .feature-strip { margin-top: 0; padding: 1rem; }
    .feature-strip .feature-item i { width: 42px; height: 42px; font-size: 1.15rem; }
    .feature-strip .feature-item h6 { font-size: .9rem; }
    .product-card .img-wrap { height: 160px; }
    .product-badge { font-size: .62rem; padding: .22rem .5rem; }
    .category-card { padding: 1.25rem .75rem; }
    .category-card .icon-wrap { width: 52px; height: 52px; }
    .blog-card img { height: 180px; }
    .about-badge { bottom: -10px; right: -8px; padding: .75rem 1rem; }
    .about-badge .display-6 { font-size: 1.6rem; }
    .stat-card { padding: 1.25rem .5rem; }
    .stat-card .stat-num { font-size: 1.75rem; }
    .cta-band { padding: 2rem 1rem !important; }
    .cta-band h2 { font-size: 1.4rem; }
    .site-header .navbar-brand img { height: 40px; }
    .site-header .navbar-brand span { font-size: 1rem; }
    .top-bar small { display: block; }
    .top-bar .container { gap: .25rem; }
    .footer-bottom { justify-content: center !important; text-align: center; }
    .whatsapp-fab { width: 52px; height: 52px; font-size: 1.7rem; right: 16px; bottom: 16px; }
    .contact-card { padding: .9rem; }
}
@media (max-width: 575.98px) {
    .feature-strip .row { row-gap: .75rem !important; }
    .product-card .img-wrap { height: 140px; }
    .product-card .body { padding: .85rem; }
    .product-card .body h6 { font-size: .9rem; }
}
