/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

body {
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: #ffffff;
    color: #333;
    overflow-x: hidden;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: auto;
    padding: 5rem 1rem;
    border: none; /* Ensure no borders */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fff5e6, #ffe0b2);
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-content {
    z-index: 1;
    padding: 20px;
    position: relative;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 2rem;
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #a60b00;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.hero-btn:hover {
    background-color: #000000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    opacity: 0.8;
}

.hero-image img.mobile-hero {
    display: none;
}

@media (max-width: 768px) {
    .hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
    }
    .hero-image img.desktop-hero {
        display: none;
    }
    .hero-image img.mobile-hero {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 0;
        opacity: 0.8;
    }
}

/* Banner Section */
.banner-section {
    padding: 16px 0;
    background-color: #ffffff;
    overflow: hidden;
    margin-top: 80px; /* Added for separation from hero */
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.banner-slide {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
}

.banner-card {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    flex: 0 0 25%;
}

.banner-image {
    width: 100%;
    height: 0;
    padding-top: calc(1 / 0.6666666666666666 * 100%); /* 2:3 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.banner-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.banner-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background-color: #000000;
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s;
    border-radius: 0;
}

.banner-btn:hover {
    background-color: #a60b00;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Category Section */
.category-section {
    padding: 24px 8px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 10px;
    position: relative;
}

.section-description {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 40px;
    font-weight: 400;
}

.category-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, 1fr);
    padding: 0;
    margin: 0;
    align-content: start;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    background: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.category-image {
    width: 100%;
    height: 0;
    padding-top: calc(1 / 0.6666666666666666 * 100%); /* 2:3 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 400;
    color: #000000;
    margin: 0.25rem 0;
    text-align: center;
}

.subcategory-name {
    font-size: 1rem;
    font-weight: 400;
    color: #333;
    margin: 4px 0;
    text-align: center;
}

.category-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    transition: background-color 0.3s;
    margin: 0.25rem auto 0.25rem;
}

.category-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
}

.category-btn i {
    font-size: 0.9rem;
}

.category-btn:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Gift Shop Section */
.gift-shop {
    background-color: #a60b00;
}

.sale-container {
    padding-block: 1rem 0;
    display: grid;
    gap: 2rem;
}

.sale-image img {
    max-width: 500px;
    margin-inline: auto;
}

.banner-content {
    padding-bottom: 4rem;
}

.banner-content h2 {
    margin-bottom: 1rem;
    font-size: 5rem;
    color: #000000;
    font-weight: 800;
    line-height: 7.5rem;
}

.banner-content h2 span {
    position: relative;
    isolation: isolate;
}

.banner-content h2 span::before {
    content: "";
    position: absolute;
    top: 0;
    left: -1rem;
    height: calc(100% - 10px);
    width: calc(100% + 4rem);
    background-color: #ffffff;
    transform: rotate(-2deg);
    z-index: -1;
}

.banner-content p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.sale-btn .btn:hover {
    background-color: #ffffff;
    color: #000000;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    outline: none;
    border: none;
    font-size: 1rem;
    color: #ffffff;
    white-space: nowrap;
    background-color: #000000;
    border-radius: 0;
    transition: 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #a60b00;
}

/* Subscription Section */
.subscription-section {
    padding: 50px 20px;
    background: linear-gradient(135deg, #a60b00, #ffe0b2);
    text-align: center;
    color: #fff;
}

.subscription-section h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.subscription-section h4 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.subscription-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

#email {
    padding: 12px;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    flex: 1;
}

.subscribe-btn {
    padding: 12px 30px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-btn:hover {
    background-color: #a60b00;
}

.subscription-message.success {
    color: #000000;
    margin-top: 10px;
}

.subscription-message.error {
    color: #000000;
    margin-top: 10px;
}

/* Navigation Banner */
.nav-banner {
    background-color: #000000;
    height: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.banner-text {
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    padding: 8px 0;
    animation: marquee 15s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-section {
        margin-top: 40px; /* Reduced for smaller screens */
    }
    .hero {
        height: 100vh;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-content {
        padding: 10px;
    }
    .category-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 1rem;
    }
    .banner-slide {
        gap: 1rem;
    }
    .banner-card {
        flex: 0 0 50%;
    }
    .nav-banner {
        background-color: #ffffff;
        height: 20px;
    }
    .banner-text {
        color: #000000;
        font-size: 12px;
        padding: 0;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }
    .sale-container {
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .sale-image img {
        max-width: 100%;
        width: 100%;
        margin-inline: 0;
    }
    .banner-content {
        padding-block: 4rem;
    }
    .category-btn {
        font-size: 0.8rem;
        padding: 0.25rem 1rem;
        border-radius: 0;
    }
    .category-btn i {
        font-size: 0.8rem;
    }
    .category-name {
        font-size: 1.2rem;
    }
    .subcategory-name {
        font-size: 1rem;
    }
    .section-description {
        font-size: 1rem;
    }
}

@media (min-width: 769px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .banner-card {
        flex: 0 0 50%;
    }
    .nav-banner {
        background-color: #000000;
    }
    .banner-text {
        color: #ffffff;
        font-size: 14px;
        padding: 8px 0;
    }
    .sale-container {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .banner-card {
        flex: 0 0 25%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .banner-content h2 {
        font-size: 2rem;
    }
    .subscription-section h1 {
        font-size: 1.8rem;
    }
    .subscription-form {
        flex-direction: column;
    }
    .banner-card {
        flex: 0 0 100%;
    }
    .btn {
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }
    .category-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.8rem;
        border-radius: 0;
    }
    .category-btn i {
        font-size: 0.7rem;
    }
    .category-name {
        font-size: 1rem;
    }
    .subcategory-name {
        font-size: 0.9rem;
    }
    .section-description {
        font-size: 0.9rem;
    }
}