:root {
    --primary-color: #00b894;
    --secondary-color: #00cec9;
    --accent-color: #fdcb6e;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f5f6fa;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-md: 10px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

/* Scroll adjustment for fixed header */
section[id] {
    scroll-margin-top: 50px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Ticker */
.top-ticker {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 500;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1002;
    overflow: hidden;
}

.ticker-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
}

.ticker-item i {
    color: var(--accent-color);
    margin-right: 8px;
}

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

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 40px; /* Space for ticker */
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-icon, .profile-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-left: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.cart-icon:hover, .profile-icon:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 184, 148, 0.4);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content h2 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

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

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item {
    padding: 40px 30px;
    border-radius: var(--radius-md);
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-item i {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Products Section */
.products {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 20px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.product-image img {
    width: 80%;
    height: auto;
    transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(253, 203, 110, 0.4);
    z-index: 2;
}

.product-info {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 700;
}

.product-info .price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background-color: rgba(0, 184, 148, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #b2bec3;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: #b2bec3;
    margin-bottom: 15px;
    line-height: 1.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #636e72;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 102px; /* Adjusted for ticker + header height */
        left: -100%;
        width: 100%;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        height: calc(100vh - 102px);
        overflow-y: auto;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
        margin-left: 20px;
    }

    .cart-icon {
        margin-left: auto; /* Push to right on mobile */
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Cart Page Styles */
.cart-page {
    padding: 150px 0 100px;
    min-height: 80vh;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr auto;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cart-item img {
    width: 100%;
    border-radius: var(--radius-md);
}

.item-details h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-details p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 5px;
    width: fit-content;
}

.item-quantity button {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.item-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    -moz-appearance: textfield;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.remove-item {
    color: #ff7675;
    cursor: pointer;
    transition: var(--transition);
}

.remove-item:hover {
    color: #d63031;
}

.cart-summary {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-light);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    text-align: center;
}

.empty-cart {
    text-align: center;
    padding: 50px;
}

.empty-cart i {
    font-size: 4rem;
    color: #eee;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
        position: relative;
    }
    
    .item-quantity {
        grid-column: 1 / 3;
        margin-top: 10px;
    }
    
    .item-price {
        position: absolute;
        top: 0;
        right: 0;
    }
    
    .remove-item {
        position: absolute;
        bottom: 0;
        right: 0;
    }
}

/* Checkout Page Styles */
.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.checkout-form h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.form-group-row {
    display: flex;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option input {
    margin-right: 10px;
}

.credit-card-details {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    display: none; /* Initially hidden */
}

.order-summary-wrapper {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-item-info img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

.order-item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.order-item-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.order-item-price {
    font-weight: 600;
}

.summary-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .order-summary-wrapper {
        position: static;
        margin-top: 40px;
    }
}

/* Contact Page Styles */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 184, 148, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-item .details h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-item .details p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.social-connect {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.social-connect h4 {
    margin-bottom: 15px;
}

.social-connect .social-icons {
    display: flex;
    gap: 15px;
}

.social-connect .social-icons a {
    width: 35px;
    height: 35px;
    background-color: var(--text-dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-connect .social-icons a:hover {
    background-color: var(--primary-color);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.contact-form-wrapper h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

@media (max-width: 991px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Product Detail Page Styles */
.product-detail-section {
    background-color: var(--white);
    min-height: 100vh;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px; /* Fixed container height */
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show full image without cropping */
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail-images img {
    width: 100%;
    height: 100px; /* Fixed thumbnail height */
    object-fit: cover; /* Crop thumbnails to look uniform */
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail-images img:hover,
.thumbnail-images img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-info-detail {
    padding: 20px 0;
}

.product-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--text-dark);
}

.product-rating {
    color: #fdcb6e;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.product-rating span {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 10px;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.original-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 400;
}

.discount-badge {
    background-color: #ff7675;
    color: white;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    vertical-align: middle;
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.product-highlights {
    list-style: none;
    margin-bottom: 40px;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
}

.product-highlights li {
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-highlights li:last-child {
    margin-bottom: 0;
}

.product-highlights i {
    color: var(--primary-color);
}

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

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    overflow: hidden;
}

.quantity-selector button {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.quantity-selector button:hover {
    background-color: var(--bg-light);
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    flex: 1;
    padding: 18px 30px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.shipping-info {
    border-top: 1px solid #eee;
    padding-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.shipping-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Product Tabs */
.product-tabs {
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.tab-headers {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

.ingredients-table {
    width: 100%;
    border-collapse: collapse;
}

.ingredients-table tr {
    border-bottom: 1px solid #eee;
}

.ingredients-table td {
    padding: 15px;
}

.ingredients-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* Mobile Responsive Product Page */
@media (max-width: 991px) {
    .product-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }

    .tab-headers {
        gap: 20px;
        flex-direction: column;
        border-bottom: none;
    }

    .tab-btn {
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    .tab-btn::after {
        display: none;
    }

    .shipping-info {
        grid-template-columns: 1fr;
    }

    .main-image img {
        height: auto;
        max-height: 500px;
    }
}
