* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #fff;
    min-height: 100vh;
    overflow-y: auto;
    max-width: 100%;
    overflow-x: hidden;
}

#carousel-container {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: background-color 1s ease-in-out;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(17, 13, 13, 0.525);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 10000; /* Keep navbar always above */
}

.logo img {
    height: 80px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* ✅ FIXED MOBILE VIEW DROPDOWN */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        width: 100%;
        position: fixed; /* Changed from absolute */
        top: 80px; /* Below navbar */
        left: 0;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem 0;
        z-index: 99999; /* Higher than any other element */
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
        opacity: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        animation: slide-down 0.3s ease-in-out;
    }

    .nav-links a {
        color: #fff;
        padding: 1rem;
        text-align: center;
        width: 100%;
        transition: background-color 0.3s, color 0.3s;
    }

    .nav-links a:hover {
        background-color: #ffd700;
        color: #121212;
    }

    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .hamburger {
        display: flex;
        z-index: 100000; /* Keep it clickable */
    }

    .navbar {
        justify-content: space-between;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100001;
    }
}

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

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 40px 0;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 500;
    text-align: center;
    max-width: 800px;
    margin-bottom: 60px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    width: 280px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff00;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 1s ease-in-out, filter 1s ease-in-out, z-index 0s 0.5s;
    filter: brightness(0.7) blur(2px);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.carousel-item.active {
    transform: translateX(0) scale(1.1);
    filter: brightness(1) blur(0);
    z-index: 5;
}

.carousel-item.prev-1 {
    transform: translateX(-300px) scale(0.9);
    z-index: 4;
}

.carousel-item.next-1 {
    transform: translateX(300px) scale(0.9);
    z-index: 4;
}

.carousel-item.prev-2 {
    transform: translateX(-580px) scale(0.7);
    z-index: 3;
}

.carousel-item.next-2 {
    transform: translateX(580px) scale(0.7);
    z-index: 3;
}

.section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

#collection h2 {
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #fff;
    position: relative;
    display: block;
    font-weight: bold;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #61dafb;
    border-radius: 2px;
}

#collection {
    background-color: #1a1a1a;
    padding-top: 80px;
    padding-bottom: 80px;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.gallery {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.design-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #282828;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.design-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.design-card .design-image {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
}

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

.design-card:hover .design-image img {
    transform: scale(1.05);
}

.design-title {
    padding: 1rem;
    margin: 0;
    text-align: center;
    color: #61dafb;
    font-family: 'Poppins', sans-serif;
}

.design-overlay {
    position: absolute;
    inset: 0;
    background: rgba(97, 218, 251, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.design-overlay h3 {
    color: #121212;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 0 1rem;
}

.design-card:hover .design-overlay {
    opacity: 1;
}

.design-card:hover .design-overlay h3 {
    transform: translateY(0);
}

.design-card a {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow svg {
    fill: #2c2c2c;
    transition: fill 0.3s ease;
}

.carousel-arrow:hover {
    background: #2c2c2c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover svg {
    fill: #fff;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

#about {
    background-color: #121212;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.about-text {
    max-width: 800px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    .section {
        padding: 60px 20px;
    }

    .section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .carousel-container {
        padding: 0 0rem;
    }

    .gallery {
        gap: 1rem;
    }

    .design-card {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .carousel-arrow.prev {
        left: 0.5rem;
    }

    .carousel-arrow.next {
        right: 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 40px 0px;
    }

    .product-section {
        padding: 40px 15px;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .about-content {
        gap: 30px;
    }

    .about-text p {
        font-size: 0.95rem;
    }
}

.site-footer {
    background-color: #0d0d0d;
    color: #e0e0e0;
    padding: 60px 0px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    display: block;
}

.footer-social,
.footer-contact,
.footer-links {
    flex: 1;
    min-width: 250px;
}

.site-footer h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #61dafb;
    position: relative;
    padding-bottom: 10px;
}

.site-footer h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #61dafb;
    border-radius: 2px;
}

.footer-social .social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-social .social-icons a {
    color: #ffffff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social .social-icons a img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-social .social-icons a:hover {
    color: #61dafb;
    transform: translateY(-5px);
}

.footer-social .social-icons a:hover img {
    transform: translateY(-5px);
}

.footer-contact p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #61dafb;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #aaa;
    font-size: 0.85rem;
}

@media screen and (max-width: 768px) {
    .site-footer {
        padding: 40px 0px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .site-footer h3 {
        text-align: center;
    }

    .site-footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social .social-icons {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .site-footer {
        padding: 30px 15px;
    }

    .site-footer h3 {
        font-size: 1.2rem;
    }

    .footer-social .social-icons a img {
        width: 20px;
        height: 20px;
    }
}

.product-section {
    padding: 80px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-images {
    display: flex;
    flex-direction: column;
}

.image-slider {
    position: relative;
    overflow: hidden;
}

.slider-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    display: none;
}

.slider-img.active {
    display: block;
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.thumbnail-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail-img.active {
    border-color: #61dafb;
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-description .product-story {
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.product-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #61dafb;
}

.add-to-cart-btn {
    background-color: #61dafb;
    color: #121212;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #fff;
}

/* Care Instructions Table */
.care-instructions-heading {
    font-size: 1.8rem;
    color: #61dafb;
    margin-bottom: 20px;
    text-align: center;
}

.table-container {
    margin: 20px auto 40px auto;
    max-width: 800px;
    display: block;
}

.care-instructions-table {
    border-collapse: collapse;
    border: 1px solid #444;
}

.care-instructions-table th,
.care-instructions-table td {
    padding: 12px 15px;
    border: 1px solid #444;
    text-align: left;
}

.care-instructions-table th {
    background-color: #61dafb20;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

.investment-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.investment-heading {
    font-size: 1.8rem;
    color: #61dafb;
    margin-bottom: 20px;
}

.investment-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

@media screen and (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-details {
        display: block !important;
    }

    .product-description {
        display: block !important;
    }

    .add-to-cart-btn {
        display: block !important;
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .product-details h1 {
        font-size: 2rem;
    }

    .thumbnail-img {
        width: 60px;
        height: 60px;
    }

    /* Responsive Styles */
    .table-container {
        overflow-x: auto;
        max-width: 100%;
    }

    .care-instructions-table {
        min-width: 600px;
    }

    .care-instructions-table td,
    .care-instructions-table th {
        white-space: nowrap;
    }
    .investment-section {
        margin: 30px 0;
        padding: 0 25px;
    }

    .investment-heading {
        font-size: 1.5rem;
    }

    .investment-text {
        font-size: 1rem;
    }
}

.product-price {
    font-size: 1.5rem;
    color: #ffd700; /* Gold color for highlighting */
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 600px) {
  .care-instructions-table td,
  .care-instructions-table th {
    white-space: normal;
    word-break: break-word;
    padding: 8px;
  }
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.original-price {
    text-decoration: line-through;
    font-size: 1rem;
    color: #888;
}

.discounted-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #E94560;
}

.offer-badge {
    background-color: #FFC300;
    color: #000;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
}