* {
    margin: 0;
    padding: 0;
    font-family: 'Amazon Ember', 'Open Sans', Arial, sans-serif;
    box-sizing: border-box;
}


/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Navigation Header */
.navbar {
    height: 60px;
    background-color: #0f1111;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-logo {
    height: 50px;
    width: 100px;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.nav-address {
    color: #cccccc;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-address:hover {
    background-color: #485769;
    transform: translateY(-1px);
}

.nav-address .add-first {
    color: #cccccc;
    font-size: 0.75rem;
    margin-left: 15px;
}

.nav-address .add-second {
    font-size: 1rem;
    margin-left: 3px;
    font-weight: 600;
}

.nav-search {
    display: flex;
    justify-content: space-evenly;
    background-color: white;
    width: 620px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.nav-search:focus-within {
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
    transform: translateY(-1px);
}

.search-select {
    background-color: #f3f3f3;
    width: 50px;
    text-align: center;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-select:hover {
    background-color: #e6e6e6;
}

.search-input {
    width: 100%;
    font-size: 1rem;
    border: none;
    outline: none;
    padding: 0 10px;
    transition: background-color 0.3s ease;
}

.search-input:focus {
    background-color: #fff;
}

.search-icon {
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    background-color: #febd68;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #0f1111;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-icon:hover {
    background-color: #f3a847;
    transform: scale(1.05);
}

.nav-signin, .nav-return {
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-signin:hover, .nav-return:hover {
    background-color: #485769;
    transform: translateY(-1px);
}

.nav-signin span {
    font-size: 0.75rem;
}

.nav-second {
    font-size: 0.85rem;
    font-weight: 700;
}

.nav-cart {
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
}

.nav-cart:hover {
    background-color: #485769;
    transform: translateY(-1px);
}

.nav-cart i {
    font-size: 30px;
    margin-right: 5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: 20px;
    background-color: #ff9900;
    color: #0f1111;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Panel */
.panel {
    height: 40px;
    background-color: #222f3d;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
    border-bottom: 1px solid #37475a;
}

.panel-all {
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.panel-all:hover {
    background-color: #37475a;
}

.panel-ops p {
    display: inline;
    margin-left: 15px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.panel-ops p:hover {
    background-color: #37475a;
    color: #ff9900;
}

.panel-ops {
    width: 70%;
    font-size: 0.85rem;
}

.panel-deals {
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.panel-deals:hover {
    background-color: #37475a;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-msg {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    color: black;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.hero-msg a {
    color: #007185;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-msg a:hover {
    color: #ff9900;
    text-decoration: underline;
}

/* Shop Section */
.shop-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    background-color: #e2e7e6;
    padding: 20px 10px;
    gap: 20px;
}

.box {
    height: 420px;
    width: 23%;
    background-color: white;
    padding: 20px;
    margin-top: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.box:hover::before {
    left: 100%;
}

.box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.box-img {
    height: 280px;
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.box:hover .box-img img {
    transform: scale(1.08);
}

.box-content h2 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #0f1111;
    font-weight: 600;
    transition: color 0.3s ease;
}

.box:hover .box-content h2 {
    color: #ff9900;
}

.box-content p {
    color: #007185;
    font-weight: 500;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.box:hover .box-content p {
    color: #ff9900;
}

/* Loading animation for images */
.box-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
footer {
    margin-top: 15px;
}

.foot-panel1 {
    background-color: #37475a;
    color: white;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.foot-panel1:hover {
    background-color: #485769;
}

.foot-panel2 {
    background-color: #222f3d;
    color: white;
    height: 300px;
    display: flex;
    justify-content: space-evenly;
    padding: 20px 0;
}

.foot-panel2 ul {
    margin-top: 20px;
    list-style: none;
}

.foot-panel2 ul p {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.foot-panel2 ul a {
    display: block;
    font-size: 0.85rem;
    margin-top: 8px;
    color: #dddddd;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.foot-panel2 ul a:hover {
    color: #ff9900;
    padding-left: 8px;
}

.foot-panel3 {
    background-color: #222f3d;
    color: white;
    border-top: 0.5px solid white;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-panel3 .logo img {
    height: 40px;
    width: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.foot-panel3 .logo:hover img {
    transform: scale(1.1);
}

.foot-panel4 {
    background-color: #0f1111;
    color: white;
    height: 80px;
    font-size: 0.7rem;
    text-align: center;
    padding: 20px;
}

.pages {
    padding-top: 25px;
}

.pages a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.pages a:hover {
    color: #ff9900;
}

.copyright {
    padding-top: 15px;
    color: #cccccc;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .box {
        width: 30%;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .nav-search {
        width: 90%;
        margin: 10px 0;
    }
    
    .box {
        width: 45%;
    }
    
    .shop-section {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .box {
        width: 90%;
    }
    
    .panel-ops {
        display: none;
    }
}

/* Additional Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.box {
    animation: fadeIn 0.6s ease-out;
}

.box:nth-child(1) { animation-delay: 0.1s; }
.box:nth-child(2) { animation-delay: 0.2s; }
.box:nth-child(3) { animation-delay: 0.3s; }
.box:nth-child(4) { animation-delay: 0.4s; }
.box:nth-child(5) { animation-delay: 0.5s; }
.box:nth-child(6) { animation-delay: 0.6s; }
.box:nth-child(7) { animation-delay: 0.7s; }
.box:nth-child(8) { animation-delay: 0.8s; }

/* Hover effects for navigation items */
.navbar > div {
    transition: all 0.3s ease;
}

/* Enhanced search animation */
.search-input:focus {
    animation: searchGlow 0.3s ease;
}

@keyframes searchGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4); }
    100% { box-shadow: 0 0 0 4px rgba(255, 153, 0, 0); }
}
/* Add this to your CSS file */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

#canvas3d {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure your main content appears above the background */
.header, .hero-section, .shop-section, footer {
    position: relative;
    z-index: 1;
}

/* Add subtle transparency to make background visible through sections */
.shop-section {
    background-color: rgba(226, 231, 230, 0.95);
}

.box {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
