* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f1eb 0%, #e8d5c4 50%, #d4b08c 100%);
    min-height: 100vh;
    color: #3e2723;
    line-height: 1.6;
}

.cafe-logo img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
}

.cafe-footer .footer-content {
    display: flex;
    flex-direction: column; /* همه چیز ستونی */
    align-items: center;    /* وسط چین افقی */
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cafe-footer .contact-info p,
.cafe-footer .social-links a {
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center; /* متن و آیکن وسط کارت */
    gap: 8px;
    font-size: 20px;
}

.cafe-footer .social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cafe-footer .footer-bottom {
    margin-top: 30px;
    font-size: 20px;
    color: #000000;
}


/* Header Banner */
.header-banner {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 50%, #bcaaa4 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="0%" r="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.cafe-info {
    position: relative;
    z-index: 2;
}

.cafe-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    
    background-clip: text;
    
  
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px rgba(255, 248, 225, 0.5)); }
    to { filter: drop-shadow(0 0 20px rgba(255, 248, 225, 0.8)); }
}

.cafe-tagline {
    font-size: 1.4rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.coffee-steam {
    position: absolute;
    top: 2rem;
    right: 10%;
    font-size: 3rem;
    animation: steam 3s ease-in-out infinite;
}

@keyframes steam {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-10px) rotate(5deg); opacity: 1; }
}

