
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;500;700&display=swap');

 *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: "yekanb";
    src: url(../font/Yekan_Bakh_Fanum_Bold.woff);
    font-weight: 600;
}
@font-face {
    font-family: "yekanreg";
    src: url(../font/Yekan_Bakh_Fanum_Regular.woff);
    font-weight: 400;
}
@font-face {
    font-family: "yekanH";
    src: url(../font/Yekan_Bakh_Fanum_Heavy.woff);
    font-weight: 900;
}
:root {
    --cream: #F5F0E1;
    --cream-dark: #E6D7B8;
    --warm-white: #FDFBF7;
    --gold: #D4AF37;
    --dark-brown: #4A3F35;
    --brown: #6B5B4D;
    --text: #3E362E;
    --light-tan: #D9CDB3;
     --blog-brown: #5a3e2b;
    --blog-brown-dark: #3c2814;
    --blog-accent: #c8915c;
    --blog-bg: #faf6f0;
    --blog-card: #ffffff;
    --blog-border: #e7ddd0;
    --blog-text: #4a4036;
    --blog-muted: #9a8c7c;
    --blog-radius: 14px;
    --blog-shadow: 0 6px 24px rgba(60, 40, 20, .08);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--warm-white);
    color: var(--text);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
h1{
    font-family:"yekanH";
    font-weight: 900;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-brown);
}
.btn-gold:hover {
    background: #c99c2e;
    transform: scale(1.03);
}
.btn-brown {
    background: var(--dark-brown);
    color: var(--cream);
}
.btn-brown:hover {
    background: #3a3129;
    transform: scale(1.03);
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cream) 0%, var(--light-tan) 100%);
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/patern.png') repeat center center / contain;
  opacity: 0.025;
  pointer-events: none;
  z-index: -1;
}
        .hero-slider {
            position: relative;
            min-height: 480px;
        }

        .slides-container {
            position: relative;
            width: 100%;
            min-height: 450px;
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.7s ease-in-out, visibility 0s linear 0.7s;
           
        }

        .slide.active {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.7s ease-in-out, visibility 0s linear 0s;
            
            position: relative;
        }

        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 40px;
            flex-wrap: wrap;
        }

        .text-hero {
            flex: 1;
            min-width: 260px;
        }

        .text-hero h1 {
            font-size: 2.8rem;
            color: var(--gold);
            margin-bottom: 20px;
            line-height: 1.3;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .text-hero p {
            font-size: 1.2rem;
            color: var(--white);
            margin-bottom: 30px;
            opacity: 0.9;
        }

        .btn {
            display: inline-block;
            background: var(--gold);
            color: var(--dark-brown);
            padding: 12px 28px;
            border-radius: 40px;
            border: none;
            font-weight: bold;
            font-size: 1rem;
            cursor: pointer;

transition: var(--transition);
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            font-family: inherit;
        }

        .btn:hover {
            background: #ffd966;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        }

        .hero-img {
            flex: 0.8;
            max-width: 320px;
            filter: drop-shadow(8px 12px 20px rgba(0,0,0,0.4));
            transition: transform 0.5s ease;
            animation: floatImage 3s infinite alternate;
        }

        .slide.active .hero-img {
            animation: floatImage 3s infinite alternate;
        }

        @keyframes floatImage {
            0% { transform: translateY(0px); }
            100% { transform: translateY(-12px); }
        }

          @media (max-width: 850px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            .text-hero h1 {
                font-size: 2rem;
            }
            .hero-img {
                max-width: 250px;
            }
            .slides-container {
                min-height: 550px;
            }
        }
        @media (max-width: 550px) {
            .text-hero h1 { font-size: 1.6rem; }
            .hero { padding: 30px 0 50px; }
            .slider-btn { width: 36px; height: 36px; font-size: 1.2rem; }
        }

        .slider-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 40px;
            position: relative;
            z-index: 10;
        }

        .slider-btn {
            background: rgba(212, 175, 55, 0.2);
            border: 1.5px solid var(--gold);
            color: var(--gold);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.6rem;
            transition: var(--transition);
            backdrop-filter: blur(4px);
            z-index: 999;
        }

        .slider-btn:hover {
            background: var(--gold);
            color: var(--dark-brown);
            transform: scale(1.05);
        }

        .dots {
            display: flex;
            gap: 14px;
        }

        .dot {
            width: 12px;
            height: 12px;
            background: rgba(255,245,230,0.5);
            border-radius: 50%;
            cursor: pointer;
            transition: var(--transition);
        }

        .dot.active {
            background: var(--gold);
            transform: scale(1.25);
            box-shadow: 0 0 8px var(--gold);
        }
.books-grid {
    display: grid;
   
    gap: 30px;
    margin: 40px 0;
}
.book-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}
.book-cover {
    position: relative;
    overflow: hidden;
}
.book-cover img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}
.book-card:hover .overlay {
    opacity: 1;
}
.price {
    color: var(--gold);
    font-weight: 700;
    margin: 10px 0;
}

