/* ==========================================================================
   CANDY STORE - Luxury & Modern Stylesheet (2026)
   ========================================================================== */

:root {
    --primary-pink: #ff6b9d;
    --primary-dark: #e04a7e;
    --accent-rose: #f472b6;
    --accent-gold: #d4af37;
    --bg-soft: #fff7f9;
    --bg-card: #ffffff;
    --text-dark: #1e1b1d;
    --text-muted: #6b7280;
    --border-color: #fce7f3;
    --shadow-soft: 0 10px 30px rgba(244, 114, 182, 0.12);
    --shadow-hover: 0 20px 40px rgba(244, 114, 182, 0.22);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --font-main: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

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

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.brand-icon {
    font-size: 1.8rem;
    animation: gentleWiggle 3s infinite ease-in-out;
}

.brand-logo .highlight {
    color: var(--primary-pink);
    font-weight: 800;
}

.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.icon-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.icon-link.tiktok {
    background: #000000;
}

.icon-link.facebook {
    background: #1877f2;
}

.icon-link:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 70px 0 60px;
    background: radial-gradient(circle at 50% 20%, #ffeaf2 0%, #fff7f9 70%);
    text-align: center;
    overflow: hidden;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(244, 114, 182, 0.15);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(224, 74, 126, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(224, 74, 126, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-dark);
    border: 2px solid #fbcfe8;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: #fdf2f8;
    border-color: var(--primary-pink);
    transform: translateY(-3px);
}

/* Social Chips in Hero */
.social-cards {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.social-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

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

.social-chip.ig i { color: #e1306c; }
.social-chip.tt i { color: #000000; }
.social-chip.fb i { color: #1877f2; }

.social-chip small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-right: 4px;
}

.social-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(244, 114, 182, 0.2);
    border-color: var(--primary-pink);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    padding: 26px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 0.95rem;
    background: #ffe4e6;
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-pink);
    color: #ffffff;
    border-color: var(--primary-pink);
    box-shadow: 0 6px 18px rgba(255, 107, 157, 0.3);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 30px;
}

.product-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: #fbcfe8;
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 107, 157, 0.92);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-badge.new {
    background: rgba(212, 175, 55, 0.92);
}

.product-image-wrap {
    width: 100%;
    height: 270px;
    overflow: hidden;
    background: #fdf2f8;
}

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

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

.product-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-pink);
    margin-bottom: 6px;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #fce7f3;
}

.product-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.product-price small {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.btn-order {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary-dark);
    border: 1.5px solid var(--primary-pink);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-order:hover {
    background: var(--primary-pink);
    color: #ffffff;
    transform: scale(1.04);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 50px 0 70px;
}

.cta-card {
    background: linear-gradient(135deg, #ffeef5 0%, #fff7f9 100%);
    border: 2px dashed #fbcfe8;
    border-radius: var(--radius-xl);
    padding: 50px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cta-card p {
    font-size: 1.15rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-ig-cta {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.3);
    transition: all 0.3s ease;
}

.btn-tt-cta {
    background: #000000;
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.btn-fb-cta {
    background: #1877f2;
    color: #fff;
    padding: 13px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.25);
    transition: all 0.3s ease;
}

.cta-buttons a:hover {
    transform: translateY(-4px) scale(1.03);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 450px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-pink);
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid #fce7f3;
    width: 100%;
    color: var(--text-muted);
}

.footer-copyright strong {
    color: var(--primary-dark);
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: linear-gradient(135deg, #e1306c, #fd1d1d);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.45);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 32px rgba(225, 48, 108, 0.55);
}

/* Animations */
@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        justify-content: center;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}
