/* ============================================================
   CSS سفارشی برند کارفگلد
   ============================================================ */

/* 1. رنگ‌های اصلی برند */
:root {
    --wd-primary-color: #0a0c4e;
    --wd-secondary-color: #d4af37;
    --wd-text-color: #333333;
    --wd-link-color: #0a0c4e;
    --wd-link-hover-color: #d4af37;
    --wd-btn-bg: #d4af37;
    --wd-btn-color: #0a0c4e;
    --wd-btn-hover-bg: #b8960f;
    --wd-btn-hover-color: #ffffff;
}

/* ============================================================
   لینک‌ها
   ============================================================ */

/* لینک‌های طلایی (فقط در بخش‌های خاص) */

/* لینک‌های منوی اصلی */
.wd-nav-main > li > a {
    color: #0a0c4e !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    padding: 8px 12px !important;
    transition: color 0.3s ease !important;
}

.wd-nav-main > li > a:hover,
.wd-nav-main > li.current-menu-item > a {
    color: #d4af37 !important;
}

.whb-top-bar .wd-nav-secondary > li > a {
  margin-top: -5px;
}

/* لینک‌های فوتر */
.kg-footer a {
    color: rgba(255, 255, 255, 0.6) !important;
}

.kg-footer a:hover {
    color: #d4af37 !important;
}

/* لینک‌های بخش محصولات */
.product-grid-item .wd-entities-title a {
    color: #0a0c4e !important;
}

.product-grid-item .wd-entities-title a:hover {
    color: #d4af37 !important;
}

/* لینک‌های دکمه‌ها */
.btn-gold a,
.kg-btn-primary a {
    color: #0a0c4e !important;
}

/* لینک‌های سبد خرید و حساب کاربری */
.wd-header-cart a,
.wd-header-my-account a {
    color: #0a0c4e !important;
}

.wd-header-cart a:hover,
.wd-header-my-account a:hover {
    color: #d4af37 !important;
}

/* ============================================================
   دکمه‌ها
   ============================================================ */

.wd-btn,
button[type="submit"],
.wpcf7-submit {
    background-color: #d4af37 !important;
    color: #0a0c4e !important;
    border-color: #d4af37 !important;
    transition: all 0.3s ease !important;
}

.wd-btn:hover,
button[type="submit"]:hover,
.wpcf7-submit:hover {
    background-color: #b8960f !important;
    color: #ffffff !important;
    border-color: #b8960f !important;
}

/* ============================================================
   هدر و تاپ بار
   ============================================================ */

.whb-top-bar {
    background-color: #0e3061 !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.whb-top-bar .wd-header-text,
.whb-top-bar .wd-header-text p,
.whb-top-bar .wd-header-text span {
    color: #ffffff !important;
}

.whb-top-bar .wd-header-text a {
    color: #d4af37 !important;
}

.whb-top-bar .wd-header-text a:hover {
    color: #b8960f !important;
}

/* ============================================================
   منوی اصلی
   ============================================================ */

.wd-nav-main > li > a {
    color: #0a0c4e !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    padding: 8px 12px !important;
    transition: color 0.3s ease !important;
}

.wd-nav-main > li > a:hover,
.wd-nav-main > li.current-menu-item > a {
    color: #d4af37 !important;
}

/* ============================================================
   دکمه دسته‌بندی در هدر
   ============================================================ */

.wd-header-cats .menu-opener {
  background-color: transparent !important;
  border: 1.5px solid #d4af37 !important;
  border-radius: 10px !important;
  padding: 5px 20px !important;
  color: #0a0c4e !important;
  font-weight: 600 !important;
  min-width: auto !important;
  transition: all 0.3s ease !important;
  height: 80% !important;
  margin-top: 6px;
}

.wd-header-cats .menu-opener:hover {
    background-color: #d4af37 !important;
    color: #ffffff !important;
}

.wd-header-cats .menu-opener .menu-open-label {
  color: #0a0c4e !important;
  font-size: 1rem;
  margin-top: -5px;
}

.wd-header-cats .menu-opener:hover .menu-open-label {
    color: #ffffff !important;
}

.wd-header-cats .menu-opener::after {
  font-weight: 500 !important;
  padding: 2px 15px 0 0;
}

/* ============================================================
   لوگو
   ============================================================ */

.site-logo .wd-logo img {
    height: 120px !important;
    width: auto !important;
}

.site-logo {
  max-height: fit-content !important;
}

/* لوگو در حالت استیکی */
.whb-sticky-header .wd-logo img {
    height: 85px !important;
    width: auto !important;
}
/* ============================================================
   جستجو
   ============================================================ */

.whb-9x1ytaxq7aphtb3npidp form.searchform {
    margin: 0 !important;
}

.searchform input[type="text"] {
    border-radius: 10px !important;
    border: 1.5px solid rgba(10, 12, 78, 0.15) !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
    margin-right: 3rem;
    width: 90%;
}

.searchform input[type="text"]:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1) !important;
}