.book-detail .detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 60px 0;
}
.book-image-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.price-large {
    font-size: 2rem;
    color: var(--dark-brown);
}

.cart-page {
    padding: 60px 0;
    
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.6s ease;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.cart-count-text {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeIn 0.6s ease;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    color: #bdc3c7;
    stroke-width: 1.5;
}

.empty-cart h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.empty-cart p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    animation: fadeIn 0.6s ease;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.cart-item-image {
    width: 100px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.cart-item-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-title a:hover {
    color: #3498db;
}

.cart-item-author {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.cart-item-price {
    color: #27ae60;
    font-size: 1.1rem;
    font-weight: 600; 
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    background: white;
    color: #3498db;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.qty-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.1);
}

.qty-input {
    width: 50px;
    height: 35px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.qty-input:focus {
    outline: none;
    border-color: #3498db;
}

.cart-item-subtotal {
    min-width: 120px;
    text-align: left;
}

.subtotal-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    border: none;
    background: #fee;
    color: #e74c3c;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-remove svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.cart-item-remove:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 100px;
    animation: slideInLeft 0.5s ease;
}

.summary-card h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #555;
}

.summary-shipping {
    color: #27ae60;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 20px 0;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    padding-top: 15px;
    border-top: 2px solid #ecf0f1;
}

.summary-total-amount {
    color: #27ae60;
    font-size: 1.5rem;
}

.btn-block {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 1.1rem;
    justify-content: center;
}

.cart-features {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item svg {
    width: 30px;
    height: 30px;
    color: #3498db;
    stroke-width: 2;
}

.feature-item span {
    color: #555;
    font-size: 0.95rem;
}

.checkout-page {
    padding: 60px 0;
   
    min-height: calc(100vh - 200px);
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blog-bg);
    transition: all 0.3s ease;
}

.step.active {
    color: var(--gold);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-tan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--gold);
    color: white;
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

.step-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: wheat;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 40px;
}

.checkout-form-section {
    animation: slideInRight 0.6s ease;
}

.checkout-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.form-section {
    margin-bottom: 40px;
}

.form-section h2 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    position: relative;
    cursor: pointer;
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.payment-method input[type="radio"]:checked + .payment-method-content {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.payment-method-content svg {
    width: 35px;
    height: 35px;
    color: #667eea;
    stroke-width: 2;
}

.payment-method-content strong {
    display: block;
    color: #2c3e50;
    margin-bottom: 5px;
}

.payment-method-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-large svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

.checkout-summary {
    animation: slideInLeft 0.6s ease;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.order-item-info {
    flex: 1;
}

.order-item-info h4 {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.order-item-info p {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.order-item-price {
    font-weight: 700;
    color: #27ae60;
    font-size: 1rem;
}

.security-badges {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.badge-item svg {
    width: 24px;
    height: 24px;
    color: #27ae60;
    stroke-width: 2;
}

.badge-item span {
    color: #555;
    font-weight: 500;
}

.order-success {
    background: white;
    border-radius: 25px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    max-width: 700px;
    margin: 50px auto;
    animation: scaleIn 0.6s ease;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 2.5;
}

.order-success h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.order-number {
    font-size: 1.3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.order-success p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    animation: shake 0.5s ease;
}

.alert svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke-width: 2;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c0392b;
}

.alert p {
    margin: 0 0 5px 0;
}

.alert p:last-child {
    margin-bottom: 0;
}

.text-success {
    color: #27ae60;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@media (max-width: 1024px) {
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }

    .summary-card {
        position: static;
    }
}

@media (max-width: 768px) {
  .cart-page,
  .checkout-page {
    padding: 40px 0;
  }
  .page-header h1 {
    font-size: 2rem;
  }
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }
  .cart-item-quantity,
  .cart-item-subtotal,
  .cart-item-remove {
    grid-column: 2;
  }
  .cart-item-quantity {
    justify-self: start;
  }
  .cart-item-subtotal {
    text-align: right;
  }
  .cart-item-remove {
    justify-self: end;
  }
  .checkout-form {
    padding: 25px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .checkout-steps {
    gap: 20px;
  }
  .step-title {
    display: none;
  }
  .form-actions,
  .success-actions {
    flex-direction: column;
  }
  .order-success {
    padding: 50px 25px;
  }
  .order-success h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .cart-item {
    padding: 20px;
  }
  .cart-item-image {
    width: 70px;
    height: 100px;
  }
  .cart-item-title {
    font-size: 1rem;
  }
  .summary-card,
  .checkout-form {
    padding: 20px;
  }
  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .cart-item {
    padding: 20px;
  }
  .cart-item-image {
    width: 70px;
    height: 100px;
  }
  .cart-item-title {
    font-size: 1rem;
  }
  .summary-card,
  .checkout-form {
    padding: 20px;
  }
  .btn-large {
    width: 100%;
    justify-content: center;
  }
  .checkout-steps {
    gap: 15px;
  }
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

.main-footer {
  background: var(--dark-brown);
  color: var(--cream);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col p {
  line-height: 1.8;
  opacity: 0.9;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--cream);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--gold);
  transform: translateX(-5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(218, 165, 32, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--gold);
  color: var(--dark-brown);
  transform: translateY(-3px);
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.contact-info svg {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(218, 165, 32, 0.2);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.8;
}

.payment-methods img {
  height: 30px;
}

.mobile-menu-toggle {
  display: none !important;
  color: var(--gold);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid var(--dark-brown);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn.success {
  background: #4CAF50 !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .text-hero h1 {
    font-size: 2rem;
  }

  .text-hero p {
    font-size: 1rem;
  }

  .hero-img {
    max-width: 250px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .text-hero h1 {
    font-size: 1.6rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}

.sec {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
}

.header-con {
  width: 90%;
  max-width: 1000px;
  justify-content: center;
  display: flex;
  align-items: center;
  background: var(--brown);
  border-radius: 24px 24px 0 0;
  padding: 25px 15px;
  gap: 15px;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

 .header-im {
    width: 60px;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.header-titl {
    color: var(--cream);
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    text-align: center;
    margin: 0 5px;
}

.slider-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    padding: 20px 0;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
    background-color: var(--light-tan);
}

.fade-left,
.fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
}

.fade-left {
    left: 0;
    border-radius: 0 24px 0 0;
    background: linear-gradient(to right, #f5f0e1d9, transparent);
}

.fade-right {
    right: 0;
    border-radius: 0 0 24px 0;
    background: linear-gradient(to left, #f5f0e1d9, transparent);
}

.carousel-pub {
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.car {
    display: flex;
    animation: infiniteScroll 15s infinite linear;
    gap: 20px;
}

.car img {
    height: clamp(100px, 15vw, 180px);
    width: clamp(130px, 18vw, 220px);
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    border-radius: 12px;
    padding: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car img:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.2);
}

.carousel-pub:hover .car {
    animation-play-state: paused;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .sec {
        padding: 20px 0;
    }
    .header-im {
        width: 30px;
    }
    .slider-con {
        padding: 15px 0;
    }
    .fade-left,
    .fade-right {
        width: 30px;
    }
    .car {
        gap: 10px;
    }
}

.blog-section {
    background: var(--blog-bg);
    padding: 50px 0 70px;
    color: var(--blog-text);
}

.post-hero {
    background-size: cover;
    background-position: center;
    padding: 90px 0;
    color: #fff;
    text-align: center;
}

.post-hero h1 {
    font-size: 2.2rem;
    margin: 18px 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.post-hero-cat {
    display: inline-block;
    background: var(--blog-accent);
    color: #fff;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: .9rem;
    text-decoration: none;
    transition: .25s;
}

.post-hero-cat:hover {
    background: #fff;
    color: var(--blog-brown-dark);
}

.post-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    margin-top: 10px;
    font-size: .92rem;
    opacity: .95;
}

.post-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-hero-meta i {
    color: var(--blog-accent);
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 35px;
    align-items: start;
}

.post-content {
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    padding: 35px;
    line-height: 2.1;
    font-size: 1.05rem;
}

.post-content h2,
.post-content h3 {
    color: var(--blog-brown-dark);
    margin: 25px 0 12px;
}

.post-content p {
    margin-bottom: 18px;
}

.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.post-content a {
    color: var(--blog-accent);
    text-decoration: none;
    border-bottom: 1px dashed var(--blog-accent);
}

.post-content blockquote {
    border-right: 4px solid var(--blog-accent);
    background: var(--blog-bg);
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 8px;
    color: var(--blog-muted);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    color: var(--blog-muted);
}

.post-tags .tag {
    background: #fff;
    border: 1px solid var(--blog-border);
    color: var(--blog-brown);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: .85rem;
    text-decoration: none;
    transition: .25s;
}

.post-tags .tag:hover {
    background: var(--blog-brown);
    color: #fff;
    border-color: var(--blog-brown);
}

.comments-section {
    margin-top: 40px;
}

.comments-section > h3 {
    color: var(--blog-brown-dark);
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blog-border);
}

.no-comments {
    background: var(--blog-card);
    border: 1px dashed var(--blog-border);
    border-radius: var(--blog-radius);
    padding: 25px;
    text-align: center;
    color: var(--blog-muted);
}

.comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px;
}

.comment {
    display: flex;
    gap: 15px;
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    padding: 18px 20px;
    margin-bottom: 15px;
    box-shadow: var(--blog-shadow);
}

.comment-avatar i {
    font-size: 2.6rem;
    color: var(--blog-accent);
}

.comment-body {
    flex: 1;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-head strong {
    color: var(--blog-brown-dark);
}

.comment-head span {
    font-size: .82rem;
    color: var(--blog-muted);
}

.comment-body p {
    margin: 0;
    line-height: 1.9;
}

.comment-form-box {
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    padding: 30px;
}

.comment-form-box h3 {
    color: var(--blog-brown-dark);
    margin-bottom: 18px;
}

.comment-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--blog-border);
    border-radius: 10px;
    background: var(--blog-bg);
    font-family: inherit;
    font-size: .95rem;
    color: var(--blog-text);
    transition: .25s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--blog-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 145, 92, .15);
}

.comment-form textarea {
    resize: vertical;
    margin-bottom: 15px;
}

.alert {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: .92rem;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #b6dfb9;
}

.alert.error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6c2;
}

.btn {
    display: inline-block;
    background: var(--blog-brown);
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
    transition: .25s;
}

.btn:hover {
    background: var(--blog-brown-dark);
    transform: translateY(-2px);
}

.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    padding: 22px;
}

.sidebar-widget h3 {
    color: var(--blog-brown-dark);
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--blog-border);
}

.sidebar-search {
    display: flex;
    gap: 8px;
}

.sidebar-search input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--blog-border);
    border-radius: 8px;
    background: var(--blog-bg);
    font-family: inherit;
}

.sidebar-search button {
    background: var(--blog-brown);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    transition: .25s;
}

.sidebar-search button:hover {
    background: var(--blog-accent);
}

.sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--blog-border);
    color: var(--blog-text);
    text-decoration: none;
    transition: .25s;
}

