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

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
}

/* Top Banner */
.top-banner {
    background-color: #25387B;
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.top-banner strong {
    font-weight: 800;
}

/* Header */
header {
    background-color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

/* Navigation */
.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: #25387B;
    border-bottom-color: #25387B;
}

.logo-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Cart Icon */
.cart-icon-wrapper {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 50%;
}

.cart-icon-wrapper:hover {
    transform: scale(1.1);
    background: #eef;
}

.cart-icon {
    width: 26px;
    height: 26px;
    color: #25387B;
    stroke: #25387B;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #25387B;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #25387B 0%, #1A2856 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-btn {
    display: inline-block;
    background: white;
    color: #25387B;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    color: #25387B;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 12px;
}

.section-desc {
    color: #777;
    font-size: 1rem;
}

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

.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    border: 1px solid #f0f0f0;
}

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

.product-image-wrapper {
    position: relative;
    background: #fafafa;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #25387B;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    min-height: 45px;
    line-height: 1.5;
}

/* Improved Prices */
.product-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.95rem;
}

.new-price {
    color: #25387B;
    font-size: 1.5rem;
    font-weight: 800;
}

.currency {
    color: #25387B;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.qty-btn {
    background: #f0f0f0;
    color: #25387B;
    border: 2px solid #25387B;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 700;
}

.qty-btn:hover {
    background: #25387B;
    color: white;
}

.quantity-input, .qty-input {
    width: 60px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    background: #25387B;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: #1E2F6B;
    transform: translateY(-1px);
}

.add-to-cart-btn svg {
    stroke: white;
}

/* Certifications Section */
.certifications-section {
    padding: 60px 20px;
    background: #f0f2f8;
}

.cert-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.cert-card {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: translateY(-4px);
}

.cert-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background: #f0f2f8;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.cert-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.cert-card p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    padding: 60px 20px;
}

.about-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-card {
    background: #f0f2f8;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.about-icon {
    margin-bottom: 16px;
}

.about-card h3 {
    color: #25387B;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background: #25387B;
    color: white;
    margin-top: 0;
}

.footer-top {
    background: #25387B;
    padding: 24px 20px;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}

.feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-item strong {
    font-size: 0.95rem;
}

.feature-item span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-about p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 12px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 8px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: #25387B;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
    font-size: 0.9rem;
}

.contact-list li svg {
    stroke: #25387B;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.85rem;
}

/* Cart Overlay */
.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.cart-overlay.active {
    display: block;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    background: #25387B;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f5f5f5;
    padding: 5px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.cart-item-price {
    color: #25387B;
    font-weight: 700;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}

.cart-item-quantity span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-item-total {
    font-weight: 700;
    color: #333;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.remove-btn:hover {
    background: #c0392b;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.cart-footer {
    padding: 20px;
    border-top: 2px solid #eee;
    background: #f9f9f9;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #25387B;
}

.checkout-btn {
    width: 100%;
    background: #27ae60;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.checkout-btn:hover {
    background: #229954;
}

.clear-cart-btn {
    width: 100%;
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.clear-cart-btn:hover {
    background: #c0392b;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: none;
    animation: slideIn 0.3s ease-out;
}

.cart-notification.show {
    display: block;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

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

    .logo-container {
        width: 55px;
        height: 55px;
    }

    .main-nav {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-top {
        gap: 20px;
    }

    .contact-list li {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .logo-container {
        width: 50px;
        height: 50px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cert-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

/* Footer - old class compatibility */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
