/* ==========================================================================
   Sunray Theme — Consolidated Stylesheet
   ========================================================================== */

/* --- :root Variables --- */
:root {
    --brand-green: #429f2d;
    --brand-gold: #e4b53f;
    --brand-dark: #2c3e50;
    --light-grey: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.95);
}

/* --- Global / Shared Styles --- */
body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    background-color: #f8f9fa;
    padding-bottom: 70px;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.section-spacing {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--light-grey);
}

main#primary.site-main,
.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

header.entry-header {
    display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 159, 45, 0.2);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.section-title {
    font-size: 2rem;
    color: var(--brand-dark);
    margin-bottom: 40px;
    font-weight: bold;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-dark);
    border-right: 4px solid var(--brand-green);
    padding-right: 12px;
    margin: 0;
}

.section-header a {
    color: var(--brand-green);
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.section-header a:hover {
    color: var(--brand-gold);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Header Styles --- */
.site-header-desktop {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    display: none;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.logo-area img {
    height: 50px;
    object-fit: contain;
}

.main-menu {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-menu a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.main-menu a:hover {
    color: var(--brand-green);
}

.site-header-mobile {
    background: #fff;
    padding: 10px 15px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px !important;
    width: 100% !important;
    overflow: hidden !important;
}

.mobile-logo-img {
    height: 50px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    margin: 0 auto !important;
    display: block !important;
}

@media (min-width: 768px) {
    .site-header-desktop { display: block; }
    .site-header-mobile { display: none; }
    body { padding-bottom: 0; }
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--brand-dark);
    background-image: radial-gradient(#34495e 1px, transparent 1px);
    background-size: 20px 20px;
    color: #fff;
    padding: 60px 0 30px 0;
    border-top: 4px solid var(--brand-gold);
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: var(--brand-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    color: #d1d5db;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-list a {
    color: #d1d5db;
    text-decoration: none;
    transition: 0.3s;
}

.footer-list a:hover {
    color: var(--brand-gold);
}

.footer-list i {
    color: var(--brand-green);
    margin-top: 4px;
}

.trust-badges {
    display: flex;
    gap: 10px;
}

.badge {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.badge:hover {
    background: #fff;
    transform: translateY(-3px);
}

.copyright-text {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.8;
    margin-bottom: 15px;
}

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 1000;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
}

.nav-item:hover {
    color: var(--brand-green);
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item .fa-whatsapp {
    color: #25D366;
    font-size: 1.4rem;
}

.nav-item .fa-cart-shopping {
    color: var(--brand-gold);
}

@media (min-width: 768px) {
    .mobile-bottom-nav { display: none; }
}

@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .site-footer { padding-bottom: 80px; }
}

/* === HOMEPAGE === */
.hero-section {
    background-color: var(--brand-dark);
    position: relative;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 20px;
}

.slide-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.slide-title span {
    color: var(--brand-gold);
}

.slide-title .text-green {
    color: var(--brand-green);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.dot:hover,
.dot.active {
    background: #fff;
}

.action-bar {
    background: #fff;
    border-bottom: 4px solid var(--brand-gold);
    position: relative;
    z-index: 30;
    padding: 20px 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-dark {
    background: var(--brand-dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--brand-green);
    color: #fff;
}

.btn-gold {
    background: var(--brand-gold);
    color: #fff;
}

.btn-gold:hover {
    background: #c99a32;
    color: #fff;
}

.btn-outline {
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-dark);
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.hero-section .glass-card,
.category-grid .glass-card {
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.hero-section .glass-card:hover,
.category-grid .glass-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15);
}

.hero-section .glass-card i,
.category-grid .glass-card i {
    font-size: 2.5rem;
    color: var(--brand-green);
    margin-bottom: 15px;
    display: block;
}

.hero-section .glass-card h3,
.category-grid .glass-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.subtitle {
    color: var(--brand-green);
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.about-text {
    color: #555;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 20px;
}

.read-more {
    color: var(--brand-green);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--brand-green);
    padding-bottom: 2px;
    transition: 0.3s;
}

.read-more:hover {
    color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.portfolio-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.portfolio-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.portfolio-info p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-portfolio {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-portfolio:hover {
    background: var(--brand-green);
    color: #fff;
}

.woo-products-wrapper {
    margin-top: 30px;
}

.woo-products-wrapper ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
}

.woo-products-wrapper ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 15px;
    transition: 0.3s;
}

.woo-products-wrapper ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .category-grid,
    .portfolio-grid,
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-flex { flex-direction: column; }
    .woo-products-wrapper ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .slider-container { height: 400px; }
    .slide-title { font-size: 2rem; }
}

@media (max-width: 576px) {
    .category-grid,
    .portfolio-grid,
    .action-grid {
        grid-template-columns: 1fr;
    }
    .woo-products-wrapper ul.products { grid-template-columns: 1fr !important; }
    .slide-title { font-size: 1.5rem; }
}

/* === PLP === */

/* --- taxonomy-product_cat.php (Master PLP) --- */
.micro-hero {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-dark);
}

.micro-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(100%);
}

.micro-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,62,80,0.95) 0%, transparent 100%);
}

.micro-hero h1 {
    position: relative;
    z-index: 10;
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
    padding: 0 20px;
}

.sticky-filter-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 0;
    margin-bottom: 30px;
}

.filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-advanced-filter {
    flex-shrink: 0;
    background: var(--brand-dark);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-advanced-filter:hover {
    background: var(--brand-gold);
}

.quick-tags-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    width: 100%;
    padding-bottom: 5px;
}

.quick-tag {
    background: transparent;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.quick-tag:hover {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.product-count {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: bold;
}

.sort-dropdown {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--brand-dark);
    cursor: pointer;
    outline: none;
    padding-right: 25px;
    appearance: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right 0 center / 1.5em;
}

.plp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.plp-grid .glass-card {
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.plp-grid .glass-card:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15);
}

.card-img-wrap {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
}

.card-img-wrap img {
    max-height: 100%;
    object-fit: contain;
    transition: 0.5s;
}

.plp-grid .glass-card:hover .card-img-wrap img {
    transform: scale(1.1);
}

.card-title {
    font-weight: bold;
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    color: var(--brand-green);
    font-weight: bold;
    font-size: 1.1rem;
}

.card-price del {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-left: 5px;
}