.searchform .searchsubmit::after {
  color: #ffffff;
}
/* ============================================================
   آیکون‌های هدر
   ============================================================ */

.header-icons a {
    color: #0a0c4e !important;
    font-size: 18px !important;
    transition: color 0.3s ease !important;
}

.header-icons a:hover {
    color: #d4af37 !important;
}

.header-icons .badge {
    background-color: #d4af37 !important;
    color: #0a0c4e !important;
}

/* ============================================================
   صفحات
   ============================================================ */

.page-title {
    background-color: #061d3f !important;
}

.wd-page-title {
  background-color: #061d3f !important;
  margin-bottom: 2rem;
  margin-top: 0.7rem;
}

/* ============================================================
   فرم‌ها
   ============================================================ */

.wpcf7-form label,
.wpcf7-form input,
.wpcf7-form textarea {
    text-align: right !important;
}

/* ============================================================
   محصولات
   ============================================================ */

.wd-product:not(.wd-hover-small) :is(.wd-product-img-link, .wd-product-img-hover) :is(picture, img) {
    width: 100%;
    height: 225px;
    max-height: 225px;
    object-fit: cover;
    object-position: center;
}

/* ============================================================
   وبلاگ
   ============================================================ */

.wd-post-thumb {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    border-radius: 15px !important;
}

.wd-post-img {
    height: 265px;
    max-height: 365px;
}

.blog-design-masonry .wd-post-excerpt {
    max-width: 100%;
    font-size: 0.938rem;
    line-height: 1.7;
}

.wd-entities-title {
    line-height: 1.6;
    margin: 20px 0px;
    height: 4rem;
}

.title-wrapper {
    margin-bottom: 2rem;
}

/* ============================================================
   اسلایدر
   ============================================================ */

.wd-gallery-item img {
    border-radius: 20px !important;
}

/* ============================================================
   دسته‌بندی‌ها
   ============================================================ */

.category-grid-item .wd-cat-image {
    height: 335px;
}

.wd-cat-thumb > a > img {
    height: 235px;
}

.wd-cat .wd-entities-title {
    padding-top: 12px;
}

/* ============================================================
   هدر - تنظیمات اضافی
   ============================================================ */

.wd-header-nav {
    padding-right: 3rem !important;
}

.wd-nav-header > li > a > span {
    font-size: 0.938rem !important;
    padding-right: 5px;
    padding-left: 5px;
}

/* ============================================================
   المنتور
   ============================================================ */

.elementor-1832 .elementor-element.elementor-element-5ff73a92 > .elementor-widget-container {
    background-image: linear-gradient(180deg, #4E3E02A6 58%, #5F4300D4 100%) !important;
    border-radius: 15px;
    width: 325px;
    margin-right: 50px !important;
    margin-top: 25px !important;
}

/* ============================================================
   تصاویر
   ============================================================ */

.wp-block-media-text {
    border-radius: 25px;
}

.wp-block-media-text__media img,
.wp-block-media-text__media video {
    border-radius: 25px 0 0 25px;
}

/* ============================================================
   ریسپانسیو موبایل
   ============================================================ */

@media (max-width: 768px) {
    .wd-nav-main > li > a {
        font-size: 14px !important;
        padding: 6px 8px !important;
    }

    .site-logo .wd-logo img {
        height: 45px !important;
    }

    .wd-header-cats .menu-opener {
        padding: 6px 14px !important;
        font-size: 12px !important;
    }
}