/**
 * استایل‌های فروشگاه نَویس‌فروش
 * WooCommerce Theme Styles
 */

/* Variables */
:root {
    --shop-primary: #7c3aed;
    --shop-primary-light: #a78bfa;
    --shop-secondary: #f59e0b;
    --shop-success: #10b981;
    --shop-danger: #ef4444;
    --shop-dark: #0f172a;
    --shop-gray: #64748b;
    --shop-gray-light: #94a3b8;
    --shop-light: #f8fafc;
    --shop-white: #ffffff;
    --shop-border: #e2e8f0;
    --shop-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shop-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shop-radius: 16px;
    --shop-radius-sm: 10px;
}

/* Base */
.shop-page {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--shop-light);
    color: var(--shop-dark);
    line-height: 1.7;
}

.shop-page * { box-sizing: border-box; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.shop-header {
    background: var(--shop-white);
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.shop-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--shop-dark);
    font-weight: 700;
    font-size: 1.1rem;
}

.shop-logo img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--shop-light);
    border-radius: 50px;
    padding: 10px 20px;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.header-search form:focus-within {
    border-color: var(--shop-primary);
    background: var(--shop-white);
}

.header-search input {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.header-search i {
    color: var(--shop-gray);
    width: 20px;
    height: 20px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--shop-light);
    border-radius: 50px;
    text-decoration: none;
    color: var(--shop-dark);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--shop-primary);
    color: var(--shop-white);
}

.action-btn i { width: 20px; height: 20px; }

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--shop-primary);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: var(--shop-dark);
}

/* Categories Nav */
.categories-nav {
    background: var(--shop-dark);
    padding: 12px 0;
}

.categories-list {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories-list::-webkit-scrollbar { display: none; }

.categories-list a {
    display: block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.1);
    color: var(--shop-white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.3s;
}

.categories-list a:hover {
    background: var(--shop-primary);
}

/* Mobile Menu */
.mobile-shop-menu {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--shop-white);
    padding: 20px;
    box-shadow: var(--shop-shadow-lg);
    z-index: 99;
}

.mobile-shop-menu.active { display: block; }

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search form {
    display: flex;
    align-items: center;
    background: var(--shop-light);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 10px;
}

.mobile-search input {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    outline: none;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.mobile-nav a {
    padding: 12px 16px;
    background: var(--shop-light);
    border-radius: 10px;
    color: var(--shop-dark);
    text-decoration: none;
    font-weight: 500;
}

.mobile-actions {
    display: flex;
    gap: 10px;
}

.mobile-actions a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
}

/* ==================== MAIN ==================== */
.shop-main {
    min-height: 70vh;
}

.shop-container {
    padding: 30px 0 60px;
}

/* Shop Layout */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ==================== SIDEBAR ==================== */
.shop-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.sidebar-section {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 24px;
    box-shadow: var(--shop-shadow);
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--shop-border);
}

.sidebar-section h3 i {
    color: var(--shop-primary);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 0.95rem;
    color: var(--shop-gray);
    margin-bottom: 12px;
}

.category-filter {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter li a {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--shop-dark);
    text-decoration: none;
    border-radius: var(--shop-radius-sm);
    transition: all 0.3s;
}

.category-filter li a:hover,
.category-filter li.active a {
    background: var(--shop-primary);
    color: white;
}

.category-filter li a span {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ==================== PRODUCTS ==================== */
.products-main {
    min-width: 0;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--shop-white);
    padding: 16px 20px;
    border-radius: var(--shop-radius);
    margin-bottom: 24px;
    box-shadow: var(--shop-shadow);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.woocommerce-ordering select {
    padding: 10px 16px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    background: var(--shop-white);
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 4px;
}

.view-btn {
    padding: 10px;
    background: var(--shop-light);
    border: none;
    border-radius: var(--shop-radius-sm);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
    background: var(--shop-primary);
    color: white;
}

/* Products Grid */
ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Product Card */
.product-card {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    transition: all 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shop-shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--shop-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.badge.sale { background: var(--shop-danger); }
.badge.featured { background: var(--shop-secondary); }
.badge.out-of-stock { background: var(--shop-gray); }

.product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.action-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-white);
    border-radius: 50%;
    color: var(--shop-dark);
    text-decoration: none;
    box-shadow: var(--shop-shadow);
    transition: all 0.3s;
}