.card-add-btn {
    width: 35px;
    height: 35px;
    background: var(--brand-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.plp-grid .glass-card:hover .card-add-btn {
    background: var(--brand-gold);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawer-overlay.active {
    display: block;
    opacity: 1;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    background: #fff;
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.filter-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.drawer-close:hover {
    color: #ef4444;
}

.drawer-content {
    padding: 20px;
    flex-grow: 1;
}

.seo-section {
    background: var(--light-grey);
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.seo-box {
    background: #fff;
    border: 1px solid rgba(66, 159, 45, 0.2);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.seo-box h2,
.seo-box h3 {
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

.seo-box h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}

.seo-box h3 {
    font-size: 1.2rem;
    color: var(--brand-green);
    margin-top: 25px;
}

.seo-box p {
    color: #555;
    line-height: 2;
    text-align: justify;
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .plp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .plp-grid { grid-template-columns: repeat(2, 1fr); }
    .micro-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 576px) {
    .plp-grid { grid-template-columns: 1fr; }
}

/* --- page-solar-packages.php --- */
.packages-hero {
    background: #fff;
    padding: 60px 0 100px 0;
    position: relative;
    overflow: hidden;
}

.packages-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/graphy.png');
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--brand-dark);
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-content h1 .text-green {
    color: var(--brand-green);
}

.hero-content h1 .text-gold {
    color: var(--brand-gold);
    display: block;
    font-size: 1.8rem;
    margin-top: 10px;
}

.hero-content p {
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}

.packages-hero .btn-dark {
    background: var(--brand-dark);
    color: #fff;
}

.packages-hero .btn-dark:hover {
    background: #1a252f;
    color: #fff;
}

.btn-whatsapp {
    background: #16a34a;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #15803d;
    color: #fff;
}

.wizard-card {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 159, 45, 0.1);
    border-top: 4px solid var(--brand-gold);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    z-index: 10;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    min-height: 400px;
}

.wizard-header {
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.wizard-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.wizard-header p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    transform: translateY(-50%);
    z-index: 0;
}

.step-indicator {
    width: 45px;
    height: 45px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #9ca3af;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--brand-green);
    border-color: var(--brand-green);
    color: #fff;
    box-shadow: 0 0 15px rgba(66, 159, 45, 0.3);
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    text-align: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    outline: none;
    background: #fff;
}

.form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(66, 159, 45, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.checkbox-label:hover {
    background: #f9fafb;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-green);
}

.radio-card-wrapper {
    display: flex;
    gap: 15px;
}

.radio-card {
    flex: 1;
    border: 1px solid #d1d5db;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
}

.radio-card input[type="radio"] {
    display: none;
}

.radio-card:hover {
    border-color: var(--brand-green);
}

.radio-card.selected {
    background: #f0fdf4;
    border-color: var(--brand-green);
}

.radio-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 5px;
    color: var(--brand-dark);
}

.radio-card span {
    font-size: 0.85rem;
    color: #6b7280;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    border-top: 1px solid #f3f4f6;
    padding-top: 20px;
}

.btn-next {
    background: var(--brand-green);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-next:hover {
    background: var(--brand-gold);
}

.btn-prev {
    background: transparent;
    color: #6b7280;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 12px 20px;
    transition: 0.3s;
}

.btn-prev:hover {
    color: var(--brand-dark);
}

.btn-submit {
    background: var(--brand-gold);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: #c99a32;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-msg {
    text-align: center;
    padding: 50px 0;
    animation: fadeIn 0.5s;
}

.success-msg i {
    font-size: 4rem;
    color: var(--brand-green);
    margin-bottom: 20px;
}

.success-msg h3 {
    font-size: 1.5rem;
    color: var(--brand-dark);
    font-weight: bold;
}

.bg-light-grey {
    background-color: var(--light-grey);
    padding: 80px 0;
}

.page-template-page-solar-packages-php .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.pkg-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pkg-border-gray { border-right: 8px solid #9ca3af; }
.pkg-border-green { border-right: 8px solid var(--brand-green); z-index: 2; transform: scale(1.05); box-shadow: 0 15px 35px rgba(66, 159, 45, 0.15); }
.pkg-border-green:hover { transform: scale(1.05) translateY(-8px); }
.pkg-border-gold { border-right: 8px solid var(--brand-gold); }
.pkg-border-dark { border-right: 8px solid var(--brand-dark); }

.pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.pkg-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pkg-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
}

.pkg-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin: 0 0 10px 0;
}

.pkg-card p {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 25px;
    min-height: 40px;
}

.pkg-specs {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.pkg-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.pkg-spec-item span:first-child { color: #6b7280; }
.pkg-spec-item span:last-child { font-weight: bold; color: var(--brand-dark); }
.pkg-spec-item .price { color: var(--brand-green); font-size: 1.1rem; }

.btn-pkg {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: 2px solid;
}

.btn-pkg-outline { background: transparent; border-color: #9ca3af; color: #4b5563; }
.btn-pkg-outline:hover { background: #9ca3af; color: #fff; }
.btn-pkg-green { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.btn-pkg-green:hover { background: #358024; border-color: #358024; }
.btn-pkg-gold { background: transparent; border-color: var(--brand-gold); color: var(--brand-gold); }
.btn-pkg-gold:hover { background: var(--brand-gold); color: #fff; }
.btn-pkg-dark { background: transparent; border-color: var(--brand-dark); color: var(--brand-dark); }
.btn-pkg-dark:hover { background: var(--brand-dark); color: #fff; }

.guide-section {
    background: #fff;
    padding: 60px 0;
}

.guide-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.video-box {
    background: #e5e7eb;
    height: 320px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

.play-btn {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    background: var(--brand-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.video-box:hover img {
    opacity: 0.6;
    transform: scale(1.05);
}

.video-box:hover .play-btn {
    transform: scale(1.1);
}

.podcast-card {
    background: var(--brand-dark);
    color: #fff;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    height: fit-content;
}

.pod-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pod-info h4 {
    margin: 0 0 5px 0;
    font-weight: bold;
    color: #fff;
}

.pod-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #9ca3af;
}

.pod-play {
    margin-right: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.pod-play:hover {
    color: var(--brand-gold);
}

.page-template-page-solar-packages-php .seo-box {
    margin-bottom: 60px;
}

.page-template-page-solar-packages-php .seo-box h3 {
    margin: 0 0 15px 0;
}

.page-template-page-solar-packages-php .seo-box p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.seo-highlight {
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid var(--brand-green);
    margin-top: 25px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: bold;
    color: var(--brand-dark);
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(66, 159, 45, 0.2);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    padding: 15px 20px;
    text-align: right;
    background: none;
    border: none;
    font-weight: bold;
    color: var(--brand-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1rem;
}

.faq-btn i {
    color: #9ca3af;
    transition: 0.3s;
}

.faq-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.8;
}

.faq-item.active .faq-content {
    padding: 15px 20px;
    max-height: 200px;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-btn i {
    transform: rotate(180deg);
    color: var(--brand-green);
}

@media (max-width: 1024px) {
    .pkg-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-border-green { transform: scale(1); z-index: 1; }
    .pkg-border-green:hover { transform: translateY(-8px); }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content h1 .text-gold { font-size: 1.4rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .wizard-card { padding: 25px 15px; margin: 0 15px; }
    .media-grid { grid-template-columns: 1fr; }
    .radio-card-wrapper { flex-direction: column; }
}

@media (max-width: 576px) {
    .pkg-grid { grid-template-columns: 1fr; }
    .btn-action { width: 100%; }
    .wizard-progress { max-width: 300px; }
}

/* --- taxonomy-product_cat-solar-panel.php --- */
.cat-hero {
    background-color: var(--brand-dark);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 300px;
    margin-bottom: 60px;
}

.cat-hero img.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.cat-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(44,62,80,0.9) 0%, rgba(44,62,80,0.2) 100%);
    z-index: 2;
}

.cat-hero-content {
    position: relative;
    z-index: 3;
    text-align: right;
    width: 100%;
}

.cat-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.cat-hero-title span {
    color: var(--brand-gold);
}

.cat-hero-subtitle {
    color: #d1d5db;
    font-size: 1.1rem;
    margin: 0;
}

.woo-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
}

.woo-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.woo-scroll-wrapper ul.products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    margin: 0 !important;
}

.woo-scroll-wrapper ul.products li.product {
    flex: 0 0 auto !important;
    width: 280px !important;
    scroll-snap-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(66, 159, 45, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin: 0 !important;
    transition: 0.3s;
    box-shadow: none;
}

.woo-scroll-wrapper ul.products li.product:hover {
    border-color: var(--brand-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15);
}

.promo-banner {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.promo-overlay.dark {
    background: linear-gradient(90deg, rgba(44,62,80,0.9) 0%, transparent 100%);
}

.promo-overlay.green {
    background: linear-gradient(90deg, rgba(66,159,45,0.9) 0%, transparent 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    color: #fff;
    width: 100%;
}

.promo-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.promo-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    max-width: 400px;
}

.btn-promo {
    background: var(--brand-gold);
    color: var(--brand-dark);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-promo:hover {
    background: #fff;
}

.product_cat-solar-panel .seo-box,
.tax-product_cat .seo-box {
    border: 1px solid rgba(66, 159, 45, 0.2);
    margin-bottom: 60px;
}

.product_cat-solar-panel .seo-box h2,
.tax-product_cat .seo-box h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 15px;
}

.product_cat-solar-panel .seo-box h3,
.tax-product_cat .seo-box h3 {
    font-size: 1.2rem;
    color: var(--brand-green);
    margin: 25px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product_cat-solar-panel .seo-box p,
.tax-product_cat .seo-box p {
    color: #555;
    line-height: 2;
    text-align: justify;
    margin-bottom: 15px;
}

.seo-conclusion {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid var(--brand-gold);
    margin-top: 20px;
}

.seo-conclusion p {
    margin: 0;
    font-size: 0.9rem;
}

.product_cat-solar-panel .faq-section,
.tax-product_cat .faq-section {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.product_cat-solar-panel .faq-item,
.tax-product_cat .faq-item {
    background: var(--glass-bg);
}

.product_cat-solar-panel .faq-item.active .faq-btn i,
.tax-product_cat .faq-item.active .faq-btn i {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .promo-content { padding: 0 20px; }
    .cat-hero-content { text-align: center; }
}

/* --- taxonomy-product_cat-solar-inverter.php --- */
.product_cat-solar-inverter .cat-hero {
    margin-bottom: 50px;
}

.product_cat-solar-inverter .cat-hero img.bg-img {
    opacity: 0.3;
    filter: grayscale(100%);
}

.product_cat-solar-inverter .cat-hero .overlay {
    background: linear-gradient(90deg, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0.4) 100%);
}

.product_cat-solar-inverter .woo-scroll-wrapper ul.products li.product {
    border-radius: 12px;
}

.interlink-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    border-top: 4px solid var(--brand-dark);
    text-align: center;
    margin-bottom: 60px;
}

.interlink-box h3 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4b5563;
    margin-bottom: 25px;
}

.interlink-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.interlink-tag {
    background: var(--light-grey);
    color: #4b5563;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.interlink-tag:hover {
    background: var(--brand-green);
    color: #fff;
    transform: translateY(-2px);
}

.interlink-tag.highlight {
    background: var(--brand-gold);
    color: #fff;
}

.interlink-tag.highlight:hover {
    background: var(--brand-dark);
}

.product_cat-solar-inverter .seo-box h2 {
    color: var(--brand-dark);
    font-weight: bold;
}

.product_cat-solar-inverter .seo-box h3 {
    font-weight: bold;
}

@media (max-width: 576px) {
    .product_cat-solar-inverter .cat-hero-title { font-size: 2rem; }
}

/* --- taxonomy-product_cat-solar-battery.php --- */
.product_cat-solar-battery .cat-hero img.bg-img {
    opacity: 0.3;
    filter: grayscale(100%) blur(2px);
}

.product_cat-solar-battery .cat-hero .overlay {
    background: linear-gradient(90deg, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0.4) 100%);
}

.product_cat-solar-battery .interlink-box {
    text-align: center;
    margin-bottom: 60px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product_cat-solar-battery .interlink-box h3 {
    color: var(--brand-dark);
}

.product_cat-solar-battery .seo-box {
    margin-bottom: 60px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.product_cat-solar-battery .seo-box h2 {
    color: var(--brand-dark);
    font-weight: bold;
}

.product_cat-solar-battery .seo-box h3 {
    font-weight: bold;
}

.product_cat-solar-battery .seo-box p {
    font-size: 1rem;
}

@media (max-width: 576px) {
    .product_cat-solar-battery .cat-hero-title { font-size: 2rem; }
}

/* --- taxonomy-product_cat-solar-package-installation-equipment.php --- */
.product_cat-solar-package-installation-equipment .section-spacing {
    margin-bottom: 30px;
}

.inline-interlink {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 0 45px 0;
    flex-wrap: wrap;
}

.btn-inline {
    background: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.btn-inline.green {
    border: 1px solid var(--brand-green);
    color: var(--brand-green);
}

.btn-inline.green:hover {
    background: var(--brand-green);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(66, 159, 45, 0.2);
}

.btn-inline.gold {
    border: 1px solid var(--brand-gold);
    color: var(--brand-gold);
}

.btn-inline.gold:hover {
    background: var(--brand-gold);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(228, 181, 63, 0.3);
}

@media (max-width: 576px) {
    .product_cat-solar-package-installation-equipment .cat-hero-title { font-size: 2rem; }
}

/* === PDP === */
body.single-product {
    padding-bottom: 140px;
}

#sunray-pdp form.cart {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

#sunray-pdp form.cart div.quantity {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
}

#sunray-pdp form.cart div.quantity input.qty {
    width: 50px !important;
    height: 35px !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    color: var(--brand-dark) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

#sunray-pdp form.cart .qty-btn,
#sunray-pdp form.cart .plus,
#sunray-pdp form.cart .minus {
    width: 35px !important;
    height: 35px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: 0.3s !important;
    line-height: 1 !important;
}

#sunray-pdp form.cart .qty-btn:hover,
#sunray-pdp form.cart .plus:hover,
#sunray-pdp form.cart .minus:hover {
    color: var(--brand-green) !important;
}

#sunray-pdp form.cart button.single_add_to_cart_button {
    background-color: var(--brand-green) !important;
    background-image: none !important;
    color: #fff !important;
    padding: 15px !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    border: none !important;
    width: 100% !important;
    font-size: 1.05rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 15px rgba(66,159,45,0.3) !important;
    margin-top: 10px !important;
    height: auto !important;
    line-height: normal !important;
    transition: 0.3s !important;
}

#sunray-pdp form.cart button.single_add_to_cart_button:hover {
    background-color: #358024 !important;
}

#sunray-pdp .glass-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(66, 159, 45, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.custom-breadcrumbs {
    font-size: 0.8rem;
    color: #6b7280;
    padding: 15px 0;
    margin-bottom: 10px;
}

.custom-breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
    transition: 0.3s;
}

.custom-breadcrumbs a:hover {
    color: var(--brand-green);
}

.product-layout {
    display: grid;
    grid-template-columns: 4fr 5fr 3fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 50px;
}

.product-gallery-wrap {
    position: sticky;
    top: 90px;
}

.product-summary h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--brand-dark);
    line-height: 1.5;
    margin-bottom: 15px;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f0fdf4;
    color: var(--brand-green);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-item.blue {
    background: #eff6ff;
    color: #2563eb;
}

.short-description {
    color: #4b5563;
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
    margin-bottom: 30px;
}

.quick-specs-box {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    margin-bottom: 30px;
}

.quick-specs-box h3 {
    font-size: 0.95rem;
    font-weight: bold;
    color: #374151;
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 0.9rem;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.spec-row i {
    color: var(--brand-gold);
    width: 20px;
    text-align: center;
}

.spec-row strong {
    color: var(--brand-dark);
    margin-right: 5px;
}

.sticky-buy-box {
    position: sticky;
    top: 90px;
    border-top: 4px solid var(--brand-green);
}

.price-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.price-wrap .price-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.price-wrap .price,
.price-wrap .price .amount {
    font-size: 1.8rem !important;
    font-weight: bold !important;
    color: var(--brand-green) !important;
    display: block;
    margin-top: 5px;
}

.btn-consult {
    background: transparent;
    border: 2px solid var(--brand-dark);
    color: var(--brand-dark);
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-consult:hover {
    background: var(--brand-dark);
    color: #fff;
}

.custom-tabs-section {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0;
}

.custom-tabs-header {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.custom-tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0 10px 12px 10px;
    font-weight: bold;
    cursor: pointer;
    color: #6b7280;
    font-family: inherit;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
}

.tab-btn.active {
    color: var(--brand-green);
    border-bottom-color: var(--brand-green);
}

.tab-panel {
    display: none;
    max-width: 900px;
    color: #4b5563;
    line-height: 1.9;
    font-size: 0.95rem;
    text-align: justify;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.pros-box {
    background: #f0fdf4;
    padding: 20px;
    border-radius: 12px;
}

.cons-box {
    background: #fef2f2;
    padding: 20px;
    border-radius: 12px;
}

.pros-box h4 {
    color: var(--brand-green);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.cons-box h4 {
    color: #ef4444;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.pros-cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-cons-list li {
    margin-bottom: 10px;
    padding-right: 15px;
    position: relative;
}

.pros-cons-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: #9ca3af;
}

.custom-specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.custom-specs-table td {
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
}

.custom-specs-table tr:nth-child(odd) {
    background: #f9fafb;
}

.custom-specs-table td.spec-label {
    font-weight: bold;
    color: #6b7280;
    width: 40%;
}

.custom-specs-table td.spec-value {
    color: var(--brand-dark);
    font-weight: bold;
}

.custom-comment-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #f3f4f6;
}

.custom-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--brand-dark);
}

.comment-stars {
    color: #facc15;
    font-size: 0.8rem;
}

.add-comment-btn {
    display: inline-block;
    background: var(--brand-dark);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
}

.mobile-buy-bar {
    display: none;
    position: fixed;
    bottom: 58px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
}

.mb-price-label {
    font-size: 0.7rem;
    color: #6b7280;
    display: block;
    margin-bottom: 2px;
}

.mobile-buy-bar .price,
.mobile-buy-bar .price .amount {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    color: var(--brand-green) !important;
    margin: 0;
}

.mb-buy-btn {
    background: var(--brand-green);
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(66,159,45,0.3);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 992px) {
    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .product-gallery-wrap {
        position: static;
        width: 100%;
        z-index: 1;
    }
    .product-summary {
        order: 2;
        width: 100%;
    }
    .product-buy-box {
        display: none !important;
    }
    .pros-cons-grid {
        grid-template-columns: 1fr;
    }
    .mobile-buy-bar {
        display: flex;
    }
}

@media (max-width: 576px) {
    .specs-grid { grid-template-columns: 1fr; }
    .product-summary h1 { font-size: 1.5rem; }
}

/* --- Desktop Menu Dropdown --- */
.main-menu > li { position: relative; height: 100%; display: flex; align-items: center; }
.main-menu ul.sub-menu { 
    position: absolute; top: 100%; right: 0; width: 260px; 
    background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    border-radius: 0 0 12px 12px; border-top: 3px solid var(--brand-green);
    padding: 10px 0; margin: 0; list-style: none;
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1000;
}
.main-menu > li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-menu ul.sub-menu li { padding: 0; }
.main-menu ul.sub-menu a { 
    display: block; padding: 12px 20px; color: #4b5563; font-size: 0.9rem; font-weight: 500;
    text-decoration: none; transition: 0.3s; border-bottom: 1px solid #f3f4f6;
}
.main-menu ul.sub-menu li:last-child a { border-bottom: none; }
.main-menu ul.sub-menu a:hover { background: #f0fdf4; color: var(--brand-green); padding-right: 25px; }

/* --- Mobile Nav Button Fix --- */
.nav-item { border: none; background: transparent; cursor: pointer; font-family: inherit; }

/* --- Full Screen Mobile Menu --- */
.mobile-fs-menu { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; z-index: 10000; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
.mobile-fs-menu.active { transform: translateY(0); }

.fs-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #f3f4f6; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.fs-menu-header h3 { font-size: 1.2rem; font-weight: bold; color: var(--brand-dark); margin: 0; display: flex; align-items: center; gap: 10px; }
.fs-menu-close { background: #fef2f2; border: none; width: 35px; height: 35px; border-radius: 8px; font-size: 1.2rem; color: #ef4444; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }

.fs-menu-body { padding: 15px 20px; overflow-y: auto; flex-grow: 1; padding-bottom: 50px; background: var(--light-grey); }

.fs-menu-item { background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); overflow: hidden; border: 1px solid #f3f4f6; }
.fs-menu-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: none; border: none; font-size: 1.05rem; font-weight: bold; color: var(--brand-dark); font-family: inherit; cursor: pointer; }
.fs-menu-btn i { color: #9ca3af; transition: transform 0.3s ease; }
.fs-menu-item.active .fs-menu-btn i { transform: rotate(180deg); color: var(--brand-green); }
.fs-menu-item.active .fs-menu-btn { color: var(--brand-green); }

.fs-sub-menu { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; background: #f9fafb; }
.fs-menu-item.active .fs-sub-menu { max-height: 800px; border-top: 1px solid #f3f4f6; }

.fs-sub-menu ul { list-style: none; margin: 0; padding: 10px 20px; }
.fs-sub-menu ul li a { display: block; padding: 12px 0; color: #6b7280; text-decoration: none; font-size: 0.95rem; border-bottom: 1px dashed #e5e7eb; transition: 0.3s; }
.fs-sub-menu ul li:last-child a { border-bottom: none; }
.fs-sub-menu ul li a:hover { color: var(--brand-gold); padding-right: 10px; }

.fs-menu-direct { display: block; padding: 18px 20px; font-size: 1.05rem; font-weight: bold; color: var(--brand-dark); text-decoration: none; background: #fff; border-radius: 12px; margin-bottom: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid #f3f4f6; }

@media (min-width: 992px) { .mobile-fs-menu { display: none !important; } }

/* =========================================
   بازنویسی قطعی کارت محصولات در اسکرول افقی (ضد آسترا)
   ========================================= */

/* 1. تنظیمات کانتینر اصلی اسکرول */
.woo-scroll-wrapper { 
    width: 100% !important; 
    overflow-x: auto !important; 
    -webkit-overflow-scrolling: touch !important; 
    scrollbar-width: none !important; 
    scroll-snap-type: x mandatory !important; 
    padding-bottom: 20px !important; 
}
.woo-scroll-wrapper::-webkit-scrollbar { display: none !important; }

/* خنثی کردن کلاس‌های مزاحم ووکامرس */
.woo-scroll-wrapper .woocommerce, 
.woo-scroll-wrapper .woocommerce columns-4 {
    width: 100% !important;
}

/* 2. فلکس باکس کردن لیست و حذف Clearfix های ووکامرس */
html body .woo-scroll-wrapper ul.products { 
    display: flex !important; 
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    gap: 20px !important; 
    margin: 0 !important; 
    padding: 10px !important;
}
html body .woo-scroll-wrapper ul.products::before,
html body .woo-scroll-wrapper ul.products::after {
    display: none !important; /* این خط از به هم ریختن اسکرول افقی جلوگیری میکند */
}

/* 3. استایل دادن به کارت محصول (Glass Card) */
html body .woo-scroll-wrapper ul.products li.product { 
    flex: 0 0 auto !important; 
    width: 280px !important; 
    max-width: 280px !important;
    scroll-snap-align: center !important; 
    background: rgba(255, 255, 255, 0.95) !important; 
    backdrop-filter: blur(10px) !important; 
    border: 1px solid rgba(66, 159, 45, 0.2) !important; 
    border-radius: 16px !important; 
    padding: 15px !important; 
    margin: 0 !important; 
    transition: 0.3s !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    text-align: right !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
}
html body .woo-scroll-wrapper ul.products li.product:hover { 
    border-color: #e4b53f !important; 
    transform: translateY(-5px) !important; 
    box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15) !important; 
}

/* 4. استایل عکس محصول */
html body .woo-scroll-wrapper ul.products li.product img { 
    width: 100% !important; 
    height: 180px !important; 
    object-fit: contain !important; 
    background: #fff !important; 
    border-radius: 8px !important; 
    margin-bottom: 15px !important;
    box-shadow: none !important;
    padding: 5px !important;
}

/* 5. استایل عنوان محصول */
html body .woo-scroll-wrapper ul.products li.product .woocommerce-loop-product__title { 
    font-size: 1.05rem !important; 
    font-weight: bold !important; 
    color: #2c3e50 !important; 
    margin-bottom: 10px !important; 
    line-height: 1.4 !important;
    padding: 0 !important;
}

/* 6. استایل قیمت */
html body .woo-scroll-wrapper ul.products li.product .price { 
    color: #429f2d !important; 
    font-weight: bold !important; 
    font-size: 1.1rem !important; 
    margin-bottom: 15px !important; 
    display: block !important;
    margin-top: auto !important; /* هول دادن قیمت به پایین کادر */
}

/* 7. استایل دکمه سبد خرید (شکستن طلسم دکمه‌های شناور آسترا) */
html body .woo-scroll-wrapper ul.products li.product .button { 
    position: relative !important;
    transform: none !important;
    opacity: 1 !important;
    background: #429f2d !important; 
    color: #fff !important; 
    padding: 10px !important; 
    border-radius: 8px !important; 
    font-weight: bold !important; 
    text-align: center !important; 
    display: block !important; 
    width: 100% !important;
    margin: 0 !important;
    transition: 0.3s !important;
    border: none !important;
    font-size: 0.95rem !important;
}
html body .woo-scroll-wrapper ul.products li.product .button:hover { 
    background: #e4b53f !important; 
}

/* =========================================
   اورراید ۱۰۰٪ گرید ووکامرس برای اسکرول افقی (ضد-آسترا)
   ========================================= */

/* کانتینر اصلی اسکرول */
html body div.woo-scroll-wrapper {
    width: 100% !important;
    overflow: visible !important;
    padding-bottom: 20px !important;
}

html body div.woo-scroll-wrapper .woocommerce {
    width: 100% !important;
}

/* 1. تبدیل گریدِ آسترا/ووکامرس به فلکس باکس افقی */
html body .woo-scroll-wrapper ul.products {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 20px !important;
    padding: 15px 5px 30px 5px !important;
    margin: 0 !important;
    scrollbar-width: none !important; /* Firefox */
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
}
html body .woo-scroll-wrapper ul.products::-webkit-scrollbar {
    display: none !important; /* Chrome */
}
html body .woo-scroll-wrapper ul.products::before,
html body .woo-scroll-wrapper ul.products::after {
    display: none !important;
}

/* 2. استایل کارت شیشه‌ای محصول */
html body .woo-scroll-wrapper ul.products li.product {
    flex: 0 0 280px !important; /* اجبار قطعی به عرض 280 پیکسل */
    width: 280px !important;
    max-width: 280px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(66, 159, 45, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: right !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    scroll-snap-align: center !important;
    float: none !important;
}
html body .woo-scroll-wrapper ul.products li.product:hover {
    transform: translateY(-5px) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15) !important;
}

/* 3. استایل عکس محصول */
html body .woo-scroll-wrapper ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    margin-bottom: 15px !important;
    border-radius: 8px !important;
    background: #fff !important;
    padding: 5px !important;
    box-shadow: none !important;
}

/* 4. عنوان محصول */
html body .woo-scroll-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* 5. قیمت محصول */
html body .woo-scroll-wrapper ul.products li.product .price {
    color: var(--brand-green) !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    margin-top: auto !important; /* هول دادن قیمت به انتهای کادر */
    margin-bottom: 15px !important;
    display: block !important;
}
html body .woo-scroll-wrapper ul.products li.product .price del {
    font-size: 0.85rem !important;
    color: #9ca3af !important;
    margin-left: 8px !important;
    font-weight: normal !important;
}

/* 6. دکمه افزودن به سبد خرید */
html body .woo-scroll-wrapper ul.products li.product .button {
    background-color: var(--brand-green) !important;
    background-image: none !important;
    color: #fff !important;
    padding: 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
    width: 100% !important;
    margin: 0 !important;
    border: none !important;
    opacity: 1 !important;
    position: relative !important;
    transform: none !important;
    display: block !important;
    font-size: 0.95rem !important;
    transition: 0.3s !important;
}
html body .woo-scroll-wrapper ul.products li.product .button:hover {
    background-color: var(--brand-gold) !important;
}

/* =========================================
   سیستم طراحی یکپارچه دسته‌بندی‌های سان ری
========================================= */
:root {
    --brand-green: #429f2d;
    --brand-gold: #e4b53f;
    --brand-dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --light-grey: #f8f9fa;
}

/* خنثی کردن پدینگ‌های پیش‌فرض آسترا برای صفحات ما */
main#primary.site-main, .site-main { margin-top: 0 !important; padding-top: 0 !important; }
.ast-container { max-width: 100% !important; padding: 0 !important; }
header.entry-header { display: none !important; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-spacing { margin-bottom: 60px; }

/* --- Hero Banner --- */
.cat-hero { background-color: var(--brand-dark); color: #fff; padding: 80px 0; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 350px; margin-bottom: 50px; }
.cat-hero img.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: grayscale(100%) blur(2px); z-index: 1; }
.cat-hero .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0.4) 100%); z-index: 2; }
.cat-hero-content { position: relative; z-index: 3; text-align: right; width: 100%; }
.cat-hero-title { font-size: 2.8rem; font-weight: bold; margin-bottom: 15px; color: #fff; line-height: 1.4; }
.cat-hero-title span { color: var(--brand-gold); }
.cat-hero-subtitle { color: #d1d5db; font-size: 1.15rem; margin: 0; }

/* --- Section Headers --- */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-header h2 { font-size: 1.5rem; font-weight: bold; color: var(--brand-dark); border-right: 4px solid var(--brand-green); padding-right: 12px; margin: 0; }
.section-header a { background: #f0fdf4; color: var(--brand-green); font-size: 0.85rem; font-weight: bold; text-decoration: none; padding: 5px 12px; border-radius: 8px; transition: 0.3s; }
.section-header a:hover { background: var(--brand-gold); color: #fff; }

/* --- Glass Card General --- */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 16px; padding: 24px; transition: all 0.3s ease; }

/* --- WOOCOMMERCE HORIZONTAL SCROLL --- */
.woo-scroll-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.woo-scroll-wrapper::-webkit-scrollbar { display: none; }
.woo-scroll-wrapper ul.products { display: flex !important; flex-wrap: nowrap !important; gap: 20px !important; margin: 0 !important; }
.woo-scroll-wrapper ul.products li.product { flex: 0 0 auto !important; width: 280px !important; scroll-snap-align: center; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 12px; padding: 16px; margin: 0 !important; transition: 0.3s; box-shadow: none; }
.woo-scroll-wrapper ul.products li.product:hover { border-color: var(--brand-gold); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15); }

/* --- DEEP INTERLINKS (لینک‌های دوتایی سئو) --- */
.deep-links-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; max-width: 600px; margin: 0 auto 50px auto; }
.deep-link-btn { background: #fff; border: 1px solid var(--brand-green); color: var(--brand-green); padding: 12px 15px; border-radius: 50px; font-weight: bold; font-size: 0.95rem; text-align: center; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center; gap: 8px; }
.deep-link-btn:hover { background: var(--brand-green); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(66, 159, 45, 0.2); }
.deep-link-btn.gold-style { border-color: var(--brand-gold); color: var(--brand-gold); }
.deep-link-btn.gold-style:hover { background: var(--brand-gold); color: #fff; box-shadow: 0 6px 15px rgba(228, 181, 63, 0.3); }

/* --- Interlinking Box (باکس دسترسی سریع) --- */
.interlink-box { text-align: center; margin-bottom: 60px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.interlink-box h3 { font-size: 1.2rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 25px; }
.interlink-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.interlink-tag { background: var(--light-grey); color: #4b5563; font-weight: bold; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: 0.3s; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.interlink-tag:hover { background: var(--brand-green); color: #fff; transform: translateY(-2px); }
.interlink-tag.highlight { background: var(--brand-gold); color: #fff; }
.interlink-tag.highlight:hover { background: var(--brand-dark); }

/* --- Media Grid (ویدیو و پادکست) --- */
.media-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 60px; }
.video-box { background: #e5e7eb; height: 320px; border-radius: 12px; position: relative; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-box img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.play-btn { position: relative; z-index: 2; width: 60px; height: 60px; background: var(--brand-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.video-box:hover img { opacity: 0.6; transform: scale(1.05); }
.video-box:hover .play-btn { transform: scale(1.1); }

.podcast-card { background: var(--brand-dark); color: #fff; padding: 24px; border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); height: fit-content; }
.pod-icon { width: 50px; height: 50px; background: var(--brand-gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.pod-info h4 { margin: 0 0 5px 0; font-weight: bold; color: #fff; }
.pod-info p { margin: 0; font-size: 0.8rem; color: #9ca3af; }
.pod-play { margin-right: auto; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; transition: 0.3s; }
.pod-play:hover { color: var(--brand-gold); }

/* --- SEO Text Box --- */
.seo-box { margin-bottom: 60px; padding: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.seo-box h2 { font-size: 1.5rem; margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; color: var(--brand-dark); font-weight: bold; }
    /* این مورد برای حفظ فاصله تیترهای داخلی سئو باکس اضافه شد */
.seo-box h3 { font-size: 1.2rem; color: var(--brand-green); margin: 25px 0 10px 0; display: flex; align-items: center; gap: 10px; font-weight: bold; }
.seo-box p { color: #555; line-height: 2; text-align: justify; margin-bottom: 15px; font-size: 1rem; }

/* --- FAQ Accordion --- */
.faq-section { max-width: 800px; margin: 0 auto 60px auto; }
.faq-title { text-align: center; font-size: 1.5rem; margin-bottom: 30px; font-weight: bold; color: var(--brand-dark); }
.faq-item { background: var(--glass-bg); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
    /* بازنویسی استایل‌های دکمه آکاردئون برای جلوگیری از تداخل */
.faq-btn { width: 100%; padding: 15px 20px; text-align: right; background: none; border: none; font-weight: bold; color: var(--brand-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; font-size: 1rem; }
.faq-btn i { color: #9ca3af; transition: 0.3s; }
.faq-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #f9fafb; color: #4b5563; font-size: 0.9rem; line-height: 1.8; }
.faq-item.active .faq-content { padding: 15px 20px; max-height: 200px; border-top: 1px solid #eee; }
.faq-item.active .faq-btn i { transform: rotate(180deg); color: var(--brand-green); }

/* --- Responsive --- */
@media (max-width: 992px) { .media-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) { 
    .cat-hero-content { text-align: center; } 
    .cat-hero-title { font-size: 2rem; } 
    .deep-link-btn { font-size: 0.8rem; padding: 10px; }
}

/* --- Single Deep Link (دکمه تکی برای سانورتر) --- */
.single-deep-link-wrapper { display: flex; justify-content: center; margin: 0 auto 50px auto; width: 100%; }
.single-deep-link-btn { background: #fff; border: 2px solid var(--brand-gold); color: var(--brand-gold); padding: 12px 35px; border-radius: 50px; font-weight: bold; font-size: 1.05rem; text-align: center; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.single-deep-link-btn:hover { background: var(--brand-gold); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(228, 181, 63, 0.3); }

/* --- Single Deep Link (دکمه تکی سانورتر) --- */
.single-deep-link-wrapper { display: flex; justify-content: center; margin: 0 auto 50px auto; width: 100%; }
.single-deep-link-btn { background: #fff; border: 2px solid var(--brand-gold); color: var(--brand-gold); padding: 12px 35px; border-radius: 50px; font-weight: bold; font-size: 1.05rem; text-align: center; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.single-deep-link-btn:hover { background: var(--brand-gold); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(228, 181, 63, 0.3); }

/* =========================================
   سیستم طراحی یکپارچه دسته‌بندی‌های سان ری
========================================= */
:root {
    --brand-green: #429f2d;
    --brand-gold: #e4b53f;
    --brand-dark: #2c3e50;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --light-grey: #f8f9fa;
}

main#primary.site-main, .site-main { margin-top: 0 !important; padding-top: 0 !important; }
.ast-container { max-width: 100% !important; padding: 0 !important; }
header.entry-header { display: none !important; }
.container-custom { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-spacing { margin-bottom: 30px; }

/* --- Hero Banner --- */
.cat-hero { background-color: var(--brand-dark); color: #fff; padding: 80px 0; position: relative; overflow: hidden; display: flex; align-items: center; min-height: 350px; margin-bottom: 50px; }
.cat-hero img.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; filter: grayscale(100%) blur(2px); z-index: 1; }
.cat-hero .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0.4) 100%); z-index: 2; }
.cat-hero-content { position: relative; z-index: 3; text-align: right; width: 100%; }
.cat-hero-title { font-size: 2.8rem; font-weight: bold; margin-bottom: 15px; color: #fff; line-height: 1.4; }
.cat-hero-title span { color: var(--brand-gold); }
.cat-hero-subtitle { color: #d1d5db; font-size: 1.15rem; margin: 0; }

/* --- Section Headers --- */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.section-header h2 { font-size: 1.5rem; font-weight: bold; color: var(--brand-dark); border-right: 4px solid var(--brand-green); padding-right: 12px; margin: 0; }
.section-header a { background: #f0fdf4; color: var(--brand-green); font-size: 0.85rem; font-weight: bold; text-decoration: none; padding: 5px 12px; border-radius: 8px; transition: 0.3s; }
.section-header a:hover { background: var(--brand-gold); color: #fff; }

/* --- WOOCOMMERCE HORIZONTAL SCROLL --- */
.woo-scroll-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.woo-scroll-wrapper::-webkit-scrollbar { display: none; }
.woo-scroll-wrapper ul.products { display: flex !important; flex-wrap: nowrap !important; gap: 20px !important; margin: 0 !important; }
.woo-scroll-wrapper ul.products li.product { flex: 0 0 auto !important; width: 280px !important; scroll-snap-align: center; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 12px; padding: 16px; margin: 0 !important; transition: 0.3s; box-shadow: none; }
.woo-scroll-wrapper ul.products li.product:hover { border-color: var(--brand-gold); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(66, 159, 45, 0.15); }

/* --- Single Deep Link (دکمه تکی سانورتر) --- */
.single-deep-link-wrapper { display: flex; justify-content: center; margin: 0 auto 60px auto; width: 100%; }
.single-deep-link-btn { background: #fff; border: 2px solid var(--brand-gold); color: var(--brand-gold); padding: 12px 35px; border-radius: 50px; font-weight: bold; font-size: 1.05rem; text-align: center; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.03); display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.single-deep-link-btn:hover { background: var(--brand-gold); color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(228, 181, 63, 0.3); }

/* --- Interlinking Box --- */
.glass-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 16px; padding: 24px; transition: all 0.3s ease; }
.interlink-box { text-align: center; margin-bottom: 60px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.interlink-box h3 { font-size: 1.2rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 25px; }
.interlink-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.interlink-tag { background: var(--light-grey); color: #4b5563; font-weight: bold; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: 0.3s; font-size: 0.95rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.interlink-tag:hover { background: var(--brand-green); color: #fff; transform: translateY(-2px); }
.interlink-tag.highlight { background: var(--brand-gold); color: #fff; }
.interlink-tag.highlight:hover { background: var(--brand-dark); }

/* --- Media Grid --- */
.media-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin-bottom: 60px; }
.video-box { background: #e5e7eb; height: 320px; border-radius: 12px; position: relative; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-box img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.play-btn { position: relative; z-index: 2; width: 60px; height: 60px; background: var(--brand-green); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: 0.3s; }
.video-box:hover img { opacity: 0.6; transform: scale(1.05); }
.video-box:hover .play-btn { transform: scale(1.1); }
.podcast-card { background: var(--brand-dark); color: #fff; padding: 24px; border-radius: 16px; display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); height: fit-content; }
.pod-icon { width: 50px; height: 50px; background: var(--brand-gold); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.pod-info h4 { margin: 0 0 5px 0; font-weight: bold; color: #fff; }
.pod-info p { margin: 0; font-size: 0.8rem; color: #9ca3af; }
.pod-play { margin-right: auto; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; transition: 0.3s; }
.pod-play:hover { color: var(--brand-gold); }

/* --- SEO Text Box --- */
.seo-box { margin-bottom: 60px; padding: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.seo-box h2 { font-size: 1.5rem; margin-bottom: 20px; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; color: var(--brand-dark); font-weight: bold; }
.seo-box h3 { font-size: 1.2rem; color: var(--brand-green); margin: 25px 0 10px 0; display: flex; align-items: center; gap: 10px; font-weight: bold; }
.seo-box p { color: #555; line-height: 2; text-align: justify; margin-bottom: 15px; font-size: 1rem; }

/* --- FAQ Accordion --- */
.faq-section { max-width: 800px; margin: 0 auto 60px auto; }
.faq-title { text-align: center; font-size: 1.5rem; margin-bottom: 30px; font-weight: bold; color: var(--brand-dark); }
    /* بازنویسی استایل‌های دکمه آکاردئون */
.faq-item { background: var(--glass-bg); border: 1px solid rgba(66, 159, 45, 0.2); border-radius: 12px; margin-bottom: 15px; overflow: hidden; }
.faq-btn { width: 100%; padding: 15px 20px; text-align: right; background: none; border: none; font-weight: bold; color: var(--brand-dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; font-size: 1rem; }
.faq-btn i { color: #9ca3af; transition: 0.3s; }
.faq-content { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #f9fafb; color: #4b5563; font-size: 0.9rem; line-height: 1.8; }
.faq-item.active .faq-content { padding: 15px 20px; max-height: 200px; border-top: 1px solid #eee; }
    /* چرخش فلش و تغییر رنگ در حالت اکتیو */
.faq-item.active .faq-btn i { transform: rotate(180deg); color: var(--brand-green); }

/* --- Responsive --- */
@media (max-width: 992px) { .media-grid { grid-template-columns: 1fr; } }
@media (max-width: 576px) { 
    .cat-hero-content { text-align: center; } 
    .cat-hero-title { font-size: 2rem; } 
    .single-deep-link-btn { font-size: 0.9rem; padding: 12px 20px; width: 100%; }
}

/* =========================================
   استایل‌های اختصاصی صفحه اصلی (Homepage)
========================================= */

/* --- Hero Slider --- */
.hero-section { background-color: var(--brand-dark); position: relative; }
.slider-container { position: relative; width: 100%; height: 500px; overflow: hidden; }
.slider-track { display: flex; height: 100%; transition: transform 0.7s ease-in-out; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px; }
.slide-title { color: #fff; font-size: 2.5rem; font-weight: bold; text-align: center; text-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.slide-title span { color: var(--brand-gold); }
.slide-title .text-green { color: var(--brand-green); }

.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 20; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: 0.3s; }
.dot:hover, .dot.active { background: #fff; }

/* --- Action Buttons (Quick Links) --- */
.action-bar { background: #fff; border-bottom: 4px solid var(--brand-gold); position: relative; z-index: 30; padding: 20px 0; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 8px; font-weight: bold; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-green); color: #fff;}
.btn-gold { background: var(--brand-gold); color: #fff; }
.btn-gold:hover { background: #c99a32; color: #fff;}
.btn-outline { border: 2px solid var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }

/* --- About Section --- */
.about-flex { display: flex; align-items: center; gap: 40px; }
.about-content { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.subtitle { color: var(--brand-green); font-weight: bold; display: block; margin-bottom: 10px; }
.about-text { color: #555; line-height: 1.8; text-align: justify; margin-bottom: 20px; }
.read-more { color: var(--brand-green); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--brand-green); padding-bottom: 2px; transition: 0.3s; }
.read-more:hover { color: var(--brand-gold); border-color: var(--brand-gold); }

/* --- Portfolio Grid --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.portfolio-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.portfolio-img { width: 100%; height: 220px; object-fit: cover; }
.portfolio-info { padding: 20px; }
.portfolio-info h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--brand-dark); }
.portfolio-info p { color: #777; font-size: 0.9rem; margin-bottom: 15px; }
.btn-portfolio { display: block; width: 100%; text-align: center; border: 1px solid var(--brand-green); color: var(--brand-green); padding: 10px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-portfolio:hover { background: var(--brand-green); color: #fff; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .portfolio-grid, .action-grid { grid-template-columns: repeat(2, 1fr); }
    .about-flex { flex-direction: column; }
    .slider-container { height: 400px; }
    .slide-title { font-size: 2rem; }
}
@media (max-width: 576px) {
    .portfolio-grid, .action-grid { grid-template-columns: 1fr; }
    .slide-title { font-size: 1.5rem; }
}

/* =========================================
   استایل‌های اختصاصی صفحه اصلی (Homepage)
========================================= */

/* --- Hero Slider --- */
.hero-section { background-color: var(--brand-dark); position: relative; }
.slider-container { position: relative; width: 100%; height: 500px; overflow: hidden; }
.slider-track { display: flex; height: 100%; transition: transform 0.7s ease-in-out; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.slide-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; padding: 20px; }
.slide-title { color: #fff; font-size: 2.5rem; font-weight: bold; text-align: center; text-shadow: 0 4px 6px rgba(0,0,0,0.3); }
.slide-title span { color: var(--brand-gold); }
.slide-title .text-green { color: var(--brand-green); }

.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 20; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: 0.3s; }
.dot:hover, .dot.active { background: #fff; }

/* --- Action Buttons (Quick Links) --- */
.action-bar { background: #fff; border-bottom: 4px solid var(--brand-gold); position: relative; z-index: 30; padding: 20px 0; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.action-btn { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px; border-radius: 8px; font-weight: bold; text-decoration: none; transition: 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-green); color: #fff;}
.btn-gold { background: var(--brand-gold); color: #fff; }
.btn-gold:hover { background: #c99a32; color: #fff;}
.btn-outline { border: 2px solid var(--brand-dark); color: var(--brand-dark); background: transparent; }
.btn-outline:hover { background: var(--brand-dark); color: #fff; }

/* --- About Section --- */
.about-flex { display: flex; align-items: center; gap: 40px; }
.about-content { flex: 1; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.subtitle { color: var(--brand-green); font-weight: bold; display: block; margin-bottom: 10px; }
.about-text { color: #555; line-height: 1.8; text-align: justify; margin-bottom: 20px; }
.read-more { color: var(--brand-green); font-weight: bold; text-decoration: none; border-bottom: 2px solid var(--brand-green); padding-bottom: 2px; transition: 0.3s; }
.read-more:hover { color: var(--brand-gold); border-color: var(--brand-gold); }

/* --- Portfolio Grid --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.portfolio-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.portfolio-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.portfolio-img { width: 100%; height: 220px; object-fit: cover; }
.portfolio-info { padding: 20px; }
.portfolio-info h4 { margin: 0 0 10px 0; font-size: 1.2rem; color: var(--brand-dark); }
.portfolio-info p { color: #777; font-size: 0.9rem; margin-bottom: 15px; }
.btn-portfolio { display: block; width: 100%; text-align: center; border: 1px solid var(--brand-green); color: var(--brand-green); padding: 10px; border-radius: 6px; text-decoration: none; font-weight: bold; transition: 0.3s; }
.btn-portfolio:hover { background: var(--brand-green); color: #fff; }

/* =========================================
   استایل‌های فرم مشاوره (Wizard)
========================================= */
.wizard-card { max-width: 800px; margin: 0 auto; background: #fff; border: 1px solid rgba(66, 159, 45, 0.2); border-top: 4px solid var(--brand-gold); border-radius: 16px; padding: 40px; position: relative; z-index: 10; box-shadow: 0 15px 40px rgba(0,0,0,0.08); min-height: 400px; }
.wizard-header { text-align: center; border-bottom: 1px solid #f3f4f6; padding-bottom: 20px; margin-bottom: 30px; }
.wizard-header h2 { font-size: 1.5rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 10px; }
.wizard-header p { color: #6b7280; font-size: 0.95rem; margin: 0; }
.wizard-progress { display: flex; justify-content: space-between; position: relative; max-width: 500px; margin: 0 auto 40px auto; }
.wizard-progress::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 4px; background: #e5e7eb; transform: translateY(-50%); z-index: 0; }
.step-indicator { width: 45px; height: 45px; background: #fff; border: 3px solid #e5e7eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; color: #9ca3af; position: relative; z-index: 1; transition: all 0.3s ease; }
.step-indicator.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; box-shadow: 0 0 15px rgba(66, 159, 45, 0.3); }

.form-step { display: none; animation: fadeIn 0.5s ease-out forwards; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.form-step h3 { text-align: center; font-size: 1.25rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 25px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: right; }
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: span 2; }
.form-label { display: block; font-size: 0.9rem; font-weight: bold; color: #374151; margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: 0.3s; outline: none; background: #fff; box-sizing: border-box; }
.form-control:focus { border-color: var(--brand-green); box-shadow: 0 0 0 2px rgba(66, 159, 45, 0.2); }
.checkbox-label { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #d1d5db; border-radius: 8px; cursor: pointer; transition: 0.3s; }
.checkbox-label:hover { background: #f9fafb; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-green); }
.radio-card-wrapper { display: flex; gap: 15px; }
.radio-card { flex: 1; border: 1px solid #d1d5db; padding: 20px; border-radius: 8px; text-align: center; cursor: pointer; transition: 0.3s; }
.radio-card input[type="radio"] { display: none; }
.radio-card:hover { border-color: var(--brand-green); }
.radio-card.selected { background: #f0fdf4; border-color: var(--brand-green); }
.radio-card strong { display: block; font-size: 1.05rem; margin-bottom: 5px; color: var(--brand-dark); }
.radio-card span { font-size: 0.85rem; color: #6b7280; }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; border-top: 1px solid #f3f4f6; padding-top: 20px; }
.btn-next { background: var(--brand-green); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-next:hover { background: var(--brand-gold); }
.btn-prev { background: transparent; color: #6b7280; font-weight: bold; border: none; cursor: pointer; padding: 12px 20px; transition: 0.3s; }
.btn-prev:hover { color: var(--brand-dark); }
.btn-submit { background: var(--brand-gold); color: #fff; padding: 12px 30px; border-radius: 8px; font-weight: bold; border: none; cursor: pointer; transition: 0.3s; width: 100%; font-size: 1.1rem; }
.btn-submit:hover { background: #c99a32; }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.success-msg { text-align: center; padding: 50px 0; animation: fadeIn 0.5s; }
.success-msg i { font-size: 4rem; color: var(--brand-green); margin-bottom: 20px; }
.success-msg h3 { font-size: 1.5rem; color: var(--brand-dark); font-weight: bold; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .portfolio-grid, .action-grid { grid-template-columns: repeat(2, 1fr); }
    .about-flex { flex-direction: column; }
    .slider-container { height: 400px; }
    .slide-title { font-size: 2rem; }
}
@media (max-width: 576px) {
    .portfolio-grid, .action-grid { grid-template-columns: 1fr; }
    .slide-title { font-size: 1.5rem; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: span 1; }
    .wizard-card { padding: 25px 15px; }
    .radio-card-wrapper { flex-direction: column; }
    .wizard-progress { max-width: 300px; }
}

/* =========================================
   استایل‌های اختصاصی سبد خرید (Cart)
   (آپدیت نهایی: رفع قطعی شکستگی جدول آسترا و تداخل نوار موبایل)
========================================= */

/* --- اعلان‌های ووکامرس (Notices) --- */
.woocommerce-message, .woocommerce-error, .woocommerce-info {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    padding: 15px 20px !important;
    margin-bottom: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border: 1px solid rgba(66, 159, 45, 0.2) !important;
    border-right: 4px solid var(--brand-green) !important;
    color: var(--brand-dark) !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
}
.woocommerce-error { border-right-color: #ef4444 !important; border-color: rgba(239, 68, 68, 0.2) !important; }
.woocommerce-info { border-right-color: var(--brand-gold) !important; border-color: rgba(228, 181, 63, 0.2) !important; }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { display: none !important; }
.woocommerce-message a.button, .woocommerce-error a.button, .woocommerce-info a.button {
    background: #f3f4f6 !important; color: var(--brand-dark) !important; border-radius: 8px !important; padding: 8px 15px !important; margin-left: 15px !important; text-decoration: none !important; font-size: 0.85rem !important; border: none !important; box-shadow: none !important;
}
.woocommerce-message a.button:hover { background: #e5e7eb !important; }

/* --- ساختار دو ستونه دسکتاپ --- */
.sanray-cart-wrapper { display: grid; grid-template-columns: 2.2fr 1fr; gap: 30px; align-items: start; margin: 40px auto 80px auto; }
.woocommerce-cart-form { width: 100% !important; float: none !important; margin: 0 !important; }
.cart-collaterals { width: 100% !important; float: none !important; margin: 0 !important; }

/* مخفی کردن جدول پیش‌فرض لیست محصولات */
.woocommerce-cart-form table.shop_table { border: none !important; border-radius: 0 !important; margin: 0 !important; }
.woocommerce-cart-form table.shop_table thead { display: none !important; }

/* --- کارت هر محصول --- */
.sanray-cart-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: 0.3s; }
.sanray-cart-card:hover { border-color: var(--brand-green); box-shadow: 0 10px 25px rgba(66, 159, 45, 0.08); }
.product-remove { position: absolute; top: 15px; left: 15px; z-index: 10; }
.remove-btn { display: flex !important; align-items: center; justify-content: center; width: 35px; height: 35px; background: #fef2f2 !important; color: #ef4444 !important; border-radius: 8px; text-decoration: none !important; transition: 0.3s; font-size: 1.1rem; }
.remove-btn:hover { background: #ef4444 !important; color: #fff !important; }

.card-content-wrap { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #e5e7eb; }
.product-thumbnail img { width: 100px; height: 100px; object-fit: contain; background: #f9fafb; border-radius: 12px; padding: 5px; }
.product-details { flex: 1; }
.product-name a { font-size: 1.1rem; font-weight: bold; color: var(--brand-dark); text-decoration: none; transition: 0.3s; }
.product-name a:hover { color: var(--brand-green); }
.product-price { color: #6b7280; font-size: 0.95rem; margin-top: 5px; }

/* دکمه‌های تعداد */
.card-actions-wrap { display: flex; justify-content: space-between; align-items: center; }
.woocommerce-cart-form div.quantity { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; background: #f3f4f6 !important; border-radius: 8px !important; padding: 5px !important; margin: 0 !important; width: 120px !important; }
.woocommerce-cart-form input.qty { width: 40px !important; height: 35px !important; text-align: center !important; background: transparent !important; border: none !important; font-weight: bold !important; font-size: 1.1rem !important; color: var(--brand-dark) !important; padding: 0 !important; margin: 0 !important; box-shadow: none !important; -moz-appearance: textfield; }
.woocommerce-cart-form input.qty::-webkit-inner-spin-button, .woocommerce-cart-form input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form .qty-btn { width: 35px !important; height: 35px !important; background: #fff !important; border: none !important; border-radius: 6px !important; box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important; font-weight: bold !important; color: var(--brand-dark) !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 1.2rem !important; flex-shrink: 0 !important; transition: 0.3s; }
.woocommerce-cart-form .qty-btn:hover { color: var(--brand-green) !important; }

.product-subtotal { text-align: left; }
.subtotal-label { font-size: 0.8rem; color: #9ca3af; display: block; margin-bottom: 3px; }
.product-subtotal .amount { font-size: 1.3rem; font-weight: bold; color: var(--brand-green); }

/* فرم کوپن */
.cart-actions { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 20px; border-radius: 16px; border: 1px solid #e5e7eb; flex-wrap: wrap; gap: 15px; margin-top: 20px;}
.coupon { display: flex; gap: 10px; width: 60%; }
.coupon input { flex: 1; border: 1px solid #d1d5db !important; padding: 12px 15px !important; border-radius: 8px !important; outline: none; }
.coupon button { background: var(--brand-dark) !important; color: #fff !important; padding: 12px 25px !important; border-radius: 8px !important; font-weight: bold !important; border: none !important; cursor: pointer !important; transition: 0.3s !important; }
.coupon button:hover { background: var(--brand-gold) !important; }
.update-cart-btn { background: #f3f4f6 !important; color: #4b5563 !important; padding: 12px 25px !important; border-radius: 8px !important; font-weight: bold !important; border: none !important; cursor: pointer !important; transition: 0.3s !important; }
.update-cart-btn:hover { background: #e5e7eb !important; color: var(--brand-dark) !important; }

/* 🔴 بازنویسی قطعی جدول فاکتور (رفع مشکل شکستگی حروف) */
.sticky-totals { position: sticky; top: 90px; border-top: 4px solid var(--brand-gold); }
.cart_totals h2 { font-size: 1.3rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e5e7eb; }
.cart_totals table.shop_table { width: 100% !important; border-collapse: collapse !important; display: table !important; margin: 0 !important; }
.cart_totals table.shop_table tbody { display: table-row-group !important; }
.cart_totals table.shop_table tr { display: table-row !important; }
.cart_totals table.shop_table th, 
.cart_totals table.shop_table td { 
    display: table-cell !important; 
    padding: 15px 5px !important; 
    border-bottom: 1px dashed #e5e7eb !important; 
    text-align: left !important; 
    white-space: nowrap !important; /* 👈 این خط جلوی شکسته شدن و عمودی شدن حروف را می‌گیرد */
    width: auto !important; 
    vertical-align: middle !important;
}
.cart_totals table.shop_table th { text-align: right !important; color: #6b7280 !important; font-weight: normal !important; }
.cart_totals table.shop_table td { font-weight: bold !important; color: var(--brand-dark) !important; }
.order-total th, .order-total td { border-bottom: none !important; font-size: 1.1rem !important; }
.order-total td .amount { color: var(--brand-green) !important; font-size: 1.4rem !important; }

.wc-proceed-to-checkout a.checkout-button { background: var(--brand-green) !important; color: #fff !important; padding: 15px !important; border-radius: 12px !important; text-align: center !important; font-weight: bold !important; font-size: 1.1rem !important; display: block !important; transition: 0.3s !important; box-shadow: 0 4px 15px rgba(66, 159, 45, 0.3) !important; text-decoration: none !important; }
.wc-proceed-to-checkout a.checkout-button:hover { background: #358024 !important; transform: translateY(-2px); }

/* 🔴 تنظیم نوار موبایل (قرار گرفتن دقیقاً بالای منوی فوتر) */
.mobile-buy-bar { 
    display: none; 
    position: fixed; 
    bottom: 66px !important; /* فاصله تنظیم شد تا روی منوی واتساپ/تماس قرار بگیرد */
    left: 0; right: 0; 
    background: #fff; 
    border-top: 1px solid #e5e7eb; 
    padding: 12px 20px; 
    justify-content: space-between; 
    align-items: center; 
    z-index: 998 !important; /* کمتر از منوی اصلی فوتر تا تداخل نکند */
    box-shadow: 0 -4px 15px rgba(0,0,0,0.08); 
}
.mobile-buy-bar .mb-price-label { font-size: 0.75rem; color: #6b7280; display: block; margin-bottom: 2px; font-weight:bold; }
.mobile-buy-bar .price, .mobile-buy-bar .price .amount { font-size: 1.2rem !important; font-weight: bold !important; color: var(--brand-green) !important; margin: 0; }
.mb-buy-btn { background: var(--brand-green); color: #fff; border: none; padding: 10px 20px; border-radius: 12px; font-weight: bold; box-shadow: 0 4px 10px rgba(66,159,45,0.3); font-family: inherit; font-size: 1rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    .sanray-cart-wrapper { grid-template-columns: 1fr; }
    .sticky-totals { position: static; }
    .cart-actions { flex-direction: column; }
    .coupon { width: 100%; flex-direction: column; }
    .update-cart-btn { width: 100%; }
    
    /* نمایش نوار چسبان موبایل */
    .mobile-buy-bar { display: flex; }
    
    /* مخفی کردن دکمه اصلی در موبایل به خاطر نوار چسبان */
    .wc-proceed-to-checkout { display: none !important; }

    /* فضای پایین صفحه را بیشتر می‌کنیم تا زیر دو تا نوار مخفی نشود */
    body { padding-bottom: 160px !important; }
}
@media (max-width: 576px) {
    .card-content-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .product-thumbnail img { width: 80px; height: 80px; }
    .card-actions-wrap { flex-direction: column; align-items: flex-end; gap: 15px; }
    .product-quantity { width: 100%; display: flex; justify-content: flex-start; }
}

/* ===== CART TOTALS FIX ===== */

/* 1) Cancel WooCommerce's default float:right; width:48% that squeezed the totals box.
      This was the root cause of the "messy" overlap on desktop AND mobile. */
      html body #primary .cart_totals,
      html body #primary .cart-collaterals .cart_totals {
          width: 100% !important;
          float: none !important;
          box-sizing: border-box !important;
      }
      
      /* 2) Remove the duplicate label WooCommerce injects on mobile via td::before */
      html body #primary .cart_totals table.shop_table td::before,
      html body #primary .cart_totals table.shop_table th::before {
          content: none !important;
          display: none !important;
      }
      
      /* 3) Allow long amounts to wrap so the table can't push wider than the screen
            (your existing white-space:nowrap was forcing the overflow) */
      html body #primary .cart_totals table.shop_table th,
      html body #primary .cart_totals table.shop_table td {
          white-space: normal !important;
          word-break: normal !important;
          overflow-wrap: anywhere !important;
      }
      
      /* 4) Force the single-column mobile layout to actually win, and clip stray overflow.
            Your old rule "#primary .sanray-cart-wrapper" was lower specificity than the
            base "html body #primary .sanray-cart-wrapper" rule, so it never applied. */
      @media (max-width: 992px) {
          html body #primary .sanray-cart-wrapper { grid-template-columns: 1fr !important; }
          html, body { max-width: 100% !important; overflow-x: hidden !important; }
      }

      /* ===== CART FIX v2 ===== */

/* A) Gap between the sticky checkout bar and the bottom nav on mobile */
@media (max-width: 992px) {
    .mobile-buy-bar { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* B) Delete button = plain trash icon, no circle/background */
html body #primary .product-remove .remove,
html body #primary .remove-btn {
    background: transparent !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #ef4444 !important;
    font-size: 1.25rem !important;
    line-height: 1 !important;
}
html body #primary .product-remove .remove:hover,
html body #primary .remove-btn:hover {
    background: transparent !important;
    color: #dc2626 !important;
}

/* C) Keep money + currency on one line so "تومان" never wraps
      (undoes the previous overflow-wrap:anywhere on totals cells) */
html body #primary .cart_totals .woocommerce-Price-amount,
html body #primary .cart_totals .woocommerce-Price-currencySymbol,
html body #primary .product-subtotal .woocommerce-Price-amount,
.mobile-buy-bar .woocommerce-Price-amount {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}
html body #primary .cart_totals table.shop_table th,
html body #primary .cart_totals table.shop_table td {
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}
@media (max-width: 576px) {
    html body #primary .order-total td .amount { font-size: 1.2rem !important; }
    html body #primary .cart_totals table.shop_table th { width: 35% !important; }
}

/* D) Clean, self-contained quantity stepper (−  value  +) */
html body #primary .product-quantity { width: auto !important; }
html body #primary .product-quantity::before { content: none !important; display: none !important; }
html body #primary .woocommerce-cart-form div.quantity {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    background: #f3f4f6 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    float: none !important;
}
html body #primary .woocommerce-cart-form div.quantity label,
html body #primary .woocommerce-cart-form div.quantity .screen-reader-text {
    display: none !important;
}
/* ===== CART FIX v3 — normalize currency symbol ===== */

/* Force the "تومان" symbol to sit inline, same size & baseline as the number, never break */
html body #primary .cart_totals .woocommerce-Price-amount,
html body #primary .cart_totals .woocommerce-Price-amount bdi,
html body #primary .product-subtotal .woocommerce-Price-amount,
html body #primary .product-subtotal .woocommerce-Price-amount bdi {
    display: inline !important;
    white-space: nowrap !important;
    direction: rtl !important;
    unicode-bidi: plaintext !important;
}
html body #primary .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    vertical-align: baseline !important;
    margin-right: 4px !important;
    white-space: nowrap !important;
    line-height: inherit !important;
}

/* Make sure the big order-total value can't overflow / collide with its label on desktop */
html body #primary .cart_totals table.shop_table { table-layout: auto !important; }
html body #primary .order-total td .amount { font-size: 1.3rem !important; }

/* =========================================
   استایل‌های اختصاصی صفحه تسویه حساب (Checkout)
========================================= */

/* 1. ساختار گرید اصلی دسکتاپ */
html body #primary form.woocommerce-checkout {
    display: grid !important;
    grid-template-columns: 2.2fr 1fr !important; /* فرم بزرگتر، فاکتور کوچکتر */
    gap: 30px !important;
    align-items: start !important;
}

html body #primary form.woocommerce-checkout::before,
html body #primary form.woocommerce-checkout::after {
    display: none !important; /* حذف Clearfix های مزاحم */
}

/* 2. باکس اطلاعات مشتری (سمت راست) */
html body #primary .sanray-checkout-form-wrap {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid #e5e7eb !important;
    width: 100% !important;
    float: none !important;
}

/* خنثی‌سازی دو ستونه شدن فرم‌های پیش‌فرض آسترا */
html body #primary .woocommerce-checkout .col2-set .col-1,
html body #primary .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

/* 3. استایل تیترهای فرم */
html body #primary .woocommerce-checkout h3 {
    font-size: 1.3rem !important;
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    border-bottom: 2px solid #f3f4f6 !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
}

/* 4. استایل فیلدهای ورود اطلاعات */
html body #primary .woocommerce-checkout .form-row {
    margin-bottom: 20px !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}

html body #primary .woocommerce-checkout .form-row label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
}

html body #primary .woocommerce-checkout .form-row input[type="text"],
html body #primary .woocommerce-checkout .form-row input[type="email"],
html body #primary .woocommerce-checkout .form-row input[type="tel"],
html body #primary .woocommerce-checkout .form-row select,
html body #primary .woocommerce-checkout .form-row textarea {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    transition: border-color 0.3s !important;
    outline: none !important;
    background: #fff !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
}

html body #primary .woocommerce-checkout .form-row input:focus,
html body #primary .woocommerce-checkout .form-row select:focus,
html body #primary .woocommerce-checkout .form-row textarea:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 2px rgba(66, 159, 45, 0.2) !important;
}

/* اصلاح استایل منوهای کشویی استان/شهر (Select2) */
html body #primary .select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    padding-right: 10px !important;
}
html body #primary .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    top: 0 !important;
    left: 10px !important;
    right: auto !important;
}

/* 5. باکس فاکتور و پرداخت (سمت چپ - Sticky) */
html body #primary .sanray-checkout-review-wrap {
    position: sticky !important;
    top: 90px !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(66, 159, 45, 0.2) !important;
    border-top: 4px solid var(--brand-gold) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* جدول سفارش */
html body #primary .woocommerce-checkout-review-order table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 20px !important;
    border: none !important;
}

html body #primary .woocommerce-checkout-review-order table.shop_table th,
html body #primary .woocommerce-checkout-review-order table.shop_table td {
    padding: 15px 5px !important;
    border-bottom: 1px dashed #e5e7eb !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    text-align: right !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
}

html body #primary .woocommerce-checkout-review-order table.shop_table th {
    color: #6b7280 !important;
    font-weight: normal !important;
}

html body #primary .woocommerce-checkout-review-order table.shop_table td {
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    text-align: left !important;
}

html body #primary .woocommerce-checkout-review-order .order-total th,
html body #primary .woocommerce-checkout-review-order .order-total td {
    border-bottom: none !important;
    font-size: 1.1rem !important;
}

html body #primary .woocommerce-checkout-review-order .order-total td .amount {
    color: var(--brand-green) !important;
    font-size: 1.5rem !important;
    white-space: nowrap !important;
}

/* 6. درگاه پرداخت و قوانین */
html body #primary #payment {
    background: #f9fafb !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-top: 20px !important;
    border: 1px solid #e5e7eb !important;
}

html body #primary #payment ul.payment_methods {
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: none !important;
}

html body #primary #payment ul.payment_methods li {
    list-style: none !important;
    margin-bottom: 15px !important;
}

html body #primary #payment div.payment_box {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-size: 0.9rem !important;
    color: #4b5563 !important;
    margin-top: 10px !important;
}
html body #primary #payment div.payment_box::before {
    display: none !important; /* حذف مثلث مزاحم ووکامرس */
}

/* قوانین سایت */
html body #primary .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px !important;
}
html body #primary .woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.9rem !important;
}

/* دکمه ثبت سفارش */
html body #primary #payment #place_order {
    background: var(--brand-green) !important;
    color: #fff !important;
    padding: 15px !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    border: none !important;
    transition: 0.3s !important;
    box-shadow: 0 4px 15px rgba(66, 159, 45, 0.3) !important;
    float: none !important;
}

html body #primary #payment #place_order:hover {
    background: #358024 !important;
    transform: translateY(-2px) !important;
}

/* 7. ریسپانسیو و موبایل */
@media (max-width: 992px) {
    html body #primary form.woocommerce-checkout {
        grid-template-columns: 1fr !important; /* در موبایل زیر هم می‌افتند */
    }
    html body #primary .sanray-checkout-review-wrap {
        position: static !important; /* غیرفعال کردن حالت چسبان در موبایل */
    }
}
@media (max-width: 576px) {
    html body #primary .sanray-checkout-form-wrap,
    html body #primary .sanray-checkout-review-wrap {
        padding: 20px 15px !important; /* پدینگ کمتر برای موبایل */
    }
    html body #primary .woocommerce-checkout-review-order .order-total td .amount {
        font-size: 1.25rem !important;
    }
}

/* ===== رفع باگ له شدن ستون فاکتور در دسکتاپ (آپدیت تکمیلی) ===== */

/* جایگزینی Grid با Flexbox درصدی برای تضمین ثبات عرض ستون‌ها */
html body #primary form.woocommerce-checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
}

/* ستون اطلاعات مشتری (راست) - دقیقاً 65 درصد */
html body #primary .sanray-checkout-form-wrap {
    width: 65% !important;
    flex: 0 0 65% !important;
    max-width: 65% !important;
}

/* ستون فاکتور و پرداخت (چپ) - دقیقاً 32 درصد */
html body #primary .sanray-checkout-review-wrap {
    width: 32% !important;
    flex: 0 0 32% !important;
    max-width: 32% !important;
}

/* خنثی کردن درصدهای مخفی قالب آسترا در داخل فاکتور (عامل اصلی باگ) */
html body #primary form.woocommerce-checkout #order_review,
html body #primary form.woocommerce-checkout #order_review_heading {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-style: none !important;
}

/* جلوگیری از بیرون زدن متن‌های طولانی (مثل متن درگاه پرداخت) از کادر سفید */
html body #primary .sanray-checkout-review-wrap * {
    overflow-wrap: break-word !important;
}

/* اطمینان ۱۰۰٪ از ریسپانسیو بودن در موبایل و تبلت */
@media (max-width: 992px) {
    html body #primary .sanray-checkout-form-wrap,
    html body #primary .sanray-checkout-review-wrap {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }
}

/* ===== رفع قطعی مشکلات تکمیلی Checkout (آپدیت نهایی و قدرتمند) ===== */

/* 1. حذف کامل بردرهای زائد دور جدول ووکامرس (با اولویت مطلق) */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table td,
html body.woocommerce-checkout #primary table.shop_table.woocommerce-checkout-review-order-table,
html body.woocommerce-checkout #primary table.shop_table.woocommerce-checkout-review-order-table * {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
}

/* حفظ فقط خطوط خط‌چین بین ردیف‌ها برای زیبایی */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tbody tr td,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tbody tr th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal td {
    border-bottom: 1px dashed #e5e7eb !important;
}

/* حذف خط پایینِ ردیف مبلغ کل نهایی */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .order-total th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .order-total td {
    border-bottom: none !important;
}

/* 2. رفع قطعی اسکرول افقی در کل صفحه (مخصوص موبایل) */
html {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}
body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* اطمینان از اینکه کانتینر فرم از صفحه بیرون نمی‌زند */
html body.woocommerce-checkout .container-custom,
html body.woocommerce-checkout #primary .sanray-checkout-form-wrap,
html body.woocommerce-checkout #primary .sanray-checkout-review-wrap,
html body.woocommerce-checkout form.checkout {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important; /* مهار محتوای داخلی */
}

/* 3. مدیریت کلمات طولانی در فاکتور برای جلوگیری از له شدن کادر */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order * {
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* حفظ خطی بودن قیمت نهایی و کلمه تومان */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .woocommerce-Price-amount,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* تنظیم جدول برای موبایل (جلوگیری از بیرون زدن) */
@media (max-width: 768px) {
    html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table {
        table-layout: fixed !important;
        width: 100% !important;
    }
    html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table th {
        width: 40% !important; /* اختصاص فضای منطقی به تیترها */
    }
    html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table td {
        width: 60% !important;
    }
}

/* ===== تیر خلاص برای بردر جدول فاکتور در آسترا ===== */

/* حذف بردر از خود جدول و تمام کانتینرهای مخفی که آسترا دور آن می‌کشد */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tbody,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tfoot,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tr,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table td,
html body.woocommerce-checkout #primary #order_review,
html body.woocommerce-checkout #primary .checkout_coupon,
html body.woocommerce-checkout #primary .ast-woocommerce-checkout-review-order-wrap /* کانتینر مخصوص آسترا */
{
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* فقط خطوط خط‌چین ظریف بین محصولات را دوباره روشن می‌کنیم (تا جدول خیلی لخت نشود) */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tbody tr td,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tbody tr th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order table.shop_table tfoot tr.cart-subtotal td {
    border-bottom: 1px dashed #e5e7eb !important;
}

/* در نهایت، حذف خط پایینِ مبلغ کل برای زیبایی بیشتر */
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .order-total th,
html body.woocommerce-checkout #primary .woocommerce-checkout-review-order .order-total td {
    border-bottom: none !important;
}

/* =========================================
   استایل‌های اختصاصی داشبورد حساب کاربری (My Account)
========================================= */

/* --- 1. لاگین و ثبت‌نام (حالت خارج از حساب) --- */
html body.woocommerce-account #primary .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 40px !important;
    margin-bottom: 80px !important;
}
html body.woocommerce-account #primary .u-columns.col2-set .u-column1,
html body.woocommerce-account #primary .u-columns.col2-set .u-column2 {
    width: 100% !important;
    float: none !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(66, 159, 45, 0.2) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
}
html body.woocommerce-account #primary .u-columns.col2-set h2 {
    font-size: 1.5rem !important;
    color: var(--brand-dark) !important;
    font-weight: bold !important;
    border-bottom: 2px solid #f3f4f6 !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
}

/* فرم‌های لاگین/ثبت نام (خنثی سازی آسترا) */
html body.woocommerce-account #primary .woocommerce form.login,
html body.woocommerce-account #primary .woocommerce form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* --- 2. ساختار اصلی پنل کاربری (دسکتاپ) --- */
html body.woocommerce-account.logged-in #primary .woocommerce {
    display: grid !important;
    grid-template-columns: 280px 1fr !important; /* 280px برای منو، بقیه برای محتوا */
    gap: 30px !important;
    align-items: start !important;
    margin-top: 40px !important;
    margin-bottom: 80px !important;
}
html body.woocommerce-account #primary .woocommerce::before,
html body.woocommerce-account #primary .woocommerce::after {
    display: none !important; /* حذف Clearfix های قدیمی */
}

/* --- 3. منوی کناری (Navigation) --- */
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(66, 159, 45, 0.2) !important;
    border-radius: 16px !important;
    padding: 15px 0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    position: sticky !important;
    top: 90px !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li a {
    display: block !important;
    padding: 15px 20px !important;
    color: #4b5563 !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f0fdf4 !important;
    color: var(--brand-green) !important;
    padding-right: 25px !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* --- 4. محتوای اصلی (Content Box) --- */
html body.woocommerce-account #primary .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    padding: 30px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    min-height: 400px !important;
}

html body.woocommerce-account #primary .woocommerce-MyAccount-content p {
    color: #4b5563 !important;
    line-height: 1.9 !important;
    font-size: 0.95rem !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-content a {
    color: var(--brand-green) !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

/* --- 5. جداول (سفارشات، دانلودها) --- */
html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 20px !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table thead th {
    background: #f9fafb !important;
    color: var(--brand-dark) !important;
    padding: 15px !important;
    border: none !important;
    border-bottom: 2px solid #e5e7eb !important;
    text-align: right !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table tbody td {
    padding: 15px !important;
    border: none !important;
    border-bottom: 1px dashed #e5e7eb !important;
    color: #4b5563 !important;
    vertical-align: middle !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table .button {
    background: var(--brand-dark) !important;
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    transition: 0.3s !important;
}
html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table .button:hover {
    background: var(--brand-gold) !important;
}

/* --- 6. استایل فرم‌ها و فیلدها در حساب کاربری --- */
html body.woocommerce-account #primary .woocommerce form .form-row {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}
html body.woocommerce-account #primary .woocommerce form label {
    display: block !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
}
html body.woocommerce-account #primary .woocommerce form input[type="text"],
html body.woocommerce-account #primary .woocommerce form input[type="email"],
html body.woocommerce-account #primary .woocommerce form input[type="password"],
html body.woocommerce-account #primary .woocommerce form input[type="tel"],
html body.woocommerce-account #primary .woocommerce form select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    background: #fff !important;
    transition: 0.3s !important;
    outline: none !important;
    box-sizing: border-box !important;
}
html body.woocommerce-account #primary .woocommerce form input:focus {
    border-color: var(--brand-green) !important;
    box-shadow: 0 0 0 2px rgba(66, 159, 45, 0.2) !important;
}

/* دکمه‌های فرم‌ها */
html body.woocommerce-account #primary .woocommerce button[type="submit"],
html body.woocommerce-account #primary .woocommerce button[name="save_address"],
html body.woocommerce-account #primary .woocommerce button[name="save_account_details"] {
    background: var(--brand-green) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 12px !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    border: none !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    box-shadow: 0 4px 15px rgba(66, 159, 45, 0.3) !important;
    margin-top: 15px !important;
}
html body.woocommerce-account #primary .woocommerce button[type="submit"]:hover {
    background: var(--brand-gold) !important;
    box-shadow: 0 4px 15px rgba(228, 181, 63, 0.3) !important;
    transform: translateY(-2px) !important;
}

/* --- 7. ریسپانسیو و موبایل --- */
@media (max-width: 992px) {
    /* تغییر حالت به زیرهم برای دسکتاپ‌های کوچک و تبلت */
    html body.woocommerce-account.logged-in #primary .woocommerce,
    html body.woocommerce-account #primary .u-columns.col2-set {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* 🔴 تبدیل منوی کناری به اسکرول افقی در موبایل (App-like) */
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation {
        position: static !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        gap: 10px !important;
        padding-bottom: 5px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li {
        border: none !important;
        flex: 0 0 auto !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li a {
        background: #f9fafb !important;
        border-radius: 8px !important;
        padding: 10px 20px !important;
        border: 1px solid #e5e7eb !important;
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li.is-active a {
        background: var(--brand-green) !important;
        color: #fff !important;
        border-color: var(--brand-green) !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li a:hover {
        padding-right: 20px !important; /* خنثی کردن افکت حرکت دسکتاپ در موبایل */
    }
    
    html body.woocommerce-account #primary .woocommerce-MyAccount-content {
        padding: 20px 15px !important;
    }

    /* جلوگیری از بیرون زدن جداول سفارشات در موبایل */
    html body.woocommerce-account #primary .woocommerce-MyAccount-content table.shop_table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
    }
}
/* ===== رفع باگ بیرون‌زدگی صفحه حساب کاربری (موبایل و دسکتاپ) ===== */

/* اعمال رفتار container-custom به صورت اجباری روی کانتینر حساب کاربری */
html body.woocommerce-account #primary .woocommerce {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important; /* ایجاد فاصله امن از لبه‌های گوشی */
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

/* جلوگیری از اضافه شدن پدینگ به عرض کل (جلوگیری از اسکرول افقی) */
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation,
html body.woocommerce-account #primary .woocommerce-MyAccount-content,
html body.woocommerce-account #primary .u-columns.col2-set .u-column1,
html body.woocommerce-account #primary .u-columns.col2-set .u-column2 {
    box-sizing: border-box !important;
    max-width: 100% !important;
}

@media (max-width: 992px) {
    /* اطمینان از اینکه در موبایل المان‌ها دقیقاً داخل کادر قرار می‌گیرند */
    html body.woocommerce-account.logged-in #primary .woocommerce {
        display: flex !important;
        flex-direction: column !important;
    }
    html body.woocommerce-account #primary .woocommerce-MyAccount-navigation,
    html body.woocommerce-account #primary .woocommerce-MyAccount-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ===== اصلاحات نهایی حساب کاربری (حذف دانلودها + اصلاح صفحه آدرس) ===== */

/* 1. پنهان کردن تب دانلودها از منوی حساب کاربری */
html body.woocommerce-account #primary .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

/* 2. رفع به هم ریختگی باکس‌های آدرس در تب "آدرس‌ها" */
html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 30px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set .u-column1,
html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set .u-column2 {
    flex: 1 1 calc(50% - 15px) !important; /* هر کدام دقیقا نصف صفحه (منهای فاصله) را می‌گیرند */
    width: 100% !important;
    margin: 0 !important;
    /* این باکس‌ها الان در دیزاین سیستم ما Glass-card هستند، پس استایلشان تمیز است */
}

/* اصلاح استایل دکمه‌های Edit (افزودن/ویرایش) داخل کادر آدرس */
html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set header.title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 2px solid #f3f4f6 !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
}

html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set header.title h3 {
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    font-size: 1.2rem !important;
}

html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set header.title a.edit {
    background: #f0fdf4 !important;
    color: var(--brand-green) !important;
    padding: 5px 15px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}

html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set header.title a.edit:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* ریسپانسیو برای موبایل: آدرس‌ها زیر هم بیفتند */
@media (max-width: 768px) {
    html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set .u-column1,
    html body.woocommerce-account #primary .woocommerce-MyAccount-content .u-columns.col2-set .u-column2 {
        flex: 1 1 100% !important; /* در موبایل 100% عرض را می‌گیرند */
    }
}

/* =========================================
   استایل‌های لندینگ پکیج‌های خورشیدی اختصاصی
========================================= */

/* ساختار کلی (Grid Layout) */
html body #primary .pkg-layout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    align-items: start;
    margin-bottom: 80px;
}

/* 🔴 سایدبار چسبان دسکتاپ */
html body #primary .pkg-sidebar .sticky-sidebar {
    position: sticky;
    top: 90px;
    border-top: 4px solid var(--brand-gold);
    padding: 25px;
}

html body #primary .sidebar-header { margin-bottom: 15px; }
html body #primary .pkg-label { font-size: 0.9rem; color: #6b7280; font-weight: bold; margin-bottom: 5px; }
html body #primary .pkg-price { font-size: 2rem; font-weight: bold; color: var(--brand-green); margin-bottom: 5px; }
html body #primary .pkg-price span { font-size: 1rem; color: #6b7280; font-weight: normal; }
html body #primary .pkg-tax-note { font-size: 0.8rem; color: #9ca3af; }

html body #primary .divider { border: none; border-top: 1px dashed #e5e7eb; margin: 20px 0; }
html body #primary .sidebar-includes { font-size: 0.85rem; color: var(--brand-dark); line-height: 1.8; margin-bottom: 15px; }

/* بج‌ها (Badges) */
html body #primary .badge-green { background: #f0fdf4; color: var(--brand-green); padding: 5px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; display: inline-block; }
html body #primary .badge-outline { background: transparent; border: 1px solid #d1d5db; color: #6b7280; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; }
html body #primary .block-badge { display: block; text-align: center; margin-bottom: 15px; border: 1px solid rgba(66, 159, 45, 0.2); }

/* انتخاب ظرفیت پکیج (Pills) */
html body #primary .size-selector-title { font-size: 0.9rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 10px; }
html body #primary .size-pills { display: flex; flex-wrap: wrap; gap: 8px; }
html body #primary .size-pill { background: #f3f4f6; color: #4b5563; padding: 8px 12px; border-radius: 8px; font-size: 0.85rem; text-decoration: none; transition: 0.3s; font-weight: bold; }
html body #primary .size-pill:hover { background: #e5e7eb; }
html body #primary .size-pill.active { background: var(--brand-green); color: #fff; box-shadow: 0 4px 10px rgba(66, 159, 45, 0.3); }

/* 🔴 محتوای اصلی (سمت راست) */
html body #primary .pkg-main-content { min-width: 0; }
html body #primary .pkg-mobile-header { display: none; } /* در دسکتاپ مخفی است */

html body #primary .pkg-section { padding: 25px; margin-bottom: 20px; }
html body #primary .pkg-section-title { font-size: 1.25rem; font-weight: bold; color: var(--brand-dark); margin-top: 0; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
html body #primary .sec-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fef3c7; color: var(--brand-gold); font-size: 1rem; font-weight: bold; }

/* گرید تجهیزات */
html body #primary .equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
html body #primary .equip-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 15px; text-align: center; transition: 0.3s; }
html body #primary .equip-card:hover { border-color: var(--brand-gold); transform: translateY(-3px); }
html body #primary .equip-icon { font-size: 1.8rem; color: var(--brand-green); margin-bottom: 10px; }
html body #primary .equip-name { font-size: 0.95rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 5px; }
html body #primary .equip-spec { font-size: 0.85rem; color: #6b7280; }

/* مناسب / نامناسب */
html body #primary .suit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
html body #primary .suit-card { border-radius: 12px; padding: 20px; }
html body #primary .suit-card.yes { background: #f0fdf4; border: 1px solid rgba(66, 159, 45, 0.3); }
html body #primary .suit-card.no { background: #fef2f2; border: 1px solid rgba(239, 68, 68, 0.3); }
html body #primary .suit-label { font-size: 1.05rem; font-weight: bold; margin-bottom: 15px; }
html body #primary .suit-label.yes { color: var(--brand-green); }
html body #primary .suit-label.no { color: #ef4444; }
html body #primary .suit-item { font-size: 0.9rem; color: #4b5563; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; line-height: 1.6; }
html body #primary .suit-card.yes .suit-item i { color: var(--brand-green); margin-top: 4px; }
html body #primary .suit-card.no .suit-item i { color: #ef4444; margin-top: 4px; }

/* ظرفیت انرژی */
html body #primary .kwh-subtitle { font-size: 0.9rem; color: #6b7280; margin-bottom: 15px; }
html body #primary .kwh-bar { height: 12px; border-radius: 50px; background: #e5e7eb; overflow: hidden; margin-bottom: 20px; }
html body #primary .kwh-fill { height: 100%; width: 75%; background: var(--brand-gold); border-radius: 50px; }
html body #primary .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
html body #primary .stat-box { background: #f9fafb; border-radius: 12px; padding: 15px; text-align: center; border: 1px solid #e5e7eb; }
html body #primary .stat-val { font-size: 1.3rem; font-weight: bold; color: var(--brand-dark); margin-bottom: 5px; direction: ltr; }
html body #primary .stat-lbl { font-size: 0.85rem; color: #6b7280; }

/* متغیرهای قیمت */
html body #primary .price-var-row { display: flex; flex-direction: column; gap: 10px; }
html body #primary .price-var { display: flex; justify-content: space-between; align-items: center; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 15px; background: #f9fafb; }
html body #primary .var-left { font-size: 0.95rem; font-weight: bold; color: var(--brand-dark); display: flex; align-items: center; gap: 8px; }
html body #primary .var-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* 🔴 ریسپانسیو (موبایل و تبلت) */
@media (max-width: 992px) {
    html body #primary .pkg-layout-grid {
        grid-template-columns: 1fr; /* قرارگیری سایدبار و محتوا زیر هم */
    }
    
    /* نمایش هدر موبایل و مخفی کردن سایدبار دسکتاپ */
    html body #primary .pkg-mobile-header {
        display: block;
        margin-bottom: 20px;
        padding: 20px;
        border-top: 4px solid var(--brand-gold);
    }
    html body #primary .pkg-title { font-size: 1.5rem; font-weight: bold; color: var(--brand-dark); margin: 15px 0 10px 0; line-height: 1.5; }
    html body #primary .pkg-mobile-header .pkg-price-large { font-size: 1.8rem; font-weight: bold; color: var(--brand-green); }
    
    html body #primary .pkg-sidebar { display: none; } /* در موبایل سایدبار کامل مخفی می‌شود */
    html body #primary .equip-grid { grid-template-columns: repeat(2, 1fr); }
    html body #primary .suit-row { grid-template-columns: 1fr; }
    html body #primary .price-var { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    /* نمایش نوار خرید چسبان پایین موبایل */
    html body #primary .pkg-mobile-bar { display: flex !important; }
}

@media (max-width: 576px) {
    html body #primary .stat-row { grid-template-columns: 1fr; gap: 10px; }
}

/* =========================================
   استایل‌های اختصاصی صفحه درباره ما
========================================= */

/* --- 1. بخش هیرو و پاراگراف فوکوس --- */
html body #primary .about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

html body #primary .about-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 30px;
    line-height: 1.5;
}
html body #primary .about-title span {
    color: var(--brand-green);
    display: block;
}

html body #primary .focus-paragraph {
    border-right: 5px solid var(--brand-gold);
    padding: 30px;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}
html body #primary .focus-paragraph p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 2.2;
    color: #4b5563;
    text-align: justify;
}

html body #primary .about-hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
html body #primary .about-hero-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    animation: floatingLogo 4s ease-in-out infinite;
}

/* انیمیشن ملایم معلق بودن برای لوگو */
@keyframes floatingLogo {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

/* --- 2. نوار اطلاعات تماس --- */
html body #primary .contact-strip-section {
    margin-top: -40px; /* کشیدن نوار به سمت بالا تا روی بخش قبلی بیفتد */
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}
html body #primary .contact-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px !important;
    border-top: 4px solid var(--brand-green) !important;
}
html body #primary .info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
html body #primary .info-icon {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    color: var(--brand-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
html body #primary .info-text {
    display: flex;
    flex-direction: column;
}
html body #primary .info-text strong {
    font-size: 1rem;
    color: var(--brand-dark);
    margin-bottom: 5px;
}
html body #primary .info-text span {
    font-size: 0.85rem;
    color: #6b7280;
}

/* --- 3. گرید پروژه‌ها (بدون عکس) --- */
html body #primary .project-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
html body #primary .project-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px !important;
    transition: 0.3s;
}
html body #primary .project-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(66, 159, 45, 0.12) !important;
    border-color: var(--brand-green) !important;
}

html body #primary .pic-header {
    width: 80px;
    height: 80px;
    background: var(--brand-dark);
    color: var(--brand-gold);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 25px;
    transform: rotate(45deg);
    transition: 0.4s;
}
html body #primary .pic-header i {
    transform: rotate(-45deg); /* برگرداندن آیکون به حالت صاف */
}
html body #primary .project-icon-card:hover .pic-header {
    background: var(--brand-green);
    color: #fff;
    border-radius: 50%;
    transform: rotate(0);
}
html body #primary .project-icon-card:hover .pic-header i {
    transform: rotate(0);
}

html body #primary .pic-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--brand-dark);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}

html body #primary .pic-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    width: 100%;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
html body #primary .pic-meta li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 0.9rem;
}
html body #primary .pic-meta li:last-child {
    border-bottom: none;
}
html body #primary .meta-label {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}
html body #primary .meta-value {
    font-weight: bold;
    color: var(--brand-dark);
    text-align: left;
}

html body #primary .pic-btn {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    margin-top: auto; /* هول دادن دکمه به پایین کادر */
}

/* --- 4. ریسپانسیو --- */
@media (max-width: 992px) {
    html body #primary .about-hero-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    html body #primary .about-title span { display: inline; }
    html body #primary .focus-paragraph { border-right: none; border-top: 5px solid var(--brand-gold); text-align: right !important; }
    html body #primary .contact-info-strip { grid-template-columns: 1fr; gap: 30px; }
    html body #primary .contact-strip-section { margin-top: 0; margin-bottom: 40px; }
    html body #primary .project-icon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    html body #primary .project-icon-grid { grid-template-columns: 1fr; }
    html body #primary .about-title { font-size: 1.8rem; }
}

/* =========================================
   استایل‌های کاروسل پکیج‌های خورشیدی (متن محور)
========================================= */

html body #primary .pkg-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    margin-top: 20px;
}
html body #primary .pkg-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

html body #primary .pkg-scroll-inner {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

html body #primary .pkg-text-card {
    flex: 0 0 290px; /* عرض ثابت برای هر کارت */
    max-width: 290px;
    scroll-snap-align: center;
    padding: 25px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

/* آیکون بالای کارت */
html body #primary .pkg-icon-simple {
    width: 50px;
    height: 50px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--brand-green);
    margin-bottom: 20px;
}
html body #primary .pkg-text-card.pkg-border-gold .pkg-icon-simple {
    color: var(--brand-gold);
    background: #fef3c7;
}

html body #primary .pkg-text-title {
    font-size: 1.25rem !important;
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
}

html body #primary .pkg-card-bottom {
    margin-top: auto; /* هول دادن قیمت و دکمه به انتهای کارت */
    border-top: 1px dashed #e5e7eb;
    padding-top: 15px;
}

html body #primary .pkg-text-price-label {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 5px;
}

html body #primary .pkg-text-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

/* =========================================
   استایل‌های صفحه جزئیات پروژه (Case Study)
========================================= */

/* 1. Hero Section */
html body #primary .project-hero {
    background-color: var(--brand-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 450px;
    padding-bottom: 50px; /* برای جا دادن نوار آمار */
}
html body #primary .project-hero img.bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(80%);
    z-index: 1;
}
html body #primary .project-hero .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44,62,80,0.95) 0%, rgba(44,62,80,0.3) 100%);
    z-index: 2;
}
html body #primary .project-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
html body #primary .project-badge {
    background: var(--brand-gold);
    color: var(--brand-dark);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
}
html body #primary .project-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.5;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 2. نوار آمار (Stats Bar) */
html body #primary .project-stats-glass {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    transform: translateY(-50px);
    position: relative;
    z-index: 10;
    padding: 25px !important;
}
html body #primary .p-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    border-left: 1px solid #e5e7eb;
}
html body #primary .p-stat:last-child {
    border-left: none;
}
html body #primary .p-stat i {
    font-size: 2rem;
}
html body #primary .p-stat div {
    display: flex;
    flex-direction: column;
}
html body #primary .p-stat strong {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 3px;
}
html body #primary .p-stat span {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--brand-dark);
}

