:root {
    --bg-color: #fcfcfc;
    --section-bg: #f5f7f8;
    --text-color: #2b2b2b;
    --primary-color: #ff5722; 
    --secondary-color: #ff9800;
    --card-bg: #ffffff;
    --shadow: 0 15px 35px rgba(0,0,0,0.06);
    --hover-shadow: 0 25px 45px rgba(255, 87, 34, 0.15);
}

.dark-mode {
    --bg-color: #0d1117;
    --section-bg: #161b22;
    --text-color: #f0f6fc;
    --primary-color: #ff7043;
    --secondary-color: #fbbf24;
    --card-bg: #21262d;
    --shadow: 0 15px 35px rgba(0,0,0,0.4);
    --hover-shadow: 0 25px 45px rgba(255, 112, 67, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.5s ease, color 0.5s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
}

.nav-buttons {
    display: flex;
    align-items: center;
}

.nav-buttons button {
    background: none;
    border: none;
    font-size: 16px;
    margin-right: 25px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: bold;
    position: relative;
    padding: 5px 0;
}

.nav-buttons button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    right: 0;
    transition: 0.3s ease-in-out;
    border-radius: 2px;
}

.nav-buttons button:hover::after {
    width: 100%;
}

.mode-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: var(--primary-color) !important;
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3) !important;
    transition: 0.3s transform !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    margin-right: 25px;
}

.mode-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4) !important;
}

.mode-btn::after {
    display: none !important;
}

.hero {
    padding: 100px 5% 150px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,87,34,0.05), rgba(255,152,0,0.05));
    position: relative;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--section-bg);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 40px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    max-width: 800px;
    position: relative;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.4;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 900;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(255, 152, 0, 0.2);
    z-index: -1;
    transform: rotate(-2deg);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.8;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 100;
}

.cta-btn, .secondary-btn {
    padding: 16px 45px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-btn {
    border: none;
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(255,87,34,0.3);
}

.secondary-btn {
    border: 2px solid var(--primary-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(255,87,34,0.4);
}

.secondary-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background-color: rgba(255,87,34,0.05);
}

.hero-visuals {
    position: relative;
    height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.main-hero-img {
    width: 80%;
    max-width: 500px;
    z-index: 2;
}

.floating-item {
    position: absolute;
    width: 100px;
    z-index: 3;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15));
}

.item-1 { top: 10%; right: 10%; width: 120px; }
.item-2 { bottom: 20%; right: 20%; width: 90px; }
.item-3 { top: 30%; left: 10%; width: 110px; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float1 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float2 {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float3 {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.pulse-anim { animation: pulse 2s infinite; }
.float-anim-1 { animation: float1 4s ease-in-out infinite; }
.float-anim-2 { animation: float2 5s ease-in-out infinite; }
.float-anim-3 { animation: float3 3.5s ease-in-out infinite; }

section {
    padding: 90px 5%;
    text-align: center;
}

.categories {
    background-color: var(--section-bg);
}

h2 {
    margin-bottom: 60px;
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 5px;
    background-color: var(--primary-color);
    bottom: -15px;
    left: 20%;
    border-radius: 5px;
}

.container { 
    display: flex; 
    justify-content: center; 
    gap: 35px; 
    flex-wrap: wrap; 
}

.cat-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 230px;
    border: 2px solid transparent;
}

.cat-card img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.cat-card:hover {
    transform: translateY(-20px);
    border-color: var(--primary-color);
    box-shadow: var(--hover-shadow);
}

.cat-card:hover img {
    transform: scale(1.15) rotate(5deg);
}

.deal-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 30px;
    width: 340px;
    box-shadow: var(--shadow);
    text-align: right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.deal-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
    border-color: rgba(255, 87, 34, 0.3);
}

.img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 25px;
}

.deal-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.deal-card:hover img {
    transform: scale(1.1);
}

.discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.deal-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.desc {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.deal-price {
    font-size: 30px;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 25px;
}

.counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--section-bg);
    padding: 12px 20px;
    border-radius: 20px;
}

.counter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 26px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter button:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.qty-num {
    font-size: 24px;
    font-weight: bold;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-box {
    background-color: var(--card-bg);
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    width: 450px;
    animation: float3 3s ease-in-out infinite;
}

.popup-box h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.2rem;
}

.popup-box h2::after {
    display: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff3b30;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    font-size: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close-btn:hover {
    transform: scale(1.1) rotate(180deg);
}

.main-footer {
    background-color: var(--card-bg);
    padding: 80px 5% 0;
    margin-top: 50px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: var(--text-color);
    opacity: 0.8;
}

.footer-col ul li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s, padding-right 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-right: 12px;
}

.brand-col p {
    margin-top: 20px;
    line-height: 1.7;
    opacity: 0.8;
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 18px;
}

.social-icons img {
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: translateY(-8px) scale(1.1);
}

.subscribe-box {
    display: flex;
    margin-top: 20px;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.subscribe-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    background: var(--section-bg);
    color: var(--text-color);
    font-size: 1rem;
}

.subscribe-box button {
    padding: 15px 30px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.subscribe-box button:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(128,128,128,0.1);
    font-weight: bold;
    opacity: 0.7;
    font-size: 0.95rem;
}