/* ============================================= */
/* Social Media Buttons */
/* ============================================= */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-btn i {
  font-size: 1.2rem;
}

.btn-facebook {
  background-color: #3b5998;
  color: white;
  border: 1px solid #3b5998;
}

.btn-twitter {
  background-color: #1da1f2;
  color: white;
  border: 1px solid #1da1f2;
}

.btn-whatsapp {
  background-color: #25d366;
  color: white;
  border: 1px solid #25d366;
}

.btn-telegram {
  background-color: #0088cc;
  color: white;
  border: 1px solid #0088cc;
}

/* ============================================= */
/* Category Cards & Layout */
/* ============================================= */
.category-container {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

.category-container:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.category-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f1f1;
  background-color: #f9fafb;
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin: 0;
  position: relative;
  padding-bottom: 0.75rem;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 3px;
  background: #4299e1;
  border-radius: 3px;
}

/* ============================================= */
/* Category List Items */
/* ============================================= */
.category-list {
  padding: 0.5rem 0;
}

.category-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: #4a5568;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.category-item:hover {
  background: rgba(27, 25, 82, 0.2);
  color: #3182ce;
  border-left-color: #1b1952;
}

.category-item.active {
  background: rgba(27, 25, 82, 0.2);
  color: #3182ce;
  font-weight: 500;
  border-left-color: #1b1952;
}

.category-name {
  flex: 1;
  font-size: 0.95rem;
}

.products-count {
  background: #e2e8f0;
  color: #4a5568;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
}

/* ============================================= */
/* Subcategory Styles */
/* ============================================= */
.subcategory-card {
  border: 1px solid #edf2f7;
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.subcategory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: #bee3f8;
}