.sidebar-cats li:last-child a {
    border-bottom: none;
}

.sidebar-cats li a:hover {
    color: var(--blog-accent);
    padding-right: 6px;
}

.sidebar-cats span {
    background: var(--blog-bg);
    color: var(--blog-muted);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: .8rem;
}

.sidebar-recent {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-recent li a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--blog-border);
    text-decoration: none;
    color: var(--blog-text);
    transition: .25s;
}

.sidebar-recent li:last-child a {
    border-bottom: none;
}

.sidebar-recent img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.sidebar-recent .rp-title {
    display: block;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--blog-brown-dark);
}

.sidebar-recent li a:hover .rp-title {
    color: var(--blog-accent);
}

.sidebar-recent .rp-date {
    display: block;
    font-size: .78rem;
    color: var(--blog-muted);
    margin-top: 3px;
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--blog-muted);
}

.blog-empty i {
    font-size: 3rem;
    color: var(--blog-accent);
    margin-bottom: 15px;
}

.blog-empty p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .post-hero h1 {
        font-size: 1.7rem;
    }
}

@media (max-width: 600px) {
    .comment-form .form-row {
        flex-direction: column;
    }
    
}



    .smart-packs {
        padding: 2rem 0;
    }

    .packs-title {
        color: var(--dark-brown);
        border-bottom: 2px solid var(--gold);
        padding-bottom: 10px;
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }

    .packs-container {
        display: flex;
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .pack-card {
        display: flex;
        flex: 1 1 300px;
        background: var(--cream-dark);
        padding: 20px;
        border-radius: 10px;
        border-right: 4px solid var(--gold);
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .pack-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .pack-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        min-width: 0;
    }

    .pack-info h4 {
        color: var(--dark-brown);
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        margin: 0;
    }

    .pack-info p {
        color: #666;
        font-size: clamp(0.8rem, 1.5vw, 0.9rem);
        margin: 0;
    }

    .pack-image {
        width: clamp(100px, 20vw, 200px);
        height: auto;
        max-height: 110px;
        object-fit: contain;
        flex-shrink: 0;
    }

    @media (max-width: 768px) {
        .packs-container {
            gap: 15px;
        }

        .pack-card {
            flex: 1 1 100%;
            padding: 15px;
            border-right-width: 3px;
        }

        .pack-image {
            width: 80px;
            max-height: 80px;
        }
    }

    @media (max-width: 400px) {
        .pack-card {
            flex-direction: row;
            text-align: center;
            border-right: none;
            border-bottom: 3px solid var(--gold);
            padding: 15px 10px;
        }

        .pack-image {
            width: 90px;
            max-height: 90px;
            order: -1;
        }
    }


.blog-carousel-section {
    direction: rtl;
}

.blog-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.blog-carousel-container {
    overflow: hidden;
    flex: 1;
}

.blog-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-carousel-card {
    min-width: calc(33.333% - 16px);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width:300px;
}

.blog-carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(60, 40, 20, 0.15);
}

