/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    direction: rtl;
    text-align: right;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Keyframe animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Header styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-direction: row-reverse;
}

.header-brand {
    display: flex;
    align-items: center;
}

.logo h1 a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    transition: color 0.3s;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.logo h1 a:hover {
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.mobile-menu-toggle:hover {
    background-color: #f5f5f5;
}

.main-nav .nav-menu {
    display: flex;
    list-style: none;
    flex-direction: row-reverse;
}

.main-nav .nav-menu li {
    position: relative;
    margin: 0 15px;
}

.main-nav .nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 4px;
}

.main-nav .nav-menu li a:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    min-width: 200px;
    display: none;
    z-index: 1000;
}

body[dir='rtl'] .dropdown-menu {
    left: auto;
    right: 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.header-actions {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 15px;
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.user-menu-toggle:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.user-avatar {
    font-size: 1.5rem;
    color: #3498db;
}

.username {
    margin: 0 5px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    min-width: 280px;
    display: none;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

body[dir='rtl'] .user-dropdown {
    left: auto;
    right: 0;
}

.user-dropdown.active {
    display: block;
}

.user-info {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar-container {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 50%;
    padding: 5px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar-large {
    font-size: 2.5rem;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: #2c3e50;
}

.user-email {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.user-role {
    margin-top: 5px;
}

.role-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.admin {
    background-color: #e74c3c;
    color: white;
}

.role-badge.user {
    background-color: #2ecc71;
    color: white;
}

.user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.user-dropdown li a:hover {
    background-color: #f8f9fa;
    color: #3498db;
    border-right: 3px solid #3498db;
}

.user-dropdown li a i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
}

.user-dropdown li a:hover i {
    color: #3498db;
}

.user-dropdown .divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 5px 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    margin-right: 10px;
}

/* Notification badge styles */
.notification-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    left: -8px;
}

.btn-primary {
    position: relative;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: white;
}

.cart-icon {
    position: relative;
    margin-right: 20px;
    color: #333;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.cart-icon:hover {
    background-color: #f5f5f5;
}

.cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* Hero section */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 120px 20px;
    margin-bottom: 40px;
    border-radius: 0;
    direction: rtl;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(44, 62, 80, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.hero-title span {
    color: #f39c12;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-buttons .btn {
    margin: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    padding: 12px 30px;
    font-size: 1.1rem;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn::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: 0.5s;
}

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

.hero-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.9s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    color: #f39c12;
    font-size: 1.4rem;
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 10px;
    font-style: italic;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(to left, #3498db, #2c3e50);
    margin: 15px auto;
    border-radius: 2px;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    direction: rtl;
}

.category-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-top: 10px;
    font-style: italic;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    direction: rtl;
}

/* Support grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    direction: rtl;
}

/* Product cards */
.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: right;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
    direction: rtl;
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 16px;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.favorite-btn.active {
    background: #e74c3c;
    color: white;
}

.favorite-btn.active:hover {
    background: #c0392b;
}

.favorite-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.favorite-btn .favorite-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
}

.image-placeholder i {
    font-size: 3rem;
    color: #bdc3c7;
}

.offer-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
}

.offer-placeholder i {
    font-size: 3rem;
    color: #f39c12;
}

.product-image-large img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
}

