/* assets/css/style.css - Exact Design Replication */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d2745; /* Navy Blue from logo */
    --primary-color-hover: #071526;
    --accent-orange: #f7931e; /* Vibrant Orange from logo */
    --accent-orange-hover: #d97b14;
    --bg-light: #F8FAF8;
    --text-dark: #2C3E50;
    --text-gray: #7F8C8D;
    --border-color: #EAEAEA;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: bounce-wa 2s infinite;
}
.whatsapp-float:hover {
    color: #FFF;
    background-color: #128c7e;
    transform: scale(1.1);
}
@keyframes bounce-wa {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
}
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 80px; /* Shifted up to avoid bottom nav */
        right: 20px;
        font-size: 28px;
    }
}

/* --- Bottom Mobile Navigation --- */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 1050;
    display: flex;
    justify-content: space-around;
    padding: 10px 0 5px;
    border-top: 1px solid #EAEAEA;
}
.bottom-nav-item {
    position: relative;
    text-align: center;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 12px;
    flex: 1;
}
.bottom-nav-item i {
    display: block;
    font-size: 20px;
    margin-bottom: 3px;
}
.bottom-nav-item.active, .bottom-nav-item:hover {
    color: var(--primary-color);
}
.bottom-nav-item .badge-count {
    position: absolute;
    top: -5px;
    right: 50%;
    margin-right: -15px;
    background-color: var(--accent-orange);
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: bold;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
    .nav-menu li { margin-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-menu a { padding: 12px 15px; }
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #FFFFFF;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-content {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.loader-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 4px solid #E8F5E9;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loader-icon {
    font-size: 30px;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #FFFFFF;
}

a {
    text-decoration: none;
}

/* Utilities */
.text-primary-color { color: var(--primary-color); }
.bg-primary-color { background-color: var(--primary-color); }
.text-accent-yellow { color: var(--accent-yellow); }
.bg-accent-yellow { background-color: var(--accent-yellow); }

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color-hover);
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    padding: 8px 0;
}
.top-bar i {
    color: var(--accent-orange);
    margin-right: 5px;
}

/* --- Main Header --- */
.main-header {
    padding: 20px 0;
    background-color: #FFFFFF;
}
.header-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
}
.header-logo i {
    color: var(--primary-color);
    font-size: 32px;
    margin-right: 10px;
}
.header-logo .text-nilmini { color: var(--primary-color); display: block; }
.header-logo .text-petstore { color: var(--accent-yellow); display: block; font-size: 18px; }

/* Search Bar */
.search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    height: 45px;
}
.search-form input {
    border: none;
    padding: 0 20px;
    outline: none;
    width: 60%;
    font-size: 14px;
}
.search-form .category-select {
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 0 15px;
    outline: none;
    background: #FAFAFA;
    font-size: 14px;
    color: var(--text-gray);
}
.search-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: 0.3s;
}
.search-form button:hover {
    background-color: var(--primary-color-hover);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}
.icon-box {
    display: flex;
    align-items: center;
    color: var(--text-dark);
    text-decoration: none;
}
.icon-box i {
    font-size: 24px;
    position: relative;
}
.icon-box .badge-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-box-text {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}
.icon-box-text .small {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 3px;
}
.icon-box-text .strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* --- Navigation Bar --- */
.nav-bar {
    background-color: var(--primary-color);
}
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}
.nav-menu li {
    margin-right: 5px;
}
@media (max-width: 991px) {
    .nav-menu li { margin-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nav-menu a { padding: 12px 15px; }
}
.nav-menu a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    padding: 15px 20px;
    display: block;
    transition: 0.3s;
}
.nav-menu a:hover {
    color: var(--accent-yellow);
}
.nav-menu a.active {
    color: var(--accent-yellow);
}

.btn-special-offers {
    background-color: var(--accent-yellow);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
}
.btn-special-offers:hover {
    background-color: #e6a200;
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #FDF7F3 0%, #F5EAE0 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}
.hero-text h1 span {
    color: var(--primary-color);
    display: block;
}
.hero-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 400px;
}
.btn-shop-now {
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-shop-now:hover {
    background-color: var(--accent-orange-hover);
    color: white;
}
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
}
.hero-feature-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* --- Section Titles --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}
.section-title h2 i {
    color: var(--primary-color);
}
.section-title-left {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #F0F0F0;
    padding-bottom: 15px;
}
.section-title-left h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}
.section-title-left h2 i { color: var(--primary-color); }
.view-all-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    transition: 0.3s;
}
.view-all-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* --- Featured Categories --- */
.cat-card-box {
    display: block;
    background: #FAFAFA;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    border: 1px solid transparent;
}
.cat-card-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-5px);
}
.cat-card-box img {
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    mix-blend-mode: darken; /* Fix white background issue */
    margin: 0 auto;
    display: block;
}
.cat-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex; /* Changed from inline-flex to flex for auto margins */
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    position: relative;
    z-index: 3;
    margin: -15px auto 15px; /* Pull it up to overlap the image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.cat-icon-badge.bg-1 { background-color: #63C151; }
.cat-icon-badge.bg-2 { background-color: #FFB300; }
.cat-icon-badge.bg-3 { background-color: #A362EA; }
.cat-icon-badge.bg-4 { background-color: #40B4E5; }

.cat-card-box h5 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}
.cat-card-box p {
    font-size: 13px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}

/* --- Product Cards (Featured) --- */
.product-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: 0.3s;
    background: #FFF;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.product-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--red-sale);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    z-index: 2;
}
.product-wishlist {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-light);
    font-size: 18px;
    z-index: 2;
    cursor: pointer;
}
.product-wishlist:hover { color: var(--red-sale); }
.product-img-box {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.product-img-box img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.product-title-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: block;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}
.product-title-link:hover { color: var(--primary-color); }