/* 3. Overview & Video */
html body #primary .project-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
html body #primary .video-placeholder {
    background: #e5e7eb;
    height: 300px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    gap: 15px;
}
html body #primary .video-placeholder i {
    font-size: 3rem;
    color: var(--brand-green);
}

/* 4. چالش و راهکار */
html body #primary .challenge-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
html body #primary .cs-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
html body #primary .challenge-card {
    border-top: 5px solid #ef4444;
}
html body #primary .solution-card {
    border-top: 5px solid var(--brand-green);
}
html body #primary .cs-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
html body #primary .challenge-card .cs-icon {
    background: #fef2f2;
    color: #ef4444;
}
html body #primary .solution-card .cs-icon {
    background: #f0fdf4;
    color: var(--brand-green);
}
html body #primary .cs-card h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 15px;
}
html body #primary .cs-card p {
    color: #4b5563;
    line-height: 2;
    font-size: 1.05rem;
    margin: 0;
    text-align: justify;
}

/* 5. جدول زمانی (Timeline) */
html body #primary .project-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}
html body #primary .timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    background: #f8f9fa; /* همرنگ پس‌زمینه سایت */
    padding: 10px;
}
html body #primary .step-icon {
    width: 60px;
    height: 60px;
    background: #fff;
    border: 3px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 15px;
    transition: 0.3s;
}
html body #primary .timeline-step:hover .step-icon {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
html body #primary .timeline-step h4 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin: 0 0 5px 0;
}
html body #primary .timeline-step span {
    font-size: 0.85rem;
    color: #6b7280;
}
html body #primary .timeline-line {
    flex-grow: 1;
    height: 2px;
    background: #e5e7eb;
    margin: 0 -15px;
    transform: translateY(-25px); /* تنظیم ارتفاع خط نسبت به آیکون */
    z-index: 1;
}

