* {
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    margin: 0;
    background: #f5f6fa;
      --sb-track-color: #dfe6e9;
  --sb-thumb-color: #6c5ce7;
  --sb-size: 4px;
}
body::-webkit-scrollbar {
  width: var(--sb-size);
}

body::-webkit-scrollbar-track {
  background: var(--sb-track-color);
  border-radius: 3px;
}

body::-webkit-scrollbar-thumb {
  background: var(--sb-thumb-color);
  border-radius: 3px;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
/* adv */
.top-banner {
    width: 100%;
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 2000;
}

/* زر واتساب */
.whatsapp-btn {
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    transition: 0.3s;
}

/* Hover يخليه واضح clickable */
.whatsapp-btn:hover {
    background: #1ebe5d;
    transform: scale(1.05);
}

/* موبايل */
@media (max-width: 600px) {
    .top-banner {
        flex-direction: column;
        gap: 5px;
    }
}
/* Navbar */
.navbar {
    position: sticky;
    top: 60px;
    z-index: 1000;
    width: 100%;
}

/* Container */
.nav-container {
    max-width: 1100px;
    margin: auto;
    padding: 8px 20px;
    border-radius: 50px;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Logo center */
.logo {
    display: flex;
    justify-content: center;
}

.logo img {
    height: 50px;
}

/* Side */
.nav-side {
    display: flex;
    align-items: center;
}

/* زر */
.back-btn {
    background: #6c5ce7;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.back-btn:hover {
    background: #4834d4;
}

/* Scroll effect */
.navbar.scrolled .nav-container {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Mobile */
@media (max-width: 600px) {
    .back-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}
/* Banner */
.banner img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
}

/* Title */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #4834d4;
    font-size: 32px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c5ce7;
}
/* Categories */
.categories-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

/* Scroll container */
.main-categories {
    display: flex;
    gap: 10px;
    padding: 0 0 14px;
}




.sub-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 40px 14px;
    scrollbar-width: none;
}

.sub-categories::-webkit-scrollbar {
    display: none;
}

/* Buttons */

.main-categories button,
.sub-categories button {
    border: none;
    background: #f1f2f6;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
    font-size: 14px;
    color: #444;
}
.main-categories button {
    flex: 1;
    text-align: center;
}
/* Active */

.main-categories button.active,
.sub-categories button.active {
        background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}
/* Hover */
.categories button:hover {
    background: #4834d4;
    color: white;
    transform: translateY(-2px);
}

/* Scroll buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-58%);
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    z-index: 2;
    font-size: 18px;
    line-height: 0;
    transition: 0.3s;
}

/* hover */
.scroll-btn:hover {
    background: #6c5ce7;
    color: white;
}

/* positions */
.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.categories-wrapper::before,
.categories-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 1;
}

.categories-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #f5f6fa, transparent);
}

.categories-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #f5f6fa, transparent);
}
/* Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}
@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}
@media (min-width: 1200px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}
@media (min-width: 1400px) {
    .offers-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 25px;
    }
}





/* Card */
.offer-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #6c5ce7;
    overflow: hidden;
    transition: transform 0.3s;
    width: 100%;
}
.offer-card::before {
    left: -30px;
}
.offer-card::after {
    right: -30px;
}
.offer-card::before, .offer-card::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 60px;
    background: #6c5ce733;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 1;
}
.offer-card:hover {
    transform: translateY(-3px);
}

/* Logo */
.app-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin: 0 auto 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content .content-entry img {
    margin: 0px;
}
.content .content-entry img {
    margin: 15px 0 25px;
}
.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
img {
    max-width: 100%;
}

/* Name */
.app-name {
    font-weight: bold;
    color: #4834d4;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Code */
.offer-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f2ff;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px dashed #6c5ce7;
    width: 100%;
}

.code {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #4834d4;
    font-size: 14px;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
    direction: ltr;
}

/* Button */
.copy-btn {
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #00b894 !important;
}

/* Description */
.offer-description {
    font-size: 13px;
    color: #666;
}

/* Instructions */
.instructions {
    text-align: center;
    margin-top: 25px;
    padding: 10px;
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
}
/* Footer */
.custom-footer {
    position: relative;
    background: linear-gradient(45deg, #6c5ce7, #4834d4);
    color: white;
    margin-top: 80px;
    padding-top: 120px;
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

/* Curve */
.footer-curve {
    position: absolute;
    top: -80px;
    left: 0;
    width: 100%;
    height: 160px;
    background: #f5f6fa;
    border-bottom-left-radius: 100% 80px;
    border-bottom-right-radius: 100% 80px;
}

/* Content */
.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Logo */
.footer-logo img {
    width: 120px;
    margin-bottom: 20px;
}

/* Social */
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 30px;
    transition: 0.3s;
}

.footer-social a:hover {
    background: white;
    color: #4834d4;
}


.footer-links h3 {
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 8px;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* Mobile */
@media (max-width: 600px) {
    .footer-logo img {
        width: 90px;
    }
}
/* Links */
.s-menu-footer-list {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    .s-menu-footer-list {
        gap: 10px;
        flex-direction: column  ;
    }
}
