/*
Custom Css
*/
.dir-rtl{
    direction: rtl;
}
.dir-ltr{
    direction: ltr;
}


body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #f0fef9 0%, #ffffff 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}



.category-card {
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-image-wrapper {
    width: 160px;     
    height: 160px;     
    overflow: hidden;
    border-radius: 50%;
    margin: 0 auto 1rem;
    flex-shrink: 0;    
}

.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
}



.product-card {
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.product-img {
    height: 140px; 
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-img {
    transform: scale(1.08);
}
.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    transition: opacity 0.3s;
}
.product-card:hover .overlay {
    opacity: 1;
}



.side-banner {
  min-height: 300px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.side-banner:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}



/* /////////////////فاکتور/////////////////// */
.invoice-wrapper {
    padding: 60px 15px;
}

.invoice-box {
    max-width: 900px;
    margin: auto;
    padding: 30px;
    border: 2px solid #000;
    font-size: 14px;
    background: #fff;
}

.invoice-header {
    text-align: center;
    margin-bottom: 20px;
}

.invoice-header h2 {
    font-weight: bold;
}

.invoice-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 20px;
}

.info-right,
.info-left {
    width: 48%;
}

.address-box {
    margin-top: 10px;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.8;
}

.table-invoice {
    width: 100%;
    border-collapse: collapse;
}

.table-invoice th,
.table-invoice td {
    border: 1px solid #000;
    padding: 8px;
    text-align: center;
}

.table-invoice th {
    background-color: #f2f2f2;
}

.total-row {
    font-weight: bold;
    font-size: 15px;
}

.payment-status {
    margin-top: 20px;
}

/* ===================== */
/* Responsive Section */
/* ===================== */

@media (max-width: 768px) {

    .invoice-box {
        padding: 15px;
        font-size: 13px;
    }

    .invoice-info {
        flex-direction: column;
        gap: 15px;
    }

    .info-right,
    .info-left {
        width: 100%;
    }

    .invoice-header h2 {
        font-size: 18px;
    }

    .invoice-header h3 {
        font-size: 16px;
    }

    /* جدول اسکرول افقی بخوره */
    .table-invoice {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .table-invoice th,
    .table-invoice td {
        font-size: 12px;
        padding: 6px;
    }

    .total-row {
        font-size: 14px;
    }

    .btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

/* Print */
@media print {
    body * {
        visibility: hidden;
    }
    .invoice-box, .invoice-box * {
        visibility: visible;
    }
    .invoice-box {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}



/* ================= Floating Contact ================= */

.contact-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    transition: 0.3s;
}

.contact-toggle:hover {
    transform: scale(1.1);
}

.contact-menu {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-menu.active {
    display: flex;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}

.contact-item i {
    font-size: 18px;
}

/* رنگ‌ها */
.phone { background: #007bff; }
.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }

.contact-item.instagram {
    background: linear-gradient(
        45deg,
        #f09433,
        #e6683c,
        #dc2743,
        #cc2366,
        #bc1888
    );
    color: #fff;
}

/* ================= End Floating Contact ================= */