/* Navigation */
.category-nav {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(141, 110, 99, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: transparent;
    border: 2px solid transparent;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    color: #8d6e63;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(141, 110, 99, 0.3);
}

.nav-btn.active {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    box-shadow: 0 5px 15px rgba(141, 110, 99, 0.4);
}

.nav-icon {
    font-size: 1.2rem;
}

/* Search Section */
.search-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box:focus-within {
    border-color: #8d6e63;
    box-shadow: 0 10px 30px rgba(141, 110, 99, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-family: inherit;
    background: transparent;
    color: #3e2723;
}

.search-box input::placeholder {
    color: rgba(62, 39, 35, 0.7);
}

.search-box button {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    border: none;
    padding: 1rem;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(141, 110, 99, 0.4);
}

/* Menu Content */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.category-section {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff4d0c;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    border-radius: 2px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.menu-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(141, 110, 99, 0.1);
    backdrop-filter: blur(10px);
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(141, 110, 99, 0.2);
}

.item-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #fafafa, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(141, 110, 99, 0.05), rgba(161, 136, 127, 0.05));
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-content {
    padding: 2rem;
    color: #3e2723;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.item-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 0.5rem;
}

.item-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #8d6e63;
    white-space: nowrap;
}

.item-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.item-actions {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 60px;
}

.add-to-cart {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(141, 110, 99, 0.4);
    background: linear-gradient(135deg, #a1887f, #8d6e63);
}

.add-to-cart:active {
    transform: translateY(0);
}

.item-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-available {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-unavailable {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
    width: 100%;
    text-align: center;
}

.menu-item.unavailable {
    opacity: 0.8;
    filter: grayscale(20%);
}

.menu-item.unavailable .item-actions {
    justify-content: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #8B4513;
}

.empty-state p {
    font-size: 1.2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.footer-content h3 {
    color: #d7ccc8;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    color: #d7ccc8;
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(215, 204, 200, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    background: #d7ccc8;
    color: #3e2723;
    transform: translateY(-2px);
}

.social-icon {
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    opacity: 0.7;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    z-index: 1000;
    max-width: 300px;
    width: 90%;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cart-header {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    padding: 1rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-cart:hover {
    background: rgba(255,255,255,0.2);
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    padding: 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #8d6e63;
    border-top: 2px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.total-label {
    font-size: 1rem;
    color: #666;
}

.total-amount {
    font-size: 1.4rem;
    color: #8d6e63;
    font-weight: 800;
}

.view-total-btn {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.view-total-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 110, 99, 0.3);
}

.order-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease;
}

.order-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

/* مدال جمع کل */
.total-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #8d6e63, #a1887f);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.order-summary {
    margin-bottom: 2rem;
}

.order-summary h3 {
    color: #8d6e63;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.item-name {
    font-weight: 600;
    color: #3e2723;
}

.item-info {
    font-size: 0.9rem;
    color: #666;
}

.item-price {
    font-weight: 700;
    color: #8d6e63;
}

.total-breakdown {
    background: #f8f8f8;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.total-breakdown h3 {
    color: #8d6e63;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.breakdown-item:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 2px solid #e0e0e0;
    font-weight: 700;
    font-size: 1.1rem;
    color: #8d6e63;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn.secondary {
    background: #f0f0f0;
    color: #666;
}

.modal-btn.secondary:hover {
    background: #e0e0e0;
}

.modal-btn.primary {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* مدال تأیید سفارش */
.order-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    background: white;
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10003;
    animation: successModalSlideIn 0.5s ease;
    overflow: hidden;
}

@keyframes successModalSlideIn {
    0% {
        transform: translateY(-100px) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateY(20px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    margin: 2rem 0 1rem 0;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-header {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.success-header h2 {
    color: #4CAF50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.success-header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.order-details {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 0 2rem;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.order-details h3 {
    color: #8d6e63;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.order-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.order-details .detail-item:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #4CAF50;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid #4CAF50;
}

.success-footer {
    padding: 2rem;
}

.success-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.success-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.success-btn:active {
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cafe-name {
        font-size: 2.5rem;
    }
    
    .cafe-tagline {
        font-size: 1.1rem;
    }
    
    .header-banner {
        padding: 2rem 1rem;
    }
    
    .nav-container {
        padding: 0.5rem;
        gap: 0.3rem;
    }
    
    .nav-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .menu-container {
        padding: 1rem;
    }
    
    .search-section {
        padding: 0 1rem;
    }
    
    .floating-cart {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        border-radius: 15px;
    }
    
    .cart-header {
        padding: 1rem;
    }
    
    .cart-header h3 {
        font-size: 1.1rem;
    }
    
    .cart-total {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .view-total-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .order-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .coffee-steam {
        display: none;
    }
    
    .footer-content {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    /* مدال ریسپانسیو */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
    
    .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* مدال موفقیت ریسپانسیو */
    .success-modal-content {
        width: 95%;
        max-width: none;
        margin: 1rem;
    }
    
    .success-header {
        padding: 0 1rem;
    }
    
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .order-details {
        margin: 0 1rem;
        padding: 1rem;
    }
    
    .success-footer {
        padding: 1.5rem;
    }
    
    .success-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cafe-name {
        font-size: 2rem;
    }
    
    .nav-btn {
        flex-direction: column;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .item-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .add-to-cart {
        width: 100%;
    }
    
    /* مدال موبایل کوچک */
    .modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 0.8rem;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: 70vh;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .item-details {
        width: 100%;
    }
    
    .modal-footer {
        padding: 0.8rem;
    }
    
    .modal-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* مدال موفقیت موبایل کوچک */
    .success-modal-content {
        width: 98%;
        margin: 0.5rem;
        border-radius: 20px;
    }
    
    .success-icon {
        font-size: 3rem;
        margin: 1.5rem 0 0.8rem 0;
    }
    
    .success-header {
        padding: 0 0.8rem;
    }
    
    .success-header h2 {
        font-size: 1.3rem;
    }
    
    .success-header p {
        font-size: 0.9rem;
    }
    
    .order-details {
        margin: 0 0.8rem;
        padding: 0.8rem;
    }
    
    .order-details h3 {
        font-size: 1rem;
    }
    
    .success-footer {
        padding: 1rem;
    }
    
    .success-btn {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    /* سبد خرید موبایل کوچک */
    .floating-cart {
        bottom: 0.5rem;
        right: 1.5rem;
        left: 0.5rem;
        border-radius: 12px;
    }
    
    .cart-header {
        padding: 0.8rem;
    }
    
    .cart-header h3 {
        font-size: 1rem;
    }
    
    .cart-total {
        padding: 0.8rem;
    }
    
    .view-total-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .order-btn {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8d6e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
