:root {
    --theme-primary: #007bff;
    --theme-primary-dark: #0056b3;
    --theme-bg: #f2f6fc;
    --theme-row1: #e4eeff;
    --theme-row1-txt: #333;
    --theme-row2: #ffffff;
    --theme-row2-txt: #333;
    --theme-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --theme-radius: 14px;
}

body {
    background-color: var(--theme-bg) !important;
}

/* Landing */
.landing-hero {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
    color: #fff;
    padding: 2.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.landing-logo {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.landing-hero h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-hero .lead a {
    color: rgba(255, 255, 255, 0.95);
    transition: opacity 0.2s;
}

.landing-hero .lead a:hover {
    opacity: 0.85;
    color: #fff;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 4px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-icons a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.section-title {
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--theme-primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 56px;
    height: 3px;
    background: var(--theme-primary);
    border-radius: 2px;
}

.slogan-title {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--theme-primary);
}

.card-modern {
    background: var(--theme-row2);
    color: var(--theme-row2-txt);
    border: none;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-card-shadow);
    overflow: hidden;
}

.card-modern-accent {
    border-right: 4px solid var(--theme-primary);
}

.product-card {
    background: #fff;
    border-radius: var(--theme-radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
    border-color: rgba(0, 0, 0, 0.12);
}

#products {
    background: var(--theme-row1);
    color: var(--theme-row1-txt);
    border-radius: var(--theme-radius);
    padding: 1.25rem;
    margin-top: 0.25rem;
}

.product-card img {
    max-height: 180px;
    width: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-card .product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--theme-row2-txt);
    padding: 0 1rem 1rem;
}

.btn-theme {
    background: var(--theme-primary) !important;
    border-color: var(--theme-primary) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    transition: filter 0.2s, transform 0.2s;
}

.btn-theme:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff !important;
}

.floating-cart-btn {
    position: fixed;
    top: 50%;
    left: 20px;
    z-index: 1050;
    background: var(--theme-primary);
    color: #fff !important;
    width: 68px;
    height: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    font-size: 11px;
}

.floating-cart-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    color: #fff !important;
}

.floating-cart-btn i {
    font-size: 22px;
}

.floating-cart-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
}

.carousel-modern {
    border-radius: var(--theme-radius);
    overflow: hidden;
    box-shadow: var(--theme-card-shadow);
    height: 100%;
}

.carousel-modern .carousel-inner,
.carousel-modern .carousel-item,
.carousel-modern .carousel-item > a {
    height: 100%;
}

.carousel-modern .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .carousel-modern {
        min-height: 220px;
        aspect-ratio: 16 / 9;
    }

    .carousel-modern .carousel-inner,
    .carousel-modern .carousel-item,
    .carousel-modern .carousel-item > a {
        min-height: 220px;
    }
}

@media (min-width: 992px) {
    .banner-row {
        align-items: stretch;
    }

    .banner-carousel-col,
    .banner-side {
        display: flex;
        flex-direction: column;
    }

    .banner-carousel-col .carousel-modern {
        flex: 1 1 auto;
        min-height: 280px;
    }

    .banner-side-stack {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex: 1 1 auto;
        height: 100%;
        min-height: 280px;
    }

    .banner-side-item {
        flex: 1 1 0;
        min-height: 0;
        display: block;
        overflow: hidden;
        border-radius: var(--theme-radius);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }

    .banner-side-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.25s;
    }
}

.banner-side a:hover img {
    transform: scale(1.02);
}

.contact-cards-row {
    align-items: stretch;
}

.contact-cards-row > [class*="col-"] {
    display: flex;
}

.contact-row {
    background: var(--theme-row1);
    color: var(--theme-row1-txt);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    flex: 1 1 auto;
    width: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-row-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    line-height: 1.6;
    width: 100%;
}

.contact-row a.contact-row-inner {
    color: inherit;
    text-decoration: none;
}

.contact-row a.contact-row-inner:hover {
    color: var(--theme-primary);
}

.text-pre-line {
    white-space: pre-line;
}

.pl-icon {
    padding-left: 0.7rem;
}

a {
    text-decoration: none;
    color: unset;
}

.social-icons i {
    padding-top: 0;
}

.carousel-indicators {
    list-style: none;
}

/* Basket wizard */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    position: relative;
}

.checkout-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 10%;
    left: 10%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

.checkout-steps li {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    color: #adb5bd;
    cursor: default;
}

.checkout-steps li .step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-steps li.active .step-dot,
.checkout-steps li.done .step-dot {
    background: var(--theme-primary);
    color: #fff;
}

.checkout-steps li.active {
    color: var(--theme-primary);
    font-weight: 600;
}

.checkout-steps li.done {
    color: #28a745;
}

.basket-card {
    border: none;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-card-shadow);
    background: #fff;
}

.basket-header {
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
    color: #fff;
    border-radius: var(--theme-radius) var(--theme-radius) 0 0;
    font-weight: 600;
    padding: 0.85rem 0;
}

.basket-row {
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease;
    padding: 1rem 0;
}

.basket-row:hover {
    background-color: #f8fbff;
}

.basket-row:nth-child(even) {
    background-color: #fafafa;
}

.product-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.qty-btn {
    min-width: 36px;
    height: 36px;
    padding: 0;
    line-height: 34px;
}

.qty-input {
    width: 52px;
    height: 36px;
    text-align: center;
}

.basket-alarm {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fff3f3;
    border: 1px solid #f5c6cb;
    color: #c0392b;
    font-size: 0.85rem;
    font-family: 'iransansweb', Tahoma, sans-serif;
    direction: rtl;
    unicode-bidi: plaintext;
    white-space: normal;
    word-wrap: break-word;
}

.summary-box {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: var(--theme-radius);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
}

.total-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.step-panel {
    display: none;
    animation: fadeIn 0.35s ease;
}

.step-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.shipping-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shipping-option:hover {
    border-color: var(--theme-primary);
    background: #f8fbff;
}

.shipping-option.selected {
    border-color: var(--theme-primary);
    background: var(--theme-row1);
}

.shipping-option input {
    margin-left: 0.75rem;
}

.cod-badge {
    background: #28a745;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.checkout-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.checkout-loading.show {
    display: flex;
}

.success-icon {
    font-size: 4rem;
    color: #28a745;
}

@media (max-width: 767px) {
    .checkout-steps li span.step-label {
        display: none;
    }

    .product-img {
        width: 70px;
        height: 70px;
    }

    .basket-header {
        display: none;
    }

    .landing-hero h1 {
        font-size: 1.35rem;
    }
}