.blog-carousel-btn {
    width: 48px;
    height: 48px;
    border: 2px solid var(--blog-accent);
    background: #fff;
    color: var(--blog-brown);
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 5;
}

.blog-carousel-btn:hover {
    background: var(--blog-accent);
    color: #fff;
    border-color: var(--blog-accent);
    transform: scale(1.1);
}

.blog-carousel-btn:active {
    transform: scale(0.95);
}

.blog-carousel-section .post-card {
    background: var(--blog-card);
    border: 1px solid var(--blog-border);
    border-radius: var(--blog-radius);
    box-shadow: var(--blog-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-carousel-section .post-card-img {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-carousel-section .post-card-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-carousel-section .post-card:hover .post-card-img img {
    transform: scale(1.05);
}

.blog-carousel-section .post-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--blog-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-carousel-section .post-card-body {
    padding: 20px;
}

.blog-carousel-section .post-card-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-carousel-section .post-card-title a {
    color: var(--blog-brown-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-carousel-section .post-card-title a:hover {
    color: var(--blog-accent);
}

.blog-carousel-section .post-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--blog-muted);
    margin-bottom: 12px;
}

.blog-carousel-section .post-card-meta i {
    color: var(--blog-accent);
    margin-left: 4px;
}

.blog-carousel-section .post-card-excerpt {
    color: var(--blog-text);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.blog-carousel-section .post-readmore {
    color: var(--blog-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.blog-carousel-section .post-readmore:hover {
    gap: 12px;
}

@media (max-width: 992px) {
    .blog-carousel-card {
        min-width: calc(50% - 12px);
    }
}




@media (max-width: 768px) {
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--dark-brown, #3e2723);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-links.active {
        right: 0 !important; 
    }

    .mobile-menu-toggle {
        display: block !important;
        z-index: 1000;
        position: relative;
    }

    .header-actions {
        gap: 15px;
    }

    .cat-of {
        position: static;
        box-shadow: none;
        padding: 10px 15px;
        visibility: visible;
        opacity: 1;
        display: none; 
        background: rgba(255, 255, 255, 0.1); 
        border-radius: 10px;
        margin-top: 10px;
        width: 100%;
    }

    .cat-wrapper:hover .cat-of,
    .cat-wrapper.active .cat-of {
        display: flex;
        flex-direction: column;
    }
}



@media(max-width:700px){
    .blog-carousel-track{
        gap:5px !important;
    }
    .blog-carousel-card {
    
   width:250px!important;
   
}
.blog-carousel-section.post-card-title {
    font-size:14px!important;
}
.blog-carousel-section .post-card-excerpt{
    font-size:10px!important;
}
.blog-carousel-btn {
        width: 25px!important;
        height: 25px!important;
        font-size: 15px!important;
    }
    .header-titl {
    color: var(--cream);
    font-family: 'Vazirmatn', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 01px;
    font-size: 16px;
    text-align: center;
    margin: 0 5px;}
    
.header-con {
        padding: 10px 6px;
        gap: 0px;
    }
    
.book-card{
    width:190px;
} 
.books-grid{
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr))!important;
    gap:15px;
}
.feature-box {
    position: relative;
    padding: 0px 20px 0 20px!important;
    overflow: hidden;
    transition: all 0.3s ease;
}
}





.feature-box {
    position: relative;
    padding: 0px 50px 0 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-box::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to top, #D4AF37, #ffffff);
    transition: height 0.4s ease;
}

.feature-box::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #D4AF37, #ffffff);
    transition: height 0.4s ease;
}

.feature-box:hover::before {
    height: 100%;
}

.feature-box:hover::after {
    height: 100%;
}


.puls-fre {
     background: rgb(255, 255, 255);
    padding: 5px 15px;
    border-radius: 25px;
    display: inline-block;
    color: #D4AF37;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: 2px solid #D4AF37;
    animation: borderGlow 2s infinite;
    margin-bottom: -15px;
}

.puls-fre::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.2) 50%,
        transparent 70%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }
}