/* 6. فراخوان اقدام (CTA) */
html body #primary .cta-glass-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px !important;
    border-color: var(--brand-gold) !important;
}
html body #primary .cta-text-area {
    max-width: 60%;
}
html body #primary .cta-text-area h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--brand-dark);
    margin-bottom: 15px;
}
html body #primary .cta-text-area p {
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}
html body #primary .cta-action-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}
html body #primary .cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: 0.3s;
}
html body #primary .btn-green {
    background: var(--brand-green);
    color: #fff;
    box-shadow: 0 4px 15px rgba(66, 159, 45, 0.2);
}
html body #primary .btn-green:hover {
    background: #358024;
    transform: translateY(-2px);
}

/* 7. ریسپانسیو */
@media (max-width: 992px) {
    html body #primary .project-title { font-size: 1.8rem; }
    html body #primary .project-stats-glass { grid-template-columns: 1fr; gap: 15px; padding: 20px !important; }
    html body #primary .p-stat { border-left: none; border-bottom: 1px solid #e5e7eb; padding-bottom: 15px; justify-content: flex-start; }
    html body #primary .p-stat:last-child { border-bottom: none; padding-bottom: 0; }
    html body #primary .project-overview-grid { grid-template-columns: 1fr; }
    html body #primary .challenge-solution-grid { grid-template-columns: 1fr; }
    
    html body #primary .project-timeline { flex-direction: column; align-items: flex-start; gap: 20px; }
    html body #primary .timeline-step { flex-direction: row; gap: 15px; text-align: right; padding: 0; }
    html body #primary .timeline-step h4 { margin-bottom: 0; }
    html body #primary .timeline-line { width: 2px; height: 30px; margin: -10px 29px; transform: none; }
    
    html body #primary .cta-glass-box { flex-direction: column; text-align: center; padding: 30px !important; gap: 30px; }
    html body #primary .cta-text-area { max-width: 100%; }
    html body #primary .cta-action-area { width: 100%; }
}