.product-image-preview img {
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-image .placeholder-icon {
    font-size: 3rem;
    color: #bbb;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.product-info h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #2c3e50;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.product-category {
    color: #3498db;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.product-info p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
    margin-top: auto;
}

.btn-add-to-cart {
    width: 100%;
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-add-to-cart:hover {
    background-color: #27ae60;
}

/* Category cards */
.category-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: right;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-image-container {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #eee;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.category-info h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Support cards */
.support-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: right;
    border: 1px solid #e9ecef;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.support-icon {
    font-size: 3rem;
    margin: 20px auto 15px;
    color: #3498db;
    text-align: center;
}

.support-info {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.support-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #2c3e50;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

.support-info p {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
    text-align: center;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-image {
    background-color: #eee;
    border-radius: 8px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-detail-image .placeholder-icon {
    font-size: 5rem;
    color: #bbb;
}

.product-detail-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-detail-info .product-price {
    font-size: 2rem;
    margin: 20px 0;
}

.product-detail-info .product-description {
    margin: 20px 0;
    line-height: 1.8;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-selector label {
    margin-right: 15px;
    font-weight: 500;
}

.quantity-input {
    display: flex;
    align-items: center;
}

.quantity-input button {
    width: 40px;
    height: 40px;
    background-color: #eee;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.quantity-input input {
    width: 50px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

/* Cart styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background-color: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    background-color: #eee;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.quantity-control input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
}

.cart-total {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    text-align: right;
}

.form-group input[type="file"] {
    padding: 5px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Buttons */
.btn-large {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* Checkout form */
.checkout-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

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

.checkout-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.payment-details {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #dee2e6;
}

.payment-details .form-group {
    margin-bottom: 15px;
}

.order-summary {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Admin panel */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-nav {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.admin-nav ul {
    display: flex;
    list-style: none;
}

.admin-nav ul li {
    margin-right: 20px;
}

.admin-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background-color: #3498db;
    color: white;
}

/* Dashboard stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    direction: rtl;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    direction: rtl;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #3498db;
}

.stat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

/* Tickets table */
.tickets-table-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.tickets-table {
    width: 100%;
    border-collapse: collapse;
}

.tickets-table th,
.tickets-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tickets-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.tickets-table tbody tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-new {
    background-color: #fff3cd;
    color: #856404;
}

.status-in-review {
    background-color: #cce5ff;
    color: #004085;
}

.status-resolved {
    background-color: #d4edda;
    color: #155724;
}

.status-closed {
    background-color: #e2e3e5;
    color: #383d41;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-low {
    background-color: #d1ecf1;
    color: #0c5460;
}

.priority-medium {
    background-color: #fff3cd;
    color: #856404;
}

.priority-high {
    background-color: #f8d7da;
    color: #721c24;
}

.priority-urgent {
    background-color: #c2185b;
    color: #fff;
}

.btn-small {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    direction: rtl;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: right;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Favorites page */
.favorites-page .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.favorites-page .section-title h2 {
    margin: 0;
}

.favorites-page .empty-favorites,
.empty-products {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    direction: rtl;
}

.favorites-page .empty-favorites i,
.empty-products i {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-products h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-products p {
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    background-color: #2ecc71;
    color: white;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease;
}

.notification.message.error {
    background-color: #e74c3c;
}

.notification.message.info {
    background-color: #3498db;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Filters */
.filters {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    direction: rtl;
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
    flex-direction: row-reverse;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    text-align: right;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: #aab7c4;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    align-self: end;
    margin-bottom: 1px;
    flex-direction: row-reverse;
}

.filter-buttons .btn {
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.filter-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.filter-buttons .btn:active {
    transform: translateY(0);
}

/* Discount styles */
.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 0.9rem;
}

.discounted-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.2rem;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Category image styles */
.category-image {
    width: 100%;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
}

.category-electronics {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                repeating-linear-gradient(45deg, #3498db, #3498db 10px, #2980b9 10px, #2980b9 20px);
}

.category-clothing {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                repeating-linear-gradient(45deg, #e74c3c, #e74c3c 10px, #c0392b 10px, #c0392b 20px);
}

.category-sports {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                repeating-linear-gradient(45deg, #2ecc71, #2ecc71 10px, #27ae60 10px, #27ae60 20px);
}

.category-books {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                repeating-linear-gradient(45deg, #f39c12, #f39c12 10px, #d35400 10px, #d35400 20px);
}

.category-home-garden {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), 
                repeating-linear-gradient(45deg, #9b59b6, #9b59b6 10px, #8e44ad 10px, #8e44ad 20px);
}

/* FAQ styles */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

body[dir='rtl'] .faq-item {
    text-align: right;
}

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

.faq-item h4 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.faq-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

body[dir='rtl'] .faq-item h4,
body[dir='rtl'] .faq-item p {
    text-align: right;
}

/* Returns Policy styles */
.returns-policy ul,
.returns-policy ol {
    direction: rtl;
    text-align: right;
    padding-right: 20px;
}

.returns-policy ul li,
.returns-policy ol li {
    text-align: right;
}

/* Shipping Info styles */
.shipping-info ul,
.shipping-info ol {
    direction: rtl;
    text-align: right;
    padding-right: 20px;
}

.shipping-info ul li,
.shipping-info ol li {
    text-align: right;
}

.shipping-info p {
    direction: rtl;
    text-align: right;
}

/* Ticket Creation styles */
.ticket-create .form-group label {
    direction: rtl;
    text-align: right;
}

.ticket-create .form-group select,
.ticket-create .form-group input,
.ticket-create .form-group textarea {
    direction: rtl;
}

.ticket-create .form-text {
    direction: rtl;
    text-align: right;
}

/* Cart styles */
.cart-table th,
.cart-table td {
    direction: rtl;
    text-align: right;
}

.cart-actions {
    direction: rtl;
    text-align: right;
}

.cart-actions > div {
    float: left;
}

@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-actions > div {
        float: none;
        margin-top: 15px;
    }
}

/* Checkout styles */
.checkout-form h3,
.order-summary h3 {
    direction: rtl;
    text-align: right;
}

.checkout-form .form-group label {
    direction: rtl;
    text-align: right;
}

.checkout-form .form-group input,
.checkout-form .form-group textarea,
.checkout-form .form-group select {
    direction: rtl;
}

.order-item {
    direction: rtl;
    text-align: right;
}

.order-total {
    direction: rtl;
    text-align: right;
}

.checkout-content {
    direction: rtl;
}

@media (max-width: 768px) {
    .checkout-content {
        flex-direction: column;
    }
}

/* Favorites styles */
.favorites-page .section-title {
    direction: rtl;
    text-align: center;
}

.favorites-page .message.info p {
    direction: rtl;
    text-align: center;
}

.favorites-page .product-card .product-info {
    direction: rtl;
    text-align: right;
}

.favorites-page .product-card .product-price {
    direction: rtl;
    text-align: right;
}

/* Products page styles */
.products-page .filters {
    direction: rtl;
    text-align: right;
}

.products-page .filter-row {
    direction: rtl;
    text-align: right;
}

.products-page .filter-group label {
    direction: rtl;
    text-align: right;
}

.products-page .filter-group input,
.products-page .filter-group select {
    direction: rtl;
}

.products-page .filter-buttons {
    direction: rtl;
    text-align: right;
}

.products-page .category-description {
    direction: rtl;
    text-align: center;
}

.products-page .product-card .product-info {
    direction: rtl;
    text-align: right;
}

.products-page .product-card .product-category {
    direction: rtl;
    text-align: right;
}

.products-page .product-card .product-price {
    direction: rtl;
    text-align: right;
}

.products-page .empty-products {
    direction: rtl;
    text-align: center;
}

/* Text centering utility */
.text-center {
    text-align: center;
}

/* Profile page styles */
.profile-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body[dir='rtl'] .profile-header {
    flex-direction: row-reverse;
}

.profile-avatar {
    font-size: 5rem;
    margin-right: 20px;
}

body[dir='rtl'] .profile-avatar {
    margin-right: 0;
    margin-left: 20px;
}

.profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.profile-email {
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.profile-role {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.profile-role.user {
    background-color: #2ecc71;
}

.profile-role.admin {
    background-color: #e74c3c;
}

.profile-member-since {
    opacity: 0.8;
}

.profile-tabs {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
    body[dir='rtl'] .tab-buttons {
    flex-direction: row-reverse;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button.active {
    color: #3498db;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #3498db;
}

body[dir='rtl'] .tab-button.active::after {
    left: auto;
    right: 0;
}

.tab-button:hover:not(.active) {
    background-color: #f8f9fa;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-content-wrapper {
    padding: 30px;
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}

.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form .form-group {
    margin-bottom: 0;
}

.order-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    flex-direction: row-reverse;
}

.order-info h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.order-date {
    margin: 0;
    color: #7f8c8d;
}

.order-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
}

.order-status.completed {
    background-color: #2ecc71;
    color: white;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.order-amount {
    font-size: 1.1rem;
}

.order-amount strong {
    font-size: 1.3rem;
    color: #e74c3c;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-state p {
    color: #7f8c8d;
    max-width: 500px;
    margin: 0 auto 25px;
}

.favorites-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-container {
    margin-bottom: 20px;
}

/* RTL specific styles */
body[dir='rtl'] .form-group label {
    text-align: right;
}

.order-amount {
    text-align: left;
}

.tab-content-wrapper {
    text-align: right;
}

.profile-section h2 {
    text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: row;
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav .nav-menu {
        flex-direction: column;
        align-items: flex-end;
    }
    
    .main-nav .nav-menu li {
        margin: 0;
        width: 100%;
    }
    
    .main-nav .nav-menu li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        justify-content: flex-end;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        display: none;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .header-actions {
        margin-top: 0;
        gap: 10px;
    }
    
    .user-menu-toggle {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .username {
        display: none;
    }
    
    .user-dropdown {
        position: static;
        box-shadow: none;
        border-radius: 0;
        min-width: 100%;
        display: none;
        margin-top: 0;
        border: none;
        border-top: 1px solid #eee;
    }
    
    .user-dropdown.active {
        display: block;
    }
    
    .hero {
        padding: 80px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-features {
        gap: 20px;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-nav ul {
        flex-wrap: wrap;
    }
    
    .admin-nav ul li {
        margin-bottom: 10px;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-buttons {
        align-self: stretch;
        margin-top: 10px;
    }
    
    .filter-buttons .btn {
        flex: 1;
    }
    
    .category-image {
        height: 120px;
    }
    
    .categories-grid,
    .support-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .tickets-table th,
    .tickets-table td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .categories-grid,
    .support-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-nav .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .main-nav .nav-menu li {
        margin: 5px;
    }
    
    .btn {
        margin: 5px;
        padding: 6px 12px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .filters {
        padding: 20px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group select,
    .filter-group input {
        padding: 10px 12px;
    }
}

/* Support section styles */
.product-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive adjustments for homepage */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Special Offers Section */
.animated-offers {
    animation: fadeIn 1s ease;
}

.offer-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #e74c3c, #f39c12);
    background-size: 400% 400%;
    animation: gradientAnimation 3s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.offer-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
}

.offer-placeholder i {
    font-size: 3rem;
    color: #3498db;
}

/* Product Popup Notification */
.product-popup {
    position: fixed;
    top: 20px;
    right: -400px; /* Start off-screen to the right */
    width: 350px;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blur effect for depth */
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    transition: right 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Smooth slide-in animation */
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0;
}

.product-popup.show {
    right: 20px; /* Slide in from right */
}

.product-popup-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-popup-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    opacity: 0.8;
}

.product-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    opacity: 1;
}

.product-popup-content {
    padding: 25px;
    display: flex;
    gap: 20px;
}

.product-popup-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-popup-image i {
    font-size: 2.5rem;
    color: #ccc;
}

.product-popup-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-popup-details h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.product-popup-category {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.product-popup-description {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 15px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.product-popup-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3498db;
    margin: 0 0 20px 0;
}

.product-popup-actions {
    display: flex;
    gap: 12px;
}

.product-popup-btn {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-popup-view {
    background-color: #3498db;
    color: white;
}

.product-popup-view:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-popup-add-cart {
    background-color: #2ecc71;
    color: white;
}

.product-popup-add-cart:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for popup */
@media (max-width: 480px) {
    .product-popup {
        width: calc(100% - 40px);
        right: -100%;
    }
    
    .product-popup.show {
        right: 20px;
    }
    
    .product-popup-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .product-popup-image {
        width: 120px;
        height: 120px;
    }
    
    .product-popup-actions {
        width: 100%;
    }
}

/* Product Comments Section */
.product-comments-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
    direction: rtl;
}

.product-comments-section h2 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
    font-size: 1.8rem;
}

.add-comment-form {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.add-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    direction: rtl;
    text-align: right;
}

.add-comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-comment-form .btn {
    margin-top: 15px;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.login-to-comment {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.login-to-comment .btn {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

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

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.comment-time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-edit-comment {
    background-color: #3498db;
    color: white;
}

.btn-edit-comment:hover {
    background-color: #2980b9;
}

.btn-delete-comment {
    background-color: #e74c3c;
    color: white;
}

.btn-delete-comment:hover {
    background-color: #c0392b;
}

.comment-content {
    color: #34495e;
    line-height: 1.7;
    font-size: 1rem;
}

.comment-text {
    margin-bottom: 15px;
    /* Ensure emojis are displayed properly */
    font-family: 'Tajawal', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.edit-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: 'Tajawal', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
}

.edit-comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.edit-comment-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.edit-comment-actions .btn {
    padding: 8px 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-save-comment {
    background-color: #2ecc71;
    color: white;
}

.btn-save-comment:hover {
    background-color: #27ae60;
}

.btn-cancel-edit {
    background-color: #95a5a6;
    color: white;
}

.btn-cancel-edit:hover {
    background-color: #7f8c8d;
}

.edit-comment-message {
    margin-top: 10px;
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

/* Responsive adjustments for comments */
@media (max-width: 768px) {
    .product-comments-section {
        padding: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-time {
        align-self: flex-start;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}
/* Product detail enhanced */
.product-detail-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-image-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-image-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #eee;
    cursor: pointer;
/* Product detail enhanced */
.product-detail-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-image-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.product-image-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #3498db;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-breadcrumbs {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.product-breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.product-breadcrumbs a:hover {
    text-decoration: underline;
}

.product-title {
    font-size: 2.2rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.product-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.product-category-tag {
    background: #e1f0fa;
    color: #3498db;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f39c12;
}

.product-rating span {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-right: 5px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-price-final {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.product-price-original {
    font-size: 1.4rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.product-price-discounted {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e74c3c;
}

.discount-badge {
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.product-description-enhanced h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.4rem;
}

.product-description-enhanced p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
}

.quantity-selector label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #eee;
}

.quantity-input input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-input input:focus {
    outline: none;
}

.btn-add-to-cart-enhanced,
.btn-login-to-purchase {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.favorite-btn-large {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.favorite-btn-large:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.favorite-btn-large.active {
    background: #e74c3c;
    color: white;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.product-share span {
    font-weight: 600;
    color: #2c3e50;
}

.social-share {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.share-btn.facebook { background: #3b5998; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy-link { background: #3498db; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Product Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.feature-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.feature-card p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* Enhanced Comments Section */
.product-comments-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
    direction: rtl;
}

.product-comments-section h2 {
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
}

.add-comment-form {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.add-comment-form textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    resize: vertical;
    font-family: 'Tajawal', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem;
    transition: border-color 0.3s ease;
    direction: rtl;
    text-align: right;
    min-height: 120px;
}

.add-comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.add-comment-form .btn {
    margin-top: 15px;
    padding: 14px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.login-to-comment {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.login-to-comment .btn {
    padding: 14px 30px;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.comment-item:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comment-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.comment-time {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.comment-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.btn-edit-comment {
    background-color: #3498db;
    color: white;
}

.btn-edit-comment:hover {
    background-color: #2980b9;
}

.btn-delete-comment {
    background-color: #e74c3c;
    color: white;
}

.btn-delete-comment:hover {
    background-color: #c0392b;
}

.comment-content {
    color: #34495e;
    line-height: 1.7;
    font-size: 1.05rem;
}

.comment-text {
    margin-bottom: 20px;
    /* Ensure emojis are displayed properly */
    font-family: 'Tajawal', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.edit-comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    font-family: 'Tajawal', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    direction: rtl;
    text-align: right;
}

.edit-comment-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.edit-comment-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.edit-comment-actions .btn {
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.95rem;
}

.btn-save-comment {
    background-color: #2ecc71;
    color: white;
}

.btn-save-comment:hover {
    background-color: #27ae60;
}

.btn-cancel-edit {
    background-color: #95a5a6;
    color: white;
}

.btn-cancel-edit:hover {
    background-color: #7f8c8d;
}

.edit-comment-message {
    margin-top: 10px;
}

.no-comments {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 50px;
    background-color: #f8f9fa;
    border-radius: 12px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .product-detail-enhanced {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price-final,
    .product-price-discounted {
        font-size: 1.8rem;
    }
    
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Responsive adjustments for comments */
@media (max-width: 768px) {
    .product-comments-section {
        padding: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-time {
        align-self: flex-start;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}
}

@media (max-width: 768px) {
    .product-detail-enhanced {
        padding: 20px;
        margin: 20px 0;
    }
    
    .product-comments-section {
        padding: 25px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}
    
    .product-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

@media (max-width: 480px) {
    .product-detail-enhanced {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price-final,
    .product-price-discounted {
        font-size: 1.5rem;
    }
    
    .product-price-original {
        font-size: 1.1rem;
    }
    
    .quantity-input {
        width: 100%;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
    }
    
    .quantity-input input {
        width: 50px;
        height: 40px;
    }
    
    .product-comments-section {
        padding: 20px;
    }
    
    .comment-item {
        padding: 20px;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

/* Responsive adjustments for comments */
@media (max-width: 768px) {
    .product-comments-section {
        padding: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-time {
        align-self: flex-start;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}
