/* DSMS (Pvt) Ltd - Modern Corporate CSS Stylesheet */

:root {
    --primary-color: #0c2340;       /* Dark Navy Blue */
    --accent-color: #0056b3;        /* Corporate Blue */
    --accent-hover: #004085;       /* Darker Blue */
    --success-green: #28a745;       /* Best Seller Green */
    --light-gray: #f8f9fa;
    --border-light: #e9ecef;
    --text-muted: #6c757d;
    --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-stack);
    background-color: #f5f7fa;
    color: #333;
}

/* Typography Utilities */
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }
.fs-9 { font-size: 0.65rem !important; }
.tracking-wider { letter-spacing: 0.1em; }

/* Custom Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}
.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}
.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Header Elements */
.header-action-btn {
    transition: transform 0.2s ease, color 0.2s ease;
}
.header-action-btn:hover {
    color: var(--accent-color) !important;
    transform: translateY(-1px);
}

/* Category grid cards */
.category-card {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none !important;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: var(--accent-color);
}
.category-card img, .category-card svg {
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}
.category-card h6 {
    color: #333;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.category-card .shop-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
}

/* Trust Strip */
.trust-strip {
    background-color: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 3rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.trust-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

/* Product Cards */
.product-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}
.product-card .img-container {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
}
.product-card .img-container img, .product-card .img-container svg {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-card .card-body {
    padding: 1.25rem;
}
.product-card .card-title {
    font-size: 0.85rem;
    font-weight: 700;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.75rem;
}
.product-card .card-title a {
    color: #333;
    text-decoration: none;
}
.product-card .card-title a:hover {
    color: var(--accent-color);
}
.product-card .price-tag {
    font-size: 1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}
.product-card .btn-add-cart {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #cce3ff;
    background-color: #f0f7ff;
    color: var(--accent-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
.product-card .btn-add-cart:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

/* Badges */
.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #007bff;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 10;
}
.badge-bestseller {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--success-green);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 10;
}

/* Why Choose Us Split View */
.why-us-list {
    list-style: none;
    padding-left: 0;
}
.why-us-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: #555;
}
.why-us-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: bold;
}
.store-image-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.store-stats-card {
    background: linear-gradient(135deg, #0c2340 0%, #1e3d64 100%);
    color: #white;
    border-radius: 8px;
    padding: 2rem;
}
.store-stats-card .stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1rem;
}
.store-stats-card .stat-box:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.store-stats-card .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.store-stats-card .stat-lbl {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
}

/* Reviews Testimonials */
.review-card {
    background: #white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    height: 100%;
}
.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Brands Slider Strip */
.brands-strip {
    background-color: #fff;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

/* Footer Section */
footer {
    background-color: #07172b !important;
    color: #a0aec0;
    font-size: 0.85rem;
    padding: 4rem 0 2rem 0;
    border-top: 5px solid var(--accent-color);
}
footer h5 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
footer ul {
    list-style: none;
    padding-left: 0;
}
footer ul li {
    margin-bottom: 0.5rem;
}
footer ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}
footer ul li a:hover {
    color: #fff;
}
footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
    padding-top: 1.5rem;
    font-size: 0.75rem;
}
footer .btn-newsletter {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 4px;
}
footer .btn-newsletter:hover {
    background-color: var(--accent-hover);
}
.payment-gateways {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}
.payment-gateways span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
}

/* Hero Carousel Customization */
.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
    border: none;
}
.carousel-indicators .active {
    background-color: #fff;
}
.best-price-badge {
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    color: #white;
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    border: 2px solid rgba(255,255,255,0.2);
}

/* Preloader Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    transition: transform 0.2s ease;
}
.whatsapp-widget:hover {
    transform: scale(1.08);
}
.whatsapp-btn {
    width: 55px;
    height: 55px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.whatsapp-tooltip {
    background-color: white;
    color: #333;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}
.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsiveness & Layout Optimization */
@media (max-width: 768px) {
    #heroSlider {
        min-height: 350px !important;
    }
    #heroSlider h1 {
        font-size: 1.85rem !important;
    }
    #heroSlider p {
        font-size: 0.85rem !important;
    }
    .carousel-inner {
        padding: 2.5rem 0 !important;
    }
    .trust-strip {
        padding: 1rem !important;
        margin-bottom: 2rem;
    }
    .trust-item {
        justify-content: center;
    }
    .product-card .img-container {
        height: 120px !important;
    }
    .product-card .card-title {
        font-size: 0.78rem !important;
        height: 32px !important;
    }
    .product-card .price-tag {
        font-size: 0.85rem !important;
    }
    .product-card .btn-add-cart {
        font-size: 0.75rem !important;
        padding: 0.4rem !important;
    }
    .store-stats-card {
        padding: 1.25rem !important;
    }
    .store-stats-card .stat-num {
        font-size: 1.2rem !important;
    }
    footer {
        padding: 2.5rem 0 1.5rem 0 !important;
    }
    footer h5 {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
    }
}

/* Navbar Toggler and Height Fix for Mobile & Desktop */
.navbar-desktop-custom {
    min-height: 50px;
    position: relative;
}
@media (min-width: 992px) {
    .navbar-desktop-custom {
        height: 50px !important;
    }
    .navbar-desktop-custom .container {
        height: 100% !important;
    }
    .navbar-collapse-custom {
        height: 100% !important;
    }
}
@media (max-width: 991.98px) {
    .navbar-desktop-custom {
        height: auto !important;
        padding: 5px 0 !important;
    }
    .navbar-desktop-custom .container {
        height: auto !important;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .navbar-collapse-custom {
        height: auto !important;
        width: 100% !important;
        flex-basis: 100% !important;
        margin-top: 8px;
    }
    .navbar-collapse-custom .navbar-nav {
        background-color: #0056b3;
        padding: 10px;
        border-radius: 6px;
    }
    .navbar-desktop-custom .dropdown {
        height: 40px !important;
    }
    .navbar-desktop-custom .dropdown button {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