/* ===== اصلاح قطعی چیدمان جدول زمانی (Timeline) در موبایل ===== */
@media (max-width: 992px) {
    html body #primary .project-timeline {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important; /* فاصله‌ها را دستی کنترل می‌کنیم */
    }
    
    html body #primary .timeline-step {
        display: grid !important;
        grid-template-columns: 60px 1fr !important; /* ستون 60px برای آیکون، بقیه برای متن */
        grid-template-rows: auto auto !important;
        column-gap: 20px !important;
        background: transparent !important; /* حذف پس‌زمینه مربعیِ زشت */
        padding: 0 !important;
        text-align: right !important;
    }
    
    html body #primary .timeline-step .step-icon {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 3 !important; /* آیکون هر دو ردیفِ متن را پوشش می‌دهد */
        margin-bottom: 0 !important;
        align-self: center !important;
    }
    
    html body #primary .timeline-step h4 {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        align-self: flex-end !important;
        margin: 0 !important;
        font-size: 1.1rem !important;
    }
    
    html body #primary .timeline-step span {
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        align-self: flex-start !important;
        margin-top: 5px !important;
        font-size: 0.9rem !important;
    }
    
    html body #primary .timeline-line {
        width: 2px !important;
        height: 35px !important;
        /* مارجین 29px دقیقاً خط را وسطِ آیکون 60 پیکسلی تراز می‌کند */
        margin: 8px 29px 8px 0 !important; 
        transform: none !important;
        flex-grow: 0 !important;
    }
}
/* =========================================
   استایل‌های صفحه ورود و ثبت‌نام (Authentication)
========================================= */