.price-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}
.price-new {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
}
.price-old {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: line-through;
}
.rating-stars {
    color: var(--accent-yellow);
    font-size: 12px;
    margin-bottom: 15px;
}
.btn-add-cart {
    background-color: var(--accent-orange);
    color: white;
    font-weight: 600;
    font-size: 13px;
    border: none;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: auto;
}
.btn-add-cart:hover {
    background-color: var(--accent-orange-hover);
}

/* --- List Style Products (Best Sellers/Latest) --- */
.product-list-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}
.product-list-item:last-child { border-bottom: none; }
.product-list-img {
    width: 80px;
    height: 80px;
    background: #FAFAFA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid var(--border-color);
}
.product-list-img img {
    max-width: 60px;
    max-height: 60px;
}
.product-list-details h6 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}
.product-list-details .price-new {
    font-size: 14px;
}

/* --- Pagination --- */
.custom-pagination .page-link {
    color: var(--primary-color);
    border-color: var(--border-color);
}
.custom-pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.custom-pagination .page-link:hover {
    background-color: var(--primary-color-hover);
    color: white;
    border-color: var(--primary-color-hover);
}

/* --- Why Choose Us --- */
.feature-box {
    text-align: center;
    padding: 20px;
}
.feature-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    margin-bottom: 15px;
}
.bg-feat-1 { background-color: #E2EFA8; color: #6E871B; } /* Adjusted colors to match the pastel look in design */
.bg-feat-2 { background-color: #D4F4F3; color: #1E8785; }
.bg-feat-3 { background-color: #EBDCF6; color: #823BB5; }
.bg-feat-4 { background-color: #D3E6ED; color: #2C657A; }
.bg-feat-5 { background-color: #FCEBD5; color: #C47A22; }

.feature-box h5 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.feature-box p {
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

/* --- Customer Reviews --- */
.review-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
}
.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}
.review-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.review-text {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 0;
}
.quote-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    color: #F0F0F0;
    line-height: 1;
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0 150px;
    position: relative;
    overflow: hidden;
}
.hero-section .hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}
.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.hero-section .custom-shape-divider-bottom {
    position: absolute;
    bottom: -1px; /* Avoid weird 1px gaps */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}
.hero-section .custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.hero-section .custom-shape-divider-bottom .shape-fill {
    fill: #FFFFFF;
}

.hero-content, .hero-image {
    position: relative;
    z-index: 3;
}
.hero-content h1 {
    font-weight: 800;
    font-size: 3.5rem;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* --- Newsletter --- */
.newsletter-section {
    background: linear-gradient(90deg, #E8F5E9 0%, #F1F8E9 100%);
    border-radius: 10px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin: 60px 0;
}
.newsletter-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}
.newsletter-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.newsletter-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}
.newsletter-form {
    display: flex;
    background: white;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.newsletter-form input {
    border: none;
    padding: 0 20px;
    border-radius: 50px 0 0 50px;
    outline: none;
    width: 100%;
    font-size: 14px;
}
.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}
.news-img-left {
    position: absolute;
    left: 20px;
    bottom: 0;
    max-height: 90%;
    z-index: 1;
}
.news-img-right {
    position: absolute;
    right: 20px;
    bottom: 0;
    max-height: 90%;
    z-index: 1;
}

/* --- Contact & Map --- */
.contact-wrap {
    margin-bottom: 60px;
}
.contact-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
}
.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}
.contact-list li i {
    color: var(--primary-color);
    font-size: 16px;
    margin-right: 15px;
    margin-top: 2px;
}
.social-icons-contact {
    display: flex;
    gap: 10px;
}
.social-icons-contact a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
.social-icons-contact .bg-fb { background-color: #3B5998; }
.social-icons-contact .bg-ig { background-color: #E1306C; }
.social-icons-contact .bg-wa { background-color: #25D366; }
.social-icons-contact .bg-yt { background-color: #FF0000; }

.map-container {
    height: 100%;
    min-height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--primary-color);
    padding: 60px 0 40px;
    border-top: none;
}
.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    margin-bottom: 15px;
}
.footer-logo i { color: #FFF; font-size: 26px; margin-right: 8px; }
.footer-logo .text-nilmini { color: #FFF; display: block; }
.footer-logo .text-petstore { color: var(--accent-orange); display: block; font-size: 15px; }

.footer-text {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}
.footer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--accent-orange);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: 0.3s;
}
.footer-links a:hover {
    color: var(--accent-orange);
}
.payment-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}
.payment-icons i { font-size: 28px; }
.payment-icons img { height: 20px; }

.delivery-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}
.delivery-icons img { height: 24px; }

.copyright-bar {
    background-color: var(--primary-color-hover);
    color: rgba(255,255,255,0.5);
    padding: 15px 0;
    font-size: 12px;
}
.copyright-bar .text-right {
    text-align: right;
}
.copyright-bar i { color: var(--red-sale); }
