/*
 * Aylar Boutique Core Stylessheet (Style.css)
 * Vibe: Luxurious, Minimalist, Premium Boutique
 * Language & Format: Persian RTL
 */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #111111;      /* Deep midnight charcoal */
    --primary-light: #222222;
    --accent: #c5a880;       /* Fine muted brass/gold */
    --accent-hover: #b3946a;
    --text-color: #3f3f46;   /* Zinc/gray-700 */
    --text-dark: #18181b;    /* Zinc/gray-900 */
    --text-light: #71717a;   /* Zinc/gray-500 */
    --bg-color: #ffffff;
    --bg-secondary: #fbfbfb;  /* Calming warm cream-white */
    --bg-muted: #f4f4f5;
    --border-color: #e4e4e7;
    --status-pending: #eab308;
    --status-processing: #2563eb;
    --status-delivered: #16a34a;
    --status-cancelled: #dc2626;
}

/* Base resets & typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

input, button, select, textarea {
    font-family: inherit;
}

/* Common Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-25 { gap: 25px; }
.gap-30 { gap: 30px; }
.gap-40 { gap: 40px; }
.mt-5 { mt: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.pb-10 { padding-bottom: 10px; }
.pb-15 { padding-bottom: 15px; }
.pb-20 { padding-bottom: 20px; }
.py-15 { padding: 15px 0; }
.py-20 { padding: 20px 0; }
.py-40 { padding: 40px 0; }
.py-50 { padding: 50px 0; }
.py-60 { padding: 60px 0; }
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.text-muted { color: var(--text-light); }
.text-danger { color: var(--status-cancelled); }
.text-success { color: var(--status-delivered); }
.font-bold { font-weight: bold; }
.font-normal { font-weight: normal; }
.border-bottom { border-bottom: 1px select var(--border-color); border-bottom-style: solid; }
.border-top { border-top: 1px select var(--border-color); border-top-style: solid; }
.m-auto { margin: 0 auto; }
.max-w-450 { max-w: 450px; width: 100%; }
.max-w-500 { max-w: 500px; width: 100%; }
.max-w-600 { max-w: 600px; width: 100%; }
.max-w-700 { max-w: 700px; width: 100%; }
.width-50 { width: 50px; }
.width-70 { width: 70px; }
.bg-gray { background-color: var(--bg-muted); }
.bg-white { background-color: #ffffff; }
.bg-dark { background-color: var(--primary); }
.text-white { color: #ffffff !important; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }
.col-span-4 { grid-column: span 4; }
.border-top-danger { border-top: 4px solid var(--status-cancelled); }

/* Grid systems */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Modular Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 4px;
}

/* Custom Alert Messages */
.alert {
    padding: 12px 18px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Elegant Buttons */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #333333;
}
.btn-secondary {
    background-color: var(--accent);
    color: #ffffff;
}
.btn-secondary:hover {
    background-color: var(--accent-hover);
}
.btn-danger {
    background-color: var(--status-cancelled);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: #b91c1c;
}
.btn-outline {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-muted {
    background-color: var(--bg-muted);
    color: var(--text-light);
    cursor: not-allowed;
}
.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}
.btn-xs {
    padding: 4px 10px;
    font-size: 11px;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
}
.btn-text:hover {
    color: var(--accent-hover);
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-control:focus {
    border-color: var(--primary);
}
.form-control-inline {
    width: auto;
    display: inline-block;
}

/* Header Styles */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}
.top-bar {
    background-color: var(--primary);
    color: #d1d1d6;
    padding: 8px 0;
    font-size: 11px;
}
.top-links a {
    color: #ffffff;
    margin: 0 5px;
    font-weight: 500;
}
.top-links a:hover {
    color: var(--accent);
}
.nav-bar {
    padding: 15px 0;
}
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.logo-text-fa {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.logo-sub {
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2.5px;
    margin-top: -3px;
}
.nav-menu ul {
    list-style: none;
    gap: 30px;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
    border-color: var(--accent);
}

/* Dropdown Menu styling */
.has-submenu {
    position: relative;
}
.submenu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    min-width: 180px;
    display: none;
    padding: 10px 0;
    z-index: 100;
    border-radius: 4px;
}
.has-submenu:hover .submenu {
    display: block;
}
.submenu li {
    width: 100%;
}
.submenu a {
    display: block;
    padding: 8px 15px;
    border: none;
}
.submenu a:hover {
    background: var(--bg-muted);
}

/* Header Cart counter utility */
.cart-btn {
    position: relative;
    font-size: 20px;
}
.cart-counter {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    font-weight: bold;
}
.search-form {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.search-form input {
    border: none;
    padding: 6px 12px;
    outline: none;
    font-size: 12px;
}
.search-btn {
    background-color: transparent;
    border: none;
    padding: 0 10px;
    cursor: pointer;
}

/* Hero Banner on Homepage */
.hero-section {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 100px 0;
    position: relative;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 30px;
}
.hero-actions {
    display: flex;
    gap: 15px;
}

/* Category grid display */
.category-card {
    height: 180px;
    background-color: var(--bg-muted);
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}
.category-card-content h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}
.category-card-content p {
    font-size: 11px;
    color: var(--text-light);
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Section Header formatting */
.section {
    padding: 60px 0;
}
.section-header {
    margin-bottom: 40px;
}
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}
.section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 5px;
}