/* تنظیمات کانتینر اصلی در حالت خارج از حساب */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce {
    max-width: 900px !important;
    margin: 60px auto 100px auto !important;
}

/* گرید دو ستونه برای فرم لاگین و ثبت‌نام */
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* استایل اختصاصی هر باکس (طراحی کارت مدرن) */
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set .u-column1,
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set .u-column2 {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 40px 30px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid rgba(66, 159, 45, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
}

/* نوار رنگی بالای کارت‌ها برای تمایز فرم‌ها */
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set .u-column1::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--brand-green) !important; /* سبز برای ورود */
}
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set .u-column2::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--brand-gold) !important; /* طلایی برای ثبت‌نام */
}

/* تیترهای فرم ورود و ثبت‌نام */
html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set h2 {
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--brand-dark) !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    border: none !important;
    padding: 0 !important;
}

/* فیلدهای ورود اطلاعات */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form p.form-row {
    margin-bottom: 20px !important;
}

html body.woocommerce-account:not(.logged-in) #primary .woocommerce form label {
    display: block !important;
    font-size: 0.95rem !important;
    font-weight: bold !important;
    color: #374151 !important;
    margin-bottom: 10px !important;
}

/* استایل اینپوت‌ها (پس‌زمینه خاکستری که در حالت تایپ سفید می‌شود) */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form input.input-text {
    width: 100% !important;
    padding: 15px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    font-size: 1rem !important;
    color: var(--brand-dark) !important;
    transition: 0.3s !important;
}

