/*
Theme Name: SiggmaMed Medical Theme
Theme URI: https://siggmamed.ir
Author: SiggmaMed Team
Author URI: https://siggmamed.ir
Description: قالب اختصاصی تجهیزات پزشکی و دندانپزشکی سیگمامد
Version: 2.0.0
*/

body {
    font-family: 'IRANSans', Tahoma, Arial, sans-serif;
    font-size: 14px;
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
}

a {
    color: #0066cc;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: #004080;
    text-decoration: none;
}

/* --- Top Bar --- */
.top-bar {
    background-color: #1e293b;
    color: #cbd5e1;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #334155;
}

.top-info {
    margin-left: 20px;
}

.top-info i {
    color: #38bdf8;
    margin-left: 5px;
}

/* --- Main Header --- */
.main-header {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logoarea .site-title {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin: 0;
}

.logoarea .site-desc {
    font-size: 11px;
    color: #666;
    display: block;
}

.logoarea img {
    max-height: 60px;
    width: auto;
}

/* --- Search Area --- */
.searcharea form {
    position: relative;
    display: flex;
}

.searcharea input[type="text"] {
    width: 100%;
    padding: 10px 15px 10px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.3s;
}

.searcharea input[type="text"]:focus {
    border-color: #0066cc;
}

.searcharea button {
    position: absolute;
    left: 5px;
    top: 5px;
    background: #0066cc;
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

.searcharea button:hover {
    background: #004080;
}

/* --- Header Cart --- */
.header-cart-box {
    margin-top: 5px;
}

.cart-contents {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    color: #334155;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.cart-contents:hover {
    background-color: #0066cc;
    color: #fff;
}

.cart-icon {
    font-size: 16px;
    margin-left: 8px;
}

.cart-count {
    background-color: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 11px;
    margin-right: 8px;
    font-weight: bold;
}

/* --- Navbar --- */
.main-navigation {
    background-color: #0066cc;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
}

.main-navigation .navbar-nav > li > a {
    color: #ffffff;
    font-weight: 500;
    padding: 14px 20px;
}

.main-navigation .navbar-nav > li > a:hover,
.main-navigation .navbar-nav > li > a:focus,
.main-navigation .navbar-nav > .active > a {
    background-color: #004080;
    color: #ffffff;
}

/* --- Widgets & Layout --- */
.main-content-wrapper {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-height: 400px;
}

.widget {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.headwidget {
    background-color: #f8fafc;
    border-bottom: 2px solid #0066cc;
    padding: 10px 15px;
}

.headwidget h4 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    color: #1e293b;
}

.contentwidget {
    padding: 15px;
}
/* --- Navbar & Submenu Professional Styles --- */
.main-navigation {
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    border: none;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.main-navigation .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 20px;
    transition: all 0.2s ease-in-out;
}

.main-navigation .navbar-nav > li > a:hover,
.main-navigation .navbar-nav > li.active > a {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* زیرمنوها (Dropdown) */
.main-navigation .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 0;
    background-color: #ffffff;
    text-align: right;
}

.main-navigation .dropdown-menu > li > a {
    color: #334155;
    font-size: 13px;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.main-navigation .dropdown-menu > li > a:hover {
    background-color: #f1f5f9;
    color: #0066cc;
    padding-right: 25px;
}
.logoarea img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
/* باز شدن زیرمنو با هاور (Hover) در دسکتاپ */
@media (min-width: 768px) {
    .main-navigation .navbar-nav > li.menu-item-has-children:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==========================================
   طراحی جدید صفحه اصلی (Modern Main Layout)
   ========================================== */

.custom-main-layout {
    padding-top: 30px;
    padding-bottom: 50px;
    background-color: #f8f9fa;
}

/* بنر بالای صفحه */
.hero-category-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: #ffffff !important;
}

.hero-description {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* کارت مدرن محصولات */
.modern-grid {
    display: flex;
    flex-wrap: wrap;
}

.grid-item {
    margin-bottom: 25px;
}

.modern-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

/* تصویر کارت */
.card-thumb {
    position: relative;
    overflow: hidden;
    background: #f1f3f5;
    aspect-ratio: 4/3;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modern-card:hover .card-img {
    transform: scale(1.08);
}

.card-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #0d6efd;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 8px;
}

/* بدنه و متن کارت */
.card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-title {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #0d6efd;
}

/* دکمه اکشن کارت */
.card-footer {
    border-top: 1px solid #f1f3f5;
    padding-top: 12px;
}

.btn-modern-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    color: #495057;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.modern-card:hover .btn-modern-action {
    background: #0d6efd;
    color: #ffffff;
}

/* دکمه آرشیو سفارشی */
.archive-btn-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
}

.btn-archive {
    display: inline-block;
    background: #212529;
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.btn-archive:hover {
    background: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.25);
}
/* ==========================================
   استایل اختصاصی فروشگاه پزشکی (Medical Shop)
   ========================================== */

.shop-homepage {
    background-color: #f4f6f9;
    padding-bottom: 60px;
}

/* ۱. بنر اصلی */
.hero-shop-banner {
    background: linear-gradient(135deg, #0f4c81 0%, #1b6ca8 100%);
    color: #ffffff;
    padding: 50px 0;
    margin-bottom: 0;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    display: inline-block;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #ffffff !important;
}

.hero-sub {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-main-shop {
    background: #00b4d8;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
    margin-left: 10px;
}

.btn-call-shop {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none !important;
    display: inline-block;
}

/* ۲. نوار مزایا */
.features-bar {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.feature-icon {
    font-size: 24px;
    color: #0f4c81;
    margin-left: 12px;
}

.feature-text strong {
    display: block;
    font-size: 13px;
    color: #2b2d42;
}

.feature-text span {
    font-size: 11px;
    color: #8d99ae;
}

/* ۳. کارت‌های دسته‌بندی */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #2b2d42;
    margin: 0;
}

.cat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    display: block;
    text-decoration: none !important;
    border: 1px solid #e9ecef;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cat-card:hover {
    transform: translateY(-5px);
    border-color: #00b4d8;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cat-img img {
    height: 80px;
    width: auto;
    margin: 0 auto 10px;
    object-fit: contain;
}

.cat-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: #2b2d42;
    margin: 0 0 5px;
}

.cat-count {
    font-size: 11px;
    color: #8d99ae;
}

/* ۴. کارت محصول فروشگاهی */
.medical-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.medical-product-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.product-thumb img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product-title {
    font-size: 14px;
    height: 40px;
    overflow: hidden;
    line-height: 1.4;
    margin: 0 0 10px;
}

.product-title a {
    color: #2b2d42;
    text-decoration: none;
}

.product-price-box {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 12px;
}

.product-price-box .price {
    font-weight: 800;
    color: #2b2d42;
    font-size: 14px;
}

.btn-buy-now {
    display: block;
    background: #0f4c81;
    color: #ffffff !important;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.btn-buy-now:hover {
    background: #00b4d8;
}