/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff6b35;
    --primary-light: #ff8c5a;
    --primary-dark: #e54e1b;
    --secondary-white: #ffffff;
    --bg-light: #fff5e6;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-orange), var(--primary-light));
    --gradient-reverse: linear-gradient(135deg, var(--primary-light), var(--primary-orange));
}

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* ===== HEADER STYLES ===== */
.ramadan-header {
    background: var(--gradient);
    padding: 30px 15px 50px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
    box-shadow: var(--shadow);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,...') repeat;
    opacity: 0.1;
    animation: movePattern 20s linear infinite;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.ramadan-crescent {
    font-size: 60px;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 10px;
}

.main-title {
    font-size: 32px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 10px;
    animation: slideInDown 0.8s ease;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0.95;
}

.price-badge {
    background: white;
    padding: 20px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}

.old-price {
    color: var(--text-gray);
    text-decoration: line-through;
    font-size: 18px;
    margin-left: 10px;
}

.new-price {
    color: var(--primary-orange);
    font-size: 36px;
    font-weight: 900;
    margin-left: 10px;
}

.save-badge {
    background: var(--primary-orange);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    display: inline-block;
}

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.countdown-box {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid var(--primary-orange);
}

.countdown-box h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

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

.timer-block {
    background: var(--gradient);
    color: white;
    padding: 15px 10px;
    border-radius: 10px;
    min-width: 70px;
    animation: countdownPulse 1s ease-in-out infinite;
}

.timer-number {
    font-size: 32px;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 14px;
    opacity: 0.9;
    display: block;
}

/* ===== LIVE NOTIFICATIONS ===== */
.live-notifications-section {
    margin: 20px 0;
}

.notifications-header {
    background: white;
    padding: 10px 15px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 10px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #00ff00;
    border-radius: 50%;
    animation: blink 1s infinite;
}

.notifications-container {
    background: white;
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-soft);
    max-height: 200px;
    overflow: hidden;
}

.notification-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

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

.notification-item i {
    color: var(--primary-orange);
}

.notification-item strong {
    color: var(--primary-orange);
    font-weight: 900;
}

/* ===== PRODUCT GALLERY ===== */
.product-gallery-section {
    margin: 20px 0;
}

.gallery-main {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.main-image:hover {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) #eee;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    object-fit: cover;
}

.thumbnail.active {
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

/* ===== VIDEO SECTION ===== */
.video-section {
    margin: 20px 0;
}

.video-container {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-container video {
    width: 100%;
    display: block;
}

/* ===== PRODUCT DETAILS ===== */
.product-details-section {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: var(--shadow-soft);
}

.product-header h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.stars {
    color: #ffc107;
    font-size: 20px;
    letter-spacing: 2px;
}

.rating-count {
    color: var(--text-gray);
    font-size: 14px;
}

.features-list {
    margin: 20px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateX(-5px);
    background: var(--gradient);
    color: white;
}

.feature-icon {
    font-size: 24px;
}

.feature-text strong {
    display: block;
    font-size: 16px;
}

.feature-text span {
    font-size: 14px;
    color: inherit;
    opacity: 0.9;
}

/* ===== REVIEWS GRID ===== */
.reviews-grid {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.review-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border-right: 3px solid var(--primary-orange);
    animation: fadeIn 0.5s ease;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.reviewer-name {
    font-weight: 700;
    color: var(--text-dark);
}

.reviewer-city {
    color: var(--text-gray);
    font-size: 12px;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
    margin-right: auto;
}

.review-text {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== STOCK COUNTER ===== */
.stock-section {
    margin: 20px 0;
}

.stock-counter {
    background: linear-gradient(135deg, #fff3e0, #ffe4cc);
    padding: 20px;
    border-radius: 50px;
    text-align: center;
    border: 2px solid var(--primary-orange);
    animation: pulse 2s ease-in-out infinite;
}

.stock-icon {
    font-size: 24px;
    margin-left: 10px;
}

.stock-text {
    color: var(--primary-orange);
    font-size: 20px;
    font-weight: 900;
    margin-left: 10px;
}

.stock-warning {
    color: var(--text-dark);
    font-size: 16px;
}

/* ===== ORDER FORM ===== */
.order-form-section {
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 30px 0;
    margin-top: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.form-header p {
    color: var(--text-gray);
    font-size: 14px;
}

.order-form {
    max-width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.required {
    color: var(--primary-orange);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-control.error {
    border-color: #ff0000;
}

/* GPS Button */
.location-group {
    margin-bottom: 20px;
}

.gps-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border: 2px dashed var(--primary-orange);
    border-radius: 10px;
    color: var(--primary-orange);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.gps-button:hover {
    background: var(--gradient);
    color: white;
    border-color: white;
}

.gps-button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* City Select */
.city-select {
    appearance: none;
    background-image: url("data:image/svg+xml,...");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
}

/* Card Section */
.card-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.card-section h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.card-section .note {
    color: var(--text-gray);
    font-size: 12px;
    margin-bottom: 15px;
}

.card-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.card-icon {
    width: 50px;
    height: 30px;
    object-fit: contain;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group.half {
    flex: 1;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 18px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.4);
    margin: 20px 0;
}

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

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.trust-item {
    text-align: center;
}

.trust-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

.trust-item span {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== FLOATING PROOF ===== */
.floating-proof {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-right: 3px solid var(--primary-orange);
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.proof-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.proof-icon {
    font-size: 20px;
}

.proof-text {
    font-size: 14px;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 30px 0;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}