.action-icon:hover {
    background: var(--shop-primary);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--shop-primary);
    margin-bottom: 8px;
}

.product-category a {
    color: inherit;
    text-decoration: none;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-title a {
    color: var(--shop-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--shop-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.star-rating {
    color: var(--shop-secondary);
}

.rating-count {
    font-size: 0.8rem;
    color: var(--shop-gray);
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--shop-primary);
    margin-bottom: 12px;
}

.product-price del {
    color: var(--shop-gray-light);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 8px;
}

.product-price ins {
    text-decoration: none;
}

.product-add-to-cart .button {
    width: 100%;
    padding: 12px;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.product-add-to-cart .button:hover {
    background: var(--shop-dark);
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
}

.no-products i {
    width: 60px;
    height: 60px;
    color: var(--shop-gray-light);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--shop-gray);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    padding: 14px 28px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}

/* Pagination */
.shop-pagination {
    margin-top: 40px;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--shop-white);
    border-radius: 50%;
    color: var(--shop-dark);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shop-shadow);
    transition: all 0.3s;
}

.woocommerce-pagination ul li span.current,
.woocommerce-pagination ul li a:hover {
    background: var(--shop-primary);
    color: white;
}

/* ==================== SINGLE PRODUCT ==================== */
.nf-breadcrumb {
    background: var(--shop-white);
    padding: 16px 0;
    margin-bottom: 30px;
}

.nf-breadcrumb a {
    color: var(--shop-gray);
    text-decoration: none;
}

.nf-breadcrumb a:hover {
    color: var(--shop-primary);
}

.nf-breadcrumb i {
    margin: 0 8px;
    width: 16px;
    height: 16px;
}

.product-single-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shop-shadow);
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: var(--shop-radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--shop-light);
}

.main-image img {
    width: 100%;
    display: block;
}

.sale-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--shop-danger);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumb {
    border-radius: var(--shop-radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 3px solid transparent;
}

.thumb.active,
.thumb:hover {
    opacity: 1;
    border-color: var(--shop-primary);
}

.thumb img {
    width: 100%;
    display: block;
}

/* Product Details */
.product-details {
    padding: 20px 0;
}

.product-meta-cats {
    font-size: 0.9rem;
    color: var(--shop-primary);
    margin-bottom: 12px;
}

.product-meta-cats a {
    color: inherit;
    text-decoration: none;
}

.product-details .product-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.product-rating-reviews {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.product-price-box {
    background: var(--shop-light);
    padding: 20px 24px;
    border-radius: var(--shop-radius);
    margin-bottom: 24px;
}

.product-price-box .price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--shop-primary);
}

.product-price-box del {
    color: var(--shop-gray-light);
    font-size: 1.1rem;
    margin-left: 12px;
}

.product-short-desc {
    color: var(--shop-gray);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Add to Cart Form */
.product-add-form {
    margin-bottom: 24px;
}

.product-add-form .quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.product-add-form .quantity input {
    width: 80px;
    text-align: center;
    padding: 14px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.product-add-form .single_add_to_cart_button {
    width: 100%;
    padding: 18px;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: var(--shop-radius);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.product-add-form .single_add_to_cart_button:hover {
    background: var(--shop-dark);
    transform: translateY(-2px);
}

/* Meta Info */
.product-meta-info {
    padding: 20px 0;
    border-top: 1px solid var(--shop-border);
    border-bottom: 1px solid var(--shop-border);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.meta-item .label {
    color: var(--shop-gray);
    min-width: 100px;
}

.meta-item .value a {
    color: var(--shop-primary);
    text-decoration: none;
}

/* Share */
.product-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.share-icons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--shop-light);
    border: none;
    border-radius: 50%;
    color: var(--shop-dark);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--shop-primary);
    color: white;
}

/* Product Tabs */
.product-tabs-section {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shop-shadow);
}