/* Product Card Items */
.product-item {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-img-wrapper {
    height: 300px;
    background-color: var(--bg-muted);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.placeholder-initial {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-light);
    text-align: center;
}
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: bold;
    z-index: 10;
}
.product-quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}
.product-item:hover .product-quick-view-overlay {
    display: flex;
}
.product-info-box {
    padding: 15px;
    text-align: right;
}
.product-category-label {
    font-size: 10px;
    color: var(--accent);
    font-weight: 600;
    display: block;
}
.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 5px;
}
.product-pricing {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.price-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}
.price-old {
    font-size: 12px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* Promo Boxes and Banners */
.promo-card {
    border-radius: 4px;
    padding: 40px;
    color: #ffffff;
    background-size: cover;
    position: relative;
}
.promo-card-1 {
    background-color: #27272a;
}
.promo-card-2 {
    background-color: #1c1917;
}
.promo-badge {
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
}
.promo-card h3 {
    font-size: 24px;
    margin-top: 10px;
}
.promo-card p {
    font-size: 13px;
    color: #d1d1d6;
    margin: 10px 0 20px 0;
}

/* About and Contact visualizations */
.about-features-list {
    list-style: none;
    margin-top: 25px;
}
.about-features-list li {
    margin-bottom: 12px;
    font-weight: 500;
}
.visual-badge-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 50px;
    border-radius: 50%;
    margin: 0 auto;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.years-count {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent);
}
.years-label {
    font-size: 11px;
}
.info-circle {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid var(--border-color);
}
.info-item-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 4px;
}

/* Product details layout specifications */
.product-img-big-placeholder {
    height: 450px;
    background: linear-gradient(135deg, #fbfbfb 0%, #e4e4e7 100%);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}
.preview-title {
    font-size: 20px;
    color: var(--text-light);
    font-weight: bold;
}
.thumb-box {
    width: 70px;
    height: 70px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
}
.thumb-box.active {
    border-color: var(--accent);
}
.product-main-name {
    font-size: 26px;
    font-weight: bold;
    color: var(--text-dark);
}
.attribute-buttons-grid {
    margin-top: 8px;
}
.option-label-btn {
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #ffffff;
}
.option-label-btn input {
    display: none;
}
.option-label-btn:has(input:checked) {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #ffffff;
}
.table-specs {
    width: 100%;
    border-collapse: collapse;
}
.table-specs td {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Cart item lists and checkout forms */
.cart-item-row {
    border: 1px solid var(--border-color);
    padding: 15px;
    background: #ffffff;
    border-radius: 4px;
}
.item-qty-adjust form {
    display: inline-flex;
}
.invoice-summary-lines li {
    list-style: none;
    font-size: 14px;
}
.payable-price {
    font-size: 20px;
}

/* User Account sidebar portals */
.account-menu, .admin-menu {
    list-style: none;
}
.account-menu li, .admin-menu li {
    margin-bottom: 5px;
}
.account-menu a, .admin-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}
.account-menu a:hover, .account-menu a.active {
    background-color: var(--bg-muted);
}
.admin-menu a:hover, .admin-menu a.active {
    background-color: rgba(255,255,255,0.1);
}
.status-btn {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
}
.status-btn.pending { background-color: #fef08a; color: #854d0e; }
.status-btn.processing { background-color: #dbeafe; color: #1e40af; }
.status-btn.delivered { background-color: #d1fae5; color: #065f46; }
.status-btn.cancelled { background-color: #fee2e2; color: #991b1b; }

/* Table responsive tools */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    font-size: 14px;
}
.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}
.table th {
    background: var(--bg-muted);
    font-weight: bold;
}

/* Footer specifications */
.main-footer {
    background-color: var(--primary);
    color: #ffffff;
    margin-top: 60px;
}
.newsletter-section {
    background-color: var(--primary-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
}
.newsletter-form input {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 15px;
    color: #ffffff;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.newsletter-form button {
    border-radius: 0 4px 4px 0;
}
.footer-widgets {
    padding: 65px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.footer-widget h4 {
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--accent);
}
.footer-widget ul {
    list-style: none;
}
.footer-widget li {
    margin-bottom: 10px;
}
.footer-widget a {
    color: #cccccc;
}
.footer-widget a:hover {
    color: #ffffff;
}
.store-desc {
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 15px;
}
.contact-list li {
    font-size: 13px;
    color: #cccccc;
}
.samandehi-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 4px;
    color: #bbbbbb;
    font-weight: bold;
    font-size: 14px;
}
.footer-bottom {
    padding: 24px 0;
    background: rgba(0,0,0,0.2);
    font-size: 12px;
}

/* Mobile responsive fixes */
@media screen and (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .sm-grid-1 {
        grid-template-columns: 1fr !important;
    }
    .col-span-2, .col-span-3, .col-span-4 {
        grid-column: span 1;
    }
    .wrap-mobile {
        flex-direction: column;
        gap: 15px;
    }
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--text-dark);
        transition: all 0.3s ease;
    }
    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
}
