/* =============================================================
   ابزار گردان - Frontend CSS
   Persian RTL Industrial Tools E-Commerce
   Bootstrap 3 RTL Compatible | No SVG
   Color Scheme: Dark Blue #1a3c5e | Orange #e67e22
   ============================================================= */

/* V19.8: external Google Font import removed to avoid blocked/pending page loads. */
/* ---- CSS Variables ---- */
:root {
    --primary: #1a3c5e;
    --primary-dark: #122a42;
    --primary-light: #2a5a8a;
    --accent: #e67e22;
    --accent-dark: #c96a12;
    --accent-light: #f39c12;
    --text-dark: #2c3e50;
    --text-medium: #555;
    --text-light: #888;
    --bg-light: #f5f6fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 3px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 25px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

/* ---- Base & Reset ---- */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.8;
    font-size: 14px;
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover,
a:focus {
    color: var(--accent);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    margin-top: 0;
}

/* ---- Top Bar ---- */
.top-bar {
    background-color: var(--primary-dark);
    color: #ccc;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}
.top-bar a {
    color: #ddd;
}
.top-bar a:hover {
    color: var(--accent-light);
}
.top-bar .top-right {
    text-align: right;
}
.top-bar .top-left {
    text-align: left;
    direction: ltr;
}
.top-bar .top-item {
    display: inline-block;
    margin-left: 15px;
}
.top-bar .top-item:last-child {
    margin-left: 0;
}
.top-bar .social-links a {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ddd;
    margin-left: 5px;
    font-size: 11px;
}
.top-bar .social-links a:hover {
    background-color: var(--accent);
    color: #fff;
}
.top-bar .top-phone {
    direction: ltr;
    display: inline-block;
}

/* ---- Main Header ---- */
.main-header {
    background-color: var(--bg-white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}
.main-header .logo-area {
    text-align: center;
}
.main-header .logo-area img {
    max-height: 60px;
}
.main-header .site-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}
.main-header .site-name small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

/* ---- Search Bar ---- */
.search-area {
    position: relative;
    padding-top: 10px;
}
.search-area .search-form {
    position: relative;
}
.search-area .search-input {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 10px 50px 10px 20px;
    font-family: var(--font-family);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    direction: rtl;
}
.search-area .search-input:focus {
    border-color: var(--accent);
}
.search-area .search-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 42px;
    border: none;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}
.search-area .search-btn:hover {
    background-color: var(--accent-dark);
}
.search-autocomplete {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow-md);
    z-index: 999;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}
.search-autocomplete .suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.search-autocomplete .suggestion-item:hover,
.search-autocomplete .suggestion-item.active {
    background-color: #f8f9fa;
}
.search-autocomplete .suggestion-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-left: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
}
.search-autocomplete .suggestion-item .sug-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}
.search-autocomplete .suggestion-item .sug-price {
    font-size: 12px;
    color: var(--accent);
}
.search-autocomplete .no-result {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

/* ---- Header Icons (Cart, User, Wishlist) ---- */
.header-icons {
    padding-top: 10px;
    text-align: center;
}
.header-icons .icon-btn {
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--primary);
    margin: 0 4px;
    position: relative;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}
.header-icons .icon-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(230,126,34,0.05);
}
.header-icons .icon-btn .badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: var(--danger);
    color: #fff;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    padding: 0 4px;
    font-family: Tahoma, Arial, sans-serif;
}
.header-icons .icon-btn i {
    font-size: 18px;
}
.header-icons .user-menu-btn {
    text-decoration: none;
}

/* ---- Hamburger Menu Button ---- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-top: 10px;
}
.hamburger-btn .hamburger-icon {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger-btn.active .hamburger-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger-btn.active .hamburger-icon:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ---- Category Navigation ---- */
.category-nav {
    background-color: var(--primary);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 90;
}
.category-nav .navbar-collapse {
    padding: 0;
}
.category-nav .navbar-nav > li > a {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    padding: 14px 18px;
    transition: background-color 0.2s;
    border-bottom: 3px solid transparent;
}
.category-nav .navbar-nav > li > a:hover,
.category-nav .navbar-nav > li > a:focus,
.category-nav .navbar-nav > li.open > a {
    background-color: var(--primary-light);
    border-bottom-color: var(--accent);
    color: #fff;
}
.category-nav .navbar-nav > li.active > a {
    background-color: var(--primary-light);
    border-bottom-color: var(--accent);
}
.category-nav .dropdown-menu {
    border: none;
    border-radius: 0;
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    min-width: 220px;
    margin: 0;
}
.category-nav .dropdown-menu > li > a {
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.2s;
}
.category-nav .dropdown-menu > li > a:hover {
    background-color: var(--bg-light);
    color: var(--accent);
    padding-right: 25px;
}
.category-nav .dropdown-menu > li > a .cat-count {
    float: left;
    color: var(--text-light);
    font-size: 11px;
}
.category-nav .dropdown-submenu {
    position: relative;
}
.category-nav .dropdown-submenu > .dropdown-menu {
    top: 0;
    right: 100%;
    margin-right: 0;
    margin-top: -1px;
    border-radius: 0;
}

/* ---- Sticky Header ---- */
body.sticky-header .main-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
body.sticky-header {
    padding-top: 110px;
}
body.sticky-header .top-bar-placeholder {
    display: none;
}