.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid var(--shop-border);
}

.woocommerce-tabs ul.tabs li {
    margin-bottom: -2px;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    color: var(--shop-gray);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--shop-primary);
    border-color: var(--shop-primary);
}

.woocommerce-tabs .panel h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Reviews */
#reviews #comments {
    margin-bottom: 40px;
}

.comment_container {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--shop-light);
    border-radius: var(--shop-radius);
    margin-bottom: 16px;
}

.comment_container img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.comment-text .meta {
    margin-bottom: 10px;
}

.comment-text .woocommerce-review__author {
    font-weight: 700;
}

.comment-text .woocommerce-review__published-date {
    color: var(--shop-gray);
    font-size: 0.9rem;
}

/* Related Products */
.related.products {
    margin-top: 40px;
}

.related.products > h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* ==================== CART ==================== */
.woocommerce-cart-form {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table th {
    text-align: right;
    padding: 16px;
    background: var(--shop-light);
    font-weight: 600;
}

.shop_table td {
    padding: 20px 16px;
    border-bottom: 1px solid var(--shop-border);
    vertical-align: middle;
}

.shop_table .product-thumbnail img {
    width: 80px;
    border-radius: var(--shop-radius-sm);
}

.shop_table .product-name a {
    color: var(--shop-dark);
    text-decoration: none;
    font-weight: 600;
}

.shop_table .product-remove a {
    color: var(--shop-danger);
    font-size: 1.2rem;
}

.cart-collaterals {
    margin-top: 40px;
}

.cart_totals {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
}

.cart_totals h2 {
    margin-bottom: 20px;
}

.cart_totals table {
    width: 100%;
}

.cart_totals th,
.cart_totals td {
    padding: 16px 0;
    border-bottom: 1px solid var(--shop-border);
}

.wc-proceed-to-checkout .checkout-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--shop-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--shop-radius);
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
}

.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--shop-dark);
}

/* ==================== CHECKOUT ==================== */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
    margin-bottom: 30px;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--shop-border);
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--shop-primary);
}

.woocommerce-checkout-review-order {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 150px;
}

#order_review_heading {
    margin-bottom: 24px;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 30px;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 14px 0;
    border-bottom: 1px solid var(--shop-border);
}

#place_order {
    width: 100%;
    padding: 18px;
    background: var(--shop-success);
    color: white;
    border: none;
    border-radius: var(--shop-radius);
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

#place_order:hover {
    background: #059669;
}

/* ==================== MY ACCOUNT ==================== */
.woocommerce-MyAccount-navigation {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 24px;
    box-shadow: var(--shop-shadow);
    margin-bottom: 30px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 14px 20px;
    color: var(--shop-dark);
    text-decoration: none;
    border-radius: var(--shop-radius-sm);
    transition: all 0.3s;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
    background: var(--shop-primary);
    color: white;
}

.woocommerce-MyAccount-content {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
}

/* Login Form */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 40px;
    box-shadow: var(--shop-shadow);
    max-width: 450px;
    margin: 40px auto;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    text-align: center;
    margin-bottom: 30px;
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    width: 100%;
    padding: 16px;
    background: var(--shop-primary);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: var(--shop-dark);
}

