/* DAV School Uniforms - Custom Styles */

:root {
    --primary-color: #1e3a5f;
    --secondary-color: #87CEEB;
    --accent-color: #FFD700;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --success-color: #28a745;
    --dav-navy: #1e3a5f;
    --dav-sky: #87CEEB;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--dav-navy) 0%, #2c4a6e 100%);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand span {
    color: var(--dav-sky);
}

.nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--dav-sky) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--dav-sky) !important;
    border-bottom: 2px solid var(--dav-sky);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dav-navy) 0%, #2c4a6e 50%, var(--dav-sky) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-banner.jpg') center/cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.hero-btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 5px;
}

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

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

.btn-call {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dav-navy);
}

.btn-call:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

/* Section Styles */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dav-navy);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--dav-navy), var(--dav-sky));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: none;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.category-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.category-card .card-body {
    padding: 1.5rem;
}

.category-card .card-title {
    font-weight: 700;
    color: var(--dav-navy);
    font-size: 1.2rem;
}

.category-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* Product Image Carousel */
.product-carousel {
    position: relative;
    height: 300px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.product-carousel .carousel-item {
    height: 300px;
    background-color: #f8f9fa;
}

.product-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 10px;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(30, 58, 95, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .carousel-control-prev,
.product-card:hover .carousel-control-next {
    opacity: 1;
}

.product-carousel .carousel-control-prev {
    left: 10px;
}

.product-carousel .carousel-control-next {
    right: 10px;
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.product-carousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.product-carousel .carousel-indicators button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--dav-navy);
    opacity: 0.5;
}

.product-carousel .carousel-indicators button.active {
    opacity: 1;
}

.product-card .product-body {
    padding: 1.25rem;
}

.product-card .product-title {
    font-weight: 600;
    color: var(--dav-navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-card .product-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.product-card .product-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Class Category Badge */
.class-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--dav-navy), var(--dav-sky));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Size Guide Table */
.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
}

.size-table th {
    background: linear-gradient(135deg, var(--dav-navy), #2c4a6e);
    color: white;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.size-table td {
    padding: 0.875rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.size-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.size-table tr:hover {
    background-color: #e3f2fd;
}

/* Contact Cards */
.contact-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--dav-navy), var(--dav-sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
}

.contact-card h4 {
    color: var(--dav-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--dav-navy);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    color: var(--dav-sky);
}

/* Feature Section */
.feature-box {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--dav-sky), #b3e0f2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--dav-navy);
}

.feature-box h4 {
    color: var(--dav-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-box p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dav-navy) 0%, #1a2f4a 100%);
    color: white;
    padding: 50px 0 20px;
}

.footer h5 {
    color: var(--dav-sky);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--dav-sky);
}

.footer-contact p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--dav-sky);
    margin-right: 10px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

/* Breadcrumb */
.breadcrumb-section {
    background: linear-gradient(135deg, var(--dav-navy) 0%, #2c4a6e 100%);
    padding: 40px 0;
    color: white;
}

.breadcrumb-section h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.breadcrumb-item a {
    color: var(--dav-sky);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: rgba(255,255,255,0.7);
}

/* Order Button */
.btn-order {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    color: white;
}

/* Info Cards */
.info-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    height: 100%;
    border-left: 4px solid var(--dav-navy);
}

.info-card h4 {
    color: var(--dav-navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-card ul {
    padding-left: 1.2rem;
}

.info-card ul li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .category-card .card-img-top {
        height: 180px;
    }
    
    .product-card .product-image {
        height: 200px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--dav-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--dav-sky);
    color: var(--dav-navy);
}