/* ---- Breadcrumb ---- */
.breadcrumb-area {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 20px;
}
.breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
}
.breadcrumb > li + li:before {
    content: "\25C0";
    color: var(--text-light);
    padding: 0 8px;
}
.breadcrumb a {
    color: var(--text-medium);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .active {
    color: var(--primary);
    font-weight: 600;
}

/* ---- Section Titles ---- */
.section-title {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 12px;
}
.section-title h2 {
    font-size: 20px;
    margin: 0;
    display: inline-block;
    color: var(--primary);
}
.section-title h3 {
    font-size: 18px;
    margin: 0;
    display: inline-block;
    color: var(--primary);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}
.section-title .more-link {
    float: left;
    font-size: 13px;
    color: var(--accent);
    margin-top: 4px;
}
.section-title .more-link:hover {
    text-decoration: underline;
}

/* ---- Slider / Carousel ---- */
.home-slider {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.home-slider .carousel-inner > .item {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.home-slider .slide-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to left, rgba(26,60,94,0.7), rgba(26,60,94,0.1));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px;
}
.home-slider .slide-content {
    color: #fff;
    max-width: 500px;
    text-align: right;
}
.home-slider .slide-content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.home-slider .slide-content p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}
.home-slider .slide-content .btn-slide {
    background-color: var(--accent);
    color: #fff;
    padding: 10px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.2s;
}
.home-slider .slide-content .btn-slide:hover {
    background-color: var(--accent-dark);
    color: #fff;
}
.home-slider .carousel-indicators {
    bottom: 15px;
}
.home-slider .carousel-indicators li {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    margin: 0 4px;
    background: transparent;
}
.home-slider .carousel-indicators li.active {
    background-color: var(--accent);
    border-color: var(--accent);
}
.home-slider .carousel-control {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    background-image: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.home-slider:hover .carousel-control {
    opacity: 1;
}
.home-slider .carousel-control .glyphicon {
    font-size: 22px;
}

/* ---- Banner ---- */
.home-banner {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.home-banner img {
    width: 100%;
    display: block;
}
.home-banner.banner-link {
    display: block;
    position: relative;
}

/* ---- Product Card ---- */
.product-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid transparent;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--accent);
}
.product-card .product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.product-card .product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-card .product-image .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--danger);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
    font-family: Tahoma, Arial, sans-serif;
}
.product-card .product-image .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    background-color: var(--bg-white);
    border-radius: 50%;
    color: var(--text-light);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    transition: all 0.2s;
    font-size: 14px;
}
.product-card .product-image .wishlist-btn:hover,
.product-card .product-image .wishlist-btn.active {
    color: var(--danger);
}
.product-card .product-image .quick-view-btn {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 7px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-family: var(--font-family);
    cursor: pointer;
    white-space: nowrap;
    transition: bottom 0.3s ease;
    z-index: 2;
}
.product-card:hover .product-image .quick-view-btn {
    bottom: 10px;
}
.product-card .product-info {
    padding: 15px;
    text-align: center;
}
.product-card .product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.6;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.product-card .product-name a {
    color: var(--text-dark);
}
.product-card .product-name a:hover {
    color: var(--accent);
}
.product-card .product-price {
    margin-bottom: 12px;
}
.product-card .product-price .price-current {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
    display: block;
}
.product-card .product-price .price-old {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
}
.product-card .add-to-cart-btn {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 25px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}
.product-card .add-to-cart-btn:hover {
    background-color: var(--accent-dark);
}
.product-card .add-to-cart-btn.out-of-stock {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ---- Product Card List View ---- */
.products-list-view .product-card {
    display: flex;
    flex-direction: row;
}
.products-list-view .product-card .product-image {
    width: 200px;
    min-width: 200px;
    height: auto;
    min-height: 200px;
}
.products-list-view .product-card .product-info {
    text-align: right;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.products-list-view .product-card .product-name {
    height: auto;
    font-size: 15px;
    margin-bottom: 5px;
}
.products-list-view .product-card .product-desc {
    font-size: 13px;
    color: var(--text-medium);
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ---- Category Card ---- */
.category-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid transparent;
}
.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--accent);
}
.category-card .category-image {
    height: 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #f9f9f9;
}
.category-card .category-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.category-card:hover .category-image img {
    transform: scale(1.05);
}
.category-card .category-name {
    padding: 12px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}
.category-card .category-name a {
    color: var(--primary);
}
.category-card .category-name a:hover {
    color: var(--accent);
}
.category-card .category-count {
    font-size: 11px;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 25px;
    font-family: var(--font-family);
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary-custom:hover,
.btn-primary-custom:focus {
    background-color: var(--primary-light);
    color: #fff;
}
.btn-accent-custom {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 25px;
    font-family: var(--font-family);
    font-weight: 600;
    transition: all 0.2s;
}
.btn-accent-custom:hover,
.btn-accent-custom:focus {
    background-color: var(--accent-dark);
    color: #fff;
}
.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 8px 22px;
    font-family: var(--font-family);
    font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ---- Forms ---- */
.form-control-custom {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-family: var(--font-family);
    font-size: 14px;
    direction: rtl;
    transition: border-color 0.2s;
}
.form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(230,126,34,0.15);
}
.form-group-custom label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
    font-size: 13px;
}

/* ---- Pagination ---- */
.pagination-wrapper {
    margin: 30px 0;
}
.pagination > li > a,
.pagination > li > span {
    color: var(--primary);
    border: 1px solid var(--border-color);
    margin: 0 2px;
    border-radius: var(--radius-sm) !important;
    font-family: var(--font-family);
    font-size: 13px;
    min-width: 36px;
    text-align: center;
}
.pagination > li > a:hover,
.pagination > li > span:hover,
.pagination > li > a:focus {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination > .active > a,
.pagination > .active > span {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination > .disabled > a,
.pagination > .disabled > span {
    color: #ccc;
    border-color: #eee;
}

/* ---- Star Rating ---- */
.star-rating {
    display: inline-block;
    direction: ltr;
    unicode-bidi: bidi-override;
}
.star-rating .star {
    color: #ddd;
    font-size: 14px;
    margin-left: 1px;
}
.star-rating .star.filled {
    color: var(--accent-light);
}
.star-rating-input .star {
    cursor: pointer;
    font-size: 20px;
    color: #ddd;
}
.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: var(--accent-light);
}

/* ---- Badge ---- */
.badge-custom {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    font-family: Tahoma, Arial, sans-serif;
}
.badge-success {
    background-color: var(--success);
    color: #fff;
}
.badge-danger {
    background-color: var(--danger);
    color: #fff;
}
.badge-warning {
    background-color: var(--warning);
    color: #333;
}
.badge-info {
    background-color: var(--info);
    color: #fff;
}
.badge-primary {
    background-color: var(--primary);
    color: #fff;
}

/* ---- Countdown Timer ---- */
.countdown-timer {
    direction: ltr;
    display: inline-flex;
    gap: 5px;
}
.countdown-timer .countdown-item {
    background-color: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    min-width: 36px;
    text-align: center;
}
.countdown-timer .countdown-item .countdown-number {
    font-size: 18px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    font-family: Tahoma, Arial, sans-serif;
}
.countdown-timer .countdown-item .countdown-label {
    font-size: 9px;
    opacity: 0.8;
    font-family: var(--font-family);
}
.countdown-timer .countdown-separator {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 40px;
}

/* ---- Footer ---- */
.main-footer {
    background-color: var(--primary-dark);
    color: #ccc;
    padding: 50px 0 0;
    margin-top: 40px;
}
.main-footer h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.main-footer p {
    color: #aaa;
    line-height: 2;
    font-size: 13px;
}
.main-footer .footer-about img {
    max-height: 50px;
    margin-bottom: 15px;
}
.main-footer .quick-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer .quick-links li {
    margin-bottom: 8px;
}
.main-footer .quick-links li a {
    color: #aaa;
    font-size: 13px;
    transition: all 0.2s;
    display: inline-block;
}
.main-footer .quick-links li a::before {
    content: "\25C0 ";
    font-size: 10px;
    color: var(--accent);
}
.main-footer .quick-links li a:hover {
    color: #fff;
    padding-right: 5px;
}
.main-footer .contact-info-footer {
    list-style: none;
    padding: 0;
    margin: 0;
}
.main-footer .contact-info-footer li {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 13px;
}
.main-footer .contact-info-footer li i {
    color: var(--accent);
    margin-left: 10px;
    width: 16px;
    text-align: center;
}
.main-footer .newsletter-form {
    position: relative;
}
.main-footer .newsletter-form input {
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    padding: 10px 50px 10px 20px;
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    outline: none;
}
.main-footer .newsletter-form input::placeholder {
    color: #888;
}
.main-footer .newsletter-form input:focus {
    border-color: var(--accent);
}
.main-footer .newsletter-form button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    width: 40px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}
.main-footer .newsletter-form button:hover {
    background-color: var(--accent-dark);
}
.footer-bottom {
    background-color: var(--primary);
    padding: 15px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
    margin: 0;
    color: #888;
    font-size: 12px;
}
.footer-bottom .social-links a {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #ccc;
    margin-right: 5px;
    font-size: 13px;
    transition: all 0.2s;
}
.footer-bottom .social-links a:hover {
    background-color: var(--accent);
    color: #fff;
}