/* ==================== FOOTER ==================== */
.shop-footer {
    background: var(--shop-dark);
    color: var(--shop-white);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo img {
    width: 50px;
    border-radius: 12px;
}

.footer-col p {
    color: var(--shop-gray-light);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--shop-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul a:hover {
    color: var(--shop-primary-light);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--shop-primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: var(--shop-gray-light);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--shop-success);
}

/* ==================== MESSAGES ==================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 16px 20px;
    border-radius: var(--shop-radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.woocommerce-message {
    background: #d1fae5;
    color: #065f46;
    border-right: 4px solid var(--shop-success);
}

.woocommerce-info {
    background: #dbeafe;
    color: #1e40af;
    border-right: 4px solid #3b82f6;
}

.woocommerce-error {
    background: #fee2e2;
    color: #991b1b;
    border-right: 4px solid var(--shop-danger);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    padding: 40px 0;
    margin-bottom: 40px;
    color: white;
}

.page-header .nf-breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.page-header .nf-breadcrumb a {
    color: rgba(255,255,255,0.8);
}

.page-header .nf-breadcrumb span {
    color: white;
}

.page-header .nf-breadcrumb i {
    color: rgba(255,255,255,0.6);
}

.page-title {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.page-title i {
    width: 40px;
    height: 40px;
}

.welcome-text {
    margin-top: 10px;
    opacity: 0.9;
}

/* ==================== CHECKOUT STEPS ==================== */
.checkout-header {
    padding: 30px 0;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.step.active,
.step.completed {
    opacity: 1;
}

.step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-weight: 700;
}

.step.active .step-num {
    background: white;
    color: var(--shop-primary);
}

.step.completed .step-num {
    background: var(--shop-success);
}

.step-text {
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

/* ==================== CART PAGE ==================== */
.cart-page-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.woocommerce-cart-form {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shop-shadow);
}

.woocommerce-cart-form__contents {
    width: 100%;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.shop_table thead {
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    color: white;
}

.shop_table th {
    text-align: right;
    padding: 18px 20px;
    font-weight: 600;
}

.shop_table td {
    padding: 24px 20px;
    border-bottom: 1px solid var(--shop-border);
    vertical-align: middle;
}

.shop_table .product-thumbnail {
    width: 100px;
}

.shop_table .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--shop-radius-sm);
    box-shadow: var(--shop-shadow);
}

.shop_table .product-name a {
    color: var(--shop-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.shop_table .product-name a:hover {
    color: var(--shop-primary);
}

.shop_table .product-price,
.shop_table .product-subtotal {
    font-weight: 700;
    color: var(--shop-primary);
}

.shop_table .product-quantity .quantity {
    display: flex;
    align-items: center;
    gap: 0;
}

.shop_table .product-quantity input {
    width: 60px;
    text-align: center;
    padding: 12px 8px;
    border: 2px solid var(--shop-border);
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--shop-light);
    border: 2px solid var(--shop-border);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: var(--shop-primary);
    color: white;
    border-color: var(--shop-primary);
}

.qty-minus { border-radius: 8px 0 0 8px; }
.qty-plus { border-radius: 0 8px 8px 0; }

.shop_table .product-remove a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fee2e2;
    color: var(--shop-danger);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.3s;
}

.shop_table .product-remove a:hover {
    background: var(--shop-danger);
    color: white;
}

.shop_table .actions {
    padding: 20px;
    background: var(--shop-light);
}

.shop_table .actions .coupon {
    display: flex;
    gap: 10px;
}

.shop_table .actions .coupon input {
    padding: 14px 18px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    min-width: 200px;
}

.shop_table .actions .coupon button,
.shop_table .actions button[name="update_cart"] {
    padding: 14px 24px;
    background: var(--shop-dark);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.shop_table .actions button:hover {
    background: var(--shop-primary);
}

/* Cart Totals */
.cart-collaterals {
    margin-top: 0;
}

.cart_totals {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 150px;
}

.cart_totals > h2 {
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    color: white;
    padding: 20px 24px;
    margin: 0;
    font-size: 1.2rem;
}

.cart_totals table {
    width: 100%;
    padding: 24px;
}

.cart_totals th,
.cart_totals td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--shop-border);
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--shop-primary);
    border-bottom: none;
}