html body.woocommerce-account:not(.logged-in) #primary .woocommerce form input.input-text:focus {
    border-color: var(--brand-green) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(66, 159, 45, 0.15) !important;
}

/* چک‌باکس مرا به خاطر بسپار */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form .woocommerce-form-login__rememberme {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: normal !important;
    font-size: 0.9rem !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    margin-top: 15px !important;
}
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--brand-green) !important;
    cursor: pointer !important;
}

/* دکمه‌های اصلی */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form button[type="submit"] {
    width: 100% !important;
    padding: 15px !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border: none !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    margin-top: 15px !important;
}

/* دکمه ورود (سبز) */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.login button[type="submit"] {
    background: var(--brand-green) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(66, 159, 45, 0.3) !important;
}
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.login button[type="submit"]:hover {
    background: #358024 !important;
    transform: translateY(-2px) !important;
}

/* دکمه ثبت‌نام (طلایی) */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.register button[type="submit"] {
    background: var(--brand-gold) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(228, 181, 63, 0.3) !important;
}
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.register button[type="submit"]:hover {
    background: #c99a32 !important;
    transform: translateY(-2px) !important;
}

/* لینک فراموشی رمز عبور */
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.login .woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 20px !important;
}
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.login .woocommerce-LostPassword a {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
html body.woocommerce-account:not(.logged-in) #primary .woocommerce form.login .woocommerce-LostPassword a:hover {
    color: var(--brand-green) !important;
}