/* ---- Cart Sidebar ---- */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1100;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.cart-overlay.active {
    display: block;
    opacity: 1;
}
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    bottom: 0;
    background-color: var(--bg-white);
    z-index: 1101;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.active {
    right: 0;
}
.cart-sidebar .cart-header {
    background-color: var(--primary);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-sidebar .cart-header h4 {
    margin: 0;
    color: #fff;
    font-size: 16px;
}
.cart-sidebar .cart-header .close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
}
.cart-sidebar .cart-header .close-cart:hover {
    opacity: 1;
}
.cart-sidebar .cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.cart-sidebar .cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.cart-sidebar .cart-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-left: 12px;
}
.cart-sidebar .cart-item .cart-item-info {
    flex: 1;
}
.cart-sidebar .cart-item .cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}
.cart-sidebar .cart-item .cart-item-price {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
}
.cart-sidebar .cart-item .cart-item-qty {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.cart-sidebar .cart-item .cart-item-qty button {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 14px;
}
.cart-sidebar .cart-item .cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: 12px;
    font-family: Tahoma, Arial, sans-serif;
}
.cart-sidebar .cart-item .remove-item {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}
.cart-sidebar .cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.cart-sidebar .cart-empty i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
    color: #ddd;
}
.cart-sidebar .cart-footer {
    background-color: var(--bg-light);
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}
.cart-sidebar .cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 15px;
}
.cart-sidebar .cart-total .total-amount {
    color: var(--accent);
}
.cart-sidebar .checkout-btn {
    display: block;
    width: 100%;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}
.cart-sidebar .checkout-btn:hover {
    background-color: var(--accent-dark);
    color: #fff;
}

/* ---- Product Gallery / Lightbox ---- */
.product-gallery {
    margin-bottom: 20px;
}
.product-gallery .main-image {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
    background-color: #fff;
    text-align: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    cursor: zoom-in;
}
.product-gallery .main-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}
.product-gallery .thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    direction: ltr;
}
.product-gallery .thumbnails .thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: #fff;
}
.product-gallery .thumbnails .thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.product-gallery .thumbnails .thumb:hover,
.product-gallery .thumbnails .thumb.active {
    border-color: var(--accent);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay .lightbox-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}
.lightbox-overlay .lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ---- Single Product Page ---- */
.product-detail {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}
.product-detail .product-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.product-detail .product-sku {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.product-detail .product-short-desc {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 2;
    margin-bottom: 15px;
}
.product-detail .product-stock {
    font-size: 13px;
    margin-bottom: 15px;
}
.product-detail .product-stock.in-stock {
    color: var(--success);
}
.product-detail .product-stock.out-of-stock {
    color: var(--danger);
}
.product-detail .product-price-box {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 20px;
}
.product-detail .product-price-box .current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
}
.product-detail .product-price-box .old-price {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 10px;
}
.product-detail .product-price-box .save-badge {
    display: inline-block;
    background-color: var(--danger);
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-family: Tahoma, Arial, sans-serif;
}
.product-detail .qty-box {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-left: 10px;
}
.product-detail .qty-box button {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}
.product-detail .qty-box button:hover {
    background: var(--accent);
    color: #fff;
}
.product-detail .qty-box input {
    width: 45px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    font-family: Tahoma, Arial, sans-serif;
    outline: none;
}
.product-detail .action-buttons {
    margin-top: 20px;
}
.product-detail .action-buttons .btn-add-cart {
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 40px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.product-detail .action-buttons .btn-add-cart:hover {
    background-color: var(--accent-dark);
}
.product-detail .action-buttons .btn-wishlist {
    background: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
    border-radius: 25px;
    padding: 10px 25px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.product-detail .action-buttons .btn-wishlist:hover {
    background: var(--danger);
    color: #fff;
}

/* ---- Product Specifications Table ---- */
.specs-table {
    width: 100%;
    margin-bottom: 20px;
}
.specs-table > thead > tr > th {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
    border: none;
    font-size: 13px;
}
.specs-table > tbody > tr > td {
    padding: 8px 15px;
    font-size: 13px;
    border-color: var(--border-color);
}
.specs-table > tbody > tr:nth-child(odd) > td {
    background-color: #f9f9f9;
}
.specs-table > tbody > tr > td:first-child {
    font-weight: 600;
    color: var(--primary);
    width: 35%;
}

/* ---- Reviews & Questions ---- */
.reviews-section,
.questions-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}
.review-item,
.question-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.review-item:last-child,
.question-item:last-child {
    border-bottom: none;
}
.review-item .review-header,
.question-item .question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-item .reviewer-name,
.question-item .asker-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
}
.review-item .review-date,
.question-item .question-date {
    font-size: 12px;
    color: var(--text-light);
}
.review-item .review-text,
.question-item .question-text {
    font-size: 13px;
    color: var(--text-medium);
    line-height: 1.8;
}
.review-item .admin-reply {
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-medium);
}
.review-item .admin-reply::before {
    content: 'پاسخ مدیر: ';
    font-weight: 700;
    color: var(--success);
}
.question-item .answer-text {
    background-color: #e8f5e9;
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-medium);
}

/* ---- Filter Sidebar ---- */
.filter-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}
.filter-sidebar .filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 15px;
}
.filter-sidebar .filter-group {
    margin-bottom: 20px;
}
.filter-sidebar .filter-group h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.filter-sidebar .filter-group label {
    font-weight: 400;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 5px;
}
.filter-sidebar .price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}
.filter-sidebar .price-range-inputs input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    direction: ltr;
    text-align: center;
}

/* ---- Products Toolbar ---- */
.products-toolbar {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 10px;
}
.products-toolbar .toolbar-right,
.products-toolbar .toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.products-toolbar .view-toggle .btn-view {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-medium);
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.products-toolbar .view-toggle .btn-view.active,
.products-toolbar .view-toggle .btn-view:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(230,126,34,0.05);
}
.products-toolbar .sort-select {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-family: var(--font-family);
    font-size: 13px;
    outline: none;
}
.products-toolbar .result-count {
    font-size: 13px;
    color: var(--text-light);
}

/* ---- Text Block Section ---- */
.text-block-section {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}
.text-block-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background-color: var(--accent);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 999;
    transition: all 0.3s;
}
.back-to-top:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
}
.back-to-top.show {
    display: block;
}

/* ---- Main Content Area ---- */
.main-content {
    padding: 20px 0;
    min-height: 60vh;
}

/* ---- Empty State ---- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 15px;
    display: block;
}
.empty-state h3 {
    color: var(--text-medium);
    margin-bottom: 10px;
}

/* ---- Flash Messages ---- */
.flash-messages {
    margin-bottom: 20px;
}

/* ---- Tabs (Product Detail) ---- */
.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border-color);
}
.product-tabs .nav-tabs > li > a {
    color: var(--text-medium);
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 20px;
}
.product-tabs .nav-tabs > li > a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: transparent;
}
.product-tabs .nav-tabs > li.active > a,
.product-tabs .nav-tabs > li.active > a:hover,
.product-tabs .nav-tabs > li.active > a:focus {
    border: none;
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
    background: transparent;
}
.product-tabs .tab-content {
    padding-top: 20px;
}

