
:root {
    --primary: #fd7e14;   /* Brand Orange */
    --blue: #0d6efd;
    --red: #dc3545;
    --dark: #212529;
    --light-bg: #f8f9fa;
    --radius: 12px;
}

body {
    background: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}


#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-msg {
    background: var(--dark);
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
    font-size: .95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp .3s ease forwards;
}

.toast-msg.success i { color: #2ecc71; }
.toast-msg.error i { color: var(--red); }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   HERO SECTION (UPDATED FOR NEW LAYOUT)
====================================== */
.hero-slider .carousel-item {
    height: 600px; /* Increased height for better layout */
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-content {
    color: #fff;
    max-width: 650px;
    padding-left: 15px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 1. Subtitle (Top Small Text) */
.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
}

/* 2. Main Title */
.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #fff;
}

/* 3. Orange Tag/Badge */
.hero-tag {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(253, 126, 20, 0.1); /* Slight orange tint bg */
}

/* 4. Description */
.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 550px;
}

/* 5. Buttons Group */
.hero-btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    border: 2px solid var(--primary);
}

.btn-hero-primary:hover {
    background: #e86b02;
    border-color: #e86b02;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 126, 20, 0.3);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all .3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-outline:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    transform: translateY(-3px);
}

/* ======================================
   SCROLL SECTIONS
====================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 40px;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar { display: none; }

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

.nav-arrow:hover {
    background: var(--dark);
    color: #fff;
}

/* ======================================
   CATEGORY CARDS
====================================== */
.cat-card {
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--blue);
    border-radius: 16px;
    padding: 20px 10px;
    text-align: center;
    transition: .3s;
    text-decoration: none;
}

.cat-card:hover {
    background: #f0f7ff;
    transform: translateY(-5px);
}

.cat-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(13,110,253,.1);
    color: var(--blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.cat-card:hover .cat-icon-box {
    background: var(--blue);
    color: #fff;
}

.cat-title {
    font-weight: 600;
    font-size: .95rem;
    color: var(--dark);
}

/* ======================================
   PRODUCT CARDS
====================================== */
.prod-card {
    min-width: 260px;
    max-width: 260px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: var(--radius);
    overflow: hidden;
    transition: .3s;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.08);
}

.prod-img-wrap {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: .4s;
}

.prod-card:hover img { transform: scale(1.08); }

/* Actions */
.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-action {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
    cursor: pointer;
}

.btn-action:hover {
    background: var(--dark);
    color: #fff;
}

.btn-action.active { color: var(--red); }

/* ======================================
   PRODUCT TEXT & PRICE (UNIFIED SYSTEM)
====================================== */
.prod-details { padding: 16px; }

.prod-category {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #adb5bd;
}

.prod-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-card:hover .prod-name { color: var(--primary); }

.prod-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-variant-numeric: tabular-nums;
}

.price-new {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

.price-old {
    color: var(--red);
    text-decoration: line-through;
    font-size: .9rem;
    opacity: .8;
}

/* ======================================
   MOBILE OPTIMIZATION
====================================== */
@media (max-width: 768px) {
    .hero-slider .carousel-item { height: 450px; }
    .hero-title { font-size: 2.5rem; }
    .hero-content { text-align: center; margin: 0 auto; padding: 0 20px; }
    .hero-btn-group { justify-content: center; }

    .prod-card {
        min-width: 180px;
        max-width: 180px;
    }

    .prod-img-wrap { height: 160px; }
    .price-new { font-size: 1rem; }
}


/* Force RF + price to stay on one line */
.price-new,
.price-old {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    white-space: nowrap;
}

/* Make currency smaller & aligned */
.price-new::first-letter,
.price-old::first-letter {
    font-size: 0.75em;
    font-weight: 600;
    color: #6c757d;
}

/* Ensure both prices align cleanly */
.prod-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}


@media (max-width: 576px) {

    .hero-btn-group {
        display: flex;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .hero-btn-group a {
        flex: 1;
        padding: 10px 14px;
        font-size: 0.85rem;
        font-weight: 700;
        border-radius: 30px;
        text-align: center;
        white-space: nowrap;
    }

    .btn-hero-primary {
        margin-right: 4px;
    }

    .btn-hero-outline {
        margin-left: 4px;
    }

    /* Reduce icon size inside button */
    .hero-btn-group i {
        font-size: 0.75rem;
    }
}