.wc-proceed-to-checkout {
    padding: 0 24px 24px;
}

.wc-proceed-to-checkout .checkout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--shop-success) 0%, #059669 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: var(--shop-radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.wc-proceed-to-checkout .checkout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 80px 40px;
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow);
}

.cart-empty::before {
    content: '🛒';
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.return-to-shop .button {
    display: inline-flex;
    padding: 16px 32px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-top: 20px;
}

/* ==================== MY ACCOUNT ENHANCED ==================== */
.myaccount-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}

.woocommerce-MyAccount-navigation {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    margin-bottom: 0;
    position: sticky;
    top: 150px;
}

.woocommerce-MyAccount-navigation::before {
    content: 'منوی حساب';
    display: block;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 16px;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 4px;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: var(--shop-dark);
    text-decoration: none;
    border-radius: var(--shop-radius-sm);
    transition: all 0.3s;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation a:hover {
    background: var(--shop-primary);
    color: white;
}

.woocommerce-MyAccount-content {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
    min-height: 400px;
}

.woocommerce-MyAccount-content > p:first-child {
    font-size: 1.1rem;
    padding: 20px;
    background: var(--shop-light);
    border-radius: var(--shop-radius-sm);
    margin-bottom: 24px;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table th {
    background: var(--shop-light);
    padding: 16px;
    text-align: right;
    font-weight: 600;
}

.woocommerce-orders-table td {
    padding: 16px;
    border-bottom: 1px solid var(--shop-border);
}

.woocommerce-orders-table .button {
    padding: 10px 18px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--shop-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Address Cards */
.woocommerce-address-fields,
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.woocommerce-Address {
    background: var(--shop-light);
    padding: 24px;
    border-radius: var(--shop-radius);
}

.woocommerce-Address header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--shop-border);
}

.woocommerce-Address h3 {
    margin: 0;
    font-size: 1.1rem;
}

.woocommerce-Address .edit {
    padding: 8px 16px;
    background: var(--shop-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== LOGIN/REGISTER ==================== */
.woocommerce-form-login,
.woocommerce-form-register {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 40px;
    box-shadow: var(--shop-shadow-lg);
    max-width: 450px;
    margin: 0 auto;
}

.u-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.u-columns .u-column1,
.u-columns .u-column2 {
    width: 100%;
}

.woocommerce-form-login h2,
.woocommerce-form-register h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.woocommerce-form-login .form-row,
.woocommerce-form-register .form-row {
    margin-bottom: 20px;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    outline: none;
    border-color: var(--shop-primary);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    color: white;
    border: none;
    border-radius: var(--shop-radius-sm);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}

.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.woocommerce-LostPassword {
    text-align: center;
    margin-top: 20px;
}

.woocommerce-LostPassword a {
    color: var(--shop-primary);
    text-decoration: none;
}

/* ==================== CHECKOUT ENHANCED ==================== */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 30px;
    box-shadow: var(--shop-shadow);
    margin-bottom: 24px;
}

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--shop-border);
    font-size: 1.2rem;
}

.woocommerce-billing-fields .form-row,
.woocommerce-shipping-fields .form-row,
.woocommerce-additional-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 48%;
    display: inline-block;
}

.woocommerce-checkout .form-row-first {
    float: right;
}

.woocommerce-checkout .form-row-last {
    float: left;
}

.woocommerce-checkout-review-order {
    background: var(--shop-white);
    border-radius: var(--shop-radius);
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    position: sticky;
    top: 120px;
}

#order_review_heading {
    background: linear-gradient(135deg, var(--shop-primary) 0%, #2563eb 100%);
    color: white;
    padding: 20px 24px;
    margin: 0;
    font-size: 1.2rem;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--shop-border);
}

.woocommerce-checkout-review-order-table thead th {
    background: var(--shop-light);
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--shop-primary);
    background: var(--shop-light);
}

