@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* ================================
   RESET & BASE STYLES
   ================================ */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', Arial, sans-serif;
}

body { 
    background-color: #f5f5f5; 
    color: #333;
    overflow-x: hidden;
}

a { 
    text-decoration: none; 
    color: inherit;
}

ul { 
    list-style: none;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes slideDown { 
    from { transform: translateY(-100%); opacity: 0; } 
    to { transform: translateY(0); opacity: 1; } 
}

@keyframes fadeIn { 
    from { opacity: 0; transform: translateY(10px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes slideInLeft { 
    from { transform: translateX(-100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes slideInRight { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

@keyframes pop { 
    0% { transform: scale(0); } 
    50% { transform: scale(1.2); }
    100% { transform: scale(1); } 
}

@keyframes pulse { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.05); } 
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(0, 122, 190, 0.3); }
    50% { box-shadow: 0 0 15px rgba(0, 122, 190, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* ================================
   HEADER STYLES
   ================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #0077be, #00a8e8);
    color: white;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header h1 { 
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav ul { 
    display: flex;
    gap: 20px;
}

.header-nav a { 
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav a:hover { 
    color: #a8d8ff;
    border-bottom-color: #a8d8ff;
    transform: translateY(-2px);
}

.header-nav a.active { 
    color: #a8d8ff;
    border-bottom-color: #a8d8ff;
}

/* Use phone-style navigation on all devices */
.header-nav {
    display: none;
}

/* ================================
   MODAL STYLES (PRODUCT DETAILS)
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    max-width: 550px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content img { 
    width: 100%;
    max-height: 300px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
    animation: fadeIn 0.5s ease;
}

.modal-content h3 {
    font-size: 1.5rem;
    color: #0077be;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 1.2rem;
    color: #00a8e8;
    font-weight: 600;
    margin-bottom: 15px;
}

#modalAddToCart {
    background: linear-gradient(135deg, #00a8e8, #0077be);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
}

#modalAddToCart:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 190, 0.4);
}

#modalAddToCart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.close {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #0077be;
}

/* ================================
   CART ICON STYLES
   ================================ */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #0077be;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    animation: pop 0.3s ease;
}

/* ================================
   HAMBURGER MENU STYLES
   ================================ */
.hamburger {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.header-left .hamburger {
    min-width: 26px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.header.menu-open .hamburger span:first-child {
    transform: rotate(45deg) translate(12px, 12px);
}

.header.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.header.menu-open .hamburger span:last-child {
    transform: rotate(-45deg) translate(10px, -10px);
}

/* Phone-style navigation is enabled for all screen sizes */

/* ================================
   MOBILE NAVIGATION MENU STYLES
   ================================ */
.nav-menu-mobile {
    display: none;
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #0077be, #00a8e8);
    color: white;
    padding: 80px 20px 20px;
    z-index: 99;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
}

.nav-menu-mobile.active {
    right: 0;
}

.nav-menu-mobile h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-menu-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-menu-mobile li {
    list-style: none;
}

.nav-menu-mobile a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-menu-mobile a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #a8d8ff;
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .nav-menu-mobile {
        display: block;
    }
}

/* ================================
   SEARCH BOX STYLES
   ================================ */
.search-box {
    position: relative;
    max-width: 600px;
    margin: 20px auto;
    animation: fadeIn 0.8s ease;
    z-index: 50;
    padding: 0 20px;
}

/* ================================
   PRODUCTS HEADER SECTION
   ================================ */
.products-header {
    background: linear-gradient(135deg, #0077be, #00a8e8);
    color: white;
    padding: 40px 20px;
    text-align: center;
    animation: slideDown 0.6s ease;
}

.products-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.products-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border-radius: 25px;
    border: 2px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-box input:focus {
    outline: none;
    border-color: #00a8e8;
    box-shadow: 0 2px 15px rgba(0, 150, 136, 0.3);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 35px;
    top: 50%;
    transform: translateY(-50%);
    color: #0077be;
    font-size: 1.1rem;
}

/* ================================
   SIDE MENU STYLES
   ================================ */
.side-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #00a8e8, #0077be);
    color: white;
    padding: 20px;
    transition: right 0.35s ease;
    z-index: 99;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.side-menu.active {
    right: 0;
    animation: slideInRight 0.35s ease;
}

.side-menu h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    font-weight: 700;
}

.side-menu h4 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #e0f2ff;
    font-weight: 600;
}

.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu ul li {
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin-bottom: 5px;
    font-size: 1rem;
}

.side-menu ul li:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(8px);
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.side-menu ul li a:hover {
    color: #e0f2ff;
}

.side-menu ul li i {
    width: 25px;
    text-align: center;
}

.side-menu hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.side-menu .mobile-nav li {
    margin-bottom: 8px;
}

.side-menu .nav-menu li {
    margin-bottom: 8px;
}

.nav-menu li,
.spare-parts-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ================================
   PRODUCTS GRID STYLES
   ================================ */
.products-heading-wrap {
    max-width: 1300px;
    margin: 12px auto 0;
    padding: 0 30px;
}

.products-heading {
    font-size: 2.2rem;
    color: #005f95;
    font-weight: 950;
    letter-spacing: 0.3px;
    margin: 0;
    margin-left: 12px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    padding: 30px;
    animation: fadeIn 0.8s ease;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 420px;
    animation: fadeIn 0.6s ease;
    transition: all 0.35s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-2px) scale(1.003);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s ease;
}

.card-image-wrapper img:hover {
    transform: scale(1.02);
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    animation: pop 0.4s ease;
}

.stock-very-high {
    background: rgba(0, 121, 107, 0.92);
    color: white;
}

.stock-high {
    background: rgba(67, 160, 71, 0.92);
    color: white;
}

.stock-medium {
    background: rgba(251, 140, 0, 0.92);
    color: white;
}

.stock-low {
    background: rgba(106, 27, 154, 0.92);
    color: white;
}

.stock-critical {
    background: rgba(229, 57, 53, 0.92);
    color: white;
}

.stock-out {
    background: rgba(69, 90, 100, 0.92);
    color: white;
}

/* CSS-only stock badge color variation for home products */
.products .card:nth-child(10n+1) .stock-badge { background: #1e88e5 !important; }
.products .card:nth-child(10n+2) .stock-badge { background: #43a047 !important; }
.products .card:nth-child(10n+3) .stock-badge { background: #fb8c00 !important; }
.products .card:nth-child(10n+4) .stock-badge { background: #8e24aa !important; }
.products .card:nth-child(10n+5) .stock-badge { background: #e53935 !important; }
.products .card:nth-child(10n+6) .stock-badge { background: #00acc1 !important; }
.products .card:nth-child(10n+7) .stock-badge { background: #7cb342 !important; }
.products .card:nth-child(10n+8) .stock-badge { background: #f4511e !important; }
.products .card:nth-child(10n+9) .stock-badge { background: #3949ab !important; }
.products .card:nth-child(10n+10) .stock-badge { background: #6d4c41 !important; }

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card h3 {
    margin: 0 0 8px;
    color: #333;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}

.card-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 0.9rem;
}

.stars {
    color: #ffc107;
    letter-spacing: 2px;
}

.rating-value {
    color: #666;
    font-weight: 600;
}

.card-category {
    font-size: 0.85rem;
    color: #0077be;
    font-weight: 600;
    background: rgba(0, 122, 190, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    margin: 6px 0;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.card-price {
    font-weight: 700;
    color: #0077be;
    font-size: 1.3rem;
    margin: 10px 0;
}

.card button {
    background: linear-gradient(135deg, #00a8e8, #0077be);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 12px 0 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 122, 190, 0.3);
}

.card button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;

    box-shadow: 0 6px 15px rgba(0, 122, 190, 0.4);
}

.card button:active {
    transform: translateY(-1px);
}

.card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.card-actions button {
    margin: 0;
}

.card-actions .home-add-btn {
    flex: 1;
    width: auto;
    height: 40px;
    padding: 0 12px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.card-actions .wishlist-heart-btn {
    width: 40px;
    height: 40px;
    margin-right: 0;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    flex-shrink: 0;
}

.card-actions .wishlist-heart-btn.liked {
    background: #ffe1e8;
    border-color: #ff9cb0;
    color: #c81634;
}

/* ================================
   FOOTER STYLES
   ================================ */
.footer {
    background: #000;
    color: white;
    padding: 40px 20px 20px;
    margin-top: 50px;
    animation: fadeIn 1s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section {
    animation: slideInUp 0.6s ease;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #a8d8ff;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 10px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ddd;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #a8d8ff;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #bbb;
    margin: 5px 0;
}

.social-media {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: white;
    color: #0077be;
    transform: scale(1.1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   PRODUCT MODAL STYLES
   ================================ */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 20px;
}

.product-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInRight 0.3s ease;
}

.product-modal-content .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.product-modal-content .close:hover {
    background: #f0f0f0;
    color: #0077be;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    align-items: start;
}

.product-modal-image {
    width: 100%;
}

.product-modal-image img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-modal-details h2 {
    font-size: 1.8rem;
    color: #0077be;
    margin-bottom: 10px;
}

.product-modal-category {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.product-modal-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-modal-rating .stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.product-modal-price {
    font-size: 1.8rem;
    color: #0077be;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-modal-stock {
    font-size: 1rem;
    color: #27ae60;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: #ecf0f1;
    border-radius: 6px;
    display: inline-block;
}

.product-modal-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-primary,
.btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #00a8e8, #0077be);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 190, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: white;
    color: #0077be;
    border: 2px solid #0077be;
}

.btn-secondary:hover {
    background: #0077be;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        position: relative;
        top: auto;
        right: auto;
        max-width: 100%;
        gap: 15px;
    }

    .carousel {
        max-width: 100%;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Mobile product modal */
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-modal-details h2 {
        font-size: 1.4rem;
    }

    .product-modal-price {
        font-size: 1.5rem;
    }
}


/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none !important;
    }
    
    .hamburger {
        display: flex !important;
    }

    .side-menu {
        width: min(86vw, 320px);
        right: calc(-1 * min(86vw, 320px) - 10px);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.3rem;
    }

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

    .card {
        min-height: 320px;
    }

    .search-box {
        margin: 15px 10px;
    }

    .modal-content {
        margin: 20% auto;
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 10px 15px;
    }

    .header h1 {
        font-size: 1.1rem;
    }

    .cart-icon {
        font-size: 1.2rem;
    }

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

    .card {
        min-height: 280px;
    }

    .card-image-wrapper {
        height: 170px;
    }

    .card button {
        padding: 10px 15px;
        margin: 0 10px 10px;
        font-size: 0.9rem;
    }

    .card-actions button {
        margin: 0;
    }

    .search-box input {
        padding: 10px 12px 10px 40px;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 90%;
        margin: 30% auto;
        padding: 15px;
    }

    .footer {
        padding: 20px 15px;
    }

    /* Mobile product modal at 600px */
    .product-modal {
        padding: 10px;
    }

    .product-modal-content {
        max-width: 95%;
        border-radius: 8px;
    }

    .product-modal-body {
        padding: 15px;
    }

    .product-modal-details h2 {
        font-size: 1.2rem;
    }

    .product-modal-price {
        font-size: 1.3rem;
    }

    .product-modal-actions {
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
}

/* Motion settings */
html {
    scroll-behavior: auto;
}

*,
*::before,
*::after {
    animation: none !important;
    transition: none !important;
}

/* ================================
   LIGHTBOX & MODALS
   ================================ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

/* ================================
   CART MODAL STYLES
   ================================ */
.cart-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-content {
    padding: 30px;
}

.cart-content h2 {
    color: #0077be;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.cart-item img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.item-details p {
    color: #0077be;
    font-weight: 600;
    margin-bottom: 10px;
}

.qty-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.qty-controls button {
    background: #00a8e8;
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.qty-controls button:hover {
    background: #0077be;
}

.qty-controls span {
    min-width: 30px;
    text-align: center;
}

.item-total {
    text-align: right;
}

.item-total p {
    color: #333;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

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

.cart-footer h3 {
    color: #0077be;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.cart-footer .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    font-size: 1rem;
}

/* ================================
   SIGNIN MODAL STYLES
   ================================ */
.signin-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.signin-modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.signin-modal .close:hover {
    color: #0077be;
}

.signin-modal h2 {
    color: #0077be;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.signin-modal .form-group {
    margin-bottom: 20px;
}

.signin-modal label {
    display: block;
    color: #0077be;
    font-weight: 600;
    margin-bottom: 8px;
}

.signin-modal input,
.signin-modal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.signin-modal input:focus,
.signin-modal textarea:focus {
    outline: none;
    border-color: #0077be;
    box-shadow: 0 0 0 3px rgba(0, 122, 190, 0.1);
}

.signin-modal button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0077be, #00a8e8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signin-modal button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 122, 190, 0.3);
}
/* ================================
   CATEGORY FILTER STYLES
   ================================ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px 30px;
    background: white;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    animation: fadeIn 0.5s ease;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #0077be;
    color: #0077be;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #0077be, #00a8e8);
    color: white;
    border-color: #0077be;
    box-shadow: 0 4px 12px rgba(0, 122, 190, 0.3);
}

/* ================================
   PRODUCT CARD STYLES
   ================================ */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.35s ease;
    animation: fadeIn 0.6s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.product-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.product-info .category {
    font-size: 0.85rem;
    color: #0077be;
    font-weight: 500;
    margin-bottom: 8px;
}

.product-info .price {
    font-size: 1.2rem;
    color: #00a8e8;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-info .rating {
    font-size: 0.9rem;
    color: #666;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */
@media (max-width: 768px) {
    .category-filter {
        gap: 8px;
        padding: 15px 20px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .product-card {
        animation: fadeIn 0.5s ease;
    }

    .product-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .category-filter {
        gap: 6px;
        padding: 12px 15px;
    }

    .filter-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .product-image {
        height: 180px;
    }
}
