/* =============================================
   Packforyou - Main Stylesheet
   ============================================= */

/* === General === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

/* === Top Bar === */
.top-bar {
    background-color: #1e293b;
    color: #94a3b8;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar a {
    color: #94a3b8;
}

/* === Navbar === */
.navbar {
    padding: 12px 0;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.brand-text .text-primary {
    color: #0d6efd !important;
}

.navbar .nav-link {
    font-weight: 500;
    padding: 8px 16px !important;
    color: #475569;
    transition: color 0.3s;
}

.navbar .nav-link:hover {
    color: #0d6efd;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f0fe 50%, #f5f3ff 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.3;
    color: #1e293b;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
}

.hero-icon {
    font-size: 12rem;
    color: #0d6efd;
    opacity: 0.15;
}

.hero-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
}

.min-vh-50 {
    min-height: 50vh;
}

/* === Feature Cards === */
.feature-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #fff;
    font-size: 1.5rem;
}

/* === Section Headers === */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #0d6efd;
    border-radius: 3px;
}

/* === Category Cards === */
.category-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f0fe, #f0f7ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #0d6efd;
    font-size: 2rem;
    transition: background 0.3s;
}

.category-card:hover .category-icon {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
}

/* === Product Cards === */
.product-card {
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12) !important;
}

.product-image-wrapper {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-placeholder {
    text-align: center;
    opacity: 0.5;
}

.price {
    color: #0d6efd;
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
}

/* === Page Header === */
.page-header {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb-item a {
    color: #0d6efd;
}

/* === Footer === */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer h5,
.footer h6 {
    color: #fff;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.3s, padding-right 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-right: 5px;
}

.footer-contact li {
    margin-bottom: 12px;
    color: #94a3b8;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #0d6efd;
    color: #fff;
    transform: translateY(-3px);
}

.payment-icons {
    font-size: 1.5rem;
    color: #94a3b8;
}

/* === Product Detail === */
.product-detail-image {
    border: 2px dashed #dee2e6;
}

/* === Buttons === */
.btn-primary {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #084298);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

/* === Forms === */
.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.15);
}

/* === Cards === */
.card {
    border-radius: 16px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .top-bar .col-md-6:last-child {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.category-card,
.feature-card {
    animation: fadeInUp 0.5s ease-out;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}