/* --- ریسپانسیو فرم‌ها (موبایل و تبلت) --- */
@media (max-width: 768px) {
    html body.woocommerce-account:not(.logged-in) #primary .u-columns.col2-set {
        grid-template-columns: 1fr !important; /* قرارگیری دو فرم زیر هم */
        gap: 30px !important;
    }
    html body.woocommerce-account:not(.logged-in) #primary .woocommerce {
        margin-top: 20px !important;
        margin-bottom: 40px !important;
    }
}

/* =========================================
   استایل‌های دکمه حساب کاربری در هدر
========================================= */

/* --- 1. دکمه حساب کاربری در دسکتاپ --- */
.header-account-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #fff !important;
    color: var(--brand-dark) !important;
    border: 1px solid #d1d5db !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}
.header-account-btn:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
    border-color: var(--brand-green) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(66, 159, 45, 0.2) !important;
}
.header-account-btn i {
    font-size: 1.15rem !important;
}

/* تغییر استایل دکمه دسکتاپ زمانی که کاربر لاگین کرده است */
body.logged-in .header-account-btn {
    background: #f0fdf4 !important;
    color: var(--brand-green) !important;
    border-color: rgba(66, 159, 45, 0.3) !important;
}
body.logged-in .header-account-btn:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* --- 2. اصلاح هدر موبایل و آیکون کاربری --- */

/* تنظیم ساختار هدر موبایل برای قرارگیری لوگو در وسط و دکمه در چپ */
.site-header-mobile {
    justify-content: space-between !important; /* به جای Center از فاصله مساوی استفاده می‌کنیم */
    padding: 10px 20px !important; /* ایجاد پدینگ مناسب از چپ و راست */
}

/* آیکون حساب کاربری در موبایل */
.mobile-account-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background: #f3f4f6 !important;
    color: var(--brand-dark) !important;
    border-radius: 50% !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}
.mobile-account-btn:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* تغییر استایل آیکون موبایل زمانی که کاربر لاگین کرده است */
body.logged-in .mobile-account-btn {
    background: #f0fdf4 !important;
    color: var(--brand-green) !important;
}
body.logged-in .mobile-account-btn:hover {
    background: var(--brand-green) !important;
    color: #fff !important;
}

/* ===== اصلاح کارت‌های پکیج در کاروسل و رفع باگ رنگ آبی دکمه ===== */

/* 1. اصلاح حاشیه و سایه‌های عجیب کارت در حالت اسکرول افقی */
html body #primary .pkg-scroll-wrapper .pkg-text-card {
    transform: none !important; /* حذف بزرگ‌نمایی که باعث بریدگی میشد */
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    border: 1px solid rgba(66, 159, 45, 0.15) !important; 
    position: relative !important;
    overflow: hidden !important;
}

/* به جای بردر کلفت و زشت، یک نوار رنگی شیک بالای کارت میندازیم (شبیه فرم لاگین) */
html body #primary .pkg-scroll-wrapper .pkg-text-card.pkg-border-green::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--brand-green) !important;
}
html body #primary .pkg-scroll-wrapper .pkg-text-card.pkg-border-gold::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--brand-gold) !important;
}

html body #primary .pkg-scroll-wrapper .pkg-text-card:hover {
    transform: translateY(-5px) !important; /* فقط موقع هاور کمی بالا بیاید */
    box-shadow: 0 15px 35px rgba(0,0,0,0.06) !important;
}

/* 2. رفع مشکل آبی شدن دکمه‌ها در هنگام هاور (غلبه قطعی بر آسترا) */
html body #primary .btn-pkg-green {
    background: var(--brand-green) !important;
    color: #fff !important;
    border-color: var(--brand-green) !important;
}
html body #primary .btn-pkg-green:hover {
    /* وقتی روی دکمه سبز هاور شد، به رنگ طلایی سازمانی درمی‌آید */
    background: var(--brand-gold) !important; 
    color: #fff !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 4px 15px rgba(228, 181, 63, 0.3) !important;
}

html body #primary .btn-pkg-gold {
    background: transparent !important;
    color: var(--brand-gold) !important;
    border-color: var(--brand-gold) !important;
}
html body #primary .btn-pkg-gold:hover {
    /* دکمه توخالی طلایی در حالت هاور توپر می‌شود */
    background: var(--brand-gold) !important;
    color: #fff !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 4px 15px rgba(228, 181, 63, 0.3) !important;
}