.subcategory-img-container {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.subcategory-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.subcategory-card:hover .subcategory-img {
  transform: scale(1.05);
}

.subcategory-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.subcategory-card:hover .subcategory-overlay {
  opacity: 1;
}

.subcategory-body {
  padding: 1rem;
  text-align: center;
}

.subcategory-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.subcategory-card:hover .subcategory-title {
  color: #3182ce;
}

/* ============================================= */
/* Share URL Field */
/* ============================================= */
.share-url-field {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-url-field:focus {
  outline: none;
  border-color: #90cdf4;
  box-shadow: 0 0 0 3px rgba(144, 205, 244, 0.3);
}

/* ============================================= */
/* Utility Classes */
/* ============================================= */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.transition-all {
  transition: all 0.3s ease;
}

.shadow-hover {
  transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Products Section Styles */
.products-area {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.products-count {
    background: #f1f1f1;
    color: #666;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.subcategories-list {
    padding-right: 20px;
    display: none;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.subcategory-item:hover, .subcategory-item.active {
    background-color: #e6f0ff;
    color: #1b1952;
}

.toggle-subcategories {
    cursor: pointer;
    transition: transform 0.3s;
    margin-right: 8px;
}

.toggle-subcategories.active {
    transform: rotate(180deg);
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.category-card:hover .hover-zoom {
    transform: scale(1.05);
}

.hover-primary:hover {
    color: #1b1952 !important;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.btn-outline-primary {
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: #1b1952;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .category-card {
        margin-bottom: 20px;
    }
}

/* Products Grid */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    color: #1b1952;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #f8b54c;
}

.sorting-options .form-select {
    border-color: #ddd;
    border-radius: 5px;
    width: 220px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.product-badge .badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 10px;
    margin-right: 5px;
}

.product-badge .new {
    background-color: #1b1952;
}

.product-badge .discount {
    background-color: #f8b54c;
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .btn {
    background: rgba(255,255,255,0.9);
    color: #1b1952;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.product-actions .btn:hover {
    background: #1b1952;
    color: white;
}

.product-details {
    padding: 20px;
}

.category-name {
    color: #1b1952;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.category-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.category-name a:hover {
    color: #f8b54c;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #1b1952;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: #1b1952;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-left: 5px;
}

.new-price {
    color: #f8b54c;
}

.details-btn {
    background-color: #1b1952;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background-color: #84cbef;
    color: white;
}

/* Pagination */
.custom-pagination {
    display: flex;
    justify-content: center;
}

.custom-pagination .pagination {
    margin: 0;
}

.custom-pagination .page-item .page-link {
    color: #1b1952;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 5px;
}

.custom-pagination .page-item.active .page-link {
    background-color: #1b1952;
    border-color: #1b1952;
    color: white;
}

.custom-pagination .page-item:hover .page-link {
    background-color: rgba(27, 25, 82, 0.1);
    color: #1b1952;
}

/* Responsive */
@media (max-width: 991px) {
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .sorting-options {
        margin-top: 15px;
        width: 100%;
    }

    .sorting-options .form-select {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .products-area {
        padding: 50px 0;
    }

    .product-card {
        margin-bottom: 20px;
    }
}

/* Latest Products Section */
.latest-products {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
}

.latest-products .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.latest-products .section-title {
    color: #1b1952;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.latest-products .section-title:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #f8b54c;
}

.latest-products .view-all {
    color: #1b1952;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.latest-products .view-all i {
    margin-right: 8px;
    transition: all 0.3s ease;
}

.latest-products .view-all:hover {
    color: #84cbef;
}

.latest-products .view-all:hover i {
    transform: translateX(-5px);
}

/* Product Card */
.latest-products .product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.latest-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(27, 25, 82, 0.1);
}

.latest-products .product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.latest-products .badge {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 5px;
}

.latest-products .badge.new {
    background-color: #1b1952;
    color: #fff;
}

.latest-products .badge.discount {
    background-color: #f8b54c;
    color: #fff;
}

.latest-products .product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

.latest-products .product-card:hover .product-image img {
    transform: scale(1.1);
}

.latest-products .product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
}

.latest-products .product-card:hover .product-actions {
    opacity: 1;
}

.latest-products .product-actions .btn {
    background: rgba(255,255,255,0.9);
    color: #1b1952;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: all 0.3s ease;
    border: none;
}

.latest-products .product-actions .btn:hover {
    background: #1b1952;
    color: #fff;
}

.latest-products .product-details {
    padding: 20px;
}

.latest-products .product-category {
    color: #84cbef;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.latest-products .product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.latest-products .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-products .product-title a:hover {
    color: #1b1952;
}

.latest-products .product-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.latest-products .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.latest-products .product-price {
    display: flex;
    flex-direction: column;
}

.latest-products .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
}

.latest-products .new-price {
    color: #f8b54c;
    font-weight: 700;
    font-size: 16px;
}

.latest-products .current-price {
    color: #1b1952;
    font-weight: 700;
    font-size: 16px;
}

.latest-products .add-to-cart {
    background-color: #1b1952;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.latest-products .add-to-cart:hover {
    background-color: #84cbef;
    transform: scale(1.1);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .latest-products .product-card {
        margin-bottom: 30px;
    }

    .latest-products .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .latest-products .view-all {
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .latest-products {
        padding: 60px 0;
    }

    .latest-products .section-title {
        font-size: 24px;
    }

    .latest-products .col-sm-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* تنسيقات قسم التصنيفات */
.categories-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.categories-section .section-title {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.categories-section .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

.category-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

.shadow-sm-hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.shadow-sm-hover:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.category-img-container {
    overflow: hidden;
    height: 180px;
    position: relative;
}

.object-fit-cover {
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .object-fit-cover {
    transform: scale(1.1);
}

.category-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
    opacity: 0;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-top: 0.5rem;
}

.empty-state {
    background: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
}

/* Category Groups */
.category-group {
    position: relative;
    margin-bottom: 5px;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.category-item:hover, .category-item.active {
    background-color: #f0f7ff;
    color: #1b1952;
}

.subcategories-list {
    padding-right: 20px;
    display: none;
    margin-top: 5px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.subcategory-item:hover, .subcategory-item.active {
    background-color: #e6f0ff;
    color: #1b1952;
}

/* Category Cards in Categories Section */
.categories-section .category-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categories-section .category-card:hover {
    transform: translateY(-5px);
}

.categories-section .category-img-container {
    height: 160px;
    background: #f5f5f5;
}

.categories-section .subcategories-preview {
    margin-top: 10px;
}

.categories-section .subcategories-preview .badge {
    transition: all 0.2s ease;
}

.categories-section .subcategories-preview .badge:hover {
    background-color: #1b1952 !important;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: #1b1952;
    margin-left: 15px;
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #1b1952;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form .form-control {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: #1b1952;
    box-shadow: 0 0 0 0.25rem rgba(27, 25, 82, 0.25);
}

.contact-form textarea {
    min-height: 150px;
}

/* Subscribe Section */
.suscribe-area {
    background-color: #1b1952;
    padding: 60px 0;
    color: white;
    text-align: center;
}

.suscribe-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sus-btn {
    display: inline-block;
    background: #f8b54c;
    color: #1b1952;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-top-left-radius:50px !important;
    border-bottom-left-radius:50px !important;
}

.sus-btn:hover {
    background: white;
    color: #1b1952;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.text-main {
    color: #1b1952 !important;
}
.btn-main {
    background-color: #1b1952;
    color: #fff;
    border: none;
    transition: 0.3s;
}
.btn-main:hover {
    background-color: #322f7a;
    color: #fff;
}
.section-title {
    font-weight: 700;
}
.payment-info {
    background-color: #fff;
    transition: 0.3s;
}
.payment-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.account-number {
    letter-spacing: 1px;
}