.woocommerce-checkout-payment {
    padding: 24px;
    background: var(--shop-light);
}

.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wc_payment_method {
    background: var(--shop-white);
    padding: 16px 20px;
    border-radius: var(--shop-radius-sm);
    margin-bottom: 10px;
    border: 2px solid var(--shop-border);
    transition: all 0.3s;
}

.wc_payment_method:has(input:checked) {
    border-color: var(--shop-primary);
    background: rgba(124, 58, 237, 0.05);
}

.wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 600;
}

.payment_box {
    padding: 16px;
    background: var(--shop-light);
    border-radius: var(--shop-radius-sm);
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--shop-gray);
}

#place_order {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--shop-success) 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: var(--shop-radius);
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#place_order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 20px;
}

/* Order Received */
.woocommerce-order-received .woocommerce-thankyou-order-received {
    text-align: center;
    padding: 40px;
    background: #d1fae5;
    border-radius: var(--shop-radius);
    color: #065f46;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.woocommerce-order-received .woocommerce-thankyou-order-received::before {
    content: '✓';
    display: block;
    font-size: 3rem;
    margin-bottom: 16px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .product-single-layout { grid-template-columns: 1fr; gap: 30px; }
    .woocommerce-checkout { grid-template-columns: 1fr; }
    .cart-page-layout { grid-template-columns: 1fr; }
    .myaccount-layout { grid-template-columns: 1fr; }
    .u-columns { grid-template-columns: 1fr; }
    .woocommerce-Addresses { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-search { display: none; }
    .action-text { display: none; }
    .mobile-toggle { display: block; }
    .categories-nav { display: none; }
    
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .product-info { padding: 14px; }
    .product-title { font-size: 0.9rem; }
    .product-price { font-size: 1rem; }
    
    .product-single-layout { padding: 20px; }
    .product-details .product-title { font-size: 1.4rem; }
    
    .page-header { padding: 30px 0; }
    .page-title { font-size: 1.5rem; }
    .page-title i { width: 30px; height: 30px; }
    
    .checkout-steps { flex-wrap: wrap; gap: 12px; }
    .step-line { width: 30px; }
    .step-text { font-size: 0.85rem; }
    
    .shop_table thead { display: none; }
    .shop_table tr { display: block; margin-bottom: 20px; background: var(--shop-white); border-radius: var(--shop-radius); padding: 16px; box-shadow: var(--shop-shadow); }
    .shop_table td { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--shop-border); }
    .shop_table td::before { content: attr(data-title); font-weight: 600; }
    .shop_table .actions { display: block; }
    .shop_table .actions .coupon { flex-direction: column; }
    .shop_table .actions .coupon input { min-width: 100%; }
    
    .woocommerce-MyAccount-navigation { position: static; margin-bottom: 20px; }
    .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
    .woocommerce-MyAccount-navigation li { margin: 0; }
    .woocommerce-MyAccount-navigation a { padding: 10px 14px; font-size: 0.9rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
    .header-inner { padding: 12px 0; }
    .shop-logo span { display: none; }
    .action-btn { padding: 10px; }
    
    ul.products { gap: 10px; }
    .product-card { border-radius: 12px; }
    .product-image { aspect-ratio: 1; }
    .product-info { padding: 12px; }
    .product-title { font-size: 0.85rem; }
    .product-add-to-cart .button { padding: 10px; font-size: 0.85rem; }
    
    .page-header { padding: 24px 0; }
    .page-title { font-size: 1.3rem; gap: 10px; }
    
    .woocommerce-cart-form,
    .cart_totals,
    .woocommerce-billing-fields,
    .woocommerce-checkout-review-order,
    .woocommerce-MyAccount-content,
    .woocommerce-form-login,
    .woocommerce-form-register {
        padding: 20px;
    }
    
    .wc-proceed-to-checkout .checkout-button,
    #place_order {
        padding: 16px;
        font-size: 1rem;
    }
    
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100%;
        float: none;
    }
}