/* ---- User Dropdown ---- */
.user-dropdown {
    position: relative;
    display: inline-block;
}
.user-dropdown .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 180px;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .hamburger-btn {
        display: inline-block;
    }
    .category-nav .navbar-collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--primary);
        max-height: 400px;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .category-nav .navbar-nav > li > a {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 12px 20px;
    }
    .category-nav .dropdown-menu {
        background-color: var(--primary-dark);
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .category-nav .dropdown-menu > li > a {
        color: #ccc;
        padding-right: 35px;
    }
    .category-nav .dropdown-menu > li > a:hover,
    .category-nav .dropdown-menu > li > a:focus {
        background-color: rgba(255,255,255,0.05);
        color: #fff;
    }
    .category-nav .dropdown-submenu > .dropdown-menu {
        right: 0;
        margin-right: 15px;
    }
    .main-header .search-area {
        margin: 10px 0;
    }
    .home-slider .carousel-inner > .item {
        height: 250px;
    }
    .home-slider .slide-content h2 {
        font-size: 20px;
    }
    .home-slider .slide-content p {
        font-size: 13px;
    }
    .top-bar .top-left {
        text-align: right;
    }
    .products-list-view .product-card {
        flex-direction: column;
    }
    .products-list-view .product-card .product-image {
        width: 100%;
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 13px;
    }
    .top-bar {
        text-align: center;
    }
    .top-bar .top-right,
    .top-bar .top-left {
        text-align: center;
        margin-bottom: 5px;
    }
    .main-header .site-name {
        font-size: 18px;
    }
    .search-area .search-input {
        font-size: 13px;
        padding: 8px 45px 8px 15px;
    }
    .home-slider .carousel-inner > .item {
        height: 180px;
    }
    .home-slider .slide-overlay {
        padding: 20px;
    }
    .home-slider .slide-content h2 {
        font-size: 16px;
    }
    .home-slider .slide-content p {
        font-size: 12px;
        display: none;
    }
    .home-slider .carousel-indicators {
        bottom: 8px;
    }
    .home-slider .carousel-indicators li {
        width: 8px;
        height: 8px;
    }
    .product-card .product-image {
        height: 180px;
    }
    .product-detail {
        padding: 15px;
    }
    .product-detail .product-title {
        font-size: 17px;
    }
    .product-detail .product-price-box .current-price {
        font-size: 20px;
    }
    .product-gallery .main-image {
        min-height: 250px;
    }
    .filter-sidebar {
        margin-bottom: 15px;
    }
    .main-footer {
        padding: 30px 0 0;
    }
    .main-footer .footer-col {
        margin-bottom: 25px;
    }
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .products-toolbar .toolbar-right,
    .products-toolbar .toolbar-left {
        justify-content: center;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .section-title h2 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .home-slider .carousel-inner > .item {
        height: 150px;
    }
    .product-card .product-image {
        height: 150px;
    }
    .category-card .category-image {
        height: 120px;
    }
    .product-detail .action-buttons .btn-add-cart {
        width: 100%;
        margin-bottom: 10px;
    }
    .product-detail .action-buttons .btn-wishlist {
        width: 100%;
    }
}

/* ---- Utilities ---- */
.text-accent { color: var(--accent); }
.text-primary-custom { color: var(--primary); }
.bg-primary-custom { background-color: var(--primary); }
.bg-accent-custom { background-color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

/* ---- Lazy Load ---- */
.lazy-img {
    opacity: 0;
    transition: opacity 0.3s;
}
.lazy-img.loaded {
    opacity: 1;
}

/* ---- Sale Timer Banner ---- */
.sale-timer-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: var(--radius-md);
    padding: 15px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.sale-timer-banner .sale-title {
    font-size: 16px;
    font-weight: 700;
}
.sale-timer-banner .sale-title i {
    color: var(--accent-light);
    margin-left: 8px;
}


/* V10.2 homepage hard recovery */
.main-content { display:block !important; visibility:visible !important; opacity:1 !important; }
.main-content > .container { display:block !important; min-height:300px; }
.category-nav { display:block; min-height:46px; background:#1a3c5e; }
.category-nav .navbar { margin-bottom:0; min-height:46px; }
.category-nav .navbar-nav { display:block; }
.logo-area .site-name { display:inline-block; padding-top:12px; font-size:22px; white-space:nowrap; }
.no-product-image { height:210px; display:flex; flex-direction:column; justify-content:center; align-items:center; background:#f3f5f7; color:#9aa5ad; }
.no-product-image .glyphicon { font-size:38px; margin-bottom:8px; }
.home-slider { display:block !important; visibility:visible !important; opacity:1 !important; min-height:320px; margin-bottom:28px; }
.home-slider .carousel, .home-slider .carousel-inner, .home-slider .item { min-height:320px; }


/* V10.5 guaranteed homepage categories */
.homepage-category-strip {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    margin:28px 0 34px;
}
.homepage-category-strip .section-title {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.homepage-category-strip .section-title h2 {
    margin:0;
    font-size:21px;
}
.homepage-category-grid {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:14px;
}
.homepage-category-item {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    min-height:155px;
    padding:14px 10px;
    background:#fff;
    border:1px solid #e5e9ed;
    border-radius:12px;
    text-align:center;
    text-decoration:none !important;
    transition:.18s ease;
}
.homepage-category-item:hover {
    transform:translateY(-2px);
    box-shadow:0 7px 20px rgba(0,0,0,.07);
}
.homepage-category-visual {
    width:74px;
    height:74px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    border-radius:12px;
    margin-bottom:10px;
    background:#f3f6f8;
}
.homepage-category-visual img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.homepage-category-placeholder {
    font-size:28px;
    color:#8394a3;
}
.homepage-category-item strong {
    color:#263746;
    font-size:14px;
    margin-bottom:5px;
}
.homepage-category-item small {
    color:#8794a0;
}
@media(max-width:991px){
    .homepage-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:600px){
    .homepage-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V12.9 frontend product fixes */
.product-card-link{display:block;text-decoration:none!important;color:inherit}
.product-card-link:hover,.product-card-link:focus{text-decoration:none!important;color:inherit}
.product-main-image{background:#fff;border:1px solid #e5e9ed;border-radius:12px;padding:16px;text-align:center;margin-bottom:12px}
.product-main-image img{max-height:520px;margin:0 auto;object-fit:contain}
.product-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.product-thumbs img{width:74px;height:74px;object-fit:cover;border:1px solid #ddd;border-radius:8px;padding:3px;cursor:pointer;background:#fff}
.product-detail-page h1{font-size:28px;line-height:1.7;margin-top:0}
.product-detail-page .product-price{font-size:25px;font-weight:700;margin:18px 0}
.product-short-desc{line-height:2;margin:15px 0}
.product-description{margin-top:30px}

/* V13.9 homepage logo */
.homepage-logo-area{height:74px;display:flex;align-items:center;justify-content:flex-start}
.homepage-logo-link{height:100%;max-width:100%;display:flex!important;align-items:center;text-decoration:none!important}
.homepage-site-logo{display:block;max-width:210px;max-height:66px;width:auto;height:auto;object-fit:contain}
.homepage-logo-area .logo-text-fallback{font-size:22px;font-weight:700;line-height:1.4;color:#263238}
@media(max-width:767px){
  .homepage-logo-area{height:58px}
  .homepage-site-logo{max-width:145px;max-height:52px}
  .homepage-logo-area .logo-text-fallback{font-size:17px}
}

/* V14.2 homepage catalogs + wholesale */
.home-catalog-section{margin:28px 0}.home-catalog-card{background:#fff;border:1px solid #e8ecef;border-radius:12px;padding:9px;text-align:center;height:100%;transition:.18s}.home-catalog-card:hover{transform:translateY(-2px);box-shadow:0 7px 20px rgba(0,0,0,.06)}.home-catalog-card a{text-decoration:none;color:inherit}.home-catalog-cover{height:150px;border-radius:9px;background:#f6f7f8;display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:8px}.home-catalog-cover img{width:100%;height:100%;object-fit:cover}.home-catalog-cover>.glyphicon{font-size:42px;color:#a5adb6}.home-catalog-card strong{display:block;font-size:12px;line-height:1.8;min-height:42px}.catalog-download{display:block;font-size:9px;color:#9a5b18;margin-top:4px}
.product-wholesale-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-top:7px;border:1px solid #d9a15b;color:#925918;background:#fff8ed;border-radius:7px;padding:6px 9px;font-size:10px;text-decoration:none!important}.product-wholesale-link:hover{background:#f9edd9;color:#77450f}
@media(max-width:767px){.home-catalog-cover{height:120px}}

/* V15.4 homepage logo visibility */
.main-header .homepage-logo-area{min-height:78px;display:flex;align-items:center}
.main-header .homepage-logo-link{display:flex!important;align-items:center;justify-content:flex-start;width:100%;height:78px;text-decoration:none!important}
.main-header .homepage-site-logo{display:block!important;width:auto!important;height:auto!important;max-width:230px!important;max-height:70px!important;object-fit:contain!important}
@media(max-width:767px){
  .main-header .homepage-logo-area,.main-header .homepage-logo-link{height:62px;min-height:62px}
  .main-header .homepage-site-logo{max-width:160px!important;max-height:56px!important}
}

/* V16.9 live cart UI */
.ag-cart-toast{position:fixed;z-index:10050;right:20px;bottom:24px;min-width:220px;max-width:360px;padding:11px 14px;border-radius:9px;color:#fff;font-size:12px;box-shadow:0 8px 28px rgba(0,0,0,.18);display:none;text-align:right}
.ag-cart-toast.is-success{background:#238b57}.ag-cart-toast.is-error{background:#c94b4b}
.cart-icon-btn.has-items .badge{animation:agCartBadgePulse .32s ease}
@keyframes agCartBadgePulse{0%{transform:scale(.75)}65%{transform:scale(1.2)}100%{transform:scale(1)}}
.cart-footer-empty{display:none}
@media(max-width:600px){.ag-cart-toast{right:12px;left:12px;bottom:14px;max-width:none}}

/* V18.2 Managed homepage banners/sliders */
.home-managed-slider,.managed-home-banner{position:relative;overflow:hidden;border-radius:10px;margin-bottom:24px}.home-managed-slider .carousel,.home-managed-slider .carousel-inner{height:100%}.home-managed-slider .item{position:relative}.managed-slide-image{display:block}.managed-slide-shade,.managed-banner-shade{position:absolute;inset:0;display:block;pointer-events:none}.managed-home-banner .banner-link{position:relative;display:block;width:100%;height:100%}.managed-banner-button{position:absolute;right:32px;bottom:28px;background:#fff;color:#263442;padding:9px 18px;border-radius:22px;font-weight:700;box-shadow:0 5px 18px rgba(0,0,0,.16)}@media(max-width:768px){.managed-home-banner,.home-managed-slider{border-radius:6px}.managed-banner-button{right:16px;bottom:16px}}

/* V18.8 managed contact numbers */
.top-bar .top-phone{direction:ltr;unicode-bidi:embed;display:inline-block}
.contact-info-footer li span:last-child{line-height:1.8}
@media(max-width:767px){.top-bar .top-right{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.top-bar .top-item{white-space:normal}}

/* V19.6 storefront hero rotator */
.hero-rotator{position:relative;overflow:hidden;margin:0 auto 24px;background:#eef2f5}.hero-rotator.hero-rounded{border-radius:14px}.hero-rotator.hero-full-width{width:100vw;max-width:100vw;margin-right:calc(50% - 50vw);margin-left:calc(50% - 50vw);border-radius:0}.hero-rotator .carousel,.hero-rotator .carousel-inner,.hero-rotator .item{height:100%}.hero-rotator .managed-slide-image{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.001)}.hero-rotator .managed-slide-shade{position:absolute;inset:0;z-index:1;pointer-events:none}.hero-rotator .slide-overlay{position:absolute;inset:0;z-index:2;display:flex;align-items:center;padding:6% 9%;pointer-events:none}.hero-rotator .slide-content{max-width:560px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35);pointer-events:auto}.hero-rotator .slide-content h2{font-size:32px;font-weight:800;margin:0 0 10px}.hero-rotator .slide-content p{font-size:16px;line-height:1.9;margin-bottom:18px}.hero-rotator .btn-slide{display:inline-block;background:#f58220;color:#fff!important;padding:10px 22px;border-radius:7px;text-decoration:none;font-weight:700;box-shadow:0 5px 18px rgba(0,0,0,.15)}.hero-align-center{justify-content:center;text-align:center}.hero-align-left{justify-content:flex-end;text-align:left}.hero-align-right{justify-content:flex-start;text-align:right}.hero-rotator .carousel-control{z-index:4;background:none!important;width:8%;opacity:.8}.hero-rotator .carousel-indicators{z-index:5}.hero-rotator.effect-fade .carousel-inner>.item{transition-property:opacity;opacity:0;left:0!important}.hero-rotator.effect-fade .carousel-inner>.active{opacity:1}.hero-rotator.effect-fade .carousel-inner>.active.left,.hero-rotator.effect-fade .carousel-inner>.active.right{opacity:0}.hero-rotator.effect-zoom .item.active .managed-slide-image{animation:heroZoom 7s ease-out both}@keyframes heroZoom{from{transform:scale(1)}to{transform:scale(1.08)}}
@media(max-width:767px){.hero-rotator{height:var(--hero-mobile-h)!important;border-radius:8px}.hero-rotator .slide-overlay{padding:7%}.hero-rotator .slide-content h2{font-size:20px}.hero-rotator .slide-content p{font-size:12px;margin-bottom:10px}.hero-rotator .btn-slide{padding:7px 13px;font-size:11px}.hero-rotator .carousel-control{width:12%}}

/* V19.7 header/auth/search/category refinements */
.top-bar .row{display:flex;align-items:center;justify-content:space-between}
.top-bar .top-right{order:1;text-align:right!important;margin-left:auto;float:none!important}
.top-bar .top-left{order:2;text-align:left!important;margin-right:auto;float:none!important}
.header-auth-btn{height:42px;display:inline-flex;align-items:center;gap:7px;padding:0 13px;border:1px solid #dfe5eb;border-radius:22px;background:#fff;color:#263748;font-size:12px;font-weight:700;text-decoration:none!important;white-space:nowrap}
.header-auth-btn:hover{border-color:#f28c18;color:#f28c18;box-shadow:0 4px 14px rgba(0,0,0,.06)}
.smart-search-form{border:2px solid #e7ebef;border-radius:24px;transition:.2s;background:#fff}
.smart-search-form:focus-within{border-color:#f28c18;box-shadow:0 0 0 3px rgba(242,140,24,.08)}
.search-autocomplete{border-radius:12px!important;overflow:hidden;box-shadow:0 14px 35px rgba(20,35,50,.14)!important}
.search-autocomplete .suggestion-item{padding:10px 12px!important;gap:10px}
.search-autocomplete .suggestion-item img{width:54px!important;height:54px!important;border-radius:8px;object-fit:contain;background:#fff;border:1px solid #edf0f2}
.search-autocomplete .sug-main{min-width:0;flex:1}
.search-autocomplete .sug-meta{font-size:10px;color:#8a949d;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search-autocomplete .sug-price{font-weight:800;color:#e87512!important;margin-top:4px}

.behin-cat-section{margin:28px 0 34px}.behin-cat-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:15px}.behin-cat-kicker{display:block;color:#f28c18;font-size:9px;letter-spacing:1px;font-weight:800}.behin-cat-head h2{font-size:20px;margin:3px 0 0;font-weight:800;color:#243444}.behin-cat-more{font-size:11px;color:#52606c;text-decoration:none!important}.behin-cat-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}.behin-cat-card{display:flex;flex-direction:column;align-items:center;text-align:center;background:#fff;border:1px solid #e7ebee;border-radius:14px;padding:11px 8px 10px;text-decoration:none!important;color:#263746;transition:.22s;min-width:0}.behin-cat-card:hover{transform:translateY(-4px);border-color:#f2b36b;box-shadow:0 9px 24px rgba(31,43,55,.10);color:#e87512}.behin-cat-image{width:100%;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f8fafb,#eef2f4);border-radius:11px;overflow:hidden;margin-bottom:9px}.behin-cat-image img{width:86%;height:86%;object-fit:contain;transition:.25s}.behin-cat-card:hover .behin-cat-image img{transform:scale(1.06)}.behin-cat-placeholder{font-size:30px;color:#9ca9b4}.behin-cat-name{font-size:11px;font-weight:800;line-height:1.6;min-height:34px;display:flex;align-items:center}.behin-cat-count{font-size:9px;color:#97a1aa;margin-top:2px}
@media(max-width:1199px){.behin-cat-grid{grid-template-columns:repeat(6,1fr)}}@media(max-width:991px){.behin-cat-grid{grid-template-columns:repeat(4,1fr)}.header-auth-btn span:last-child{display:none}.header-auth-btn{width:42px;padding:0;justify-content:center}}@media(max-width:600px){.behin-cat-grid{grid-template-columns:repeat(3,1fr);gap:8px}.behin-cat-card{padding:8px 5px}.behin-cat-head h2{font-size:17px}.top-bar .row{display:block}.top-bar .top-right,.top-bar .top-left{text-align:center!important;margin:0}}

/* V19.9 advanced live search */
.search-autocomplete{max-height:520px;overflow:auto}.search-autocomplete .suggestion-item{display:flex;align-items:center;cursor:pointer;border-bottom:1px solid #eef1f3}.search-autocomplete .suggestion-item:hover,.search-autocomplete .suggestion-item.active{background:#fff8f0}.sug-type-icon{width:54px;height:54px;border-radius:9px;background:#f5f7f9;display:flex;align-items:center;justify-content:center;color:#e67e22;font-size:20px;flex:0 0 54px}.sug-all{display:block;padding:11px;text-align:center;background:#f8fafb;color:#e67e22;font-weight:700;text-decoration:none!important;border-top:1px solid #e8ecef}.sug-all:hover{background:#fff3e6}.smart-search-form .search-input{font-size:13px}


/* V20.0 search product cards + right category tree */
.search-autocomplete .suggestion-item{display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid #eee;background:#fff}
.search-autocomplete .suggestion-item img{width:55px;height:55px;object-fit:contain;border-radius:4px;background:#fafafa}
.search-autocomplete .sug-main{flex:1;text-align:right}
.search-autocomplete .sug-price{font-weight:bold;color:#d22;margin-top:4px}
.ag-category-sidebar{position:fixed;right:15px;top:180px;width:220px;z-index:20;background:#fff;border:1px solid #eee;border-radius:8px;padding:12px;box-shadow:0 2px 10px rgba(0,0,0,.08);direction:rtl}
.ag-category-sidebar h4{font-size:15px;margin:0 0 10px;font-weight:bold}
.ag-category-sidebar ul{list-style:none;padding:0;margin:0}
.ag-category-sidebar li{padding:6px 0;border-bottom:1px solid #f2f2f2}
.ag-category-sidebar a{color:#333;text-decoration:none;display:flex;gap:7px;align-items:center}
.ag-category-sidebar img{width:24px;height:24px;object-fit:cover;border-radius:4px}
@media(max-width:991px){.ag-category-sidebar{display:none}}


/* =========================================================
   V20.1 - Homepage category mega menu (desktop)
   ========================================================= */
.ag-home-category-mega-wrap{background:transparent;margin:0 0 25px;padding:0;display:block}
.ag-home-category-mega{display:flex;flex-direction:row;gap:0;direction:rtl;background:#fff;border-radius:0 0 10px 10px;overflow:hidden;box-shadow:0 12px 35px rgba(18,36,56,.12);border:1px solid #e8edf3;border-top:none;min-height:350px}
.ag-home-category-mega__content{flex:1;min-width:0;background:#fff;position:relative}
.ag-home-category-mega__rail{width:215px;flex:0 0 215px;background:#fbfbfc;border-left:1px solid #e9edf1}
.ag-home-category-mega__railhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 18px;font-weight:800;color:#26374a;border-bottom:1px solid #e9edf1;background:#fff}
.ag-home-category-mega__railhead .glyphicon{font-size:13px;color:#6a7988}
.ag-home-category-mega__list{list-style:none;margin:0;padding:0;max-height:350px;overflow:auto}
.ag-home-cat-item{border-bottom:1px solid #eef2f6;transition:background .2s ease}
.ag-home-cat-item:last-child{border-bottom:none}
.ag-home-cat-item > a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 12px 14px 16px;text-decoration:none;color:#25384b;font-size:14px;font-weight:600}
.ag-home-cat-item:hover,.ag-home-cat-item.active{background:#f1f6fb}
.ag-home-cat-item.active > a{color:#0f4a86}
.ag-home-cat-item__label{flex:1;min-width:0;text-align:right;line-height:1.8}
.ag-home-cat-item__media{width:38px;height:38px;border-radius:8px;background:#fff;border:1px solid #e3e8ee;display:flex;align-items:center;justify-content:center;overflow:hidden;flex:0 0 38px;color:#8a98a8}
.ag-home-cat-item__media img{width:100%;height:100%;object-fit:cover;display:block}
.ag-home-category-panel{display:none;padding:20px 24px 18px;min-height:350px}
.ag-home-category-panel.active{display:block}
.ag-home-category-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:14px;border-bottom:1px solid #eef2f6;margin-bottom:18px}
.ag-home-category-panel__head h3{margin:0 0 6px;font-size:22px;font-weight:800;color:#1f3248}
.ag-home-category-panel__head p{margin:0;color:#7d8b99;font-size:13px}
.ag-home-category-panel__viewall{display:inline-flex;align-items:center;justify-content:center;background:#0b4d8b;color:#fff!important;text-decoration:none!important;border-radius:8px;padding:9px 14px;font-size:13px;font-weight:700;white-space:nowrap}
.ag-home-category-subgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.ag-home-category-subcard{background:#f9fbfd;border:1px solid #e8edf3;border-radius:10px;padding:14px 14px 12px;min-height:118px}
.ag-home-category-subcard__title{display:block;font-size:15px;font-weight:800;color:#173b63;text-decoration:none!important;margin-bottom:10px}
.ag-home-category-subcard ul{list-style:none;margin:0;padding:0}
.ag-home-category-subcard li{margin-bottom:7px;line-height:1.6}
.ag-home-category-subcard li:last-child{margin-bottom:0}
.ag-home-category-subcard li a{color:#516476;text-decoration:none!important;font-size:13px}
.ag-home-category-subcard li a:hover,.ag-home-category-subcard__title:hover{color:#e87512}
.ag-home-category-subcard__empty,.ag-home-category-empty-note,.ag-home-category-empty-state{color:#8a97a4;font-size:13px;line-height:1.9;background:#f9fbfd;border:1px dashed #d9e2ea;border-radius:10px;padding:16px}
.ag-home-category-subgrid--empty{grid-template-columns:1fr}
.ag-home-category-products{margin-top:6px}
.ag-home-category-products__title{font-size:14px;font-weight:800;color:#24384d;margin-bottom:12px}
.ag-home-category-products__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ag-home-category-product{display:flex;align-items:center;gap:10px;padding:10px;background:#fff;border:1px solid #e8edf3;border-radius:10px;text-decoration:none!important;color:#26384a;min-width:0}
.ag-home-category-product:hover{box-shadow:0 6px 16px rgba(18,36,56,.08);border-color:#d5e1ee}
.ag-home-category-product__img{width:58px;height:58px;flex:0 0 58px;border-radius:8px;background:#f7f9fb;border:1px solid #edf1f5;display:flex;align-items:center;justify-content:center;color:#98a3ae;overflow:hidden}
.ag-home-category-product__img img{width:100%;height:100%;object-fit:contain;display:block}
.ag-home-category-product__info{display:flex;flex-direction:column;min-width:0;gap:5px;text-align:right;flex:1}
.ag-home-category-product__info strong{font-size:13px;font-weight:700;line-height:1.8;color:#22384f;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-home-category-product__info small{font-size:12px;font-weight:800;color:#e87512}
@media(max-width:1199px){.ag-home-category-subgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.ag-home-category-products__grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:991px){.ag-home-category-mega-wrap{display:none}}


/* V20.2 - Homepage category drawer behavior */
.ag-home-category-mega{position:relative;overflow:visible}
.ag-home-category-mega__rail{position:absolute;right:0;top:0;height:100%;z-index:30;transition:transform .25s ease,box-shadow .25s ease;box-shadow:none;}
.ag-home-category-mega__rail:hover,.ag-home-category-mega__rail.ag-open{box-shadow:-8px 0 28px rgba(18,36,56,.12);}
.ag-home-category-mega__content{padding-right:0;}
.ag-home-category-mega__railhead{cursor:pointer;}
.ag-home-category-mega:not(.ag-menu-open) .ag-home-category-mega__rail{transform:translateX(165px);}
.ag-home-category-mega.ag-menu-open .ag-home-category-mega__rail{transform:translateX(0);}
.ag-home-category-mega__rail:before{content:'دسته‌بندی';position:absolute;right:100%;top:20px;background:#0b4d8b;color:#fff;padding:10px 12px;border-radius:8px 0 0 8px;font-size:12px;writing-mode:vertical-rl;cursor:pointer;}
@media(max-width:991px){.ag-home-category-mega__rail,.ag-home-category-mega:not(.ag-menu-open) .ag-home-category-mega__rail{transform:none;position:relative;width:100%;}.ag-home-category-mega__rail:before{display:none}}

/* category drawer v22 */
.ag-category-drawer{position:relative;direction:rtl;z-index:9999}
.ag-category-drawer-toggle{position:fixed;right:0;top:45%;background:#064d8e;color:#fff;border:0;border-radius:8px 0 0 8px;padding:14px 10px;writing-mode:vertical-rl;cursor:pointer}
.ag-category-drawer-panel{position:fixed;right:-320px;top:0;height:100vh;width:320px;background:#fff;box-shadow:-5px 0 20px rgba(0,0,0,.18);transition:.3s;overflow:auto;padding-top:70px}
.ag-category-drawer.open .ag-category-drawer-panel{right:0}
.ag-category-drawer-title{padding:15px;font-weight:800;border-bottom:1px solid #eee;display:flex;justify-content:space-between}
.ag-category-drawer-panel ul{list-style:none;padding:0;margin:0}
.ag-category-drawer-panel li{border-bottom:1px solid #eee}
.ag-category-drawer-panel a{display:flex;justify-content:space-between;align-items:center;padding:12px;color:#333;text-decoration:none}
.ag-category-drawer-panel img{width:34px;height:34px;object-fit:cover;border-radius:6px}

/* V33 User order details + card-transfer receipts */
.user-order-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.user-order-heading small{display:block;color:#87919a;margin-top:4px}.uo-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.uo-summary-grid>div{border:1px solid #e3e8ed;background:#fafcfd;border-radius:10px;padding:12px}.uo-summary-grid span{display:block;font-size:11px;color:#7b8793;margin-bottom:5px}.uo-summary-grid strong{font-size:13px}.uo-info-box,.uo-receipt-box,.uo-items-box{border:1px solid #e2e7eb;border-radius:11px;padding:15px;margin-top:15px;background:#fff}.uo-info-box h4,.uo-receipt-box h4,.uo-items-box h4{margin:0 0 12px;font-size:14px;font-weight:700;color:#2c3e50}.uo-info-box p{margin:6px 0}.uo-receipt-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.uo-receipt-image{display:block;width:100%;max-height:340px;object-fit:contain;border:1px solid #dfe5ea;border-radius:9px;padding:5px;background:#f9fbfc;margin-bottom:8px}.uo-receipt-meta th{width:120px}.uo-product-cell{display:flex;align-items:center;gap:10px;min-width:220px}.uo-product-cell img{width:58px;height:58px;object-fit:contain;border:1px solid #e4e8eb;border-radius:7px;padding:3px;background:#fff}.uo-product-cell small{display:block;color:#8a959e;margin-top:3px}.uo-items-table td,.uo-items-table th{vertical-align:middle!important}.uo-items-table tfoot th{background:#f8fafb}.uo-items-table .uo-grand-total th{background:#edf7ee;font-size:13px}.uo-pending-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eee}.uo-pending-row:last-child{border-bottom:0}.uo-pending-row small{display:block;color:#7f8a94;margin-top:3px}.uo-proof-thumb{display:inline-block;width:52px;height:52px;border:1px solid #e0e5e9;border-radius:7px;overflow:hidden;background:#fff}.uo-proof-thumb img{width:100%;height:100%;object-fit:cover}.uo-order-list td{vertical-align:middle!important}
@media(max-width:900px){.uo-summary-grid{grid-template-columns:1fr 1fr}}@media(max-width:600px){.uo-summary-grid{grid-template-columns:1fr}.user-order-heading,.uo-pending-row{align-items:flex-start;flex-direction:column}.uo-product-cell{min-width:180px}}

/* V37 External service trust badges */
.external-service-trust-row{border-top:1px solid rgba(255,255,255,.08);padding:18px 0;background:rgba(0,0,0,.08)}
.external-service-trust-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.external-service-trust-title strong{display:block;color:#fff;font-size:13px}.external-service-trust-title small{display:block;color:#9da8b3;margin-top:3px;font-size:10px}
.external-service-badges{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap}
.external-service-badge{display:flex;align-items:center;justify-content:center;min-width:92px;height:64px;padding:4px;background:transparent;border:0;outline:0;text-decoration:none!important;box-shadow:none!important;transition:.2s}
.external-service-badge:hover{transform:translateY(-2px);box-shadow:none}
.external-service-badge img{max-width:110px;max-height:48px;object-fit:contain}
.external-service-text-logo{font-weight:800;font-size:13px;color:#25384b;white-space:nowrap}.service-enamad{color:#2877a8}.service-digipay{color:#5a3dac}.service-torob{color:#e64a35}.service-emalls{color:#2c76b8}.service-mrpay{color:#0d5aa7}.external-service-badge-custom{overflow:hidden}.external-service-badge-custom>a,.external-service-badge-custom>span{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.external-service-badge-custom img{max-width:110px;max-height:48px;object-fit:contain}
@media(max-width:767px){.external-service-trust-inner{justify-content:center;text-align:center}.external-service-trust-title{width:100%}.external-service-badges{justify-content:center}.external-service-badge{min-width:82px;height:58px}.external-service-badge img{max-width:90px;max-height:42px}}


/* V38 native slider state - no Bootstrap JS dependency */
.ag-native-slider .ag-slider-track{position:relative;height:100%;overflow:hidden}
.ag-native-slider .ag-slider-item{display:none;position:absolute!important;inset:0;width:100%;height:100%;left:0!important;right:0!important;opacity:0;z-index:0}
.ag-native-slider .ag-slider-item.active{display:block;opacity:1;z-index:1}
.ag-native-slider.effect-slide .ag-slider-item.active{animation:agNativeSlideIn .38s ease both}
.ag-native-slider.effect-fade .ag-slider-item.active{animation:agNativeFadeIn .45s ease both}
.ag-native-slider.effect-zoom .ag-slider-item.active{animation:agNativeFadeIn .35s ease both}
.ag-native-slider.effect-zoom .ag-slider-item.active .managed-slide-image{animation:heroZoom 7s ease-out both}
.ag-native-slider .ag-slider-prev,.ag-native-slider .ag-slider-next{border:0;cursor:pointer}
.ag-native-slider .ag-slider-indicators li{cursor:pointer}
@keyframes agNativeFadeIn{from{opacity:0}to{opacity:1}}
@keyframes agNativeSlideIn{from{opacity:.35;transform:translateX(28px)}to{opacity:1;transform:none}}

/* V40 price visibility + product engagement */
.site-price-hidden{display:inline-block;color:#d71920!important;font-weight:800!important;font-size:14px!important;line-height:1.8}
.product-action-tools{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.sf-wishlist-btn.active{color:#d71920;border-color:#d71920;background:#fff5f5}.product-rating-summary{display:flex;align-items:center;gap:7px;margin:9px 0}.sf-stars-read{color:#f6a800;white-space:nowrap}.product-reviews-section{margin-top:25px;border:1px solid #e2e7eb;border-radius:12px;background:#fff;padding:18px}.sf-review-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #edf0f2;padding-bottom:12px;margin-bottom:14px}.sf-review-head h3{margin:0 0 5px;font-size:18px}.sf-big-rating{font-size:30px;font-weight:800;color:#f39c12}.sf-big-rating small{font-size:12px;color:#888}.sf-review-form{background:#f8fafc;border-radius:10px;padding:14px;margin-bottom:18px}.sf-star-picker{display:flex;direction:ltr;justify-content:flex-end;margin:7px 0 12px}.sf-star-picker button{border:0;background:none;padding:2px 4px;font-size:25px;color:#ccd2d8}.sf-star-picker button.active{color:#f6a800}.sf-review-card{border-bottom:1px solid #edf0f2;padding:13px 0}.sf-review-card:last-child{border-bottom:0}.sf-review-top{display:flex;justify-content:space-between;gap:8px}.sf-review-card h4{font-size:14px;margin:8px 0}.sf-review-card p{line-height:1.9}.sf-admin-reply{margin-top:9px;background:#eef7ff;border-right:3px solid #3498db;padding:9px;border-radius:5px}.sf-empty-review{text-align:center;color:#999;padding:25px}.sf-wish-card{padding:10px}.sf-wish-card h5{height:36px;line-height:1.7}.sf-wish-price{min-height:32px}
#sf-toast{display:none;position:fixed;bottom:25px;left:25px;z-index:2147483640;padding:11px 16px;border-radius:8px;color:#fff;box-shadow:0 5px 18px rgba(0,0,0,.2)}#sf-toast.ok{background:#2e9d54}#sf-toast.bad{background:#c0392b}
@media(max-width:600px){.product-action-tools .btn{width:100%}.sf-review-head{align-items:flex-start}.sf-big-rating{font-size:24px}}

/* V45 External Services Pro */
.external-service-badge-custom{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.external-service-badge-custom img{background:transparent!important;border:0!important}
.external-service-badges .external-service-badge img{filter:none}


/* V46 Mobile Responsive Fix */
@media (max-width: 767px){
  html,body{overflow-x:hidden!important;width:100%!important;}
  .top-bar .row{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;}
  .top-bar .top-left,.top-bar .top-right{width:100%!important;text-align:center!important;margin:0!important;}
  .header-main .container,.header-main .row{width:100%!important;}
  .hamburger-btn{display:flex!important;align-items:center;justify-content:center;}
  .category-nav,.navbar-collapse{
      max-width:100%!important;
  }
  .mobile-menu,.category-nav .navbar-collapse{
      z-index:9999!important;
  }
  .cart-overlay{
      z-index:9998!important;
  }
  .main-footer .external-service-badges,
  .external-service-badges{
      display:flex!important;
      justify-content:center!important;
      align-items:center!important;
      flex-wrap:wrap!important;
      gap:15px!important;
  }
  .external-service-badges img{
      max-width:90px!important;
      height:auto!important;
      background:transparent!important;
      border:0!important;
      box-shadow:none!important;
      padding:0!important;
  }
}

/* prevent broken badge containers */
.external-service-badges a,
.external-service-badge{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}

/* V50 checkout mobile polish */
@media(max-width:767px){
 .cart-panel,.panel{border-radius:12px!important;}
 .cart-item,.cart-panel .table-responsive{font-size:14px!important;}
 .cart-panel img{max-width:75px!important;height:auto!important;border-radius:8px;}
 .btn{border-radius:8px!important;}
 .checkout-steps{overflow-x:auto;white-space:nowrap;}
 .checkout-step{display:inline-block!important;width:31%!important;}
 .navbar-brand{font-size:16px!important;}
}
.home-fixed-icon{font-size:18px;padding:8px 10px;}


/* Mobile cart drawer clickability fix */
.cart-overlay {
    z-index: 9998 !important;
}
.cart-sidebar {
    z-index: 9999 !important;
    pointer-events: auto !important;
}
.cart-sidebar a,
.cart-sidebar button {
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
}
@media (max-width: 768px) {
    .cart-sidebar {
        width: min(92vw, 350px);
        max-width: 92vw;
    }
}
