/* Reset و تنظیمات پایه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #FFF8F0; /* رنگ کرمی */
    color: #333;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    min-height: 100vh;
}

/* حاشیه‌های طلایی */
.gold-border {
    position: fixed;
    background: linear-gradient(45deg, #D4AF37, #FFD700, #D4AF37);
    z-index: 1000;
}

.top-border {
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #D4AF37, #FFD700, #D4AF37);
}

.right-border {
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: linear-gradient(to bottom, #D4AF37, #FFD700, #D4AF37);
}

.bottom-border {
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to left, #D4AF37, #FFD700, #D4AF37);
}

.left-border {
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(to top, #D4AF37, #FFD700, #D4AF37);
}

/* هدر */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
    z-index: 100;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    padding: 10px;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 48px;
    font-weight: 900;
    color: #D4AF37; /* طلایی */
    text-shadow: 
        2px 2px 0 #000,
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
    letter-spacing: 2px;
}

/* محتوای اصلی */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 40px 20px;
}

.hero-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 50px;
}

/* دکمه اصلی */
.main-button-container {
    margin-top: 40px;
}

.main-button {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: 3px solid #8B7355;
    padding: 20px 60px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #8B7355, 0 8px 20px rgba(0,0,0,0.2);
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.main-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #8B7355, 0 12px 25px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
}

.main-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #8B7355;
}

/* منوی کشویی */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    right: 0;
}

.menu-header {
    padding: 25px;
    border-bottom: 2px solid #FFD700;
}

.close-menu-btn {
    background: #000;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s;
}

.close-menu-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.menu-items {
    padding: 20px;
    flex-grow: 1;
}

.menu-item {
    background: #000;
    color: #FFD700;
    border: 2px solid #FFD700;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: right;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-item i {
    font-size: 20px;
}

.menu-item:hover {
    background: #333;
    transform: translateX(-5px);
    box-shadow: 5px 5px 0 #FFD700;
}

.menu-footer {
    padding: 20px;
    background: #FFF8F0;
    border-top: 2px solid #FFD700;
}

.timer-container {
    background: linear-gradient(135deg, #000, #333);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    text-align: center;
}

.timer-container h3 {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 18px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.timer-unit {
    background: #000;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    min-width: 70px;
}

.timer-unit span {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #FFD700;
    font-family: monospace;
}

.timer-unit small {
    color: #FFD700;
    font-size: 14px;
}

.discount-text {
    color: #FFD700;
    font-weight: bold;
    font-size: 16px;
}

/* تایمر کامل */
.full-timer-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.timer-content {
    background: #FFF8F0;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #D4AF37;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-timer {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #000;
    color: #FFD700;
    border: 2px solid #FFD700;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
}

.close-timer:hover {
    transform: rotate(90deg);
    background: #333;
}

.timer-content h2 {
    color: #000;
    margin-bottom: 30px;
    font-family: 'Cinzel', serif;
    font-size: 28px;
}

.timer-content h2 i {
    color: #D4AF37;
    margin-left: 10px;
}

.full-timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.timer-unit-large {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #D4AF37;
    min-width: 100px;
}

.timer-unit-large span {
    display: block;
    font-size: 48px;
    font-weight: bold;
    color: #FFD700;
    font-family: monospace;
    line-height: 1;
}

.timer-unit-large small {
    color: #FFD700;
    font-size: 16px;
    margin-top: 5px;
    display: block;
}

.discount-info {
    color: #333;
    font-size: 18px;
    margin: 20px 0;
    font-weight: 600;
}

.discount-amount {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    padding: 15px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: bold;
    border: 2px solid #8B7355;
}

/* صفحه خرید */
.buy-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    font-size: 32px;
    color: #333;
    margin-bottom: 50px;
    font-family: 'Cinzel', serif;
}

.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.buy-option-button {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: 3px solid #8B7355;
    padding: 25px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #8B7355;
    font-family: 'Cinzel', serif;
}

.buy-option-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #8B7355;
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
}

.single-button-row {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.single-button {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: 3px solid #8B7355;
    padding: 20px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #8B7355;
    font-family: 'Cinzel', serif;
    min-width: 300px;
}

.single-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #8B7355;
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
}

.back-button {
    background: linear-gradient(45deg, #666, #999);
    color: white;
    border: 3px solid #444;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #444;
    margin-top: 30px;
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #444;
    background: linear-gradient(45deg, #999, #BBB);
}

/* صفحه دسته‌بندی */
.category-page {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.category-button {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: 3px solid #8B7355;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 0 #8B7355;
    font-family: 'Cinzel', serif;
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #8B7355;
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
}

/* صفحه محصولات */
.products-page {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-id {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #FFD700;
}

.id-text {
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.copy-id {
    background: #000;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.copy-id:hover {
    background: #333;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.product-price {
    color: #D4AF37;
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    text-align: left;
}

.buy-product-btn {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    border: 2px solid #8B7355;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Cinzel', serif;
}

.buy-product-btn:hover {
    background: linear-gradient(45deg, #FFD700, #FFEC8B);
    transform: translateY(-2px);
}

/* صفحه سفارش سفارشی */
.custom-order-page {
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.order-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    font-size: 16px;
    background: #FFF8F0;
    font-family: 'Raleway', sans-serif;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.quality-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quality-option {
    flex: 1;
    min-width: 150px;
}

.quality-option input[type="radio"] {
    display: none;
}

.quality-option label {
    display: block;
    padding: 15px;
    background: #FFF8F0;
    border: 2px solid #D4AF37;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.quality-option input[type="radio"]:checked + label {
    background: linear-gradient(45deg, #D4AF37, #FFD700);
    color: #000;
    font-weight: bold;
    border-color: #8B7355;
}

.price-display {
    background: #000;
    color: #FFD700;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0;
    border: 2px solid #FFD700;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 36px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .main-button {
        padding: 15px 40px;
        font-size: 20px;
    }
    
    .side-menu {
        width: 100%;
        max-width: 350px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .full-timer-display {
        flex-wrap: wrap;
    }
    
    .timer-unit-large {
        min-width: 80px;
    }
    
    .timer-unit-large span {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .main-button {
        padding: 12px 30px;
        font-size: 18px;
    }
    
    .timer {
        flex-wrap: wrap;
    }
    
    .timer-unit {
        min-width: 60px;
    }
    
    .timer-unit span {
        font-size: 24px;
    }
}